![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Please help with this basic function - I get an error saying " Object expected on Line 17" script language="JavaScript" var teststring; function myregex(teststring){ if(teststring=="test"){ alert("Match found! in " + teststring); } else { alert("No match found in " + teststring); } /script |
#2
| |||
| |||
|
|
...Tip: download a Mozilla browser (I recommend Firefox) if you don't already have one. They have a useful JavaScript Console that will give more helpful error messages than IE.... |
#3
| |||
| |||
|
|
Definitely download Mozilla if you're into web development. IE's javascript console is as useful during errors as reporting "There's javascript on this page". :P |
#4
| |||
| |||
|
|
That Mozilla debugger is often worse than what it tries to cure. Ivo In what ways ? |
#5
| |||
| |||
|
|
"Ron" said: Definitely download Mozilla if you're into web development. IE's javascript console is as useful during errors as reporting "There's javascript on this page". :P Well that at least will tell you javascript is recognized as such. That Mozilla debugger is often worse than what it tries to cure. Ivo |
#6
| |||
| |||
|
|
Definitely download Mozilla if you're into web development. IE's javascript console is as useful during errors as reporting "There's javascript on this page". :P Well that at least will tell you javascript is recognized as such. That Mozilla debugger is often worse than what it tries to cure. Ivo I strongly disagree. I use Mozilla Firefox 0.8 to test and debug web pps. I find the Javascript console more helpful than anything the Microsoft debugger has ever shown me. Faster and easier to use, more likely to give you the *real* problem. |
Javascript![]() |
| Thread Tools | |
| Display Modes | |
| |