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

#1 2010-05-31 11:56:59

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

HTML In Scratch?

Ok Squeak Hackers, This Ones Tough. I Was Just Browsing The Source Code Looking For Things To Add To My Mod, Squirrel. Then I Found Something: If You Go To The First Column In The Source Code, And If You Scroll Near The Bottom, You'll Find A Category Named Network-HTML. It Seems That Scratch Can Go Through HTML And Do It. That Got My Attention, So I Started Making A Block That Would Do The HTML That Is Entered. But Once It Got Time For Me To Make It Function, I Got Totally Lost. Can Someone Please Give Me The Code For A Block That Would Do The HTML Entered?

Oh, And To Get You To Want To Make It More, If We Ever Made This Block, We Could Use HTML To Change Our Cursor In Scratch Projects!

Now Somebody Please Make The Block! Thanks!  big_smile

Offline

 

#2 2010-05-31 12:24:54

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: HTML In Scratch?

What exactly do you mean by "do" the HTML? Render it as a page?


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#3 2010-05-31 12:43:29

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: HTML In Scratch?

Or do you just mean execute the HTML?


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#4 2010-05-31 12:44:51

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: HTML In Scratch?

rubiks_cube_guy238 wrote:

Or do you just mean execute the HTML?

HTML isn't really something you can execute.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#5 2010-05-31 14:06:42

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: HTML In Scratch?

HTML = HyperTextMarkupLanguage
Its what you use for laying out a webpage, you don't script things in it, not something fancy anyway.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#6 2010-05-31 15:16:47

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: HTML In Scratch?

fullmoon wrote:

rubiks_cube_guy238 wrote:

Or do you just mean execute the HTML?

HTML isn't really something you can execute.

Well, I think s/he means JavaScript or some other client-side scripting language.


nXIII

Offline

 

#7 2010-06-18 07:57:43

jake451998
Scratcher
Registered: 2009-04-01
Posts: 100+

Re: HTML In Scratch?

php+scratch=mmog possibility, that was my theroy, I don't know if you could make mmogs in scratch with html but it's still possible, Html is one of my favorite weblanguages however.

Offline

 

#8 2010-06-18 08:04:37

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: HTML In Scratch?

jake451998 wrote:

php+scratch=mmog possibility, that was my theroy, I don't know if you could make mmogs in scratch with html but it's still possible, Html is one of my favorite weblanguages however.

Yesh. And We Need It Quite A Bit.

Offline

 

#9 2011-03-15 09:21:01

jonathanb
Scratcher
Registered: 2009-08-13
Posts: 2

Re: HTML In Scratch?

i think he means to "run" it.

Last edited by jonathanb (2011-03-15 09:21:21)

Offline

 

#10 2011-03-15 09:51:20

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: HTML In Scratch?

TheGameMaster1231 wrote:

Ok Squeak Hackers, This Ones Tough. I Was Just Browsing The Source Code Looking For Things To Add To My Mod, Squirrel. Then I Found Something: If You Go To The First Column In The Source Code, And If You Scroll Near The Bottom, You'll Find A Category Named Network-HTML. It Seems That Scratch Can Go Through HTML And Do It. That Got My Attention, So I Started Making A Block That Would Do The HTML That Is Entered. But Once It Got Time For Me To Make It Function, I Got Totally Lost. Can Someone Please Give Me The Code For A Block That Would Do The HTML Entered?

Oh, And To Get You To Want To Make It More, If We Ever Made This Block, We Could Use HTML To Change Our Cursor In Scratch Projects!

Now Somebody Please Make The Block! Thanks!  big_smile

I don't thing you can make it translate HTML with that, you can make it retrieve files, and READ HTML, and possible translate a HTML script to a text.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#11 2011-06-16 17:51:42

poemon1
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: HTML In Scratch?

how do u view the source code????!!!!


http://i47.tinypic.com/rrqe13.gif

Offline

 

#12 2011-06-16 17:54:33

jslomba
Scratcher
Registered: 2009-09-25
Posts: 1000+

Re: HTML In Scratch?

poemon1 wrote:

how do u view the source code????!!!!

shift-click the R in scratch, turn fill screen off, click the white space, 'open','browser'.


the the the the the

Offline

 

#13 2011-06-16 20:38:35

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: HTML In Scratch?

I think I found something somewhere after reading this but didn't post, it was something like after a string just put: asHttp or another one was something like asUrl. I really don't know.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#14 2011-06-16 20:51:14

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: HTML In Scratch?

jake451998 wrote:

php+scratch=mmog possibility, that was my theroy, I don't know if you could make mmogs in scratch with html but it's still possible, Html is one of my favorite weblanguages however.

True, but PHP only runs when you load the page.  For a real-time game I don't think PHP would work, but here is a though: if you can run HTML, can you run JavaScript and AJAX?


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#15 2011-06-17 02:47:53

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: HTML In Scratch?

jonathanb wrote:

i think he means to "run" it.

html isn't a scripting language it can't be "run"
Hyper
Text
Markup
Language

php and javascript are scripting languages

Last edited by TRocket (2011-06-17 05:08:19)


http://i.imgur.com/1QqnHxQ.png

Offline

 

#16 2011-06-17 03:15:17

Taneb
Scratcher
Registered: 2009-07-07
Posts: 100+

Re: HTML In Scratch?

Actually, AJAX isn't a scripting language. It's a way for JavaScript (which is a scripting language) to retrieve files from and send data to a webserver.

Offline

 

#17 2011-06-17 05:07:50

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: HTML In Scratch?

Taneb wrote:

Actually, AJAX isn't a scripting language. It's a way for JavaScript (which is a scripting language) to retrieve files from and send data to a webserver.

sorry i was thinking of javascript but spelt it (slightly) wrong...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#18 2011-06-17 05:11:37

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

Re: HTML In Scratch?

I think the HTML stuff is for reading the source of pages, like Panther can do.

Offline

 

#19 2011-06-17 06:26:42

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: HTML In Scratch?

scimonster wrote:

I think the HTML stuff is for reading the source of pages, like Panther can do.

yeah but what could the block retrurn


http://i.imgur.com/1QqnHxQ.png

Offline

 

#20 2011-06-17 06:50:54

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

Re: HTML In Scratch?

TRocket wrote:

scimonster wrote:

I think the HTML stuff is for reading the source of pages, like Panther can do.

yeah but what could the block retrurn

Try the Panther blocks in the Files category.

Offline

 

#21 2011-06-22 12:46:52

whizzer
Scratcher
Registered: 2008-05-27
Posts: 500+

Re: HTML In Scratch?

Can You Stop Writing Like This Please?

Anyway, you can already change the cursor in Scratch. It's in the mod Bingo by LS97.

And I'm not sure that's an HTML reader.


http://i46.tinypic.com/33df6me.png I'm whizzer0 for all things Minecraft.

Offline

 

Board footer