SetTimeout Causing Browser To Crash?
Aug 2, 2011
I'm writing some code so that my comments section automatically updates every 10 seconds. The code i wrote does update it but sends off about 40 request every 10 seconds until it eventually crashes the browser.
[Code]...
View 2 Replies
ADVERTISEMENT
Oct 1, 2009
I am trying to write code to print a message 5 seconds after document has loaded.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script>
[Code]....
The message appears ok but the page loading bar in the browser + hourglass wont go away (in firefox).
View 1 Replies
View Related
Nov 1, 2010
I have this table:CREATE TABLE IF NOT EXISTS Assignments (uid TEXT PRIMARY KEY ON CONFLICT REPLACE, instruction TEXT, start TEXT, stop TEXT, createdTimestamp TEXT, theTimestamp TEXT, taskID TEXT, resID TEXT, flowID TEXT, flowDefID TEXT, currentState TEXT, iconRef TEXT, colorRef TEXT, dispatched BOOLEAN, inStartState INTEGER, inStopState INTEGER, writeLock INTEGER, workItemID TEXT, companyID TEXT, metadata INTEGER)
The thing is that when making a insert and then going to the development toolbar in chrome and look at the storage tab and look at my table. Depending on what is in the table chrome crashes.I drop the table between the executions.The difference here is that "theTimestamp" is something rather then empty. If I set theTimestamp to '10/15/10 3:07 P' it works. But just adding that last M or any other letter will make chrome crash when you try to look at the table. Whether it is by navigating to the table with mouse clicks or writing a select * from Assignments statement.
View 6 Replies
View Related
Feb 28, 2010
I am having some issues using jQuery multi-select, it works fine but really lags when I have multiple instances (can crash the browser in some cases) am using jQuery 1.3 & jQuery 1.7 as the demo (have tried updating to the newer versions but problems persists)
I am using the following [url]
Does anyone have any idea to speed this up, or an alternative plugin that works a little better?
View 1 Replies
View Related
May 29, 2009
I have a very simple image rotator that brings in images then rotates through them using fadein/out.
You can see it going here: [URL]. If you scroll down to the bottom of the page then wait a few seconds the main image will rotate and the browser will jump up (almost as if it's going to an anchor).
The images are brought in to a 100% div and the images are specified to 100% width (not sure if this is related but I'd thought i'd let you know!).
The code I'm using is this:
function run_slides(id){
var curid;
var nextid;
curid=id;
[Code].....
View 1 Replies
View Related
Jul 20, 2005
I am trying to get a dynamic table going. You click a button to add a
row. In the newly created row a button to delete the row is placed
(try the code example below). In Netscape, pressing the delete row
button crashes the browser. Why ? What is the correct way to do this ?
I am stumped why this following code works in IE and Opera but crashes
Netscape 7 (ie makes it disappear and try to send a bug report etc).
Any help would be much appreciated.
Copy and save the following code example and try running in Netscape 7
(or Mozilla 1.4) . It works fine in IE 6 and Opera 7. I've tried all
sorts of tweaking around but to no avail.
I need some expert help. Perhaps suggest the correct or other better
way of implementing this.
Here's the code:
View 2 Replies
View Related
Apr 7, 2009
My site works fine in Firefox, but it crashes in IE.
I am using alot of jQuery in order to fade in content. When the user clicks on one of the above links a few times, it will crash in IE.
Here is my site code...
I have absolutely no idea why the site crashes in IE. I don't even know where to begin to debug my problem. I don't have Visual Studio on my computer, but on my friends computer Visual Studio reads a message of An unhandled win32 exception occurred in iexplore.exe[####]
View 1 Replies
View Related
Dec 13, 2009
I need to understand Javascript in the simplest, quickest possible way like ASAP.
This is my first time here, so I am not so sure how this work.
View 1 Replies
View Related
Jul 28, 2005
I'm having some trouble implementing a popup in firefox. I attached some
simplified code at the bottom. This is part of a firefox extension. What
happens is that a popup window is created, the popup window updates it's
data depending on what is shown on the main window. The problem comes when i
click the 'X' to close the popup window. it crashes firefox, and closes all
firefox windows. can somebody help me with this? why does this happen? I'm
99% sure the error comes from the form in the html code.
window.getNode = function (t)
{//stuff}
window.printNode = function (node)
{//stuff}
window.updateWindow = function (num, tag, inner) {
outputWindow.document.outputForm.nodeNum.value = num;
outputWindow.document.outputForm.nodeTag.value = tag;
outputWindow.document.outputForm.innerHTML.value = inner;
}
//popup
window.outputWindow = window.open('', 'outwindow', 'width=500,height=500');
//add contents to window
outputWindow.document.write("<html><body><form name='outputForm'>Node
number:<input type=text size=20 name='nodeNum' value=''><br>Node tag:<input
type=text size=10 name='nodeTag' value=''><br>Inner HTML:<input type=text
size=50 name='innerHTML' value=''></form></body></html>");
document.onmouseover = getNode;
View 3 Replies
View Related
Oct 25, 2005
I'm using window.open method in my script to open poup window. Recently
Internet Explorer users reported that the script crashes on their
machine with different runtime errors.
See the bug:
View 6 Replies
View Related
Dec 4, 2010
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.
[Code]...
View 4 Replies
View Related
Jul 12, 2010
I have the following function that's supposed to say "Please make a guess" 20 seconds after an initial confirmation is displayed. However, it's immediately displayed as soon as someone hits "Cancel". If I change it's time to 40000 (20 seconds after the initial function is called), it does do it 40 seconds total, so it kind of does what I want. So it seems that the second setTimeout is initiated from the time the script is called generally, but I'm looking for a way specifically to have the 20 seconds start only after the "cancel" button is hit.
[code]...
View 1 Replies
View Related
Jul 20, 2005
I'm really hoping someone out there can help me with an unusual,
frustrating XP problem that I just can't seem to fix.
When certain web pages are opened with my Internet Explorer 6, it
causes the CPU to jump up to 100% usage, and my computer comes to
almost a halt. The culprit, according to Task Manager, is always
IEXPLORE.EXE, or at least one of the IEXPLORE.EXEs if there are
multiple instances.
I've noticed a common thread to virtually all sites that cause the
CPU to run at 100% -- Javascript. Pages containing Javascript are
virtually always the problem. Examples:
1) almost all pop up windows
2) Yahoo! Mail
3) Match.com Searches
4) All Music Guide
I'm not a computer expert at all, so I've only done what I can think
of, or what has been suggested to me. I've checked/removed
spyware/malware with multiple pieces of software (Spybot, etc.) I've
defragged. I've checked for viruses using both NAV and PC-cillin.
I've used my System Mechanic program to go through almost all
fixes/maintanance/optimizers. The only thing i haven't been able to
do is Windows ChkDisk, because it gets stuck every time I try to use
it.
View 1 Replies
View Related
Mar 29, 2010
I am using ASP.NET for data retrieval and jQuery to perform various functions/animations (error bar, slide menu, table sorter, etc...). Everything is working great until the pages are viewed over and SSL connection. When viewing over SSL, some of the margins/padding stops working and the hover effects on tables stop working correctly (leaving cells coloured, not colouring others). After spending a day looking for the solution in Google, I haven't found anything that will fix the issue. No errors/warnings are displayed on the page.
View 1 Replies
View Related
Apr 29, 2009
I have a dynamic dropdown (done via Spry) that is trying to throw a pop-up window in IE7 (which I have to support). Here's the link:
[URL]
View 3 Replies
View Related
Sep 30, 2010
I am building a wordpress theme that utilizes a theme options panel. The theme has a area where someone can enter in their email address, and when they do a Thank You message displays. One of the sections in the theme options panel allows the users to modify that message. Right now the message is formatted like this: "Thank you for your interest!<br />As soon as as we are ready we will send you an email with all the details."
And the page source shows this:
$('#right').html("<div id='submitted'></div>");
$('#submitted').html("Thank you for your interest!<br />
As soon as as we are ready we will send you an email with all the details.")
.hide()
.fadeIn(1000, function() {
});
(I bolded the thank you message) now the form functions properly the way it should and the thank you message appears accordingly when someone submits their email. However, if the person modifies the message via the theme options panel and uses "Enter" for a return or line break the code looks like this:
$('#right').html("<div id='submitted'></div>");
$('#submitted').html("Thank you for your interest!
As soon as as we are ready we will send you an email with all the details.")
.hide()
.fadeIn(1000, function() {
});
And this causes the form not to function properly. The thank you message will not show up.
View 3 Replies
View Related
Oct 14, 2002
I have these scripts for the page link buttons (home, about us etc) for a number of 'template' websites. The code is returning the following error:
Line: 5
Char: 2
Error: 'target manager' is null or not an object
With older browsers, it may even force a browser shutdown? Code & scripts attached.
View 2 Replies
View Related
Jun 12, 2009
I have a html list displayed in a div and I want to make the list cycle through items, i.e the first item in the list becomes the last item while the second one becomes the first, and this should continuously happen.
I wrote a small bit of jQuery to accomplish this, but the problem with this code is that is causes the block to continuously resize vertically. Does anyone know of a correction I could make to the code below to remove this glitch. Here is what I have written.
Code JavaScript:
$(document).ready(function() {
/**
* Removes the first element of the news-ticker elements and then calls
* addLast() to add it to the end of the list.
[Code].....
View 3 Replies
View Related
Jul 23, 2005
I've got a strange problem in IE that I wonder if anyone has seen
before. Basically, I've got a two window scenario. The parent window
opens the child via window.open(). The child contains a form and
submissions are processed in the child window. When the child window
form is submitted and the results are returned, an alert box is thrown
up via setTimeout("alert(....)", 2000). For some odd reason, when
this alert is displayed, focus is transferred back to the parent
window with the alert box on top. When you press the OK button on the
alert, focus is transferred back to where it should be; on the child
window. This doesn't happen all the time. But it happens. Is there
something I can do to solve this mystery?
View 2 Replies
View Related
Dec 6, 2011
I have a situation where i need to locate a radio button by it's value and check it. The solution below works in all browsers. However, in IE 6 & 7 (not 8), if there's an apostrophe it blows up.It's happening for me in both jQuery 1.6.4 and 1.7.1. Here's an example. var diagnosis = "Huntington's Disease"; $(...).find('input[value="' +diagnosis+ '"]').attr('checked','checked'); I've tried diagnosis.replace("'","'") and that seems to have no affect.
View 4 Replies
View Related
Jun 23, 2010
I believe I'm having an issue with the jQuery Cycle plugin. For the duration of the occurrence of a transition, the page appears to be "jumping" due to the fact that the site content is centered vertically and horizontally and the transition is making (inactive) scrollbars disappear entirely. I have not witnessed this personally in Safari/Firefox on Mac or Firefox/IE8 on Windows, but a colleague took a video of it happening on their machine with Firefox (Mac). Some see this problem, and others don't—I haven't been able to narrow it down. I also can't put overflow:hidden; on <body>, as I need the site to scroll if the browser window is too small.Here's the video, it's a 1.8 MB QuickTime file:[URL]
View 1 Replies
View Related
Mar 24, 2010
I am implementing a fairly large Javascript file that has many if/than's that decide whether to load new content into div's. I have noticed this is causing high client side CPU utilization. Is there any better way to do this besides having the example script below repeated many times... i need to keep CPU usage down.
Code:
<script>
$(document).ready(function()
{
//ajaxTime.php is called every second to get time from server
[Code]....
View 14 Replies
View Related
Nov 9, 2010
I want to make a piece of text fade from black to white while someone puts their mouse over it and change it back to black when they move their mouse away. I did it with the following code, but I'm wondering if anyone would do some (or all) of it a different way.
//convert RGB values to hexidecimal
function RGBtoHex(color) {
var digits = /(.*?)rgb((d+), (d+), (d+))/.exec(color);
var R = parseInt(digits[2]);
[Code]....
View 3 Replies
View Related
Nov 30, 2004
I have an internet key on my keyboard, and I'm sure others do too. When I push it, it opens Internet Explorer to my homepage. If I am already in internet explorer, and the page is focused, and I push the internet button, then it changes the location of the page to my homepage.
I want to prevent it from doing this for my users whom visit my site. I have a popup, and while in that popup, it is likely they push that button, or start internet explorer. Is there anyway to detect this, and either block it, or blur the page before it takes effect in Javascript?
It DOES NOT happen if I push START>Internet Explorer since when I click Start, it blurs the webpage.
View 12 Replies
View Related
Feb 24, 2005
I'm using a CSS layout from one of the tutorial articles from this site (the butterfly one).
I cleared out the existing css menu, leaving only the empty space for it and threw a DHTML menu (hvmenu v5.4.11 from DynamicDrive.com) on top of the space.
As long as my content is less than 1 page, the menu will be perfectly centered. Once the content goes over a page, and the side scrolling bar appears, the menu (and only the menu) will get pushed 10 pixels to the right in Firefox and Opera. In IE the menu still remains centered. Both the css layout and the menu are set to be certered on the page, but the menu seems to center without taking into account the scrollbar (in firefox and opera only).
View 3 Replies
View Related
Jul 23, 2005
I am using the following code in the button_click event in xxxxx.htm
page which is URL for the showModalDialog window.
function btnAddComment_Onclick()
{
var user_info = new ActiveXObject("Msxml2.DOMDocument");
user_info.async = false; *****causing the error.
user_info.load("../xml/userinfo.aspx");
}
user_info.asyc = false is throwing the error (Object doesnt support the
method or property. Do you want to debug?) This is happening only on
the production region and after I choose not to debug and click on the
button once again it is working fine.
View 2 Replies
View Related