If it's a div, then the comment about tables and innerHTML shouldn't apply.

When display information on a page, their are two basic routes to take:
1) generate HTML on the server and innerHTML it somewhere
2) Return raw data, and have JavaScript loop over it and manipulate the DOM 
to add the data as it goes.

1 is easier, 2 is supposed to be more correct.

Perhaps you should start eliminating things.  Start by commenting out the 
return stuff from your Ajax call and just send back the text "hello world" 
or something.  Does that error?  Is the HTML the problem?  Also what happens 
if you try innerText.  This will obviously not render the HTML, but if it 
doesn't error, than we might be able to assume that IE is choking when 
trying to render the new HTML.

Like someone said, a div does not have a value property so setting that 
won't help you much.

~Brad

----- Original Message ----- 
From: "Phillip M. Vector" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Wednesday, July 30, 2008 10:39 AM
Subject: Re: Unknown JS error when doing AJAX.


> Does anyone know what I can use to show something other then innerHTML
> to show html from a ajax call?
>
> Phillip M. Vector wrote:
>> Brad Wood wrote:
>>> Also, what kind of element is "character"?  IE doesn't like it when you
>>> attempt to innerHTML a table after page load.
>>
>> It's an area surrounded with <div>
>>
>> <div id="character" name="character">
>> Please select an option
>> </div>
>>
>> I changed it from innerHTML to value, but now it doesn't pop up the
>> results in either firefox or IE. What do I need to change it to so that
>> it populates that area with html?
>> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309967
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to