HighDots Forums  

innerHTML, firefox, IE, and 'object error'

alt.html.dhtml alt.html.dhtml


Discuss innerHTML, firefox, IE, and 'object error' in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
duthied@gmail.com
 
Posts: n/a

Default innerHTML, firefox, IE, and 'object error' - 02-12-2007 , 04:57 PM






I am sure this has been answered before since someone surely has tried
this. Or I am doing it backwards....

I have a div that I am repopulating during an ajax callback. I'm
using prototype.js...

Example:

function showTags_handleResponse(originalRequest)
{
try
{
var elements = originalRequest.responseText.split("@");
var targetdiv = elements[0];
var targetdiv_thetext = elements[1];

var target_hdn = targetdiv+'_hdn';

$(target_hdn).innerHTML = targetdiv_thetext;


}
catch (err)
{
alert("showTags_handleResponse:"+err);
}

return;
}
--------------------------

$(target_hdn).innerHTML = targetdiv_thetext; <--throws the oh-so
descriptive 'object error' in IE, but works dandy in FireFox.

Any assistance would be greatly appreciated...I'll even take abuse if
I've done thing stupidly, as long as the abuse comes with the
assistance

Thanks.
-Devlon


Reply With Quote
  #2  
Old   
mturner85@gmail.com
 
Posts: n/a

Default Re: innerHTML, firefox, IE, and 'object error' - 02-21-2007 , 05:33 PM






Same thing going on here, almost exactly the same setup, using
prototype via ajaxCFC (cf ajax framework) and I am attempting to write
into innerHTML in the same fashion. Not sure I can be of much help
though I thought I'd ping in to see if you've found anything since
this post.

Any luck so far?


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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.