jquery

How do I create a content area (image gallery) that scrolls on mouseOver

Hi folks, I was looking to create an image gallery in my blog. However, I was wondering how possible it would be for the gallery to scroll through my images on mouseOver. Basically, when the user moves his/her mouse up or down the image gallery, the images scroll up or down accordingly. I have seen a few examples where it has been done...

JQuery selector help

Using JQuery, how do I select all elements with class x within an element with id y? ...

Jquery Dropdown Display Default Div

Hello All I have the following JQuery, I want to display the default divarea1 visible when the user goes to the page, I am newbie to Jquery so any help would be great. Best SPS <script type="text/javascript"> $(document).ready(function() { $('.box').hide(); $('#dropdown').change(function() { $('.b...

javascript scoping issue inside a function call

I'm having a really hard time figuring out the scoping issue with the following script using the Google Maps API v3. I'm trying to geocode an unknown number of records (pulled from a database) and create a PolyLine from the results. There's some ruby sprinkled in the code, but it shouldn't be relevant to the JS right? var trippath = n...

Where should this URL point to if I am using Java instead of PHP?

I have the following jqGrid script: jQuery("#editgrid").jqGrid({ url: "editing.php?q=1", datatype: "xml", // ... Where should the url point to if I am using Java instead PHP for creating the crud? ...

jQuery MultiFile doesn't work in webkit based browsers

I'm using the jquery MultiFile plugin to upload files. In Firefox this is working fine but once I test in a webkit based browser this fails. Has anyone got experience with this? I've googled around and the only usable information I found was a fix that didn't work for me. http://code.google.com/p/jquery-multifile-plugin/issues/detail?id...

Can a jQuery UI datepicker be matched to a click event's target?

I've written a simple jQuery (1.4.2) UI (1.8) widget that embeds a jQuery UI datepicker. I'd like to detect when a user clicks outside my widget, in which case it should automatically hide itself. My code looks roughly like this: var self = this; $(document).bind("click.mywidget": function(event) { var target = event.target; i...

Using a form in a jquery accordion

I have several forms inside one accordion widget and if a certain SELECT has an option selected, when the accordion is opened to that element, the page appears to redraw. It is an annoyance, and I found if I left no option preselected, it acts as it should. However, it is kind of important to have the option preselected.. Any thought...

Find the DOM element containing a specific offset with jQuery or plain JavaScript

Hi, I am paging an HTML page. In order to compute the page break offsets more efficiently, I was wondering if it is possible to get the element containing a certain coordinate offset from the beginning of the page. Thanks a lot in advance for your help, Cheers! ...

django forms with jquery

well ive been searching for the past 3 hours and I cant seem to find a good tutorial on this ... i`m looking for a tutorial on how to make a form "wizard" with jquery and django (I dont know javascript only basics) I need a 3 step wizard ... first step 2 inputs user password if user and password are in db then show 2nd step 2nd ...

Click Event Registered with jQuery Live in Google Map InfoWindow

I was using the technique described here http://stackoverflow.com/questions/2217267/click-event-in-google-map-infowindow-not-caught to dynamically add click event handlers to some of the content added to the Google Map InfoWindow. Works great except in IE. I have content with normal anchor tags and those links work just fine. I have a...

How to get attritubes of form input when generating a form dynamically and using .live()

I am dynamically creating forms from a JSON object that I fetch with a getJSON. If there is a better way of building forms in this manner, please let me know. I used this example to understand how to rebind submit button: http://stackoverflow.com/questions/2754961/rebind-dymanically-created-forms-after-jquery-ajax-response** What I need...

get first element of javascript array

I have an array of objects in javascript. I use jquery. How do i get the first element in the array? I cant use the array index - as I assign each elements index when I am adding the objects to the array. So the indexes arent 0, 1, 2 etc. Just need to get the first element of the array? ...

JQuery timer : is it advisable to use it?

JQuery timer : is it advisable to use it? or is it better to use Javascript native timer? Jquery timer example ...

jquery append to already appended div

Is it possible to append something to a div that was already appended? I tried but nothing happens.. (I'm not using linebreaks in the actual js) $(document).ready(function() { $('.add_text_input').click(function() { $('li').append('<div class="input_label">Untitled</div>\ <div class="edit_label"></di...

Post with jQuery not working in Asp.Net MVC?

I'm trying to make a post call to an action method in MVC 2. But it doesn't seem to work. I have set a break point right at the beginning of the action method, but the debugger never hits the breakpoint. What am I doing wrong? Here's the jQuery (for simplicity I have simplified it by removing parameters both from the call and the action ...

Determine which element comes first in the HTML/DOM?

I need to determine which element comes first in my markup, such as an input or select. For example <body> <input type="text" /> <select><option>Test</option></select> <body> In this case, the input comes first in the DOM whereas <body> <select><option>Test</option></select> <input type="text" /> <body> in this case...

jQuery: Check for next element, if not hide

I have some H3 elements that sometimes are followed by a P element. I would like to check and see if the next element after the h3 is a p, and if not, hide that h3. ...

Apply a class based on the page.

I need to apply a class ".selected" to a navigation item when the user is on the corresponding page, so that when the user clicks on "Products", it goes to the products page but the Products nav item remains selected. How can I accomplish this using jQuery? I suppose I would need to get the URL of the page an apply the style to the corre...

jQuery closest A *or* B

I want to use closest to find the closest tr or div. What's the proper syntax to "or" them together? ...