On Mon, 25 Jun 2007, mohammed jahangir wrote:

> Date: Mon, 25 Jun 2007 06:10:31 -0000
> From: mohammed jahangir <[EMAIL PROTECTED]>
> Reply-To:  <[email protected]>
> To:  <[email protected]>
> Subject: [twincling] Problem with Javascript  on Mozilla
> 
> Hi,
> 
> I am a newbie to Javascripting and i have written a script for opening 
> a new window whenever the value of a popup-menu is changed , and should 
> eventually close the old window.
> 
> The script works fine with Internet Explorer but not with "Mozilla".
> 
> Following is the piece of code that i have written :
> function makepage(element)
> {
> var host = element.options[element.selectedIndex].text;
> newwin = window.open('test10.cgi?hp=' + host);
> oldwin = newwin.opener.close();
> }
> 
> Can anyone help me with this ?
> 
> Regards,
> Jahangir.
> 

Hi:

As a programmer, please use a debugger to try and understand
the state and behaviour of your program during execution.

All JavaScript programmers working with Firefox/Mozilla should
install 'VENKMAN'. 

Yes, Venkman is a javascript debugger (firefox extension).
Please download and install from here
http://www.mozilla.org/projects/venkman/

There might also be differences between IE JScript and standard
JavaScript used in Firefox/Mozilla.

Please refer to the canonical standard at
http://developer.mozilla.org/en/docs/JavaScript

You also need to decide which version of JavaScript are you using
1.1, 1.2, 1.3, 1.4, 1.5, 1.6 ?

One of the strange things I have noticed is that scripting folks
do not use debuggers ! why ?
Scripting is important today and debugger's are even more so !

thanks
Saifi.


Reply via email to