My question is, if I download javascript from a server (say Facebook), and then I send out a request to view some photos. The sever sends me back a list of IPs of other servers which have those photos. Now can I set connection to the other servers via the javascript? Or does the javascript can only talk to the original server?
I have a script which needs to detect when the internet connection is lost and hold the content of the web page until the connection is restored.
I have been given a head start with a small javascript which I am trying to get to work.
My web page, I have a web page which contains some text and graphics but more importantly it also has an iFrame. The iFrame connects to an SQL database and displays data which is refreshed every 20 seconds.
Because the internet connection at the location where the script will be running I get connection loss which makes the iFrame loose its data. The Javascript I am working with is below.
I am attempting to create an Access database connection from within an HTML page. I am using Javascript to make the connection and then test a basic UPDATE statement.
The following code is throwing back an error 'UPDATE statment syntax incorrect'
Code:
I thought the syntax was correct, but maybe it is something else?
I have a login page (login.php). In this page I have a form with a select (<select ..>) to two servers, but I want to redirect the "action" property (<form action="">) depending on the server selected by the user.
Server #1 http://www.xxx.xxx/ server #2 http://www.yyy.yyy/
I'm trying to send some form values via JS from one frame (a PHP application I control which creates form fields from database values) to another (a shopping cart on another site) - but I can't do this because normal scripts are barred from setting values on pages from other servers... unless the script is signed.
So, am I right that I HAVE to use a signed script to accomplish this goal? Are there lots of cross-platforms issues in getting extra privileges for signed scripts? (Does IE even recogize signatures the way NN does?)
I've never worked with signed scripts before - are they worth the hassle?
I'm trying to install a file manager script (part of InnovaStudio's WYSIWYG editor). The file manager opens in a popup window, allows you to select a file from a directory, and then when you click an OK button, closes the window and passes the filename to a field in the parent window.
This works fine. The problem is that I need to host the two windows on different servers (the parent window is on the content management server; the file manager on the client's own server where the files are uploaded).
I can launch the file manager OK, and upload a file and select it, but when I click 'OK' I get either (a) nothing in Firefox or (b) in IE, the window closes but instead of passing the filename to the relevant field, it displays "undefined". Code:
Our application servers are hosted in US Central. So when cookie created by the application it contains US Central Time with DST.
When we use it in India time comparison logic fails as milliseconds are different. In US central logic of comparison current datetime milliseconds with cookie date time milliseconds work gr8. Any way so that It work in India too.
Someone can help me in accomplish a connection to 2 wms services. I could connect once but I changed something on the code and now I can't get the things work, the connection fails. Here is the link to the viewer:
What is wrong with my code....The function "function ValidaProdutos()" is not working....I need to execute the procedure to insert data in a Database.... What can I do to have this code working.... I don't get error line, but nothing happen in my database.... I think the connection is not right.... Could anyone give a sample code on how to do that.....
I'm having trouble finding example code to detect the presence of an Internet connection. It doesn't seem to be a very frequently asked question, as all I need is the answer yes or no (is the user connected or not).
I'm not interested in speed detection or any other aspect of the connection, just its existence or not. The reason is to be able to intercept link clicks on a CD-based set of HTML pages and pop up a warning if there is no connection; otherwise pass the request through to the net.
I am trying to figure out a way to have a page redirect if the mysql connection fails. The issue is that the page is already loaded and the only time this would be needed is if the user tries to perform operations on a loaded page after the session runs out.
So basically, I have a page that will allow you to search for an item using ajax, then select an item and press add which will place the item in another table displaying detailed information. Both operations connect to the database using SESSION variables to save the connection information.
My goal is to use the "or die()" method to print something that will force a redirect because this could happen in a number of places in the site and I want to try and get them all in one swipe.
Here is what seemed like it would be the most promising:
$conn = mysql_connect($_SESSION['host'], $_SESSION['username'], $_SESSION['password']) or die("<script>location.href= '../login.php'</script>");
Unfortunately the javascript never runs.... I tried putting alerts also and nothing, but with firebug I can see they are printed.
In the home page (index.html) i have a flash intro. The first time a user sees the website, the intro should play. Once he goes to another page (about_us or contact_us) and comes back to the home page, it should show a different swf (the version without the intro) - i have created two swf files. I need to know how to change them when the user has already seen the intro or was in the home page before. When i googled, i found something on cookies. I have no clue on how to set them and change the swf file.
I was wondering if there's a quick and simple way to notify a user if an ajax connection is broken, for example you're calling a file, but due to your internet connection, the file cannot be relayed back to you, so the existed javascript code on the initial page you're on, notifys you of the problem.
It is possible to run dynamic web pages on a pocket PC without internet connection?I would like to read/write files using a browser on my pocket PC without internet connection.
I want to have a popup that shows up if the user loses connection to my website, i would prefer it to be in jQuery as that's what I'm using, and it seems more light weight on the page
I have this code, but it doesn't seem to work... it should check on document ready then keep trying every 5 seconds
I am having an issue with a script which fails when the internet connection is lost, and so it should.
Is there a way that the web page can be automatically refreshed if the connection is lost using JavaScript. I need to continually refresh until the connection is back on.
I know all about META refresh but that does not help.
According to HTTP/1.1 specs, a client should only have two connections open to the host at a time (which can be changed by browser users, of course).
When using xmlHttpRequest connections, is there any way to detect that the request is queued? I did some tests (see "Queued Requests" at http://www.ajaxtoolbox.com/request/examples.php ) and it looks like readyState 1 is fired immediately after the request is made, even though it's not actually active yet.
Is there anything else I can look at to tell if my request has been queued and hasn't actually started running yet?
Is there a script to detect the internet connection speed of the visitor of the website in order to determine if the HTML or the flash content of the site wil be published. This to prevent the visitors to struggle with large flash files en give them the best possible experience. On the other hand to satisfy the need of the fast speed connection owner to get a rich internet experience and to brand my products with trendy content.
I have a javascript code with a countdown timer that runs on the client side and is updated regularly to the date set in mysql db.
I want to make the timer stop when the internet connection is lost. I am thinking on using clearTimeout()...but I need to associate it with the internet connection.
The problem is, the extension tend to crash when there is no internet connection, and sometimes, the http requests fail to communicate with gmail server, they got built up over time and end up flooding the memory.
Ive tried several approaches and even copy/pasted from [URL] Im using Google Chrome 5.0.375.70 beta and the error is always the same: Error: INVALID_STATE_ERR: DOM Exception 11 when debugging the client side I see the readyState is always 0 (connecting), no other error is shown. The server is set to output anything that it receives and in this case it doesnt seem to be getting anything. Checked firewalls and that shouldnt be a problem. Its worth noticing that one time it did connect, and I was able to "chat" with the server, refreshed the browser and never again, restarted the server and nothing. I havent made any change in the code prior to the refresh so really dont know what could be it...
I'm trying to write a simple javascript and am having some difficulties. The purpose of the script is to send an xml document to the service. The response is not important.