This is my first post while learning Javascript and jQuery as total noob.
I have something like this:
var desc = "This is your title and here is even more that might be added so that we can get at least 60 characters or so"[code]...
It is actually being used on a page that calls a description from a MySQL table, but this example fails in exactly the same manner. Although FF and other browsers successfully initiate the script with errors, but IE loops endlessly and freezes up. FireBug reports "reference to undefined property a[d]". Using jQuery 1.6.2.
In this tutorial: [URL] The variable FadeTimeLeft is part of an expression assigned to the FadeTimeLeft property of the element object: Code: element.FadeTimeLeft = TimeToFade - element.FadeTimeLeft; Yet I looked through this code and I don't see it defined anywhere so I have no idea what value it holds.
Hi, I am attempting to create a script in which object A contains an array of "objectb" objects. An overview of the code is posted below. When I attempt to access "myObjArr" array like this:
What i'm trying to accomplish is two things. To select the page i want to load in each tab then select how many of thoughs tabs i wish to open. When the number of tabs is selected i want it to launch. i also have a refresh button that works i just can't get the windows to load. by the way for this project i want it to open the same url that is selected on all of the tabs. Here is what i have:
I have a page which has some content that is generated via an AJAX request and JSON. The content is shown and hidden by clicking on each row using the (Animated Collapsible DIV v2.4 script ). It works fine if I have the page as one static file (which I did for testing) showing the same content the AJAX pulls. But when I display the page with AJAX generated content it comes through and the source code is essentially the same but my show/hide effects are not working. I am getting an error when I troubleshoot using Google Chrome Developer Tools that says: Uncaught TypeError: Cannot read property '$divref' of undefined. I tried switching the order of the Javascript and HTML to see if that was the problem. But I think it has something to do with the way the page is loading in the AJAX based version. I looked into using the JQuery LiveQuery plugin but I could not figure out how to make it work with my code nor do I know if it is the fix I need anyways.
I have the following JQuery code: $("#menu-247 > a, #menu-213 > a, #menu-214 > a, #menu-215 > a, #menu-216 > a, #menu-218 > a, #menu-219 > a").addClass("mainLevel"); /*$(".mainLevel").each(function (i) { $(this).before('<div id="' + $(this).parent().attr("id") + '-behind"> </div>'); $(this).prev().css({ width: $(this).css("width"), height: $(this).css("height"), position: "absolute", top: "0", left: $(this).parent().css("left"), zIndex: "5", display: "none", backgroundColor: "blue" }); $(this).css({ position: "relative", zIndex: "10" }); });*/ $(".mainLevel").hover(function() { alert('test'); });
And I receive the error "Uncaught TypeError: Cannot read property 'guid' of undefined" in Google Chrome. I thought it had to do with the fact that the event handler was trying to be added before the DOM was modified. But then I tried simply this: $("#menu-247 > a, #menu-213 > a, #menu-214 > a, #menu-215 > a, #menu-216 > a, #menu-218 > a, #menu-219 > a").hover(function() { alert('test'); });
And still received the error. I removed all the "> a" so I simply had a list of ids and the error was still there. Even when I only have one id listed, the error comes up! It also seems to be any element. But if I just try the alert part, everything works.
shows "true" or "false" in Firefox, when I respectively check or uncheck the checkbox. IE however comes up with "undefined". Is this code so exotic, that IE has problems with it?
I'm building a simple corporate site (temp on my server) for a friend's company and am having an issue with an animation I have implemented. everything has worked fine for me (mac, firefox and safari) but my friend sent me a couple screenshots of the animation freezing on his computer (safari) when it is only halfway complete. the two examples are:
[Code]...
the code seems perfectly fine to me, and I am having no problem with any of it.. does anybody have an idea of what might be causing this? or is nobody seeing the animation freezing?
I have been struggling with a loop of mine. The loop should create a grid, of 204,000 squares(div's). And the total would create a grid field of 340 pixels by 600 pixels. All div's are sized 1 pixel.The idea is to create a grid, that shows temperature data in a gradient style, like a weather heat map. The data is collected from temperature sensors which are connected to a database.The only problem is that because it's such a massive amount of calculations to be calculated by javaScript, the whole thing freezes. Here is a sample of my code:
Code:
function makeGrid() { for (var i = 0; i < 8160; i++) {
[code]....
Another problem is, the grid should be reloaded every 5 seconds or less.Because that's the interval used by the temp sensors, and for the usage that's planned for the project, its really important that the data is constantly up to date. using another web based language are welcome, as long as they are combinable with PHP or AJAX. Or maybe there is a ready to use library that I dont know of. Couldn't find anything for jQuery.
I am looking for a single jquery plugin that can sort the table and also freeze the column headers and works in IE, FF and Chrome. I have found tablesorter plug-in that works great for sorting and fxHeader that works great for freezing column headers, but when I use both of them together there are issues. My table structure is something like this.
This is using Microsoft Windows with IE. I have a form with a text box which I inspect onKeyDown to determine what key is pressed. Also if the page sits idle for a while an alert box comes up. Here's my issue.
If I load the page and wait for the time out a message is written to the staus bar. That works fine. But if I load the page, type one character in the text box and stop all activity the page times out again. But this time after the alert box has fully formed, the status bar quickly receives the message I want there but instantaneously changes to undefined.
Has anyone came across a situation or know how the document.fileCreatedDate property could be throw a JScript Error in IE6 browsers?
I am using this in a function to help determine an IE browser (with other properties). It has been reported to me to fail in others browser. Since it works on other peoples machines I would make me think is there something that can be done to a webpage that can have this cause an issue.
I am trying to read data from excel file and use the same to populate a select menu. If any cells are blank, I want to ignore. But I am unable to do this. The dropdown gets populated with blanks. Following is the peice of code:
var excel_cell = excel_file.ActiveSheet.Cells(i,1); alert(excel_cell); if(excel_cell=='undefined')
I am having some fun with javascript, and I came upon a site, on the site you have to try to figure out the passwords which are embedded in javascript, now im on the last level but i have no clue whats going. It seems to be an undefined variable. Can anyone point me in the right direction? Code:
I can't figure out for the life of my why because it should find 6758 and that would be index 3. If it's index 3 then I should get back 6758 I would think.
Does anyone know why the onclick in the following popup menu gives the error:"Val is undefined"? Does it have something to do with the fact that it is called within the variable tablePop? Because it IS displayed properly as part of the popup text, where it is called outside the single quotation marks (see [***]). It is only in the onclick that it's causing problems. Code:
I'd like to be able to control the text selection in an input of type text, but JavaScript tells me that selectStart and selectEnd are undefined. Since these properties are referenced in many JavaScript examples I must be doing something wrong. Can anyone clue me in?