Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-05-2009, 09:16 AM   PM User | #1
howardfan123
New Coder

 
Join Date: Jun 2008
Posts: 67
Thanks: 18
Thanked 0 Times in 0 Posts
howardfan123 is an unknown quantity at this point
Lots of the same select boxes please help!!

Hello, can anyone tell me if it is possable to make a one select box and have it appear in about 50 spots through out the site. I understand it has to be an external file so i can make changes quick and easy. I have tried to use asp and php and javascript and even tried using includes i can seem to figure it out. each box has to have a diff. name because it will be sent to a shopping cart but can have the same id. so i even tried using getelementbyid. please some one point my in the right direction. i have been researching this and reading about it for over a month and updating all those boxes weekly is killing me.
here is what the box has in it

<select name="product2" id="scentlistfull"
<option value= "&lt;em&gt;ANGEL WHISPER&lt;/em&gt;"selected="selected">ANGEL WHISPER</option>
<option value= "&lt;em&gt;ANGEL WINGS&lt;/em&gt;">ANGEL WINGS</option>
<option value= "&lt;em&gt;APPLE&lt;/em&gt;">APPLE</option>
<option value= "&lt;em&gt;BABY MAGIC&lt;/em&gt;">BABY MAGIC</option>
<option value= "&lt;em&gt;BABY POWDER&lt;/em&gt;">BABY POWDER</option>
<option value= "&lt;em&gt;BLACK CHERRY&lt;/em&gt;">BLACK CHERRY</option>
<option value= "&lt;em&gt;BLUEBERRY MUFFIN&lt;/em&gt;">BLUEBERRY MUFFIN</option>
<option value= "&lt;em&gt;CHRISTMAS ESSENCES&lt;/em&gt;">CHRISTMAS ESSENCES</option>
<option value= "&lt;em&gt;CHRISTMAS TREE&lt;/em&gt;">CHRISTMAS TREE</option>
<option value= "&lt;em&gt;CINNAMON APPLE BERRY&lt;/em&gt;">CINNAMON APPLE BERRY</option>
<option value= "&lt;em&gt;CINNAMON BUN&lt;/em&gt;">CINNAMON BUN</option>
<option value= "&lt;em&gt;CINNAMON SPICE&lt;/em&gt;">CINNAMON SPICE</option>
</select>
howardfan123 is offline   Reply With Quote
Old 02-05-2009, 01:38 PM   PM User | #2
ohgod
Regular Coder

 
ohgod's Avatar
 
Join Date: Jun 2008
Location: Ohio
Posts: 579
Thanks: 6
Thanked 69 Times in 69 Posts
ohgod is on a distinguished road
are you just looking for a way to include what i assume will be a form in all of your pages?

what is your site written in?
ohgod is offline   Reply With Quote
Old 02-05-2009, 01:54 PM   PM User | #3
howardfan123
New Coder

 
Join Date: Jun 2008
Posts: 67
Thanks: 18
Thanked 0 Times in 0 Posts
howardfan123 is an unknown quantity at this point
i'm looking to just include the select box into a form, the rest of the form stays the same and just the scentlist changes
site is written in mircosoft pubilsher with html fragments
howardfan123 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:08 AM.


Advertisement
Log in to turn off these ads.