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 May 2nd, 2004, 04:22 AM
pcgoawm pcgoawm is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 pcgoawm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Html form (Category Jump)

Hi,
I'm trying to create a drop down for each area of my site.
After coding the entire thing and trying to test it, I get the
same error "'document.form1.dd1' is null or not an object". after
checking this with several people I found myself stuck in the same
spot. The code for the form is as follows:

Code:
 
<select name="dd1" size=1 style="font-size: 8pt; font-family: Comic Sans MS (cursive); margin-left: 5; background-color: #DFDFDF"> 
	<option value="">----Choose a Category----
</option>
<option value="<A href="http://pcgonline.ath.cx/index1.html">home
	</option>
	<option value="<A href="http://pcgonline.ath.cx/">link1
	</option>
	<option value="<A href="http://pcgonline.ath.cx/">link2
	</option>
	<option value="<A href="http://pcgonline.ath.cx/">link3
	</option>
	<option value="<A href="http://pcgonline.ath.cx/">link4
	</option>
	<option value="<A href="mailto:webmaster@pcgonline.ath.cx">Contact
	</option>
		</select>
<input type="button" 
onClick=
"location = 
document.form1.dd1.options
[document.form1.dd1.selectedIndex].value;" 
value="Go" style="font-size: 10px; font-family: MS Sans Serif; background-color: #FF9933">


Maybe I'm just overlooking something, I'm not sure. Any help would be greatly appreciated.

Reply With Quote
  #2  
Old May 2nd, 2004, 03:36 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: UK
Posts: 140 edwinbrains User rank is Private First Class (20 - 50 Reputation Level)edwinbrains User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 8 h 44 m 10 sec
Reputation Power: 5
Change:

Code:
<option value="<A href="http://pcgonline.ath.cx/">link2
	</option>


to:

Code:
<option value="http://pcgonline.ath.cx/">link2
	</option>

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Html form (Category Jump)


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 2 hosted by Hostway
Stay green...Green IT