Click here to Skip to main content
15,886,518 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: FireFox-Javascript issue [modified] PinPopular
Manfred Rudolf Bihy4-Aug-11 4:18
professionalManfred Rudolf Bihy4-Aug-11 4:18 
GeneralRe: FireFox-Javascript issue Pin
Pierre besquent4-Aug-11 21:45
Pierre besquent4-Aug-11 21:45 
GeneralRe: FireFox-Javascript issue Pin
Manfred Rudolf Bihy5-Aug-11 1:04
professionalManfred Rudolf Bihy5-Aug-11 1:04 
AnswerRe: FireFox-Javascript issue Pin
cjoki4-Aug-11 4:37
cjoki4-Aug-11 4:37 
QuestionRepetitive similar Inputs javascript Pin
Gert Koetsier3-Aug-11 22:49
Gert Koetsier3-Aug-11 22:49 
AnswerRe: Repetitive similar Inputs javascript Pin
cjoki4-Aug-11 4:33
cjoki4-Aug-11 4:33 
AnswerRe: Repetitive similar Inputs javascript Pin
Gert Koetsier7-Aug-11 22:13
Gert Koetsier7-Aug-11 22:13 
QuestionProblem connecting to WCF Rest service Pin
Wjousts3-Aug-11 10:05
Wjousts3-Aug-11 10:05 
I have a desktop app that acts as a server and I'm trying to figure out how to correct connect to it from a webpage using JavaScript.

For example, I have this:

JavaScript
var url = 'http://localhost:8003/Service/Rest';
	
function MyFunction1()
{
	var client = new XMLHttpRequest();
	client.open("GET", url + "/MyFunction1", false);
	client.setRequestHeader("Content-Type","text/plain");
	client.send();
	if (client.status == 200)
		alert("Success!");
	else
		alert("Failure!");
}


Then I have a simple button on my webpage that calls the function in it's onclick.

In Firefox, I can see from my server app that the function gets called on the server, but I never see the success or failure messages in the browser. Opening up the web console in Firefox, I can see the following error:

[15:50:50.693] uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///D:/AC%20SOAP%20test.html :: MyFunction1:: line 18" data: no]

(Note: line 18 is the client.send() line.)

Any idea what might be happening here?

In IE, I first get a warning about ActiveX components when loading the page (not sure why) and after that it seems to work (including the success pop-up) for a couple of clicks until the server seemed to stop responding although the success pop-up continued to appear.

Any help here would be appreciated.

[Side note: I started off with a SOAP server and tried to use SoapClient, but I couldn't get that to work at all. I got the same NS_ERROR_FAILURE but without the server doing anything, so I gave up on it and decided to try implementing REST as well as SOAP on my server]
AnswerRe: Problem connecting to WCF Rest service Pin
Wjousts3-Aug-11 10:37
Wjousts3-Aug-11 10:37 
AnswerRe: Problem connecting to WCF Rest service Pin
Wjousts4-Aug-11 3:37
Wjousts4-Aug-11 3:37 
AnswerRe: Problem connecting to WCF Rest service Pin
Wjousts8-Aug-11 4:41
Wjousts8-Aug-11 4:41 
Questionjson object in repeater row click Pin
fififlowertot3-Aug-11 0:16
fififlowertot3-Aug-11 0:16 
AnswerRe: json object in repeater row click Pin
fififlowertot7-Aug-11 9:29
fififlowertot7-Aug-11 9:29 
QuestionHow to set user control property using Jquery Pin
josehidalgor27-Jul-11 12:15
josehidalgor27-Jul-11 12:15 
AnswerRe: How to set user control property using Jquery Pin
Gerben Jongerius27-Jul-11 20:29
Gerben Jongerius27-Jul-11 20:29 
GeneralRe: How to set user control property using Jquery Pin
Not Active28-Jul-11 1:04
mentorNot Active28-Jul-11 1:04 
GeneralRe: How to set user control property using Jquery Pin
Gerben Jongerius28-Jul-11 19:47
Gerben Jongerius28-Jul-11 19:47 
QuestionHow can i change entries_url to load from local file Pin
CyberPath27-Jul-11 4:33
CyberPath27-Jul-11 4:33 
AnswerRe: How can i change entries_url to load from local file Pin
twseitex27-Jul-11 10:34
twseitex27-Jul-11 10:34 
Questionuser should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
yogesh8926-Jul-11 1:26
yogesh8926-Jul-11 1:26 
AnswerRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Roman_wolf26-Jul-11 3:10
Roman_wolf26-Jul-11 3:10 
GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Not Active26-Jul-11 14:01
mentorNot Active26-Jul-11 14:01 
GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Roman_wolf26-Jul-11 22:30
Roman_wolf26-Jul-11 22:30 
GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Not Active27-Jul-11 0:58
mentorNot Active27-Jul-11 0:58 
GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Roman_wolf27-Jul-11 2:24
Roman_wolf27-Jul-11 2:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.