|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
moving scripts to a .js file
Howdy!
I'd like to move my javascripts to a .js file but when Id o so and click the a form submit I get an object not found error. What am I missing? Below are the scripts. <script> //this is the pop up creator function openNewWindow(PAGE,H,W){ window.open(PAGE,"newWin","height=" + H + ",width=" + W + ",location=no,menubar=no,scrollbars=no,status=yes,t oolbar=no,resizable=yes,leftpos=0,top=20"); }//end open window function //this allows me to use text links rather than submit buttons for forms //var CART=""; function formsubmit(CARTNUMBER) { eval( "document." + CARTNUMBER + ".submit();" ) } </script> |
|
#2
|
||||
|
||||
|
Are you including the .js file in your pages? Like this
Code:
<script language="javascript" src="/pathToScriptFile/FileName.js" type="text/javascript"></script> |
|
#3
|
|||
|
|||
|
Nope. I was doing it a'la:
<script src="/scripts/leftnavigation.js"> </script> I'll try it that way. |
|
#4
|
|||
|
|||
|
That ot it. Thanx man.
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > moving scripts to a .js file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|