jquery

jQuery fade/reveal delay menu

Hi. I have 3 btns which are simple anchor tags within an unordered list each have a respective id of t1 ,t2 and t3. I also have 3 similar btns that are hidden with css they have respective ids of t1-discover, t2-discover and t3-discover. What I am wanting to achieve is when, say, t1 is clicked after 5 seconds it fadesIn t1-discover and f...

Sum a list of text boxes in jQuery

I have a form in which there are textbox(s) added dynamically using jquery. The textbox ids is formed as an array, i.e. Quantity[0], Quantity[1], Quantity[2] ... I want to add the numbers in these textbox(s) and display the value in another textbox named "total_quantity" preferably when the focus is shifted out of the array textbox. Ho...

jQuery $(html, props) (DOM creation) ignores props map

Hi everyone. I'm unable to correctly create DOM elements using jQuery (1.3.2): var ev_t; $("#add-event").click(function() { ev_t = $("<form>", { action : "someURL" }).hide().appendTo(document.body); var fields = $("<div>").appendTo(ev_t); fields.load("someURL", function() { $("<input>", { type: "submit", value: "Add...

jQuery Infinite Scrolling/Lazy Loading

Hi, I'm currently redesigning my website and have been looking into using JavaScript and jQuery. Here is what I have so far: http://www.tedwinder.co.uk/gallery2/. My vision is to have all of the photos on one page, which the user can scroll through, like now. However, I understand the limitations and effects of having 50+ large-ish ima...

Calling a function using zend framework

I am currently using zend framework and working with jquery and php. Trying to implement an autocheck username availability. For the following code, I need to call my user_availability.php which is in my controller folder. I did /controllers/user_availability, ../user_availability but it doesnt call that page. Can anyone help? $.post...

Drag a layer using a drag helper div, and have imagemaps in layer behave as if area outside imagemap is -not there-?

Items are stored with x,y coordinates. The .items div starts at [0,0] and is repositioned based on movement of .dragger (which is made draggable). Everytime the user stops dragging / releases, .dragger is repositioned to the center of the screen, and an AJAX request is made which places the next x/y coordinated items which are in the cur...

How to move around an image with javascript?

i'm developing a simple web quiz. Using javascript, i would like to create an effect that displays a small image (1UP) that wanders around the "game deck" when users reach a specific level or score; user could gain an extra life simply clicking on it in time. Do you know any Jquery plugin or javascript snippet to achieve an effect like t...

what is the difference between these two jquery validate plugin files

This is going to be a simple question to many of you, but I just spent a good few hours debugging an issue that was solved simply by using the jquery plugin file "jquery.validate.min.js" instead of "jquery.validate.js". That was literally the only difference (there was this "uncaught exception: Syntax error, unrecognized expression: [...

How can I have a hyperlink pass 2 array values to another script and have that script's page printed?

I have a list of names (1-15 rows) I display from an array. I want the administrator to select the correct name from the list by clicking on the hypertext called "link." The record id is in the array and I want that passed to the called script. I found this javascript that works except that I want the linkur.php page to print (with it...

Using jQuery .live with toggle event

Hi, My code is working, but requiring me to click twice to active my chaining (once for the click event, and once for the toggle event.) What can I do to make it so I only have to click once so that the toggle will automatically occur? //Show or Hide Comments $('#showHideComments').live('click', function() { $('#showHideCommen...

jQuery prepend to all hyperlink elements that link to PDF files.

I would like to prepend "Download a PDF of " to any hyperlinks, linking to PDF files. Currently I'm able to prepend that exact text, but it prepends it to the hyperlink text. I would like it to reside outside of the hyperlink element, like so: Download a PDF of [hyperlink with text] This is the code I'm using now: jQuery('a[href$=.pdf]...

JQuery Live() not working

Dear all, I have made an custom collapsible fieldset control in asp.net. I use jquery to add the toggle effects. The control works perfectly but when i am using my fieldsets inside an updatepanel, afer a postback i loose my jquery logic because of the document.ready. Now i have read about the new Live() function of Jquery but i don't ...

automatically detect web browser window width change?

i know that you with $(window).width() can get the size of the web browser. i want to detect when the user change the size of his web browser so i could readjust the columns width. is there a way to automatically detect this or do i have to use setTimeinterval to loop and see if it has changed? ...

Trying to retrieve yahoo weather using jquery / php / xml

Whats wrong with this function? function yahooWeather(){ var loadPage = 'yahooweather.php?p='+ $("#myCity").val(); $("#yahoo").html('<img src="loading.gif" align="absmiddle">'); $("#yahoo").load(loadPage); } Is there another way to write this function. Im unsure if its able to read the .val required, tho i know it is se...

CodeIgniter AJAX bug returning same page

Hello , when i try to make AJAX request with jQuery as a response i get the html of the same page ! here is a live preview (edit not available due to me fixing it ) here are my files Edit : I have made changes to some of the files main controller : Class Main extends Controller { function Main() { parent::Controller(); ...

jquery.flash plugin not working in IE6

I use jquery.flash() plugin to embed flash into my website. The problem is that in IE6 this doesn't work. I tried swfobject (1.5), also, but it gives me (sometimes) some strange errors with n null or something like that, so I decided to use jquery.flash() also. (I use both swfobject and jquery.flash() now) So, basically, swfobject works...

Filtering XML results using jquery

Using jquery is it possible to filter XML results that are loaded? Ideally i would like to do a mysql style filer/search like SELECT * FROM "example_table" WHERE id="1" I have an XML file loaded in to my application with the following structure <country> <state id="1"> <statename>Baden-Wurttemberg</statename> <cities> ...

jQuery position problem with Chrome

When I alert the value .position().left, it returns 0 on Chrome. With other browsers it returns the actual number. Why does this happen? ...

How to show each div, one by one on jquery?

Hey, i wan't to make a cool effect on my page, and i'm thinking, how about to hide everything while loading and show each div with effect one by one? if its a bad idea, can you help me with a better idea? EDIt: Using the $("div").each() jQuery function. EDIT2: Children by children. EDIT3: <div id="loader"><table cellpadding="0" cellsp...

How can I take admin/insertShoutBox in action="admin/insertShoutBox" with jquery?

I want to change action="admin/insertShoutBox" to action="" with jquery. Can anyone tell me how to please? Thanks in advance. <div id="homeright" class="adminhome"> <form method="post" id="form" action="admin/insertShoutBox" > <input type="hidden" name="user_id" id="user_id" value="<?php echo $user_id;?>" /> <inp...