This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-03-14 13:44:14

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

QuartReader - A file reader in JavaScript.

After I finally learned Javascript, the first thing I thought was "reader", well, after ShadowStar needed a reader. It kind of evolved into a text displayer, and then Its starting to have more advanced features.

It didn't actually take long to program, but the only let down is that it cant display pics.

Also, if you want to add a script, you must copy the entire reader and add the scripts from there.

qScript
Source Code

Look at the source-code if you're interested!

Last edited by Servine (2012-03-14 13:45:22)


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#2 2012-03-14 14:10:40

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: QuartReader - A file reader in JavaScript.

It doesn't do anything. :S

Offline

 

#3 2012-03-14 14:20:49

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: QuartReader - A file reader in JavaScript.

Well in your script you seem to be using window.location = 'Alert' which won't do anything at all.


http://i.imgur.com/zeIZW.png

Offline

 

#4 2012-03-14 14:27:47

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: QuartReader - A file reader in JavaScript.

rookwood101 wrote:

Well in your script you seem to be using window.location = 'Alert' which won't do anything at all.

err, thats a temp variable. dur.


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#5 2012-03-14 14:28:50

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: QuartReader - A file reader in JavaScript.

scimonster wrote:

It doesn't do anything. :S

Try adding your own code!!


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#6 2012-03-14 15:12:57

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: QuartReader - A file reader in JavaScript.

Servine wrote:

rookwood101 wrote:

Well in your script you seem to be using window.location = 'Alert' which won't do anything at all.

err, thats a temp variable. dur.

window.location = 'Alert' would attempt to make your browser go to Alert (As in, try and access it as a website) which would not work.

this is what your browser would try and go to.


http://i.imgur.com/zeIZW.png

Offline

 

#7 2012-03-14 15:16:39

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: QuartReader - A file reader in JavaScript.

rookwood101 wrote:

Servine wrote:

rookwood101 wrote:

Well in your script you seem to be using window.location = 'Alert' which won't do anything at all.

err, thats a temp variable. dur.

window.location = 'Alert' would attempt to make your browser go to Alert (As in, try and access it as a website) which would not work.

this is what your browser would try and go to.

its not window.location ='Alert'!!!

What line of code, is it ForceHyperlink or Hyperlink?


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#8 2012-03-14 16:56:54

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: QuartReader - A file reader in JavaScript.

Servine wrote:

rookwood101 wrote:

Servine wrote:


err, thats a temp variable. dur.

window.location = 'Alert' would attempt to make your browser go to Alert (As in, try and access it as a website) which would not work.

this is what your browser would try and go to.

its not window.location ='Alert'!!!

What line of code, is it ForceHyperlink or Hyperlink?

Code:

window.location=(qScript[num])

Appears multiple times.


http://i.imgur.com/zeIZW.png

Offline

 

#9 2012-03-15 11:23:19

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: QuartReader - A file reader in JavaScript.

rookwood101 wrote:

Servine wrote:

rookwood101 wrote:


window.location = 'Alert' would attempt to make your browser go to Alert (As in, try and access it as a website) which would not work.

this is what your browser would try and go to.

its not window.location ='Alert'!!!

What line of code, is it ForceHyperlink or Hyperlink?

Code:

window.location=(qScript[num])

Appears multiple times.

that means if..

qScript[0] was hyperlink
qScript[1] was http://www.google.com/

it means it would hyperlink to google!


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#10 2012-03-17 09:03:53

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: QuartReader - A file reader in JavaScript.

It doesn't do anything S:


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#11 2012-03-17 10:40:52

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: QuartReader - A file reader in JavaScript.

slinger wrote:

It doesn't do anything S:

YES IT DOESSSS!!!!!!!!!!!!


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#12 2012-03-18 03:19:08

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: QuartReader - A file reader in JavaScript.

Awesome! I am going to attempt to write a script editor for this.  smile


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#13 2012-03-18 06:14:35

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: QuartReader - A file reader in JavaScript.

nathanprocks wrote:

Awesome! I am going to attempt to write a script editor for this.  smile

Thanks!


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#14 2012-03-18 06:26:02

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: QuartReader - A file reader in JavaScript.

Servine wrote:

nathanprocks wrote:

Awesome! I am going to attempt to write a script editor for this.  smile

Thanks!

I have uploaded it to my website but I still need a way to pass the script line-by-line before I can make the script editor actually do something lol.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#15 2012-03-18 10:58:08

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: QuartReader - A file reader in JavaScript.

uh how do you open a file


Posts: 20000 - Show all posts

Offline

 

#16 2012-03-19 01:36:52

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: QuartReader - A file reader in JavaScript.

veggieman001 wrote:

uh how do you open a file

You don't. You have to write the code inside the html code.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

Board footer