HostGator Reseller Hosting
 
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read Web Directory

Go Back   Webmaster Forum > Designing and Developing Websites > Web Design

Web Design Discussions and help on Website Design, HTML, CSS, xHTML, DHTML, etc...

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-29-2008, 04:11 PM
mperkovic mperkovic is offline
WMG Newcomer
 
Join Date: May 2008
Posts: 2
iTrader: (0)
mperkovic is on a distinguished road
Default Form code

Hello everyone,
First post and I hope not too stupid of one.

I have a site that is being tested out with the domain name of:

quotenc. com/ index2.html

There is a mini-form to fill out and it should yield a corresponding page corresponding to the choice (auto,home,life,motorcycle, etc). However, all it does is yield the correct state and health insurance. It seems that health insurance is default for some reason and it is not calling the other variable of the form. Here is the code from my results page:

<script type="text/javascript">
function getQueryStringVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split('&');
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split('=');
if (pair[0] == variable) {
return pair[1];}}}

ni_ad_client = "2261";
ni_res_id = 2;
ni_alt_url = "nextinsure .com/search.asp";
ni_zc = getQueryStringVariable('zipcode');
ni_str_state_code = getQueryStringVariable('statecode');
ni_var1 = "";
ni_display_width = 500;
ni_display_height = 1000;
ni_color_border = "";
ni_color_bg = "";
ni_color_link = "";
ni_color_url = "";
ni_color_text = "";
</script>


There is more code to that page but I think the issue lies within here. It someone can help me add a line or two of code I would greatly appreciate and I look forward to helping other out of this forum. Thanks

edit - I removed the url links because I cannot post them yet, buti think the problem is in the code above
Reply With Quote
Sponsored Links
Register and sign in to hide this ad block

  #2 (permalink)  
Old 05-30-2008, 02:19 AM
mperkovic mperkovic is offline
WMG Newcomer
 
Join Date: May 2008
Posts: 2
iTrader: (0)
mperkovic is on a distinguished road
Default

please help, i am trying to launch this weekend
Reply With Quote
  #3 (permalink)  
Old 07-22-2008, 01:52 PM
xmsmmgrs xmsmmgrs is offline
WMG Newcomer

Recent Blog:
 
Join Date: Jul 2008
Posts: 9
iTrader: (0)
xmsmmgrs is on a distinguished road
Send a message via Yahoo to xmsmmgrs
Default

Why don't you use a simple FORM, instead of JavaScript?
Reply With Quote
  #4 (permalink)  
Old 07-22-2008, 03:08 PM
Jacob's Avatar
Jacob Jacob is offline
WMG Deputy Sheriff
 
Join Date: Apr 2008
Posts: 161
iTrader: (0)
Jacob is on a distinguished road
Default

I know nothing about javascript, but if you can repost your code along with commentation on what you believe does what, then I can help in trying to fix it.

But, I don't know JS so we my knowledge will be limited.

Also, what exactly are you doing?
Is it just a search function? Or is it similar to the boxes on yahoo where you click one button, it displays one piece of content, then click another one to display other content?
__________________
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT. The time now is 09:00 PM.



Freelance Web Designers
Work At Home Forum
Ad Marketplace
Online Deals and Bargains
HostGator Hosting Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0