9 Topics

Member Avatar for
Member Avatar for eburlea

Hello. I have a function that checks the internet connection. I need to set a timeout to it. I have tried without success to do that. Please help. Here is the function: function isOnline() { if(navigator.onLine){ var uri = baseUrl+'ping'; var xhr = new XMLHttpRequest(); xhr.open('GET',uri,false); try{ xhr.send(); return true; …

Member Avatar for stbuchok
0
198
Member Avatar for lukas.vandendijssel

Hello, I am making a Google Chrome extension. It checks if a Minecraft Server is online. To do so, it has to open a socket. As JavaScript can't do this, I made a PHP script that does the trick and I host it on my webserver. However, my code returns …

Member Avatar for pritaeas
0
128
Member Avatar for Thropian

Trying my hand a Javascript, I came across an issue with XMLHttpRequest. This is probably something I'm doing wrong, so any help would be appreciated. reader = new XMLHttpRequest() reader.open("GET","Votes.xml") alert(reader.readyState) reader.send() alert(reader.readyState) when I run this, it alerts that the readyState is 1 (Send has not been called) and …

Member Avatar for rileyganimator
0
159
Member Avatar for untruth

There is one table that have fields included the add row button. I am using onchange event to call data from other tables, so when I select an option in the option box can automatically get the value that has been selected earlier ([B]do not need input the value manually[/B]). …

Member Avatar for untruth
0
188
Member Avatar for rayidi

Hi Friends, Please check this code where i was did wrong ? thanks in advance. [CODE]<button type="button" onclick='showData()'>Edit</button>[/CODE] [CODE] <script type="text/javascript"> function showData() { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 …

Member Avatar for rayidi
0
2K
Member Avatar for DILO3D

I describe my problem with following simple example. [CODE] function show(str) { if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); } else xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","data.php?q="+str,true); xmlhttp.send(); } [/CODE] here,i am getting some responsetext or result from data.php file through my request. In my …

Member Avatar for Sorcher
0
326
Member Avatar for Lyandor

Hey guys, is there a way to get a node's name and assign it as a value to a variable using javascript? Here's an example structure of the xml. [CODE] <list> <student id="101"> <name>John Smith</name> <DOB>07-09-1987</DOB> <address>123 ABC street</address> </student> <student id="102"> <name>John Doe</name> <DOB>05-04-1986</DOB> <address>234 DEF street</address> <address2>345 GHI …

0
106
Member Avatar for klemme

I have this bit which I have actually only tried in Google Chrome, but it works finte there: Im using ajax to get data from the Db, when popuating one select list based on whats selected from another: But in Internet Explorer 9, it doesnt work: [CODE] // JavaScript Document …

Member Avatar for blocblue
0
196
Member Avatar for jimbennett57

I'm a newbie to SOAP, and have been searching for an answer with no luck. Hopefully someone can help me out here. I have a VB script which successfully retrieves a SOAP response (xmlhttp.responseText). I can see the response with WScript.Echo, save it in a variable or can save it …

Member Avatar for jimbennett57
0
569

The End.