actually document.form1.cur_code.value = req.responseText seems to work in a way. it put a lot of space at the beginning of the response so i didn't notice that it was returning something in the text box. it's returning this
Code:
<!-- //javascript functions, then php functions --> <script> function preparehtml(whichdiv) { //alert("preparing"); //alert("preparing" + whichdiv); document.all("htmlfromdiv").value=document.all(whichdiv).innerHTML; document.all("prepared").value=whichdiv; } function preparetextarea(whichdiv) { //alert("preparing"); alert("preparing" + whichdiv); document.all("htmlfromdiv").value=document.all(whichdiv).value; document.all("prepared").value=whichdiv; } </script> <SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'> <!-- /**************************************************** AUTHOR: WWW.CGISCRIPT.NET, LLC URL: http://www.cgiscript.net Use the code for FREE but leave this message intact. Download your FREE CGI/Perl Scripts today! ( http://www.cgiscript.net/scripts.htm ) ****************************************************/ var win=null; //MO 2004/02/16 Modified function to take additional variables for scrollbars function NewWindow(mypage,myname,w,h,pos,infocus,sbars){ if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;} else if((pos!='center' mytop=20} settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=" + sbars + ",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,titlebar=no";win=window.open(mypage,myname,settings); win.focus();} //MO function NewWindowdebug(mypage,myname,w,h,pos,infocus){ if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;} else if((pos!='center' mytop=20} settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=yes,resizable=yes,titlebar=yes";win=window.open(mypage,myname,settings); win.focus();} //MO 2004/02/16 Modified function to take additional variables for window size function CMS_PopUp(msgid, typeid) { if (typeid==null) { NewWindow('/site/cms_popup.php?msgid='+msgid,'cms_popupwindow','390','220','null','front','no'); } else if (typeid==1) { NewWindow('/site/cms_popup.php?msgid='+msgid,'cms_popupwindow','400','400','null','front','no'); } else if (typeid==2) { NewWindow('/site/cms_popup.php?msgid='+msgid,'cms_popupwindow','500','500','null','front','yes'); } } //MO // --> </script> 11749 111
all i need is what's at the end - 11749 111. is there anyway just to return that?