473,401 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

problem Calling webservice from client side javascript

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
3 3532
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Benny | last post by:
hello all, currently im working on an asp.net web application using c#. im able to calling a javascript funtion in the .aspx page from the .aspx.cs page method. however, now i want other way...
7
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
1
by: Merav Orion via .NET 247 | last post by:
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...
2
by: yqlu | last post by:
I hava developed a client in C# that is connected to a 3-party XML Web Services developed in Java based on the AXIS 1.1. Most methods call are successful except for one method named "findObjects"...
0
by: perschrotti | last post by:
I have simple .NET webservice coded in C# running on IIS 5 windows 2000 sp4 with .NET framework 1.1. I have a client coded in java with a webservice client stub generated by wsdl2java (axis). ...
1
by: Mr Bojangles | last post by:
Hi, I want a do the following: From a (client side) web form, post to server side script (I'm using Javascript but anything will do), which in turn--and this is the important bit that I...
3
by: Zeez | last post by:
Hi all, I have a webpage that calls a webservice found on a remote computer. Below is the code of my webpage: ===================================== <html> <head> <script...
2
by: Frank | last post by:
Hi, Newbie wondering if it is possible to call an ASP.NET 2.0 WebService from javascript that isn't served up on the same server? For example, I would like to call the WebService using an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.