Where were you planning to put in on the first place? Peter Kalev Senior Developer, SWF, LLC
-----Original Message----- From: Roger Kitain [mailto:[EMAIL PROTECTED] Sent: Friday, June 03, 2005 5:22 PM To: svg-developers@yahoogroups.com Subject: Re: [svg-developers] XMLHttpRequest Response Handling In SVG Not sure that will work since the script is embedded within svg. Where do I get the html element (<td> or <div>) to house the new content? Can you give me a concrete example? -roger Peter Kalev wrote: > Try this: > > xxx.innerHTML = responseObject; > > where xxx is the html element to "house" the new content (i.e. <td>, > <div> etc.) > > Peter Kalev > Senior Developer, > SWF, LLC > > > -----Original Message----- > From: Roger Kitain [mailto:[EMAIL PROTECTED] > Sent: Friday, June 03, 2005 3:26 PM > To: svg-developers@yahoogroups.com > Subject: [svg-developers] XMLHttpRequest Response Handling In SVG > > I have the following svg: > > svg xmlns="http://www.w3.org/2000/svg"> > <g id="form" method="post" action="/jsf-renderkits/render/svg.jsp"> > <g id="form:button" onclick="form_post(evt)"> > <rect width="60" height="24" x="10" y="10" style="stroke:black; > fill:#ddd;"></rect> > <text x="40" y="22" text-anchor="middle"><tspan > dy=".33em">submit</tspan></text> > </g> > </g> > <script><![CDATA[ > var request = null; > function form_post(evt) { > . > . > var postData = "form=form"+ "&"+ "form:button=form:button"+ > "&"+ stateName + "=" + stateValue + "&" + rkName + "=" + > rkValue; > var url = "/jsf-renderkits/render/svg.jsp"; > request = getXMLHttpRequest(); > request.open("POST", url, false); > request.setRequestHeader("Content-Type", > "application/x-www-form-urlencoded"); > request.onreadystatechange = callback(); > request.send(postData); > var res = request.responseText; > . > . > } > . > . > //]]> > </script> > </svg> > > The response I get back (and expect) is html markup (content-type > "text/html"); > I want to write this to the browser so that the html form is displayed. > > I tried > using "document.write(res)" but I get the error: "document.write is not > a function..". > > I am usng Deer Park Apha 1 on linux. > > Thanks, in advance, Roger. > > > > ----- > To unsubscribe send a message to: > [EMAIL PROTECTED] > -or- > visit http://groups.yahoo.com/group/svg-developers and click "edit my > membership" > ---- > Yahoo! Groups Links > > > > > > > > > ----- > To unsubscribe send a message to: > [EMAIL PROTECTED] > -or- > visit http://groups.yahoo.com/group/svg-developers and click "edit my > membership" > ---- > > > ------------------------------------------------------------------------ > *Yahoo! Groups Links* > > * To visit your group on the web, go to: > http://groups.yahoo.com/group/svg-developers/ > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > > [Non-text portions of this message have been removed] ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/