Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-25 Thread Walter Dnes
On Mon, Dec 19, 2005 at 08:12:13PM -0600, John Jolet wrote

 and your pick for client-side portable code is???

  Client-side code is inherently risky.  The website is executing a
program on your machine.  It's not that much different from allowing
people to telnet on to your machine anonymously and run programs.  You
face similar privilege-escalation attacks.  And Windows boxes are being
administered (if you can call it that) by computer-illiterate Joe
Sixpack, not his geeky cousin Joe Sysadmin.

  Sure, Java started out from square 1 with a sandbox or Virtual
Machine.  That didn't stop vulnerabilities from showing up in Java.
Netscape's Livescript (damn the @##holes for renaming it Javascript)
started off with so little power that the attitude was Sandbox?  We
don't need no steenkin sandbox..  As Javascript's power grew, that
decision has come back to bite, especially on Windows, but there have
been a few multi-platform security bugs.

-- 
Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-25 Thread John Jolet


On Dec 25, 2005, at 9:37 PM, Walter Dnes wrote:


On Mon, Dec 19, 2005 at 08:12:13PM -0600, John Jolet wrote


and your pick for client-side portable code is???


  Client-side code is inherently risky.  The website is executing a
program on your machine.  It's not that much different from allowing
people to telnet on to your machine anonymously and run programs.  You
face similar privilege-escalation attacks.  And Windows boxes are  
being

administered (if you can call it that) by computer-illiterate Joe
Sixpack, not his geeky cousin Joe Sysadmin.

  Sure, Java started out from square 1 with a sandbox or Virtual
Machine.  That didn't stop vulnerabilities from showing up in Java.
Netscape's Livescript (damn the @##holes for renaming it Javascript)
started off with so little power that the attitude was Sandbox?  We
don't need no steenkin sandbox..  As Javascript's power grew, that
decision has come back to bite, especially on Windows, but there have
been a few multi-platform security bugs.

Frankly, I quite agree.  Unfortunately, it's very difficult to do the  
kind of nifty things the marketing folks like so much without some  
sort of client-side code.  And it's virtually impossible to make the  
sort of application-like sites that swell the heart of web services  
aficionados.  I have always recommended against any sort of client- 
side requirement (on those rare occasions when someone actually asks  
the sysadmin his opinion on design and security) but that's a  
battle marketing almost always wins.  It's no coincidence that the os  
with the least security turned on by default has the largest market  
share.  Security takes effort, and 90% of the people would rather  
wade naked in the cesspool than try to understand the concepts  
necessary to mediate that risk.

--
Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
--
gentoo-user@gentoo.org mailing list



--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-19 Thread John Blinka

Willie Wong wrote:


For what it's worth, I believe those people reporting success might
be trying the wrong page. The website redirects all deep-links to the
front page. 


To reproduce the error, go to the frontpage of smith and noble, on the
left hand side, click Photo Gallery. Choose an arbitrary gallery from
the right when it appears, open up javascript console from
Tools-Javascript console in Firefox or Tools-Web
development-Javascript Console in Mozilla. Click on one of the
thumbnails on the right (the hyperlink should say
javascript.switchImage(2)), and see the image fail to load. 
 



I'm one of the people who reported success.  I followed your instructions
above, and the image loads just fine.

John
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-19 Thread Willie Wong
On Mon, Dec 19, 2005 at 05:07:28AM -0500, Penguin Lover John Blinka squawked:
 Willie Wong wrote:
 
 For what it's worth, I believe those people reporting success might
 be trying the wrong page. The website redirects all deep-links to the
 front page. 
 
 To reproduce the error, go to the frontpage of smith and noble, on the
 left hand side, click Photo Gallery. Choose an arbitrary gallery from
 the right when it appears, open up javascript console from
 Tools-Javascript console in Firefox or Tools-Web
 development-Javascript Console in Mozilla. Click on one of the
 thumbnails on the right (the hyperlink should say
 javascript.switchImage(2)), and see the image fail to load. 
  
 
 
 I'm one of the people who reported success.  I followed your instructions
 above, and the image loads just fine.
 
 John

Something is wrong on my end then. Can I have your USE flags for
firefox, the version you are running, and what Javascript options you
are using (i.e. from the Firefox preferences or about:config)? 

W
-- 
Seen outside the LINAC control room @ Fermi Nat'l Accelerator Laboratory:
   (an _official_ sign)
  PLEASE DON'T FEED THE OPERATORS
Sortir en Pantoufles: up 37 days, 13:54
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-19 Thread Willie Wong
On Mon, Dec 19, 2005 at 10:11:16AM -0200, Penguin Lover Daniel da Veiga 
squawked:
 I'm using a fresh installed Gentoo and Firefox 1.0.7, so, I have no
 plugins (yet). And the site mentioned works great, its a simple
 javascript popping up a window, I even made a lot of these on my
 webmaster days, that specific function has no compatibility problems,
 it works on all browsers I've tested so far...
 
 You probably have something wrong with your browser.

If it is popping up a window, you are looking at the wrong problem. 

The simple javascript pop-up works fine. I am talking about a specific
problem in the Photo Gallery where the javascript is supposed to
switch the current image displayed without opening a new window. 

W
-- 
The suit into which the man's body had been stuffed looked 
as if it's only purpose in life was to demonstrate how 
difficult it was to get this sort of body into a suit. 
Sortir en Pantoufles: up 37 days, 13:56
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-19 Thread Mark Knecht
On 12/19/05, Willie Wong [EMAIL PROTECTED] wrote:
 On Mon, Dec 19, 2005 at 05:07:28AM -0500, Penguin Lover John Blinka squawked:
  Willie Wong wrote:
 
  For what it's worth, I believe those people reporting success might
  be trying the wrong page. The website redirects all deep-links to the
  front page.
  
  To reproduce the error, go to the frontpage of smith and noble, on the
  left hand side, click Photo Gallery. Choose an arbitrary gallery from
  the right when it appears, open up javascript console from
  Tools-Javascript console in Firefox or Tools-Web
  development-Javascript Console in Mozilla. Click on one of the
  thumbnails on the right (the hyperlink should say
  javascript.switchImage(2)), and see the image fail to load.
  
  
 
  I'm one of the people who reported success.  I followed your instructions
  above, and the image loads just fine.
 
  John

 Something is wrong on my end then. Can I have your USE flags for
 firefox, the version you are running, and what Javascript options you
 are using (i.e. from the Firefox preferences or about:config)?

 W

Here is what is not working for us:

dragonfly ~ # emerge -pv mozilla-firefox

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] www-client/mozilla-firefox-1.0.7-r4  -debug +gnome
+ipv6 +java -mozcalendar -mozdevelop -moznoxft -mozsvg +truetype
-xinerama -xprint 0 kB

Total size of downloads: 0 kB
dragonfly ~ #

Enable Java, Enable Javascript are both checked.

Javascript settings:

Checked: Move or resize, Raise or lower, Disable or replace
Not checked: Hide status bar, Change status bar text

Thanks,
Mark

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-19 Thread Daniel da Veiga
On 12/19/05, Willie Wong [EMAIL PROTECTED] wrote:
 On Mon, Dec 19, 2005 at 10:11:16AM -0200, Penguin Lover Daniel da Veiga 
 squawked:
  I'm using a fresh installed Gentoo and Firefox 1.0.7, so, I have no
  plugins (yet). And the site mentioned works great, its a simple
  javascript popping up a window, I even made a lot of these on my
  webmaster days, that specific function has no compatibility problems,
  it works on all browsers I've tested so far...
 
  You probably have something wrong with your browser.

 If it is popping up a window, you are looking at the wrong problem.

 The simple javascript pop-up works fine. I am talking about a specific
 problem in the Photo Gallery where the javascript is supposed to
 switch the current image displayed without opening a new window.


My mistake, was looking at the URL provided at the first message, when
entering the Photo Gallery, it really fails to load the images, wich
is a shame, I checked the code and it was written surely with IE in
mind, it offers no support for different browsers and uses specific
properties of the objects, ones that are not available to Mozilla
implementation of Javascript. I hate when webmasters do that.

 W
 --
 The suit into which the man's body had been stuffed looked
 as if it's only purpose in life was to demonstrate how
 difficult it was to get this sort of body into a suit. 
 Sortir en Pantoufles: up 37 days, 13:56
 --
 gentoo-user@gentoo.org mailing list




--
Daniel da Veiga
Computer Operator - RS - Brazil
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
--END GEEK CODE BLOCK--

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-19 Thread Mark Knecht
On 12/19/05, Daniel da Veiga [EMAIL PROTECTED] wrote:
 On 12/19/05, Willie Wong [EMAIL PROTECTED] wrote:
  On Mon, Dec 19, 2005 at 10:11:16AM -0200, Penguin Lover Daniel da Veiga 
  squawked:
   I'm using a fresh installed Gentoo and Firefox 1.0.7, so, I have no
   plugins (yet). And the site mentioned works great, its a simple
   javascript popping up a window, I even made a lot of these on my
   webmaster days, that specific function has no compatibility problems,
   it works on all browsers I've tested so far...
  
   You probably have something wrong with your browser.
 
  If it is popping up a window, you are looking at the wrong problem.
 
  The simple javascript pop-up works fine. I am talking about a specific
  problem in the Photo Gallery where the javascript is supposed to
  switch the current image displayed without opening a new window.
 

 My mistake, was looking at the URL provided at the first message, when
 entering the Photo Gallery, it really fails to load the images, wich
 is a shame, I checked the code and it was written surely with IE in
 mind, it offers no support for different browsers and uses specific
 properties of the objects, ones that are not available to Mozilla
 implementation of Javascript. I hate when webmasters do that.


Good info. However Safari on my Mac Mini operates correctly so
whatever they do is not so crazy as to only work with IE.

- Mark

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-19 Thread Eric Bliss
On Sunday 18 December 2005 12:46 pm, Willie Wong wrote:
 From my limited knowledge of javascript, I can't tell whether it is
 a badly written javascript that parses in IE but not in Firefox, or
 Firefox not supporting the full standard, or perhaps the
 site-designer used some IE-only extensions. 
 

As a web developer, allow me to interject a little bit of an explanation here.  
Not only is there a difference between Java and Javascript, there is a 
difference between Javascript and Jscript - the crap that IE invented.  Then 
there's also ECMAScript - which was a standards body invented version of the 
other two.  Add to that, there are multiple different Document Object Models 
between the different browsers, which is the language's object tree structure 
that defines how every element in the page and the code is named.  So, since 
there are a half dozen or more different ways for the different browsers to 
try to execute the Javascript code, you'll find sites that will only support 
the browser that their programmer uses, or that will have half of the 
javascript on the page devoted to trying to figure out what browser you're 
using, followed by a bunch of if/thens with multiple different flavors of the 
code that will HOPEFULLY work for the browser that you're actually using, and 
sites that just disregard Javascript entirely rather than try to deal with 
the headaches.

Search javascript hell on Google.  Note the 3 million results.  :-)

Basically, if it isn't working right now, don't hold your breath for it to be 
fixed, either by the Firefox team, or the website developers.

-- 
Eric Bliss
systems design and integration,
CreativeCow.Net
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-19 Thread John Blinka

Willie Wong wrote:




Something is wrong on my end then. Can I have your USE flags for
firefox, the version you are running, and what Javascript options you
are using (i.e. from the Firefox preferences or about:config)? 


W
 


- equery uses mozilla-firefox
[ Searching for packages matching mozilla-firefox... ]
[ Colour Code : set unset ]
[ Legend: Left column  (U) - USE flags from make.conf  ]
[   : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for www-client/mozilla-firefox-1.0.7-r4 ]
U I
- - gnome   : Adds GNOME support
+ + java: Adds support for Java
- - mozdevelop  : Enable features for web developers (e.g. Venkman)
- - mozsvg  : Enable SVG support in mozilla and firefox
- - mozcalendar : Enable mozilla calendar extension, 
http://mozilla.org/projects/calendar/
- - debug   : Tells configure and the makefiles to build for 
debugging. Effects vary across packages, but generally it will at least 
add -g to CFLAGS. Remember to set FEATURES=nostrip too

- - gnome   : Adds GNOME support
+ + ipv6: Adds support for IP version 6
- - moznoxft: Disable XFT support in mozilla (also firefox, 
thunderbird)

+ + truetype: Adds support for FreeType and/or FreeType2 fonts
- - xinerama: Add support for the xinerama X11 extension, which 
allows you to stretch your display across multiple monitors
- - xprint  : Support for xprint, 
http://www.mozilla.org/projects/xprint/



From edit-preferences-Web Features, I have Enable Javascript 
checked and
under the Advanced option, I have Disable or replace conte... and 
Change Images

checked.  I'm running mozilla-firefox-1.0.7-r4.

John
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-19 Thread Daniel da Veiga
On 12/19/05, John Blinka [EMAIL PROTECTED] wrote:
 Willie Wong wrote:

 
 
 Something is wrong on my end then. Can I have your USE flags for
 firefox, the version you are running, and what Javascript options you
 are using (i.e. from the Firefox preferences or about:config)?
 
 W
 
 
 - equery uses mozilla-firefox
 [ Searching for packages matching mozilla-firefox... ]
 [ Colour Code : set unset ]
 [ Legend: Left column  (U) - USE flags from make.conf  ]
 [   : Right column (I) - USE flags packages was installed with ]
 [ Found these USE variables for www-client/mozilla-firefox-1.0.7-r4 ]
  U I
  - - gnome   : Adds GNOME support
  + + java: Adds support for Java
  - - mozdevelop  : Enable features for web developers (e.g. Venkman)
  - - mozsvg  : Enable SVG support in mozilla and firefox
  - - mozcalendar : Enable mozilla calendar extension,
 http://mozilla.org/projects/calendar/
  - - debug   : Tells configure and the makefiles to build for
 debugging. Effects vary across packages, but generally it will at least
 add -g to CFLAGS. Remember to set FEATURES=nostrip too
  - - gnome   : Adds GNOME support
  + + ipv6: Adds support for IP version 6
  - - moznoxft: Disable XFT support in mozilla (also firefox,
 thunderbird)
  + + truetype: Adds support for FreeType and/or FreeType2 fonts
  - - xinerama: Add support for the xinerama X11 extension, which
 allows you to stretch your display across multiple monitors
  - - xprint  : Support for xprint,
 http://www.mozilla.org/projects/xprint/


  From edit-preferences-Web Features, I have Enable Javascript
 checked and
 under the Advanced option, I have Disable or replace conte... and
 Change Images
 checked.  I'm running mozilla-firefox-1.0.7-r4.


While it has options to do that, many of the objects (yes, jscript and
javascript are OO) have different methods, properties and even
different ways to call and/or pass values to those methods from
browser to browser. It is, like a previous post said, a HELL, it was
never standard, and I bet it won't ever be, so, there are scripts
called cross-browser, that check for your browser and version and call
the scripts the way your browser understands it. A web page that was
trully WELL designed, first, tries to NEVER use such unportable stuff,
and if they MUST, they code it for cross-browser compatibility, its
not hard, its just annoying, but many sites just don't do that.

The problem is that most people develop using their browser to preview
content, so, it looks good on THEIR browser, not necessarily with
yours. In the old times when I used to make DHTML with IE, Netscape
and Opera installed so I could spent a whole afternoon playing with
absolute positions and cursing the developers, thank god now I work
with something else.

 John
 --
 gentoo-user@gentoo.org mailing list




--
Daniel da Veiga
Computer Operator - RS - Brazil
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
--END GEEK CODE BLOCK--

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-19 Thread Willie Wong
On Mon, Dec 19, 2005 at 02:30:18PM -0800, Penguin Lover Eric Bliss squawked:
 Basically, if it isn't working right now, don't hold your breath for it to be 
 fixed, either by the Firefox team, or the website developers.
 

So... what you are saying is that, basically, it is not really
anyone's fault, and so not a bug. Okay then, I'll stop worrying about
it. At this point, it is really up to the OP to bug the webmaster and
make the code Fireox-Compliant (TM) =p

W
-- 
Do you all understand? At this point I'll settle for quiet acquiescence.
~DeathMech, S. Sondhi. P-town PHY 205
Sortir en Pantoufles: up 37 days, 18:05
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-19 Thread Dale

Willie Wong wrote:


On Mon, Dec 19, 2005 at 02:30:18PM -0800, Penguin Lover Eric Bliss squawked:
 

Basically, if it isn't working right now, don't hold your breath for it to be 
fixed, either by the Firefox team, or the website developers.


   



So... what you are saying is that, basically, it is not really
anyone's fault, and so not a bug. Okay then, I'll stop worrying about
it. At this point, it is really up to the OP to bug the webmaster and
make the code Fireox-Compliant (TM) =p

W
 

This sounds like my sister-in-laws company website, she just works for 
them though.  If you don't use IE, you're out of luck.  The home page 
will work but nothing after she logs in.  She uses a private section 
that is for employees only though so I don't have the address for it.  
She works for J. C. Penny.  She sells shoes.  LOL  Al Bundy in the 
family.  LOL 

Why can't there be a standard?  Wouldn't it be easier for everybody?  
Even my banks really secure site work with Mozilla, on Linux no less.  
They run windoze, well, maybe it ain't so secure after all.  ;)  At 
least it works though.


My $.02 worth and that ain't much.

Dale
:-)

--
To err is human, I'm most certainly human.

I have four rigs:

1:  Home built; Abit NF7 ver 2.0 w/ AMD 2500+ CPU, 1GB of ram and right now two 
80GB hard drives.
2:  Home built; Iwill KK266-R w/ AMD 1GHz CPU, 256MBs of ram and a 4GB drive.
3:  Home built; Gigabyte GA-71XE4 w/ 800MHz CPU, 128MBs of ram and a 2.5GB 
drive.
4:  Compaq Proliant 6000 Server w/ Quad 200MHz CPUs, 128MBs of ram and a 4.3GB 
SCSI drive.

All run Gentoo Linux, all run folding. #1 is my desktop, 2, 3, and 4 are set up as servers.  


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-19 Thread John Jolet
Sure, it's somebody's fault!  We can start with blaming the  
Microsoft's
Jscript development team, and follow up with the ECMA standards  
body for
trying to compromise between the two existing versions of J[ava] 
script.

After that, we should go after Netscape and IE both for creating two
different conflicting DOMs in the first place. And let's go ahead  
and lynch
Firefox, and Opera, and Safari and Konqueror too while we're at it,  
just on

general principles.  :-)

By the way, what makes you think I hate Javascript??? ;-)

and your pick for client-side portable code is???
--
gentoo-user@gentoo.org mailing list



[gentoo-user] java vs. javascript - what's the difference?

2005-12-18 Thread Mark Knecht
Hi,
   There is a web site that my wife wanted to use. The web address is here:

http://www.smithandnoble.com/sn/photoGalleryDetail.jsp?catID=-14150

On this page, on the right, there are pictures that you are supposed
to click to see a larger version to the left. This works on Windows
and it works on the Mac, but it does not work on any of our Linux
systems, using either blackdown java or sun java. I think that's a
problem so I file a bug.

   I filed a bug report here:

http://bugs.gentoo.org/show_bug.cgi?id=115949

and was told the bug was 'invalid' because the page didn't have any
Java. They said the page only has javascript. First, from a (stupid)
user's perspective I found this a bit disappointing. I'm just told
'invalid' and given no guidance about how to make it work. However
that happens when some developers have to talk to user types like me.
I understand that. Still I want to understand how to make it work so
the WAF stays high and she doesn't ask to go back to Windows.

   What's 'javascript' and how do I make this work?

Thanks,
Mark

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-18 Thread John Blinka

Mark Knecht wrote:



  What's 'javascript' and how do I make this work?
 


I don't know what the difference between java  javascript
is either, but the web page you cited works for me using
an up-to-date gentoo system and firefox.  Clicking on the pictures
on the right hand side does pop up larger pictures for me.  I've
enabled javascript  java in firefox's edit-preferences-web features
menu.  For what it's worth, I'm using blackdown java.

John
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-18 Thread John Jolet

On Dec 18, 2005, at 11:46 AM, Mark Knecht wrote:


Hi,
   There is a web site that my wife wanted to use. The web address  
is here:


http://www.smithandnoble.com/sn/photoGalleryDetail.jsp?catID=-14150

On this page, on the right, there are pictures that you are supposed
to click to see a larger version to the left. This works on Windows
and it works on the Mac, but it does not work on any of our Linux
systems, using either blackdown java or sun java. I think that's a
problem so I file a bug.

   I filed a bug report here:

http://bugs.gentoo.org/show_bug.cgi?id=115949

and was told the bug was 'invalid' because the page didn't have any
Java. They said the page only has javascript. First, from a (stupid)
user's perspective I found this a bit disappointing. I'm just told
'invalid' and given no guidance about how to make it work. However
that happens when some developers have to talk to user types like me.
I understand that. Still I want to understand how to make it work so
the WAF stays high and she doesn't ask to go back to Windows.

   What's 'javascript' and how do I make this work?

Thanks,
Mark

javascript is, in fact, not java.  typically, in the context of web  
sites, java is run server-side and essentially returns html for your  
browser to interpret.  javascript, on the other hand, was, I believe,  
developed by netscape, not sun.  they just called it that because it  
has some similarities with java.  it is client-side, like microsoft's  
proprietary activex technology.  Their response was probably fine,  
since there is, in fact, no java in javascript, despite the name.  :)


Oddly enough, I had no problems with the smith and noble website with  
firefox on my gentoo laptop...but that was a few months ago.


from a practical standpoint, make sure you're running the latest  
firefox, and have javascript enabled in the security settings.



--
gentoo-user@gentoo.org mailing list



--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-18 Thread RNuno
On 18-12-2005 17:46, Mark Knecht wrote:
 Hi,
There is a web site that my wife wanted to use. The web address is here:
 
 http://www.smithandnoble.com/sn/photoGalleryDetail.jsp?catID=-14150
 
 On this page, on the right, there are pictures that you are supposed
 to click to see a larger version to the left. This works on Windows
 and it works on the Mac, but it does not work on any of our Linux
 systems, using either blackdown java or sun java. I think that's a
 problem so I file a bug.

Well on windows it works on IE but not on Firefox.

What's 'javascript' and how do I make this work?

Javascript is a client-side scripting language, it seams
that the code on that page dosent support Firefox/Mozilla

There is nothing that you can do about it, unless for instance
you want to run IE on linux with wine:

http://forums.gentoo.org/viewtopic.php?t=148168

regards,
--RNuno
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-18 Thread Holly Bostick
Mark Knecht schreef:
 
What's 'javascript' and how do I make this work?

JavaScript
From Wikipedia, the free encyclopedia.
Jump to: navigation, search

JavaScript is an object-based scripting programming language based on
the concept of prototypes. The language is best known for its use in
websites, but is also used to enable scripting access to objects
embedded in other applications. It was originally developed by Brendan
Eich of Netscape Communications Corporation under the name Mocha, then
LiveScript, and finally renamed to JavaScript. Like Java, JavaScript has
a C-like syntax, but it has far more in common with the Self programming
language than with Java.

Java
From Wikipedia, the free encyclopedia.
Jump to: navigation, search

The term Java can refer to:

In computer science:

* Java, a technology developed by Sun Microsystems for
machine-independent software, which encompasses:
  o Java programming language, an object-oriented high-level
programming language
  o Java virtual machine, the virtual machine that runs Java
byte code
  o Java platform, the Java virtual machine plus API specifications
+ Java 2 Platform, Standard Edition, targets desktop
environment
+ Java 2 Platform, Enterprise Edition, targets server
environment
+ Java 2 Platform, Micro Edition, targets embedded
consumer products
* JavaScript, a scripting language syntacticly similar to, but
semanticly different from, the Java programming language

John Blinka already told you how to enable JavaScript (and Java, if you
want) in your (Mozilla/Gecko-based) browser.

HTH,
Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-18 Thread Dale

John Blinka wrote:


Mark Knecht wrote:



  What's 'javascript' and how do I make this work?
 


I don't know what the difference between java  javascript
is either, but the web page you cited works for me using
an up-to-date gentoo system and firefox.  Clicking on the pictures
on the right hand side does pop up larger pictures for me.  I've
enabled javascript  java in firefox's edit-preferences-web features
menu.  For what it's worth, I'm using blackdown java.

John


The site worked for me too.  I use Mozilla 1.7.12 and KDE.  This is my 
pluggins:



Java(TM) Plug-in Blackdown-1.4.2-02



QuickTime Plug-in 6.0



Shockwave Flash 7.0 r61


Maybe if you copy what I have installed it will work.  I did download 
the java from the Sun site and put it in /usr/portage/distfiles.  It is 
the true java I guess, even though it is a pain in the but to install.


Oh, my USE line is this:

USE=acl acpi alsa amd arts artsd artswrappersuid cdr chroot 
clanJavaScript -crypt dbus doc -eds ethereal f-prot fdftk gaim gcj 
gimpprint gkrellm gphoto2 gtk gtkhtml hal hbci hpijs gif innodb java 
javascript jbig justify kde mmx mozdomi mozilla nsplugin ofx offensive 
openoffice -oss parse-clocks ppds pysol scanner scribus sse tcltk tiff 
tkinter truetype tuxracer udev usb X xml xprint yahoo 3dnow 




Hope that helps.

Dale
:-)

--
To err is human, I'm most certainly human.

I have four rigs:

1:  Home built; Abit NF7 ver 2.0 w/ AMD 2500+ CPU, 1GB of ram and right now two 80GB hard drives.  
2:  Home built; Iwill KK266-R w/ AMD 1GHz CPU, 256MBs of ram and a 4GB drive.

3:  Home built; Gigabyte GA-71XE4 w/ 800MHz CPU, 128MBs of ram and a 2.5GB 
drive.
4:  Compaq Proliant 6000 Server w/ Quad 200MHz CPUs, 128MBs of ram and a 4.3GB 
SCSI drive.

All run Gentoo, all run folding. #1 is my desktop, 2, 3, and 4 are set up as servers.  


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-18 Thread Mark Knecht
On 12/18/05, John Jolet [EMAIL PROTECTED] wrote:
 On Dec 18, 2005, at 11:46 AM, Mark Knecht wrote:

  Hi,
 There is a web site that my wife wanted to use. The web address
  is here:
 
  http://www.smithandnoble.com/sn/photoGalleryDetail.jsp?catID=-14150
 
  On this page, on the right, there are pictures that you are supposed
  to click to see a larger version to the left. This works on Windows
  and it works on the Mac, but it does not work on any of our Linux
  systems, using either blackdown java or sun java. I think that's a
  problem so I file a bug.
 
 I filed a bug report here:
 
  http://bugs.gentoo.org/show_bug.cgi?id=115949
 
  and was told the bug was 'invalid' because the page didn't have any
  Java. They said the page only has javascript. First, from a (stupid)
  user's perspective I found this a bit disappointing. I'm just told
  'invalid' and given no guidance about how to make it work. However
  that happens when some developers have to talk to user types like me.
  I understand that. Still I want to understand how to make it work so
  the WAF stays high and she doesn't ask to go back to Windows.
 
 What's 'javascript' and how do I make this work?
 
  Thanks,
  Mark
 
 javascript is, in fact, not java.  typically, in the context of web
 sites, java is run server-side and essentially returns html for your
 browser to interpret.  javascript, on the other hand, was, I believe,
 developed by netscape, not sun.  they just called it that because it
 has some similarities with java.  it is client-side, like microsoft's
 proprietary activex technology.  Their response was probably fine,
 since there is, in fact, no java in javascript, despite the name.  :)

 Oddly enough, I had no problems with the smith and noble website with
 firefox on my gentoo laptop...but that was a few months ago.

 from a practical standpoint, make sure you're running the latest
 firefox, and have javascript enabled in the security settings.


Thanks to all who responded. I appreciate the info about javascript
and suggestions.

1) I do have javascript enabled in Firefox.

2) I'm running this stuff Firefox-1.0.7-r2. I'll try updating to
1.0.7-r4 and see if it makes a difference.

3) I've tried blackdown 1.4.2-02 and 1.4.2-02-r1. Same results here.

4) I'm also using netscape-flash 7.0.61.

5) I've not tried Mozilla. Maybe that's an option for my wife. Not sure.

I'll look over the USE flags and other info provided and see if
anythign pops up, but since this site seems to work for some (John)
and not others (RNuno) it's a bit strange.

Thanks for the info all. I really apprecaite it.

Cheers,
Mark

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-18 Thread Willie Wong
On Sun, Dec 18, 2005 at 12:02:53PM -0600, Penguin Lover John Jolet squawked:
 javascript is, in fact, not java.  typically, in the context of web  
 sites, java is run server-side and essentially returns html for your  

Not quite. Java applets are mostly run client side, with possibly
a server-side counterpart for communications. 

 browser to interpret.  javascript, on the other hand, was, I believe,  
 developed by netscape, not sun.  they just called it that because it  
 has some similarities with java.  it is client-side, like microsoft's  
 proprietary activex technology.  Their response was probably fine,  
 since there is, in fact, no java in javascript, despite the name.  :)
 
 Oddly enough, I had no problems with the smith and noble website with  
 firefox on my gentoo laptop...but that was a few months ago.
 

Also, I can reproduce the error on 
 http://www.smithandnoble.com/sn/photoGalleryDetail.jsp?catID=-14150
with firefox 1.0.7-r2 and mozilla-1.7.12-r2

Javascript Console on both shows the following:

  Error:  document.frm_bundle.heroImage has no properties
  SourceFile: 
http://www.smithandnoble.com/sn/photoGalleryDetail.jsp?catID=-14150  line 114

For what it's worth, I believe those people reporting success might
be trying the wrong page. The website redirects all deep-links to the
front page. 

To reproduce the error, go to the frontpage of smith and noble, on the
left hand side, click Photo Gallery. Choose an arbitrary gallery from
the right when it appears, open up javascript console from
Tools-Javascript console in Firefox or Tools-Web
development-Javascript Console in Mozilla. Click on one of the
thumbnails on the right (the hyperlink should say
javascript.switchImage(2)), and see the image fail to load. 

To the OP: that might also be one of the reasons your bug was marked
invalid. They cannot reproduce the error from the description you
gave. 

From my limited knowledge of javascript, I can't tell whether it is
a badly written javascript that parses in IE but not in Firefox, or
Firefox not supporting the full standard, or perhaps the
site-designer used some IE-only extensions. 

I haven't tried Opera or Konqueror (don't have either installed). Any
input?

W
-- 
`The first ten million years were the worst,' said Marvin, 
`and the second ten million, they were the worst too. The 
third ten million I didn't enjoy at all. After that I went 
into a bit of a decline.' 

- Marvin reflecting back on his 576,000,003,579 year 
career as Milliways' car park attendent. 
Sortir en Pantoufles: up 36 days, 12:54
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-18 Thread Dale

Mark Knecht wrote:



Thanks to all who responded. I appreciate the info about javascript
and suggestions.

1) I do have javascript enabled in Firefox.

2) I'm running this stuff Firefox-1.0.7-r2. I'll try updating to
1.0.7-r4 and see if it makes a difference.

3) I've tried blackdown 1.4.2-02 and 1.4.2-02-r1. Same results here.

4) I'm also using netscape-flash 7.0.61.

5) I've not tried Mozilla. Maybe that's an option for my wife. Not sure.

I'll look over the USE flags and other info provided and see if
anythign pops up, but since this site seems to work for some (John)
and not others (RNuno) it's a bit strange.

Thanks for the info all. I really apprecaite it.

Cheers,
Mark

 

I do recall a while back having trouble with java crashing my Mozilla.  
I may be wrong but I think Blackdown is what I was having trouble wtih.  
The site was http://greengiant.com/ if you want to try it.  If yours 
crashes, you may want to switch to Suns java.  I seem to recall 
recompiling Mozilla to, since I changed my USE line to include java.  It 
picked it up and made the needed symlinks itself.


I hope all this helps.  Sorry things come to me in bits and pieces.  I 
sort of have a lot of things on my mind at the moment, most not Linux 
related.


Dale
:-)

--
To err is human, I'm most certainly human.

I have four rigs:

1:  Home built; Abit NF7 ver 2.0 w/ AMD 2500+ CPU, 1GB of ram and right now two 80GB hard drives.  
2:  Home built; Iwill KK266-R w/ AMD 1GHz CPU, 256MBs of ram and a 4GB drive.

3:  Home built; Gigabyte GA-71XE4 w/ 800MHz CPU, 128MBs of ram and a 2.5GB 
drive.
4:  Compaq Proliant 6000 Server w/ Quad 200MHz CPUs, 128MBs of ram and a 4.3GB 
SCSI drive.

All run Gentoo, all run folding. #1 is my desktop, 2, 3, and 4 are set up as servers.  


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] java vs. javascript - what's the difference?

2005-12-18 Thread Maxime Robert-Schreyers




Willie Wong wrote:

  On Sun, Dec 18, 2005 at 12:02:53PM -0600, Penguin Lover John Jolet squawked:
  
  
_javascript_ is, in fact, not java.  typically, in the context of web  
sites, java is run server-side and essentially returns html for your  

  
  
Not quite. Java applets are mostly run client side, with possibly
a server-side counterpart for communications. 

  
  
browser to interpret.  _javascript_, on the other hand, was, I believe,  
developed by netscape, not sun.  they just called it that because it  
has some similarities with java.  it is client-side, like microsoft's  
proprietary activex technology.  Their response was probably fine,  
since there is, in fact, no java in _javascript_, despite the name.  :)

Oddly enough, I had no problems with the smith and noble website with  
firefox on my gentoo laptop...but that was a few months ago.


  
  
Also, I can reproduce the error on 
 http://www.smithandnoble.com/sn/photoGalleryDetail.jsp?catID=-14150
with firefox 1.0.7-r2 and mozilla-1.7.12-r2

_javascript_ Console on both shows the following:

  Error:  document.frm_bundle.heroImage has no properties
  SourceFile: http://www.smithandnoble.com/sn/photoGalleryDetail.jsp?catID=-14150  line 114

For what it's worth, I believe those people reporting "success" might
be trying the wrong page. The website redirects all deep-links to the
front page. 

To reproduce the error, go to the frontpage of smith and noble, on the
left hand side, click Photo Gallery. Choose an arbitrary gallery from
the right when it appears, open up _javascript_ console from
"Tools-_javascript_ console" in Firefox or "Tools-Web
development-_javascript_ Console" in Mozilla. Click on one of the
thumbnails on the right (the hyperlink should say
"_javascript_.switchImage(2)"), and see the image fail to load. 

To the OP: that might also be one of the reasons your bug was marked
invalid. They cannot reproduce the error from the description you
gave. 

From my limited knowledge of _javascript_, I can't tell whether it is
a badly written _javascript_ that parses in IE but not in Firefox, or
Firefox not supporting the full "standard", or perhaps the
site-designer used some IE-only extensions. 

I haven't tried Opera or Konqueror (don't have either installed). Any
input?

W
  

I just tried it with Konqueror and it is even worse: they display a
message stating that 
they only support IE and Netscape. Wich means Firefox should be ok.

It does work for me with Firefox
(Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051211
Firefox/1.0.7),
but the _javascript_ console signals lots of warnings. Most likely, their
_javascript_ is the culprit.

As for the _javascript_ vs Java thing, they are two entirely different
programing languages.
Java is mostly used for bigger 'standalone' applications, when
_javascript_ is mostly used
to add behavior to web pages (open popups, disable form fields, etc...).
Their names' similarity is misleading.

My 0.02 
Maxime