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

#26 2011-08-24 09:36:51

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

Re: Panther browser

hey guys, I noticed in the screenshot it said google.co.uk. you might want to have the user select what country they live in and if it's USA, then they would have to type in .com, etc.


the the the the the

Offline

 

#27 2011-08-24 11:13:49

flashgorcazy-test
New Scratcher
Registered: 2011-08-23
Posts: 5

Re: Panther browser

also, the browser would have to support ActiveX controls or it would just  would be a remake of the dsi browser (that doesn't support YouTubebg  sad  )

Offline

 

#28 2011-08-25 12:55:35

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Panther browser

This probably won't be a fully-functional browser ( I'm not going to program Flash, Java, and all that stuff into Scratch which is already slow at loading normal pages ). So lets stick with the basics. HTML.  smile

Offline

 

#29 2011-09-13 17:36:38

cskidmsonic
Scratcher
Registered: 2011-01-22
Posts: 100+

Re: Panther browser

Bump. How do I make Panther load a webpage?


This signature is TDD's fault... yes, I had to.

Offline

 

#30 2011-09-14 11:53:25

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

Re: Panther browser

could you maybe list the custom blocks for panther that you are using?


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

Offline

 

#31 2011-09-14 11:58:41

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther browser

Sure, um hang on, let me find the project!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#32 2011-09-14 12:16:38

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther browser

Okay, it currently contains

import image $String$ from web
stamp text $String$ at x: $Number$ y:$Number$ font $String$ size $Number$ color $Color$
$String$ contains $String$
set cursor to $String$

All can be found in the library  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#33 2011-09-14 12:20:31

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

Re: Panther browser

I was actually thinking of doing this myself.  lol

Offline

 

#34 2011-09-14 12:28:00

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther browser

Reading the pages is no problem, the main problems are

1) Text stamping struggles to match the size of the page
2) newlines aren't automatically created with text stamping
3) Some (a lot of) PNG images don't display properly when imported by Panther.

If anyone actually wants my early start on the project, you're welcome to download it here so long as you keep it open source and for all to develop (I.E. add bits but keep sharing!)

Last edited by sparks (2011-09-14 12:30:13)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#35 2011-09-15 12:12:40

cskidmsonic
Scratcher
Registered: 2011-01-22
Posts: 100+

Re: Panther browser

It keeps complaining about ascii character 216 not normally being used in code.


This signature is TDD's fault... yes, I had to.

Offline

 

#36 2011-09-15 12:21:40

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther browser

That is odd... It seems to dislike .com sites and gives a syntax error. .net is fine. This doesn't happen in my personal copy of Panther (Which I'll admit I edited a little).


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#37 2011-09-15 12:26:24

cskidmsonic
Scratcher
Registered: 2011-01-22
Posts: 100+

Re: Panther browser

sparks wrote:

That is odd... It seems to dislike .com sites and gives a syntax error. .net is fine. This doesn't happen in my personal copy of Panther (Which I'll admit I edited a little).

It doesn't work at all for me.


This signature is TDD's fault... yes, I had to.

Offline

 

#38 2011-09-15 14:20:18

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Panther browser

sparks wrote:

That is odd... It seems to dislike .com sites and gives a syntax error. .net is fine. This doesn't happen in my personal copy of Panther (Which I'll admit I edited a little).

Interesting thing .. oh btw png stuff .. is it converting all the alpha color to closest solid color ? (if yes then u are very close to an IE6 bug)

now coming to JS & CSS

I read the source code(bits) of googles V8  (to make me understand JS better and also to curiousity lol) and i think i can help writing a JS parser module for Panther Browser  smile  ,

CSS looks very very hard to me as CSS 2 & 3 has lots of stuff taht even Scratch cannot implement -_- . We might be able to do CSS 1 though but that too after a long long code idea!

Last edited by fanofcena (2011-09-15 14:22:42)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#39 2011-09-15 14:46:15

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther browser

I think this would have to go the way of the phone browser, displaying content without necessarily displaying formatting. The current image importing system in Panther (A block by MathWizz) fails to import a fairly large number of PNG images (it usually imports them as blank, unreadable PNG's)

Code:

  | img newC |

    (t1 asLowercase endsWith: '.gif') ifTrue: [
        img _ (GIFReadWriter new setStream: (HTTPSocket httpGet: t1)) nextImage.]
    ifFalse: [
        (t1 asLowercase endsWith: '.png') ifTrue: [
            img _ (PNGReadWriter createAFormFrom: (HTTPSocket httpGet: t1) contents) first]
        ifFalse: [
            img _ HTTPSocket httpJpeg: t1]].

    newC _ ImageMedia new form: img; mediaName: (self unusedMediaNameFromBaseName: (self defaultImageMedia mediaName)).

    self addMediaItem: newC.

It also cannot deal with JPG, only JPEG for some reason.

Also, may I say, the IE glitch with PNG's is a pain in the bum, I had to replace almost all my PNG images on my website with GIF and BMP just to please that difficult child Internet Explorer  sad


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#40 2011-09-16 12:24:33

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Panther browser

sparks wrote:

Also, may I say, the IE glitch with PNG's is a pain in the bum, I had to replace almost all my PNG images on my website with GIF and BMP just to please that difficult child Internet Explorer  sad

Oh yeah i am dwnloading win 8 atm lets see how much there Banner of "HTML 5" metro applet holds in this :S ..

But seriously IE sux lol

i use CSS 3 and hence i put his on my website

if($.browser.ie){
  alert("Website under compitablity mode , Your browser is not sufficiently powerful to support the features , kindly upgrade to a better browser if possible");
Run_Plain();
}else{
do_epicness();
}


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#41 2011-10-08 22:01:43

elimantor
Scratcher
Registered: 2011-04-03
Posts: 76

Re: Panther browser

hey um the browser isnt working for me


scratch 2.0 forever!  big_smile

Offline

 

#42 2011-10-09 05:08:05

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

Re: Panther browser

fanofcena wrote:

sparks wrote:

Also, may I say, the IE glitch with PNG's is a pain in the bum, I had to replace almost all my PNG images on my website with GIF and BMP just to please that difficult child Internet Explorer  sad

Oh yeah i am dwnloading win 8 atm lets see how much there Banner of "HTML 5" metro applet holds in this :S ..

But seriously IE sux lol

i use CSS 3 and hence i put his on my website

if($.browser.ie){
  alert("Website under compitablity mode , Your browser is not sufficiently powerful to support the features , kindly upgrade to a better browser if possible");
Run_Plain();
}else{
do_epicness();
}

I think I prefer this method of using javascript:

Code:

<!--[if IE]>
<script type="text/javascript">
document.write("You're using IE so this website is wasted on you, As a result of this you get no website!");
</script>
<[endif]--!>

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

Offline

 

#43 2011-10-09 06:06:17

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther browser

I like the HTML method, I think it can technically be used to just hide some parts from IE users, or with an if/else, display a slightly different, less stunning site to those who insist on using the big E.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#44 2011-10-09 06:13:19

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

Re: Panther browser

well for example you can do:

<!--[if IE]>
<link rel="stylesheet" type="text/css" href="style.css">
<[endif]--!>
And it will only display the stylesheet in IE


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

Offline

 

#45 2011-10-23 14:35:38

cocolover76
Scratcher
Registered: 2011-10-09
Posts: 500+

Re: Panther browser

Magnie wrote:

I find putting my name into your topic a very funny way to get me to read this... xD

Anyway, I might be able to do a few things, but I'm not the most fluent in CSS or Javascript. I'll be able to do a few things with pure HTML web pages, but any more than that will be a different story. Though I'll see what I can do.  smile  Do you have a basic project already set up?

Edit: Also, how would we download the images?

Download the images: (Contents of file at URL []) Reporter block in Panther.
I am VERY fluent at JS, HTML, CSS.
A little fluent at PHP, but how would we send data TO the server?
(Maybe tell Panther to connect to it with those URL parameter things(I forgot what they are called) so that the PHP script would think we connected)


http://i.imgur.com/HfEPZ.gifhttp://i.imgur.com/pvKb6.png

Offline

 

#46 2011-10-23 14:45:08

cocolover76
Scratcher
Registered: 2011-10-09
Posts: 500+

Re: Panther browser

cocolover76 wrote:

Magnie wrote:

I find putting my name into your topic a very funny way to get me to read this... xD

Anyway, I might be able to do a few things, but I'm not the most fluent in CSS or Javascript. I'll be able to do a few things with pure HTML web pages, but any more than that will be a different story. Though I'll see what I can do.  smile  Do you have a basic project already set up?

Edit: Also, how would we download the images?

Download the images: (Contents of file at URL []) Reporter block in Panther.
I am VERY fluent at JS, HTML, CSS.
A little fluent at PHP, but how would we send data TO the server?
(Maybe tell Panther to connect to it with those URL parameter things(I forgot what they are called) so that the PHP script would think we connected)

Download the images:Panther comes with a sample project that renders pictures with the pen.


http://i.imgur.com/HfEPZ.gifhttp://i.imgur.com/pvKb6.png

Offline

 

#47 2011-10-23 14:53:14

cocolover76
Scratcher
Registered: 2011-10-09
Posts: 500+

Re: Panther browser

I also have an idea for part of HTML:
<!--[if IE 7]>
<!--[if IE 8]>
<!--[if scratch]-->
You are using Scratch
<!--[endif]-->
<![endif]-->
<![endif]-->
It uses 1 that cancels out the other, so that other browsers don't display it.


http://i.imgur.com/HfEPZ.gifhttp://i.imgur.com/pvKb6.png

Offline

 

#48 2011-10-23 18:09:51

cocolover76
Scratcher
Registered: 2011-10-09
Posts: 500+

Re: Panther browser

sparks wrote:

I have a basic project going, I'll post a download later. Importing images is very cool and possible thanks to MathWizz who made the following block:

get web image $String$

Code:

  | img newC |

    (t1 asLowercase endsWith: '.gif') ifTrue: [
        img _ (GIFReadWriter new setStream: (HTTPSocket httpGet: t1)) nextImage.]
    ifFalse: [
        (t1 asLowercase endsWith: '.png') ifTrue: [
            img _ (PNGReadWriter createAFormFrom: (HTTPSocket httpGet: t1) contents) first]
        ifFalse: [
            img _ HTTPSocket httpJpeg: t1]].

    newC _ ImageMedia new form: img; mediaName: (self unusedMediaNameFromBaseName: (self defaultImageMedia mediaName)).

    self addMediaItem: newC.

Very useful  wink  It does absolutely fail to import the pngs for project thumbnails on the Scratch site for some odd reason...

Most pics that change very often are .php, with JFIF at the beginning of the file somewhere to make the browser think it's an image.


http://i.imgur.com/HfEPZ.gifhttp://i.imgur.com/pvKb6.png

Offline

 

#49 2011-10-24 17:00:14

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Panther browser

jeeze you would have to implement every html statement but yeah that would be cool


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#50 2011-10-26 11:56:24

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Panther browser

midnightleopard wrote:

jeeze you would have to implement every html statement but yeah that would be cool

Yeah, that's the only problem with this project, adding all those features.  tongue

Offline

 

Board footer