jquery

drag and drop ordering of images

Hi, I have 5 images that go into a banner on my homepage. These images are stored in the database but what I would like the user to do is drag and drop them so they retain some order. What I need to do is a (i) drag and drop the images in a container div so left if position 1 and right is position 5. (ii) on sumbit save the position...

UL toggle working in FF and not in IE 7

I have an list that toggles with no problem in FF. I need this working IE for it to be production ready. It seems (IE) to apply the js to the first #orderItem and the first #familiy only. The rest of the items in the list are ignored. Any help would be great. A piece of the HTML (large list): <div class="classificationContainer"> ...

JQuery Submit form from success function

Using the uploadprogress plugin to show the Progress Bar during file upload and try to submit the form from success function. But it doesn't work. Here is the url of the uploadprogress: http://nixboxdesigns.com/demos/jquery-uploadprogress.php jQuery('#review_form').uploadProgress({ progressURL:'jquery-uploadprogress-demo-simple.php'...

How to assign dropdown selected value to a hidden field

i have a dropdownlist control in asp.net which resides in a user control .The yuser control has a updatepannel .I want to set the dropdown selected value to a hidden field .How will i do this in javascript /Jquery .I don't want to use server code ? ...

jquery getting all dropdown values

I have dropdown <select> with id my_dropdown. I allow multi-select. I know how to pull the selected value(s) using jquery: var values = $('#my_dropdown').val(); This will return an array of values if I select multiple. I also need to get all the values in the dropdown regardless of what is selected. How can I use jquery similarly ...

JavaScript: how to return false to link without breaking function?

Hello, I have a question (surprisingly ;) ): How can I return false to a link without breaking the function? I did this previously without jQuery, back then I set an animation to execute after an interval and returned false. This time I need the function to continue running. function initNavLinks(){ navLinks = $("div#header a").cli...

JQuery - Hiding a checkbox and text

Hi, I'm trying to hide an asp:CheckBox control depending on whether or not a certain link is visible on the screen. The checkbox has a text attribute = "hello". I'm trying to do this in JQuery. I currently have the following: $(document).ready(function(){ hideCheckboxButtonIfLinkExists(); } ); function hideCheckboxB...

KeyDown in jquery not updating when pressed

I am trying to get the div to change the font size and update it on the screen. The following code works but there is a problem when you press a key you need to press another key to register the last key was pressed i dont know want that to happen. How would i make it update as soon as you press a key? $('#font_size_title').keydown(fu...

PHP Web Design: Using Smarty vs Rest feeds with jQuery

I've been trawling SO for a couple of hours tonight looking for some answers, but I've not found anything that really answers what I'm after. My apologies if it has, in fact, been answered already. I'm designing a new website and I'm trying to decide on the architecture to use to serve the content. In the past, my websites have used PHP...

jQuery: Can't run $.get (http get) on Chrome.

Hello. I want to use JavaScript to make a simple http get. I used jQuery to perform my request. My code runs on IE8.0 but not in Chrome (ver 6.0). My page has the following code: (to simplify, i made a simple request to a html page, but my needs is other) <!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <script ty...

show div links over div when it's toggled

Hello Everybody, I have an horizontal menu in asp.net application. in my menu there is a link:Account link(like the the one in facebook link:account). When i click the account link ,a menu toggles(sessting,...) i have a div in the content div for ads(exactly like in facebook).The problem is that when i toggle the links become unclick...

Dynamically Swap Youtube Video Without Page Reload

Hello, Here is what my html page looks like (test): <div style="width: 640px;"> <object width="640" height="385"><param class="movie" name="movie" value="http://www.youtube.com/v/zkd5dJIVjgM"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://...

jquery ui version issues

I'm using 2 different modules in JQuery that each use the UI library. One module uses version 1.8.5 and the other uses 1.7.2. The problem I'm having is that one of the two modules stops working when I attempt to load both UI libraries. I'm brand new to JQ so I'm not sure what to do about this. EDIT: Can someone please tell me what I ne...

Looping code when hovering with set delay in JavaScript with jQuery

Hi there, I'm looking to start and stop a loop with a set delay with a jQuery hover event. I've been trying to do it with "mouseover" and "mouseout" with no luck. Example (odd psudocode): Mouseover Loop Change text colour Wait 100ms Mouseout Stop loop I'm sure this is super easy, I just don't quite know how to...

How do I implement this image annotation javascript using AJAX with Rails?

There is a blog post that details how to do this with PHP, but I'm not clear on how to translate this to Ruby on Rails. For the getUrl, saveUrl, and deleteUrl what do I put so that I can hook it up to my AnnotationsController and create, read, and delete Annotation models? There is also server side code in PHP. jquery-image-annotate i...

GET data from server via JQuery call and load into DIV without refreshing page

I've spent the best part of 90 minutes sifting through the many tutorials relating to this problem. Instead of using the rather long winded way of creating a XHR object , sending the request, getting the data back, doing a getElementById to find the div then loading the response into the div. I'm looking for a far more simpler - easier ...

Jquery: Binding change to multiple checkboxes

For a little bit of background, I have multiple checkboxes, each weighted with a different "score". When the checkbox is changed, I need to compute the score. I thought something like the following would work but it does not look like the .change event is being bound properly. $(document).ready(function() { bindSomeCheckboxes(); }); ...

iPhone web app freezes after incoming call is declined. Why? What can be done?

After an incoming call is declined, the iPhone web app that I've developed completely becomes unresponsive. The app is written in HTML, CSS, JavaScript, jQuery, and jQTouch. If the call is accepted, then the app restarts after the call ends. I’ve read that it is normal for iOS to terminate your app when a call is accepted. (I do not kn...

Which controls triggered the Page.IsValid = false?

Two things: A) Is it possible to set the Page.IsValid (Is_Valid) property through Jquery so that I dont have to use the aspx validators? It is my understanding that the IsValid property is read-only? B) When the validators are in, is it possible to find out, through Jquery (ofcourse) which controls caused the validation to fail? An exa...

Jquery version conflicts

I just posted a question regarding using 2 different plugins that use the UI library but didn't get a meaningful response. I'm not sure what it takes to get help in this JQ arena but this seems to me to be a common problem; at least amongst noobs. How about someone be charitable and explain to me what I need to do to resolve this. I am ...