Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call a webservice using pure xml (NOT HTML/XHTML)

Status
Not open for further replies.

cedric69

Programmer
Oct 19, 2005
1
DK
Hi there!
I'm developing an ASP.NET web application which uses SVG and not HTML. One of the HTML ways of calling a web service is:
<div id="myService" style="behavior:url('webservice.htc')" /> etc.
The id is used as the reference to the web service in the client script.
Since I am using an SVG document - not HTML - I don't know how to access an element from the client script since I don't have a
<div> tag.
So... the question is: How to do it the XML-way?
 
Why do you need a div tag to reference it?

Standard scripting methods use the DOM. You could use getElementByTagName(), getElementByID(), etc just as well with SVG as HTML.

I wouldn't use behaviors as they are IE only. Seeing as you're using SVG, why not use XForms too? XForms can submit directly to a webservice.

Google for svg xforms for more info.

Jon

"I don't regret this, but I both rue and lament it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top