Ajax :: Stops Working In IE8 After Reload?
Jul 27, 2010
I have a simple function for an intranet site that should make and return a XMLHttpRequest object in most browsers (including IE8):
function createXMLHttpRequest() {
var xmlhttp = false;
if (window.XMLHttpRequest) {
xmlhttp = new XMLHttpRequest();
[Code]....
Then I use it autocomplete a input text with a list of client company names from a database. Then the user selects a company and it reloads the page with that company's info. (The ajax input text box remains so the user can type in another company name)
In firefox this works fine. However, in IE8 the very first time the page loads it works fine, but after the user selects a company and the page reloads, the ajax longer works. It gives an error at "xmlhttp = new XMLHttpRequest();" saying: "Message: Object doesn't support this property or method"
If I type anything in the input, it gives the error: "Message: 'searchReq.readyState' is null or not an object" leading me to believe that somehow after the first time the page loads, IE is not able to process a XMLHttpRequest which seems unlikely, so I'm not sure where to go with my code. I've tried a bunch of other similar createXMLHttpRequest() functions, but they all have the same problem of working once then not working after.
View 1 Replies
ADVERTISEMENT
Aug 16, 2011
I have several ajax calls that originates from the same page its updating. It works perfectly in firefox but in IE it works for about 18 requests and then just stops until the page is refreshed. I thought it was a cashe issue but I have added a variable for that. I think it may have something to do with binding but I am not sure how to sort that. This is one of my functions.
[Code]....
View 3 Replies
View Related
Oct 27, 2011
I have a simple product display with an product image. The product image changes with ajax when i click in a dropdown menu on another color.
Now i added the (beautiful) zoom script cloud zoom. It just works fine but after i click on another color and the product image reloads the script does not work anymore. instead my <a> is just a normal <a>.
This is the part that reloads at all:
How can i reload the function when this part reloads? Or what else could i do?
View 2 Replies
View Related
Nov 30, 2009
My website is all up and running and I decided to put a new image viewing script on, I already had a revolving image script showing all my previous work before but the latest script has totally stopped the previous from working. You can view what I mean at www.actioncomputing.co.uk
I am using 2 scripts both available on Dynamic Drive they are
Lightbox image viewer 2.03a Ultimate Fade-in slideshow (v2.1)
If anyone can tell me why this is I would be extremely gratefull.
View 7 Replies
View Related
Sep 16, 2006
I'm jusing prototype-1.4.0.js as framework.
I have a function to populate three listboxes. The items in the
listboxes are from a MYSQL database and are related. The items are
requested by a php page.
Most of the time everything works fine, but sometimes I end u with only
one or two listboxes.
I can't figure out what's going wrong here. I've tested in Firefox and
Internet Explorer, both the same problem.
Does anyone know why my code sometimes stops executing?
Could it be that i made too many requests in a short time so the next
request can't execute because the current has't finished?
Hope anyone has an idea of what's going wrong.
View 9 Replies
View Related
Apr 14, 2010
I have a table with a SAVE button on each row (id=SaveBD)...but I also have aSAVE ALL button at the top. It works pretty good except the .each function seems torandomly stop near the end ofthe row countand not save all the rows.that would cause the rows to stop saving?
$(document).ready(function(){
$("#SaveAll").click( function(event){
$ ("#SaveAll").hide();
[code]....
View 1 Replies
View Related
Sep 1, 2010
WhenIrun the below code above the init code for jQuery plugins it stops them working. Im just trying to run the code after the DOM has loaded, is there a better way? <script type="text/javascript">$(document).ready(function() {
// The gallery is hidden so need to unhide it.
document.getElementById('verticalCarousel').style.visibility='visible'
})
</script>
View 4 Replies
View Related
Apr 29, 2009
I have the following code
$('input.productSubmitInput').click(function() {
$('#login-info')
.animate( { backgroundColor:"#7AFB73" }, 500 )
[code]....
View 1 Replies
View Related
Jun 26, 2011
I have four scripts being called to my page however i have two that isn�t playing nicely. The two in question is Fancybox and the Nivo Slider. The slider and fancybox both work alone but not when they are on the same page, however the slider will stop working when
Code:
Is used and nothing changed when i apply it to Fancybox instead. I have tried wrapping and dividing the scripts with
Code:
But nothing. I have also changed all
Code:
To
Code:
On the slider but again no change.
Here are the scripts in my <head> :
Code:
The problem mostly is that the slider won�t work in no conflict mode but won�t work with Fancybox either.
View 2 Replies
View Related
Aug 3, 2011
I have my doubts if this question belongs to the javascript side since it's all good until the data from MySQL comes in, but since the javascript is the one breaking I'll take my chances.
The external js (portada.js)
Code:
$(document).ready(function(){
var currentPosition = 0;
var currentPosition2 = 0;
var currentPosition3 = 0;
[Code]....
As you can see I have three divs with different slideshows (slideshow, slideshow2 and slideshow3), they have products that slide to the left. When I was testing to make sure it all looks good the sliding feature was working fine, but I lost this feature when the data was being retrieved from MySQL (at the moment on <div class="slide">).
View 3 Replies
View Related
Apr 22, 2009
We have a page that allows a user to load a form over ajax using jQuery 1.3.2. The form contains a simple table layout, some input boxes, tinymce and the initialize for a jQueryUI dialog. On first load everything works fine. If the user loads the same form again, without refreshing the browser window, TinyMCE no longer shows content, can’t be clicked inside of and the dialog no longer updates it’s content and a few other bits of js stop firing.
Now I thought this was an issue with the page and ajax, but we have another page that uses draggable elements and has a very simple form of 1 input and a submit. If you submit the form and get returned the same page by our validation the same thing happens as with tinymce, you can no longer click inside it.
In ie7 things dont stop responding so much but the browser slows down and almost stops responding.
View 2 Replies
View Related
Jan 8, 2012
I'm trying to use the cascade function from the below link. If I try it as it is there, it works, but if I change the jquery reference to the one I'm using (1.7.1) it stops working... is there a diferent way to use that ajax call or am I missing anything?
View 3 Replies
View Related
Dec 2, 2011
I'm trying to create a demo to display a new way of showing our data.I thought I remembered this being pretty simple but I'm hitting a snag. The table, the mouse over, and the check row by clicking on the row all work separately but when the check row by clicking function is on, seen in the first row, the checkbox stops working.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript"> [code]...........
View 2 Replies
View Related
Dec 8, 2010
I have a webpage where i load eachdifferentcontent through a function load and after i load that content a problem with jQueryoccurs...if i go directly to the page where i have the "datepick" without load the content it works, but if i load some content stops working...
$(document).ready(function(){
If you want to try it live to understand what is happening here is the url: [url]
When you open the webpage if you click on the textbox it will show the calendar, but if you navigate on the right menu and then press the text box won't work...
View 2 Replies
View Related
Mar 5, 2009
I have made aa simple offline website to be used as an intranet. This is made up of an html file and a seperate js file.
While testing, i had the html on my c: drive and the one line js file sitting on a network drive (g - everything worked how it should.
I then put the html onto g: drive and find that the part that the js file controls no longer works...
All my file paths are the same and point to the right place but for some reason the js doesn't work.
View 5 Replies
View Related
Apr 20, 2011
I have a simple function to display an image when called, but if I try to rewrite the function to take the image as an argument, it stops working.
works:
<html>
<script language="JavaScript">
var ImagePlusSign = '<img src="plus.jpg" name="slide" width="65" height="50"/>';
[code]...
View 3 Replies
View Related
Oct 26, 2010
When thebody section below iscommented out, I get hello, and when it isn't, I don't !
$("body"
).click(function
(e){
return
[Code]....
Is this a bug, is it an unavoidable aspect of the "live" architecture
View 3 Replies
View Related
Apr 16, 2011
document.write("Goodbye!");
works but I put ^ that inside a function
function SayHello ()
(
document.write("Goodbye!");
)
and it stops working? I know the function call works because when I place some code to display an image in SayHello function, it displays the image
View 2 Replies
View Related
May 6, 2009
I have the script below (lend by one of the geniuses of this wonderful community) and as you'll see it reloads the page products.php every 3 seconds without any visitor noticing it. Simply wonderful.
Now the problem: products.php contains divs with information, but it also contains an iframe. The iframe is calling an URL that displays videos.
When products.php is reloaded the information changes (is coming from a xml file) and the iframe contents are also reloaded which causes the video stream to blink every 3 seconds. Therefore, the iframe should not be reloaded. What can I do, how should I modify the script to reload everything inside of products.php but the iframe??
Code:
<script type="text/javascript">
function getHTTPObject() {
var request = false;
try {
[Code].....
View 1 Replies
View Related
Aug 12, 2009
At the moment I have two div tags in my main index.php file, called "flowchartDiv" and "buttondataDiv".Now what I'm trying to do is when ever a image is clicked, "Image of a button", it is added to the database and the "flowchartDiv" must reload in-order to reflex the new button added to the database.I will settle for the "flowchartDiv" reloading after a set time but I actually want the "flowchartDiv" to reload every time I click on the image buttons in the "buttondataDiv".here is my code for index.php file:
<html>
<head>
<script type='text/javascript' src='ajax.js'>
[code]....
Now in the function HandleResponse(response) function you can see I have already tried to in corporate the timer but nothing is working at the moment.
View 1 Replies
View Related
Oct 28, 2010
I have a ajax function implementation: when the user is on one site, the ajax call keeps checking the server every 5 seconds if there is a server url change. If there is, there will be a message displayed to direct the user to go to another site. when the user go to another site, the ajax keeps checking every 10 seconds, if there is condition met, the message will be displayed to direct user to go back to the previous site. Also, after the message is displayed, ajax call keeps checking if there is another condition met, if there is, the message will automatically disappear.
The use case is: when one server is down, the message will direct the user to another site. On another site, when the previous server is up, the user could be redirected to the previous site. When the message is displayed (when server is down), the user may not follow the link to do anything. He/she may simply leave the message on and go to lunch or something, when he/she comes back, the server may be already up and the message should be disappeared instead of keeping showing the message. Therefore, the message should be displayed or disappeared automatically based on the ajax call condition.
I implemented the ajax function and it did check and displayed message. However, it wont' display the message only right after the user login or the user does a "refresh" to the page. After the message is displayed, when another condition met, the message won't disappear until the page is refreshed. Then the ajax calls keep doing every 10 seconds. The ajax call seems fine since when I set a alert, I did see the popup message show up every 10 seconds (but only after I refreshed the page.) Now the problem is: the message can't be automatically displayed. It can only happen when there is new page load (refresh). How can I solve this problem. I'm thinking of putting "windows.location.reload;" to load the page right after the condition met. But kind of feel I don't need to do this.
View 5 Replies
View Related
Dec 25, 2007
I want to automatically reload a div tag every 10 seconds using ajax? how do I do this???
View 14 Replies
View Related
Aug 23, 2010
Code:
$(document).ready(function() {
$('#save_editable').click(function() {
[code].....
View 2 Replies
View Related
Jan 31, 2010
1) a user on the website popup add an element to the Database using $.post WORKING
2) i want to refresh the SELECT in the form to include his element that the user just added without reload the page. Don't know how to do that.
<select id="wheel" name="wheel
">
<?php
$connection = new DBConnection();
$requete = "SELECT nomService FROM structures WHERE serviceInterne = 0";
[Code].....
View 21 Replies
View Related
Dec 19, 2009
I was looking for a poll script (php/ajax) that does not reload when adding a vote. I've tried to search around for it but haven't found one that suits my needs. Anyone that knows where I can find such a script?
View 9 Replies
View Related
Oct 29, 2010
I have a ajax function implementation: when the user is on one site, the ajax call keeps checking the server every 5 seconds if there is a server url change. If there is, there will be a message displayed to direct the user to go to another site.
when the user go to another site, the ajax keeps checking every 10 seconds, if there is condition met, the message will be displayed to direct user to go back to the previous site. Also, after the message is displayed, ajax call keeps checking if there is another condition met, if there is, the message will automatically disappear.
The use case is: when one server is down, the message will direct the user to another site. On another site, when the previous server is up, the user could be redirected to the previous site. there is also scenario that when the message is displayed (when server is down), the user may not follow the link to do anything. he/she may simply leave the message on and go to lunch or something, when he/she comes back, the server may be already up and the message should be disappeared instead of keeping showing the message. Therefore, the message should be displayed or disappeared automatically based on the ajax call condition.
I implemented the ajax function and it did check and displayed message. However, it wont' display the message only until the user login or the user does a "refresh" to the page. After the message is displayed, when another condition met, the message won't disappear until the page is refreshed. Then the ajax calls keep doing fine every 10 seconds. The ajax call seems fine since when I set a alert, I did see the popup message show up every 10 seconds (but only after I refreshed the page.)
Now the problem is: the message can't be automatically displayed or disappeared. It can only happen when there is new page load (refresh). How can I solve this problem. I'm thinking of putting "windows.location.reload;" to load the page right after the condition met. But kind of feel I don't need to do this.
View 3 Replies
View Related