JQuery :: Using Made Up Function ?
May 14, 2011
The attribbute "switch" is an attribute i made up. I've done this in other parts of my code and used jQuery with them and it worked fine.
That problem being. Why won't my "img[switch]" change opacity and switch attribute value?
Here is my code assigning the click behavior...in this function you'll see setSwitch(int)
View 6 Replies
ADVERTISEMENT
Aug 19, 2011
Why is the input type = radio on this page is not getting the value assigned to it after the user clicks on the related selection? Here is the page under development: dreamdates.com - TOTALLY FREE online dating service - You can see this by selecting a choice for "I am a: " Radio button selection. I have set up Javascript code, alert, which will tell you that that selection is "Undefined" even though you have selected male or female.
View 4 Replies
View Related
Oct 20, 2010
I have a Javascript function that dynamically creates a box withocument.getElementById('lightbox').innerHTML. In the box will be among other things a div with id="div1" and visibility="hidden" and a form which, onSubmit, calls the function myFunction.Code:The function basically looks like
function myFunction() {
document.getElementById('div1').style.visibility = 'visible';
}
[code]....
View 3 Replies
View Related
Sep 28, 2010
Is there any way with Firebug, or any other tool, to easily find which functions are being called by which page on load?I need to optimize a huge pile of JavaScript files for a large website.
View 2 Replies
View Related
Apr 18, 2011
I'm having trouble with the z-order in a slideshow made with cycle. Basically, my slides are an unordered list. Each list item is a slide with a background image, some text and a link. The relevant snippets of code are shown below.I have two absolutely positioned elements. One that is a div that goes around the entire <ul> that kind of frames the slide show. A second one is the link inside each <li>.The problem is that the link inside the <li> isn't clickable, even though it displays correctly.I think I have the z-index set correctly for all elements. If I turn off the slide show, it is clickable, suggesting I have it correct. If I remove the outside "frame" <div>, it is also clickable. It is only when they are both present, and the slide show is running, that the link becomes dead.
I have a pager turned on, but that doesn't affect this situation. I left it in, because it represents another absolutely positioned element that does work within the "frame".Both the pager and the frame are positioned above the slide.So, it seems something is happening when the slide show runs that I don't understand and is conflicting with elements it doesn't know about.Here's the code
<script type="text/javascript">
$(document).ready(function() {
$('.slides').before('<div class="pager">').cycle({
[code]....
View 4 Replies
View Related
Feb 1, 2011
I would like to write a jquery function that will work like this:
$(document).ready(function(){ifclick is made then do:
$("#wheel1").click(function(){ $(".wheels").show(500);});
leave the function
else:$("#wheel1").mouseover(function(){ $(".wheels").show(500);});
$("#wheel1").mouseout(function(){ $(".wheels").hide(500);});
View 1 Replies
View Related
Apr 7, 2010
I cannot get ajaxSend [URL] to properly modify the parameters to include a random timestamp and, for IE's sake, a _method=value pair. I have:
$
(
document
).
ajaxSend
[Code]....
how can I make sure that what gets sent across the wire is the value I set settings.data to in my ajaxSend() method?
View 1 Replies
View Related
Jul 27, 2011
I have an svg object set with hover (or mouseover-out) to animate the superfish menu. When the mouse enters the svg, the menu appears, on leaving it should disappear. (same problem with div so not an svg problem)
(testing with FF5.01) Problem: mouseover, or hover work fine, but when I add a second function to remove the menu, I get a blinking menu. I assume its a conflict with the menu's own hover?
[Code]...
View 2 Replies
View Related
Jan 22, 2009
how to set a cookie for this jquery script so that on page refresh it remembers the layout the user made? [URL]
View 1 Replies
View Related
Jun 12, 2010
I have very basic javascript skills, just started looking into jQuery and jQueryTools to enhance my websites. I have been coding PHP for about 1.5 years.I have a php form with which users can update their purchase order before making a final confirmation and payment.
Thought it would be nice if, instead of using php for redirecting to a success/fail message in a separate php file and redirecting again back to the form with a 3 second delay, I could get a jQuery script to pop up with a success/fail message, so avoiding all the clumsy php redirecting and page refreshing.I've searched for plugins, but they all act on event listeners attached to a submit button or other clickable html element.Ive searched the net for ages and can't find an easily understood explanation and complete example, where a jQuery pop up notification is displayed in response to a php script executing a db update.
View 1 Replies
View Related
Jun 29, 2009
Okay, I am in the process of making an Ajax library for jBeta, and have run into a snag. code..
NOTE - I have stripped everything not-necessary for this code out. If you want to have the rest for testing it can b downloaded from the jBeta project thread in the projects forum (everything is the same except for this Ajax stuff, which I am adding).
Now, as you can tell the two calls are the same. The first one returns fairly quickly, but the second one never returns, and I haven't got a clue as to why (it is late, so I may have missed something). What should be happening here, is that you can have 1 Ajax call going at a time (I know the limit is 2, this is just for dev purposes), when you get multiple calls all the subsequent ones should be added to a queue and then the library should get to them in order (seems to work, it calls the call() function 3 times). For some reason the later calls (after the first one) are never made (I am assuming that is the problem, they should return if they are successfully sent, one would think).
View 11 Replies
View Related
Jul 10, 2010
I have multiple IFrames on my site with different content inside each. I made a back button for each IFrame
Code:
'<a href="javascript:'+ WindowFrameID + '.history.back();"><div class="forwardbutton"> </div></a>'
It works well for a single frame but if I follow any link inside frame1 and click back button for frame2 then frame1 goes back.
View 2 Replies
View Related
May 21, 2011
here is the page I'm working onhere is the jQuery in use
$(document).ready(function() { $('.error,.success').hide(); $("#send").click(function (){ $('.error,.success').hide("slow"); $.ajax({ url: 'add.php?lnk='+$.URLEncode($('[name=lnk]').val())+'&
[code]....
and in this code, it works, the call is made and text is added. in the other code I don't get a change at all. Not even in the database that add.php manipulates.
View 2 Replies
View Related
Jul 23, 2005
I'm having a problem rewriting a window with a popup I made. I'm using
Debian Woody with Mozilla 1.0. I can make the popups, but I cannot rewrite
the original window with the new information gathered from the popup. Can
someone please make some suggestions. I've got most of my information from
an old copy of the Rhino book.
View 1 Replies
View Related
Jan 20, 2011
Basically I'm making an order form that updates the Total Text Box at the bottom of the page depending upon which selection is made from the drop down box in the form,
View 3 Replies
View Related
Mar 9, 2010
create a java script that is similar to the flash content Our Picks This Week >See New Book Releases at http:[url]..... If so, does anyone have examples that I might could use/modify? Or possibly instruct me on how to go about creating it?
View 3 Replies
View Related
Apr 9, 2010
Im using a jQuery script to show/hide a div based based on the selection made via a dropdown.
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
The problem im having is that the value used in the dropdown lists are price values eg 10.00
Consequently jQuery seems to interprit these as css notations, meaning the code doesnt work.
View 4 Replies
View Related
Jul 23, 2005
I have two drop/down menus that are dependant on each other. When I have
made a choice in both of these menus and press a button I get to a page
depending on the choice made. On this page there is two buttons "Accept" and
"Back".
When I press "Back" I would like to get back to the page with the two menus
and they should be set to the choice I made. Now the just reset when I press
the "Back" button.
Is it possible to save the options that I choose from the drop/down menus
when I get back to them by pressing "Back"??
View 3 Replies
View Related
Apr 29, 2009
I am working on a page that has a lot of hidden DIVs on it.I have it so if I mouse over the links on the left, the div and its contents appear. This all works but there are a lot of images in the DIVs and I don't want them to load until a DIV is made visible.How can I keep the browser from loading these images until the DIV housing them is made visible?right now, the page takes a long time to load because it is loading all the images in DIVS that have not been shown and might not get shown if a user does not select that content.
View 11 Replies
View Related
Dec 29, 2009
if you take a look at this site here [URL] you can see that it no longer scrolls or even displays content, but here [URL] it does. I'll bet there's a quick fix here, but not sure what it is.
View 11 Replies
View Related
Jul 27, 2011
I've got this JavaScript code that I'm using to play audio on my site made specifically for iPhones, iPods, and whatnot. However, my only problem is, that I can only pick one audio file to play from, no matter what. Can someone tell me what I'm doing wrong? I really need this specific code cause it allows me to play audio without going into the Media Player on the iPhone and iPod.
Here's what I have in the head section:
And the body:
And now to actually play the audio:
I can play audio fine, but I'm only limited to one audio file per page. Is there anyway around this??
View 2 Replies
View Related
Sep 26, 2007
I'm working with this code which sets an object to visible when clicked. Trouble is the previous object hasn't been set to hidden so they overlap each other.
How can I get this function to hide the previous object before showing the next ?
Code:
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='show')?'hidden':v; }
obj.visibility=v; }
View 5 Replies
View Related
Jun 2, 2011
i am looking to create a simple travel website where the user inputs details into a form or selects options from a drop down menu. When they submit their details they are taken to another webpage were simple adverts on the side of the webpage will relate to the options they selected from the drop down menus. For example: I select New York, and some dates. The advert on the next page will say 'Going to New York, stay at this hotel'
It will say the same if another city is selected but with the city name changed and the hotel name changed. On the second page i will ask the user to fill in personal details in a form, and again after they click submit, they are taken to another webpage and the advert will change, maybe including their name and some other details.
Is this possible and how would i go about it? The adverts only need to include some simple text for now. If the text can srcoll or move that would be a bonus. I have looked through many books and searched the web and cant find anything. I just want to use the input and selections made from the user to adapt the next webpage.
View 1 Replies
View Related
Mar 31, 2007
In one of my pages, I use javascript (AJAX) to populate one mulitple
select field based on user's click event on another control. I noticed
that when I navigate back to this page by clicking browser's "Back"
button, the changes made to the multiple select is not preserved. (It
shows the initial value). While all the other user selections are
preserved.
View 6 Replies
View Related
Apr 24, 2007
I have 4 groups of radio buttons (4 different questions using radio buttons) that I need to be required but only if a check box is selected. Also, is there a way to disable these radio buttons if the check box has not been selected?
View 1 Replies
View Related
Mar 28, 2009
So I have a nice little hand rolled Ajax call to my server pulling a list from the database and displaying it in a drop down list dependant on the user input. Aka Google suggest. I am wondering if the quickest way to do this is to call the database each time with Ajax and search the results with the input, or to write an xml from the database and search that. Then when the Database is updated rewrite the xml file.
Am I underestimating MYSQL again? Or not, and I feel it would be good practice to write the xml file because it will essentially mean a lot less database calls. But I don�t know how fast searching an xml file would be in comparison to a db call. The results from the database are say 500 entries anywhere between 10 - 100 characters each. I want to know A. The best way to do this B. Lets say the site will have pretty high traffic so I am looking for it to be as tweeked as possible. I can test but thought at the end of my week it was worth seeing what peoples advice is.
View 4 Replies
View Related