Script Global Var's Don't Work / Resolve It?
Jun 5, 2011Why the attached code won't work as expected. I hope comments in code page are self explanatory. code...
View 8 RepliesWhy the attached code won't work as expected. I hope comments in code page are self explanatory. code...
View 8 RepliesIf statement won't work / resolve this? Here is my code...
View 1 Replies View RelatedI'm new to JS and I can't get this function to display. [code]...
View 18 Replies View RelatedI have tried every possible way to work this Javascript on IE, but it doesn't work. It say's Error on Page in the status bar. [code]...
View 2 Replies View RelatedI'm using a javascript quiz I copied from javascript.internet.com and it's not working right. I like what the quiz does (if it works right), so I want to try to make it work. When you click the button to get the results at the end of the quiz nothing happens.
View 8 Replies View RelatedI just implemented the given javascript code of this website. it works locally but published it does not. what can be the reason of this problem. sorry i am a complete beginner of web design and dont even know what information to include here..
View 1 Replies View RelatedI'm new to javascript and html5.
I've been having problems with some simple(?) lines of code...
What I'm trying to do is to simply turn the canvas black and show a small gif on it. Upon executing initCnv(), the canvas turns black as it should, while the sprite image doesn't show up at all. I can't figure out what's going on, I scoured the code for syntax errors, even tried other image formats but to no avail. Image paths are also correct.
I'm trying to create a new portfolio website and I've setup the framework the way I'd like to have it. I have some slight animation through the use of jquery, but because I want to preserver that animation availability (on click) I'm needing to do the amateur thing and swap content out in a div - similar to if I were to use an iframe *shudders*.
When you come into the site, you click on a link, and the nav moves up, and the content window opens, displaying the content for the link selected. When you click on the other links, the content simply changes. This all works as of current. The problem is though, once that new content is loaded into the main content display div, the assigned js and/ or jquery does not work.
The page is live, and can be seen here if you click on the 'about' link, it shows the about page, but has all of the information expanded. If you look at the about page directly,[url] it has some light js that allows the headings of the resume to expand and contract - BUT it doesn't work when loaded into the content window. [code]...
I would like to access the create call back function. So far no luck. It appears the function is not getting executed. Any ideas where I may be going wrong? code...
View 3 Replies View Related[Code]...
Result is undefined. I am setting global variable for javascript but it doesn't work?
How can I have global variables and global arrays whose value(s) can be modified and accessed by all the Javascript functions in my HTML document as well as by the HTML code?
View 1 Replies View RelatedCode...
In IE7/Windows the left vertical navbar disappears. I have used every hasLayout trick I know. Can anyone put a finger on it? I'm working with legacy code to complicate matters. code...
I am trying to do a setInterval to switch the background-image of a div. The switch will happen every second.
Here is the html code...
On firefox 6 and IE9, it switches just fine. On IE8 and Chrome it switches once and then stops.
Not sure why it is working in the newer browsers and not the older ones. I know there were some new javascript features added to the newer browsers, but i cant figure out where the error is occurring.
I have a JS value but it won't put the value in the brackets when i try to get the element by ID instead it is looking for the id named the same as the variable name.
Here is what i got to explain better code...
I am fairly new to javascript and am having trouble clearing a text field. I am making a "vending machine simulator" as an exercise. I have a button that is the coin return, and should clear the balance display. e.g the machine shows a balance of $2 inserted, the coin return button should clear it to 0.
I believe I have done everything correctly but get NaN as the output (a text field named "box1"). I believe it has something to do with how the field is validated. It has number precision set to 2, which I would think would just become 0.00 or something. Anyways, here is my code code...
I am really confused. I want to make a <p> tag hidden using javascript, and then, if i detect its running IE, i want to make it visible. I can't even make it hidden though. I have tried code... and I've tried both of these variations with the getElementById('warning') instead of plain old document.warning too. Nothing works. I've even tried setting display to none. What is going on?
View 6 Replies View RelatedThis is the code that not getting the result code...
View 1 Replies View RelatedI have a demo where I'm trying to use innerHTML to build code...
View 7 Replies View RelatedAlright simple JS question code...
It's supposed to remove the text if it contains "First Name" and put it back if it equals nothing.
Here is my ajax library code...
This code runs prefect in FireFoc but IE7 will only process the first request. I remember reading something about IE of processing first respondText and if invalid character are in there it no not process any more. I am just passing plain HTML and rather using innerHTML because it seems earlier than using XML and i really don't see any benefit on using XML. is there any way i can get this to work nicely in IE?
I have the following code...
It's not showing me the alert. I'm just trying to get that part to show it works. However, what I'm trying to do is add up the values in one and two and the based on adding those two up and then placing that total in the total field. Any ideas on how to do this?
I tried coding something quickly myself and was wondering why I couldn't hide a frame (one with a blue image, one with a red - simple test)
So I gave up and looked through google and found a simple tutorial at
I copied this code exactly into three files, the main html frameset and the two test frames.
Named properly etc etc, but I can't get the hidden frame to show up using the button. So is the functionality behind the scenes the problem here? Or is this some other issue?
Here is a small demo of a iphone like checkbox I want to use in some forms.
the problem is the .css({'background-position-y':'0px'}) or.css('background-position-y', '0px'); won't work in firefox? code...
I found a jQuery menu online which i have used but somewhere a long the line it stopped working properly without me noticing, been trying to fix it but cant work it out..
The original code is here...
When you hover over a menu item you get a drop down but you cant hover over the drop down without it disappearing!
I am using googles O3D software and it uses a javascript base, one of there plugins works in Firefox only and not Internet Explorer why it isnt working in IE and even how to fix it, here is the page that works in firefox but not IE
View 7 Replies View RelatedCan someone tell me why I can select both HTML AND another radio button, but when I unselect, and select a # of 1 through 4, I can switch between the radio buttons, but I can't if I select HTML first?
Also, what's wrong w/ this code? code...