By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,117 Members | 2,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,117 IT Pros & Developers. It's quick & easy.

problem Calling webservice from client side javascript

P: n/a
I have a problem calling webservice from client side javascript.
The javascript call the settimeout() method.
when the user press submit button it ignore the press and keep refreshing the page.
it looks like the data is not transferred to the asp page from the web service.

just after going to internet option -> security -> Custom level -> Access data sources across domains
-> and check the enable radio -> the problem is fixed.

I need a general solution for that cause I can't check all user's browsers.

--------------------------------
From: Merav Orion

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>5EoFtX+P7Ui3GaY3k8qRMQ==</Id>
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Merav,

Does the web page containing the javascript and the web service reside in
the same domain? If not, then IE might prevent your javascript from running
as a security precaution.

e.g. You may run into problems if your webservice is hosted at
http://www.domain.com/webservice and your web site is hosted at
http://www.anotherdomain.com/website.

Another cause of the error is switching between HTTP and HTTPS. e.g.
http://www.domain.com/webservice and https://www.domain.com/website

To resolve these issues you can place the web service and website in the
same domain and use the same protocol.

e.g. http://www.domain.com/webservice and http://www.domain.com/website

Another option is to add the web site into the "trusted sites" zone in the
security tab of IE options window (but you'll have to make this change in
each of the browsers viewing your site.)

I know this isn't a complete answer to your problem, but I hope it at least
points you in the right direction.

Good luck. :)

Cheers,
Gwynn

-----------------------------------------------------------------
Gwynn Kruger
http://www.compusolvecanada.com
-----------------------------------------------------------------

"Merav Orion via .NET 247" wrote:
I have a problem calling webservice from client side javascript.
The javascript call the settimeout() method.
when the user press submit button it ignore the press and keep refreshing the page.
it looks like the data is not transferred to the asp page from the web service.

just after going to internet option -> security -> Custom level -> Access data sources across domains
-> and check the enable radio -> the problem is fixed.

I need a general solution for that cause I can't check all user's browsers.

--------------------------------
From: Merav Orion

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>5EoFtX+P7Ui3GaY3k8qRMQ==</Id>

Nov 21 '05 #2

P: n/a
Hi Merav,

Does the web page containing the javascript and the web service reside in
the same domain? If not, then IE might prevent your javascript from running
as a security precaution.

e.g. You may run into problems if your webservice is hosted at
http://www.domain.com/webservice and your web site is hosted at
http://www.anotherdomain.com/website.

Another cause of the error is switching between HTTP and HTTPS. e.g.
http://www.domain.com/webservice and https://www.domain.com/website

To resolve these issues you can place the web service and website in the
same domain and use the same protocol.

e.g. http://www.domain.com/webservice and http://www.domain.com/website

Another option is to add the web site into the "trusted sites" zone in the
security tab of IE options window (but you'll have to make this change in
each of the browsers viewing your site.)

I know this isn't a complete answer to your problem, but I hope it at least
points you in the right direction.

Good luck. :)

Cheers,
Gwynn

-----------------------------------------------------------------
Gwynn Kruger
http://www.compusolvecanada.com
-----------------------------------------------------------------

"Merav Orion via .NET 247" wrote:
I have a problem calling webservice from client side javascript.
The javascript call the settimeout() method.
when the user press submit button it ignore the press and keep refreshing the page.
it looks like the data is not transferred to the asp page from the web service.

just after going to internet option -> security -> Custom level -> Access data sources across domains
-> and check the enable radio -> the problem is fixed.

I need a general solution for that cause I can't check all user's browsers.

--------------------------------
From: Merav Orion

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>5EoFtX+P7Ui3GaY3k8qRMQ==</Id>

Nov 21 '05 #3

P: n/a
Hi Merav,

Does the web page containing the javascript and the web service reside in
the same domain? If not, then IE might prevent your javascript from running
as a security precaution.

e.g. You may run into problems if your webservice is hosted at
http://www.domain.com/webservice and your web site is hosted at
http://www.anotherdomain.com/website.

Another cause of the error is switching between HTTP and HTTPS. e.g.
http://www.domain.com/webservice and https://www.domain.com/website

To resolve these issues you can place the web service and website in the
same domain and use the same protocol.

e.g. http://www.domain.com/webservice and http://www.domain.com/website

Another option is to add the web site into the "trusted sites" zone in the
security tab of IE options window (but you'll have to make this change in
each of the browsers viewing your site.)

I know this isn't a complete answer to your problem, but I hope it at least
points you in the right direction.

Good luck. :)

Cheers,
Gwynn

-----------------------------------------------------------------
Gwynn Kruger
http://www.compusolvecanada.com
-----------------------------------------------------------------

"Merav Orion via .NET 247" wrote:
I have a problem calling webservice from client side javascript.
The javascript call the settimeout() method.
when the user press submit button it ignore the press and keep refreshing the page.
it looks like the data is not transferred to the asp page from the web service.

just after going to internet option -> security -> Custom level -> Access data sources across domains
-> and check the enable radio -> the problem is fixed.

I need a general solution for that cause I can't check all user's browsers.

--------------------------------
From: Merav Orion

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>5EoFtX+P7Ui3GaY3k8qRMQ==</Id>

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.