Jump to content

Unknown Runtime Error In IE, but not FF


fanfavorite

Recommended Posts

I use Ajax to update forms, so for instance:

 

<div class="formsleft">Do you want to buy apples?</div>
<div class="formsright">
<select name="buyapples" onchange="showField(this.value,'quantity')">
	<option value="No"<? if ($_POST['buyapples'] == "No") { echo ' selected="selected"'; } ?>>No</option>
             <option value="Yes"<? if ($_POST['buyapples'] == "Yes") { echo ' selected="selected"'; } ?>>Yes</option>
             </select>
</div>
<div id="quantity"></div>

 

So whatever I click, shows that option in the id.  Now my problem is if I want to do an onchange with the updated content like so:

 

<div class="formsleft">Do you want to buy apples?</div>
<div class="formsright">
<select name="buyapples" onchange="showField(this.value,'quantity')">
	<option value="No"<? if ($_POST['buyapples'] == "No") { echo ' selected="selected"'; } ?>>No</option>
             <option value="Yes"<? if ($_POST['buyapples'] == "Yes") { echo ' selected="selected"'; } ?>>Yes</option>
             </select>
</div>
<div id="quantity">
<div class="formsleft">How many apples do you want to buy?</div>
<div class="formsright">
<select name="applequantity" onchange="showField(this.value,'appletype')">
	<option value="1"<? if ($_POST['applequantity'] == "1") { echo ' selected="selected"'; } ?>>1</option>
             <option value="2"<? if ($_POST['applequantity'] == "2") { echo ' selected="selected"'; } ?>>2</option>
             </select>
</div>
</div>
<div id="appletype"></div>

 

When I choose yes to buy apples, the code shows in the quantity id.  Then when I choose how many, it loads content into the appletype id.  This works fine in Firefox, but throws an "Unknown Runtime Error" in IE7.  Any ideas why?

 

Thanks,

 

-JC   

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.