Hi Saifi,

I think many are either unaware of such debuggers or they assume that their 
scripts just work!

With Firefox its okay not to have Venkman, you can use the Error Console in the 
Tools menu to check for errors.
 
--
Satish Vellanki 

----- Original Message ----
From: Saifi Khan <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, June 25, 2007 1:37:32 AM
Subject: Re: [twincling] Problem with Javascript  on Mozilla

   
            On Mon, 25 Jun 2007, mohammed jahangir wrote:

> Date: Mon, 25 Jun 2007 06:10:31 -0000

> From: mohammed jahangir <md_jahangir27@ yahoo.co. in>

> Reply-To:  <[EMAIL PROTECTED] ps.com>

> To:  <[EMAIL PROTECTED] ps.com>

> 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.selected Index].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/JavaScri pt



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