PDA

View Full Version : javascript help



broneah
March 13th, 2007, 04:08 PM
function isms_edit_cancel(id)
{
//_txt_icms_edit.value = _div_icms_static.innerHTML;
var objEdit = findDOM('_txt_icms_edit_' + id).value;
var objOrig = findDOM('_txt_icms_original_' + id ).value;
var txtEdit = findDOM('rte_' + id);

alert (objEdit);
alert (objOrig);
alert (txtEdit);

icms_edit_close();
_current_id='';

}



Help. Is there any way to gather the innerHTML or HTML of my iframe? (txtEdit var) find dom just finds items in the dom cross browser and returns the object for use.

isnt working:

.value
.innerhtml
.html

broneah
March 13th, 2007, 04:22 PM
**** it only took me 4 hours.

var txtEdit = findDOM('rte_' + id).document.body.innerHTML

simplistik
March 13th, 2007, 06:12 PM
outta curiousity... what's this do? using innerhtml for an iframe?