HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 15th, 2004, 10:05 AM
warpedspeed.com warpedspeed.com is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 11 warpedspeed.com User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 6 sec
Reputation Power: 0
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>

Reply With Quote
  #2  
Old March 15th, 2004, 11:23 AM
Memnoch's Avatar
Memnoch Memnoch is online now
Unholy Moderator
ASP Free God 14th Plane (11500 - 11999 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,770 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 7 h 3 m 32 sec
Reputation Power: 469
Are you including the .js file in your pages? Like this
Code:
<script language="javascript" src="/pathToScriptFile/FileName.js" type="text/javascript"></script>

Reply With Quote
  #3  
Old March 15th, 2004, 11:37 AM
warpedspeed.com warpedspeed.com is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 11 warpedspeed.com User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 6 sec
Reputation Power: 0
Nope. I was doing it a'la:

<script src="/scripts/leftnavigation.js">

</script>

I'll try it that way.

Reply With Quote
  #4  
Old March 15th, 2004, 02:19 PM
warpedspeed.com warpedspeed.com is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 11 warpedspeed.com User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 6 sec
Reputation Power: 0
That ot it. Thanx man.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > moving scripts to a .js file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT