>>I changed ....
 >>document.getElementById("character").innerHTML=xmlHttp.responseText;
 >>to..
 >>document.getElementById("character").value=xmlHttp.responseText;

This will not show anything, since the element "character" is a div, it 
has no value.
Only input element have values.
So all what the statement does is to create a value property to the div, 
but this property is not shown.

I know by experience that xmlHttp.responseText is undefined in IE if 
there is some error in the Ajax call.

I use innerHTML= with no problem in my code, but not with Ajax which has 
the flaw to screw up the history
and back button and bookmarks as well.
I use another method, much simpler by the way, which consists of calling 
the "Ajax page" from an invisible iFrame,
and copy the result to the destination div on an onload event in this frame.
The advantages are that the back-forwards button work, and the pages can 
be bookmarked.
IMO, Ajax shouldn't be used for HTML, only for transmitting XML data.

-- 
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:309959
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