App Crashing When I Try To Instantiate An Array / Solution For This?
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?
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?
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...
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]
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>
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.
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.
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]..
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
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.
As you might know, removeNode() is an IE DOM extension (works only for IE5, IE6 and Opera 8 but not in IE 5.2 for Mac, Moz, Safari.
Following one of my clients request I think I found a cross-browser solution to remove a node but keeping it's childs. The request was to find a function which will remove, onevent, the <a href=""> tags, but keeping the inner text.
This is what I have done. If you know a better or a shorter solution, please let me know:
function removeN(tag){ var tags = document.getElementsByTagName(tag); for (var i=tags.length-1;i>=0;i--){ var root = tags[i].parentNode; var kids = tags[i].childNodes; var eSpan = document.createElement('span') for(var j=0;j<kids.length;j++){ clon = kids[j].cloneNode(true); eSpan.appendChild(clon) } root.replaceChild(eSpan,tags[i]) } }
the variable tag might be 'a', 'strong', 'em'....
I guess that the code might be used as a crossbrowser solution for replaceNode() as well. In fact the code as it is replaces the node tag with a <span> tag, but it might replace it whith another desired tag....
We have to develop a small engine which the client uses. It supposed to work like this. Our engine resides in a frame (frameA) which will be loaded only once and it provides set of functions. The client can call these functions. We inturn should get the values from the server or set the values in the server and return with the values. The way we are planning to implement is that we will have have another frame (frameB hidden) and submit it whenever the client (frameClient) calls our function and wait till the page reloads and return with the value ( set in the reloaded page by the server). The problem we face now is that we don't have any sleep functionality in javascript ( being event driven) and if we have a loop waiting for the reply, it will consume the cpu cycles and the the frameB wont load.
Posting this in javascript because the problem might be caused by my scripting.
I made a 3 page long form using javascript, and the contents of the second page aren't submitted to the php script. link (http://rolstoel.dlnet.org/toevoegen.php?page=1)
I am working on this simple calculator that passes values from one function to another via paramters. I have used alert() to find what is being recieved, so far nothing. code...
I'm making a php/html page and using javascript to keep a count for me. code... The last button is just a test button, which will tell me what the value of "i" is, but I'm not getting anything when I cllick that button.
However if I change the onClick from alert(i), to alert('i') it will alert me a string, so I know the javascript is working.
I am trying to fix some datetime strings so I can convert form values into date objects so I can compare the dates in my validation process. the date time strings look like - 7/21/2011 8:00am
for some reason the am is not being replaced by " am" . here's the function code...
If the new window is "killed" because of the software, it loads a new page in the parent window ... or the last line of code can be replaced with a document.write('content here'); or show a hidden <div>. Any of these three can be used to tell the user to disable the software).
It works on my computer with ie6 ... let me know how it works on yours (if you have popup killer software installed).
I have been looking around for quite some time for a simple piece of code that allows rows to be collapsed in tables, so when you click on a link in the tbale the row beneath collapses. All i have found are very complex codes that i cant get to work or that dont work in both IE and FF.
I have a javascript running on my site at that disables right clicking (viewing source, saving pictures, etc.) that works beautifully in IE...but not in Firefox. Does anyone know of a solution?
So the idea of the code is to load an image from a record, and echo both scenarios of 1) the image being a valid size and fitting in the table, or 2) the image width is too large, so add on width='100%' to the image. After both rows have been loaded, call the javascript function in PHP to hide the appropriate table row.
I have a page where users can filter a list of links using javascript clicks. The user then clicks a link in that list, views the page and then clicks back on the browser to view the rest of the list but the javascript options they filtered in the list are gone resulting in them having to do it all over again. Is there a solution to this?
Would it work if I store their selections in a cookie each time they click a javascript button and then when they visit a link and click back (to what is presumably now a cached page) will I be able to have javascript that will read the cookie and reset their options again or is the cookie not loaded on a cached page?
Are there any common solutions to this kind of thing?