jquery

JQuery textarea/input value doesn't seem to get updated

For some reason $('#comment').html() returns the the default html, but any change to the text doesn't seem to be noticed after calling alert($('#comment').html()); <form> <textarea id="comment" name="comment" rows="10" cols="60">input your comment</textarea><br /> <div id="submit_comment">Submit Comment</div> </form> ...

hover over image thumb to reveal floating slideshow like on hotels.com

On hotels.com when you hover over a hotel listing's image thumbnail a small floating slideshow pops up sliding through multiple images of the hotel. Can anyone point me to a Mootools or Jquery script that does this? thanks for any ideas. ...

Turning jQuery charts into PDFs

I've found two jQuery charts plugins I like - flot and jqPlot. I'm thinking of using one of these on the front-end of my web site. However, I also need to be able to allow users to export data in PDF format. I'm ideally looking for a pure Python solution, but could run to Java or PHP at a push. The quality of the generated charts is the...

XSLT breaks jQuery/Prototype Script in Firefox

I am working on a school project. It's an internet page with XML / XSLT. For the design we thought about an image fading effect in the background. I made it as you can see and it works perfectly on IE7. But checking it in FF 3.6 throws some suspicious errors in firebug und does not work. For example: alert($('menu_bg').innerHTML); ...

Force jQuery to not register $

Hello, I know there exists a command like jQuery.noConflict. But for this it first registers $, then un-registers it afaik. I want to edit the jQuery 1.3.2 code to stop it from registering the $ in the first place. I know its not the best of ideas, but I need this in a particular project. Am just not sure how it can be done? I mean wha...

Jquery - Get parent id (parent must have a special Classname)

Hi, i have the "c_500" id and i need the id from next parent with the classname "pp". i search something like ... $('#c_500').getNextParentWithClass('pp'); html <div id="d_548" class="pp"> <div class="class_ft"> Blub<hr /> <div id="here">content</div> <div id="c_500">content</div> </div> </div> Tha...

Multiple Jcarousel error "jCarousel: No width/height set for items..."

Link: http://misiur.com/teatr Error code: "jCarousel: No width/height set for items. This will cause an infinite loop. Aborting..." I had one carousel - no error. Then I added new - this error. Build same as first one. Simple HTML: ul with children li > a > img I don't have any idea why is it happening. I've tried to add dimensions wit...

jquery accordion with tabs

Being a newbie I have read forums and posts but still can't work out how to have tabs inside accordions. I'm using the following. No Ajaxed content. jQuery UI Example Page $(function() { $("#accordion").dialog({ open: function(){ ...

colorbox (which uses live) not rebinding after jQuery ajax call

I have a list of elements that I am loading via ajax (using jQuery's .load()). Each of these elements has an (edit) link next to it that lightboxes (using colorbox) a little edit form. When the lightbox is closed I use the onClosed callback to reload the ajax list to show and changes made during the edit. The colorbox call looks likes t...

Any plugin of jQueryUI like jQuery EasyUI?

i've found this 3rd party plugin of jQueryUI jQuery EasyUI But i want to know is it another recommend? ...

Jquery - Get all visible childs from a div Get

Hi, i can get all childs with this code $('#all').children().each(function() { .... }); But how can i get all visible childs with class "one" from id="all" ? <div id="all"> <div>asdd</div> <div class="one">content</div> <div class="one">bla</div> <div> ssss <div class="one" style="display:none">text<...

How can I add a parent element to a group of paragraph?

I have this HTML: <div id="description"> <h5>Title</h5> <p>First paragraph</p> <p>Second paragraph</p> <p>Third paragraph</p> </div> I want to insert, with jQuery, a parent element for all <p> elements, except the first one. So the HTML that I would like to generate is this: <div id="description"> <h5>Title</h5> <p>First ...

JQuery issue with query having $ in string

I have an issue with jquery where elements are not found when the query string has '$' char in them -- is there a known issue? Unfortunately search engines make it so hard to searh for symbols in threads. I have an html such as this: <TD id="ctl00$m$g_cd3cd7fd_df51_4f95_9057_d98f0c1e1d60$ctl00$ctl00_5" class="MenuItem" onclick...

jQuery and split not working together?

Good Day, I'm playing around with jQuery tabs and have a prototype up and running. http://www.omnicom-innovations.com/play/tabsdemo.html Here is my code: $(document).ready(function() { $("#tabs").tabs(); // Select the second tab // $("#tabs").tabs({ selected: 1 }); // http://viralpatel.net/blogs/2009/04/jquery-tabs-create...

Client Side Data saving with PHP/Javascript

Dear Programmers, I want to make a website that would be like craiglist.org. If you go the site and click on any of the city it will redirects you to the city subdomain. And after that anytime you go to the craiglist.org it will redirect you to the city subdomain. So I need to keep the city/country name to my client's machine. At first...

jQuery thickbox 3.1 and mobile safari

I'm using jquery tb 3.1 and having issues using it on the iphone and ipad...so i'm assuming mobile safari is the issue. what happens is no matter where the user is on the page if they click a hyperlink that opens the thickbox window, you have to scroll up to see it. it's staying aligned at the top and the greyed out TB window doesn't fi...

How do I submit forms with the Enter key without a submit button.

I have jQuery go though all the submit buttons with the class button, and turn them each into an anchor element with the class button. $("input.button").each(function(i) { var anchorButton = $("<a class='"+this.className+"' href='#'>"+this.value+"</a>") anchorButton.click(function(eventObject) { $(this).blur().prev(...

jQuery, always is selected

When I refresh page always show you selected, why? Thanks. if ($("#users option:selected")) { alert('you selected'); } <select name = "users" id = "users"> <option value="0">text</option> </select> ...

Jquery - using toggle() but disable it until the animations are done

Hey, i am using the jquery toggle function like this: $(".class").toggle( function() { //things to do... animations and so on }, function(){ // other things to do... } ); Now when I call the toggle effect by clicking very often the animations of the two functions don't wait for the other to finish. So I would like...

JavaScript .hashchange performance. Can it bring any slowdown?

jQuery hashchange event For me it looks like most mature solution right now(please correct me if I'm wrong). I really like this plugin for manipulating with browsers hashes. It simplifies js code a lot in some cases. I really want to start use it extensively but I have a question for you. Accordingly to the source it uses loop and che...