How can I get 2 functions working at the same time? Here is what I have at the top:
[Code]...
It seams every time i comment out switch.js the innerfade function works then if I comment out jquery.innerfade.js(image change), switch.js (menu)works. But they do not work at the same time so if the images are changeing I cannot hover over the buttons on the menu they act like a graphic, basically not interactive.
I wondered if two jQuery functions work at the same time on the web page. I did practice one with two jQuery functions, just one function work while other isn't. What is causing it? What should I do to prevent having one is working while others isn't ? Is there a code to put in there to prevent it? If so, where should it be at?
I am new to Javascript so please be gentle. In the following code how would I get the displaymember() and stats() functions to load at the same time? If I have to combine them into the same function how do I do this. Basically, I need displaymember() and stats() to both run when the page loads using onLoad="displaymember()". However, you can only load one function in this way. So I need a way of combining these 2 functions.
What I am trying to do here is to load two functions at the same time. These functions are triggered by two images that scroll down a css positioned box.
Now the problem that I am facing is that I can only get one function to work properly. The one who is loaded in last place. Why is this happening? Code:
to add minuts and seconds so can change the background ex. 07:45:00 instead of just hours only.
/* This script and many more are available free online at The JavaScript Source!! http://javascript.internet.com Created by: Anonymous | http://musikimiz.googlepages.comLicensed under: Creative Commons
When I click on A1 or A2, the text from the associated files is loadedinto #Info, so that works fine. However, when I click on the A1 or A2class within #Info, nothing happens.I guess I am missing something fundamental here, so it would be veryhelpful if someone could explain how I can get the text that isdisplayed within #Info "clickable" so that it can load the other file.
When I click on A1 or A2, the text from the associated files is loaded into #Info, so that works fine. However, when I click on the A1 or A2 class within #Info, nothing happens.
I use the document.ready function by jquery to trigger some action in an asp page. the problem is that IE has problems the first time the page is loaded. I register the window.resize event for example to do the same actions i do once after first load to keep some alignments correct. these will work in ie but not the initial alignings. I played around with the position of the javascript already and tried everything from having it in the header as well as putting as last element right before </body>.
I'm helping out a dev at my work who is having a problem.as a function to where it should scollTo (using scrollTo plugin) on page load to the starting "page". I don't think it is a plugin problem though. It only loads correctly about half the time, but if you hit refresh it will work?Can anyone tell me why this is? It's like it doesnt execute it everytime the page loads
I want a function to take another function as a parameter, and execute it as a line of code. I put a simplified example below, just to illustrate the idea. Does anyone know the syntax to do this, or is there perhaps a better approach entirely?
// EXAMPLE
doSomething(5, 10, functionA, functionB);
function doSomething(x, y, myFunctionA, myFunctionB) { if (x > y) { myFunctionA(); } else { myFunctionB(); } }
I've got two functions in one JavaScript file. Only one function ever works at any one time though (whichever one is at the top). One function is for opening links in a new window, the other to get the CSS dropdown menus to work in IE.
I've copied the code in below. I'm sure it's really simple to fix, but try as I might I can't get them both to work at the same time. Code:
This code works fine in in FireFox but not in IE... it's written in Javascript & AJAX but I'm pretty sure the JavaScript is the problem...
Basically what this script is supposed to do is when you select a Product Option, it uses AJAX to fill out the Value drop down box with choices. That works fine.
You then select something from the Value drop down box and it then uses AJAX again to fill out the details into the Weight and Price text boxes... This is where it goes wrong. Code:
I'm trying to create a form that makes use of two Javascript functions.
The form is a table, and when the user begins typing the the 1st row of the table a 2nd row appears. When the user types in the 2nd row a 3rd row appears, and so on. I've created this using appendChild, and it works well.
I also want the fields in the table to make use of autocomplete, so that when the user begins to type, they are shown a list of predictions for what they are typing. I do this by setting the id of an input on the form to be id="autocomplete".
Individually both these functions work. However, when I combine them, the rows that are added to the table do not work with autocomplete - only the rows which appear when the page first loads give predicted options when the user begins to type.
I would be very grateul if someone could explain why the newly added fields don't work with autocomplete, and suggest a solution. The relevant code is below.
Is there any alternative way to disable elements in real time as .attr("disabled",true) or .attr("disabled","disabled") do not work in IE7, only with IE8 or FireFox 3?
I'm trying to trap a user entry that cannot be found in the database. When a code is entered, the page should give a "Code Not Found" message if it is an undefined value.
However, it didn't; and it always shows the "undefined" value to the page instead.
I download the jquery library, when i include it as such:
It loads but i always get some sort of error in the functions in the page or something...as if the js is loaded but not correctly or as if it's missing, even though the download itself is correct
If i change the include path to (which is the exact same file i downloaded):
Everything works fine i am thinking maybe it could be something that has to do with encoding maybe? am not sure...any clue? it's only happening with the jquery JS files, the rest are working fine.
I have a form on my page that gets checked and verified with a bit of AJAX and then gets sent off if all is good, but I also created a quick little loop to verify that all the fields are still full and completed before sending the info off to the server officially .here is my test page for the loop that i have created.
PHP Code:
<html> <head> <script type="text/javascript">
[code]...
Now the loop works great if you test it by clicking on the button once but if you fill in a missing field and click the button ok then it doesnt work again ... how can i get it to work on every click ?