Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
Calling WebService using plain JavaScript
Chetan Parekh
Ranch Hand
Posts: 3640
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I need to call a WebService of a different domain from my application using plain JavaScript. I don’t have a liberty to use any JavaScript/Ajax libraries - I can only use plain JavaScript.
Solution must work on IE and Firefox both.
My blood is tested +ve for Java.
Ulf Dittmer
Rancher
Posts: 43081
77
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Since XmlHttpRequest falls under the same-domain policy, you'll have to use JSONP.
Saifuddin Merchant
Ranch Hand
Posts: 608
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Wouldn't the web service need to support JSONP? If yes - it sounds like a good approach - otherwise traditional server proxy approach would work.
I found
this
an interesting read.
Cheers - Sam.
Twisters - The new age Java Quiz
||
My Blog
Saifuddin Merchant
Ranch Hand
Posts: 608
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In case its not clear by what I meant by a server proxy -- you'll find some good help here --
http://www.google.com/search?q=cross+domain+javascript&ie=utf-8&oe=utf-8&aq=t
Cheers - Sam.
Twisters - The new age Java Quiz
||
My Blog
I wasn't selected to go to mars. This tiny ad got in ahead of me:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Getting response values in a text box
Struts with Ajax
Stuck using AJAX & WebService
GWT Error+ XFire Webservice
Showing Hiding <s:div> tag in Struts2
More...