JQuery :: JS While Loop Crashing Browser?
Oct 17, 2011
Trying to write a while loop to do validate a form. However when i came to testing out a simple while loop it keeps crashing the browser and i'm not sure why. When i say 'crashes' the browser just endlessly appears to be loading and i can't refresh the page.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
[Code]....
View 4 Replies
ADVERTISEMENT
Jul 15, 2009
I am using the BlockUI Plugin version 1.33 with Jquery Version 1.2.1. When the application page is accessed in which the block and unblock UI calls are executed, IE is crashing randomly.
View 2 Replies
View Related
Jun 11, 2010
I'm having an issue with one of my loops, every time i run this code, it locks up my browser and requires a restart from my task manager. [code]...
View 4 Replies
View Related
Feb 13, 2010
I am not very good with javascript yet and I do not know how to debug this issue. Can y'all take a look and point me in the right direction? I've got a site that just lauched. The address is: www [DOT] saenzcleaning {dot} com The issue is that it seems to be crashing/freezing IE, but works fine in FF, Opera, and Chrome
View 1 Replies
View Related
Jul 15, 2009
Using the code below: I'm expecting the browser to display the numbers 0 through 3 in a vertical appearance using a do/while loop with an array!
<body>
View 7 Replies
View Related
Jun 3, 2009
I didn't suspect that it will cause problems, but found that Skype plugin is pasting some JS code into ready page and it search for number which are telephone like. Unfortunately when it matches, it is pasting js code. When tab is changed and I'm returning to the same page tab content is pasted second time in this tab. When I'm doing that again it's pasted third time... It's only happening on tabs on which this toolbar found telephone number.
View 5 Replies
View Related
Jul 23, 2005
I have 2 <div's> named "DETdetails" & "MEMOdetails" in my ASP page that
loads an external css file for these 2 <div's>
I want both <div's> to be static when the page scrolls hence the js
script...
When i disable (comment out) one of the <div's> in the js script, the script
works fine... however when i try both <div's> in the js script, it works
only every other time and the rest of the time it completely crashes IE6.
I could really do with someone's assitance with this.. the problem may stare
me in the face but i cant for the life of me see it...
View 1 Replies
View Related
Oct 11, 2010
my javascript is crashing when my page loads for its first time in IE 8! This is very strange. When I refresh the page everything is OK. When I clear the cash, cookies, etc the problem appears again. In the script breakpoint errors console there is nothing! Even in IE7 everything is here is my site: [URL]
View 3 Replies
View Related
Jun 10, 2011
I have some java script in my vb.net application and I've been trying to figure out why my web app keeps crashing when i try to instantiate an array (i placed a comment where the app is crashing in the code below). Here's my code...
Hopefully the code above is enough for to figure out the issue. However, here's a mini recap of what's going on. A user selected a value from firstListBox and the function above copies it over to secondListBox. The code in the first condition works fine, but the code in the else block doesn't. Now, here's the catch/difference between the if and else statement...the Else block is basically doing the same thing as the if statement, except the values that needs to be copied are coming from a session variable (hdnSessionVariable = '<%=Session("playerId")%>'. I've commented out every line in the else statement and the app works until it hits the secondListBox.options[secondListBox.options.length] = newOption line. Anybody have any idea what's wrong here?
View 3 Replies
View Related
Jun 10, 2011
I have some java script in my vb.net application and I've been trying to figure out why my web app keeps crashing when i try to instantiate an array (i placed a comment where the app is crashing in the code below). Here's my code..
Hopefully the code above is enough for to figure out the issue. However, here's a mini recap of what's going on. A user selected a value from firstListBox and the function above copies it over to secondListBox. The code in the first condition works fine, but the code in the else block doesn't. Now, here's the catch/difference between the if and else statement...the Else block is basically doing the same thing as the if statement, except the values that needs to be copied are coming from a session variable (hdnSessionVariable = '<%=Session("playerId")%>'. I've commented out every line in the else statement and the app works until it hits the secondListBox.options[secondListBox.options.length] = newOption line. Anybody have any idea what's wrong here?
View 3 Replies
View Related
Dec 18, 2010
I have a bona fide link to an academic website at Florida University where I want to check out an educational Java applet about the universe. I downloaded and installed the latest Java but all 3 browsers crash when I try to open the page. ( Mozilla, IE and Opera). I am not going to post the link here until asked to / given the go-ahead, but like I said, this is a legitimate university website. What keeps happening? Others can open it, I can't. And I have Java enabled in FF.
View 1 Replies
View Related
Jul 6, 2011
I'm trying to display content dynamically in a DIV My Script is a merge of two other scripts I found online one function (showUser) uses a GET method and the other (funcionPost) uses a POST method independently they work like a charm, but combined in the same script they throw some issues.
PHP Code:
<script type="text/javascript">
alert("Comienzo Script");
function getXMLObject() //XML OBJECT
{ alert("Comienzo ~ getXMLObject()");
var xmlHttp = false;
[Code]..
View 3 Replies
View Related
Jul 29, 2011
I have the code below, how could it be modified to loop over and over and reload the xml file each time. Flow would be: load xml, run thruogh code to display each xml node one at a time, when reach last node, start all over, reloading xml file,
[Code]...
View 2 Replies
View Related
Jan 22, 2011
I have been looking at this code for two evenings now, and rewrote it 4 times already. It started out as jQuery code and now it's just concatenating strings together.
What I'm trying to do: Build a menu/outline using unordered lists from a multidimensional array.
What is happening: Inside the buildMenuHTML function, if I call buildMenuHTML, the for loop only happens once (i.e. only for 'i' having a value of '0'.) If I comment out the call to itself, it goes through the for loop all 3 times, but obviously the submenus are not created.
Here is the test object:
test = [
{
"name" : "Menu 1",
"url" : "menu1.html",
"submenu" : [
[Code].....
'Menu 2' and 'Menu 3' don't show up! I'm sure it's something small that I'm overlooking.
View 2 Replies
View Related
Aug 4, 2011
I'm looking to send a loop variable (i) to a function inside the loop, but I can't seem to get it to use the value I want, it keeps making it a reference of i and therefore the function is always called using the last value of i rather than the one it was set with.
So if i have 5 Tabs then Tab 1, when clicked, should call DefaultTabClick(0) and so on rather than always using 4 for any of the tabs.
View 2 Replies
View Related
Oct 24, 2011
I want to use jquery to detect what type of browser you are using and display a link to a .wmv file if you are on IE or display a link to a .mp4 file if you are any other type of browser.I have this script declaration in my <head> section.
<
script src="http://code.jquery.com/jquery-latest.js"></script>
In the body section I have the following
<div id="block"></div>
<
script type="text/javascript">[code]....
Nothing is being output on the page at all. I've tried to patch this together from various example on various web sites. How can I make this work?
View 1 Replies
View Related
Sep 18, 2010
On my site i use a lot of features that are unsupported by older browsers, and right now it looks pretty stupid when the features are only partially shown. So i was wondering if there's a way of making the browser look to different css files depending on which browser and version it is. For example, css3 gradient backgrounds are supported in firefox 3.6 or something, but not in 3.0. All the hacks out there is to 3.*, so it changes for the allready working 3.6 too if i hack it. I want to controll it so that i have a specific css file for the none-supporting version and lower and one for the supporting and above. I looked at a bad browser plugin (because it has some of the basic features im looking for)
View 15 Replies
View Related
Mar 6, 2011
As you can see from the code and the output, it will attempt to write to the browser how many moves, but only '0'.
function rollDie()
{
return Math.floor(Math.random() * 6) + 1;
}
/*
*searches for a number in a number array.
*
*function takes two arguments[CODE]...
View 5 Replies
View Related
Sep 24, 2009
I've got 2 pages: a current events page and a past events page the current events page loads fine as there is only about 10 events the past events page takes about 30 seconds to load and will crash if u click your mouse in the loading time.
The pages are near identical the only difference is the query that selects the events (> versus <)
The page loads immediately without:
But when i put it back in the above happens. I'm using jQuery.roundedcorners.
View 1 Replies
View Related
Nov 30, 2011
$.browser is being deprecated however I still need to know what browser is hitting the page. In some cases I need to modify a layout or position an element by some pixels. The number of pixels is different for different browsers.How can I detect the browser using jQuery without using $.browser?
View 4 Replies
View Related
Apr 20, 2011
The following code is working fine in firefox n not working in IE8... I get the Object Expected Error when the code hits the if(GBrowserIsCompatible())..... line in the javascript code. Clear cache and browser history does not work. Does anyone have a resolution for this?
[Code]...
View 1 Replies
View Related
Nov 12, 2010
I am doing some studying and we was to create a small loop using either the for loop, while loop or do while loop. I chose to do the for loop because it was easier to understand, but I want to know how to do the same using the while loop. Here is the for loop I have, but I cant figure out how to change to while loop.
for (var i = 0; i < 5; ++i)
{
for (var j = i; j < 5; ++j)
{
[Code]....
How do you make the same using a while loop?
View 2 Replies
View Related
Jul 5, 2010
it wont loop,as long as you enter something in the name field it will submit. also how do i stop from submitting if all fields are not filled out?
function checkForm(form)
{
var len = form.elements.length;[code]....
View 3 Replies
View Related
Oct 23, 2007
Is there a way in Javascript, or perhaps in HTML, to force a browser to
re-render an image on an HTML page after a round-trip between the client
and the server ?
In my particular case, the image is changing on the server although the
URL for it remains the same, but the browser is still displaying the old
image from its cache rather than the new image from its URL location.
View 8 Replies
View Related
Feb 1, 2010
is it possible to scroll / jump to say, 10px above a div? i tried adding padding, but it doesn't work.also, when I use <a href="#xxxx">, is it possible to prevent the browser from adding #xxxx to the url in the browser?
View 6 Replies
View Related
May 31, 2010
I need a script that will redirect to a specific page is the browser is safari version 4. if the browser is NOT safari 4 I want the browser to stay on the current page.
View 3 Replies
View Related