jquery

Dynamically Inserted DOM Elements are not Clickable using $.click()

I'm using jQuery to take the value of a form element and place it inside a list item tag. There is a maximum value of three list items (these are to become tags for an image). The problem is that i want people to be able to remove any erroneous tags they've entered by clicking on them, but the items (which are dynamically inserted into ...

JQuery Slide up

This should be quite simple to do in JQuery. I can get it to partially work but not fully. All I need to have is an image in a <div> with another image that covers the bottom section partially. When I mouse over the image or the image partially covering it, the partially covering image slides up to completely cover the first image and t...

jquery modal dialog and Internet explorer

as usual , interner explorer is causing trouble. I have a modal dialog, which is opened when a button is pressed. When the command is not triggered by the button, it all works just fine. When i have it triggered by the button, only the modal overlay appears, but not the actual dialog. $('#orderbutton').click(function (){ $('#dia...

jquery .ajax request blocked by long running .ajax request

I am trying to use jQuery's .ajax functionality to make a progress bar. A request is submited via .ajax, which starts a long running process. Once submited another .ajax request is called on an interval which checks the progress of this process. Then a progress meter is updated using this information. However, the progress .ajax call o...

Need some help moving html from a div to a text area field

I'm using nicEdit but it doesn't play well with our CMS. I need to take the formatted content that is generated by nicEdit and copy it to the appropriate text area field. Here is what I have. <div contenteditable="true" style="width: 542px; margin: 4px; min-height: 120px; overflow: hidden;" class=" nicEdit-main "><span _moz_dirty="" s...

jquery sortable lists with dynamically generated list ids

For my webpage, I have a number of lists which I'm generating dynamically from the database. Each list is generated like so: <ul id = "<%= "subgroups_for_tumourgroup_" + item.ID %>"> I'm trying to make them sortable using jquery's sortable list <script type="text/javascript"> $(function() { $('#subgroups_for_tumourgroup_1')...

With jQuery, is it possible to daisy-chain selectors?

Is it possible in jQuery to daisy-chain selectors like so? var sData = $('#myTableRow TD:nth-child(3):nth-child(2)').html(); ...

Unable to toggle div on top.document

I have an iframe that returns data to the top.document window just fine by using: $("#someDiv", top.document).html(data); The above works fine. Now I want to be able to hide a div on the top document and I try: $("#someDiv", top.document).toggle("slow"); It is not working... any ideas? ...

jQuery IE7 bug on multiple .hide listeners

I'm building a product page, can be seen here (http://n9nemedia.net/v2/products/), and the script in a singular fashion (not hiding multiple divs with one listener works perfect - can be seen here http://www.supercentral.net/downloads by clicking on "Read List" under Zombie Map Pack) works perfectly. My question is, what can I do to ma...

JQuery adding li to ul after information has been saved to the database.

I currently have everything working/saving to the database using $.post, but I am unsure of how to display the new list without reloading the page once the data is saved. I have also tried $(document).ready() but have had no luck there either. <script> saveBullet = function(action) { $.post('/ManufacturersProductsLinesFeatures/...

Does storing JSON objects in the class attribute of a tag Validate (XHTML Strict)?

I'm looking at using the jQuery MetaData Plugin. Looks very interesting but... <li class="someclass {some: 'data'} anotherclass">...</li> <script>alert($('li.someclass').metadata().some);</script> does this code validate? http://docs.jquery.com/Plugins/Metadata/metadata#options ...

jQuery sort unordered list alphabetically and numerically based on inner element value(s)

Code as reference: http://jsbin.com/aboca3/2/edit In this example above (thank you SLaks) I am truncating long unordered lists and providing a toggle link to view the entire thing. The issue, from a usability standpoint, is that as a full list, it is best sorted alphabetically, which will be the default sort order (the source order). ...

given up on gridview fixed header

Working on: asp.net Gridview Control ok i tried and tried and maybe searched the entire web... but i could not find anything good for my asp.net gridviewcontrolwhich whill fix the header and allow sorting. but most of all work in all browsers and not just IE and Firefox alone.... chrome was the main problem nothing worked... this was on...

Change input text to regular text on blur and ability to edit jQuery

I'm creating a form where I'm eliminating the use of a save button. The form is made up of input text boxes and textareas. After the user enters data into the input field, I want to trigger an onBlur function and change the input into a span that contains the information that the user entered. I also want to have the ability to edit thi...

Frustrating CSS Behavior with Cascading

I have a menu structure that is supposed to highlight each item as it is rolled over , and then some menu items expand downward into dropdown menus when clicked. The behavior works okay, but the problem is this. Within the <li class="dropdown">, the styles of the a: tags are overriding anything I am specifying. Even if my style comes a...

Determine if a string contains any specified values.

Is it possible to do something like the following in jQuery: if($('UploadField').val().contains('.gif','.jpeg','.jpg','.png')) { } ...checking for an array of values? ...

How do I not allow typing in a text input field using jQuery?

I am using the jQuery datepicker on a text input field and I don't want to let the user change any of the text in the text input box with the keyboard. Here's my code: $('#rush_needed_by_english').keydown(function() { //code to not allow any changes to be made to input field }); How do I not allow keyboard typing in a text input fi...

Jquery Events dont work after ajax/innerHtml

i have many events such as $('.hidefile').click(function (event) { On page load and on certain conditions i use ajax to get the html for a certain div and fill it in with .html(htmlstring). It took me forever but i notice that the events do not work when i do this. How do i fill the div with html and have the jquery events work with i...

How do you make jQuery bind events to elements loaded via Ajax?

I'm using the .load() function to load a section of html that has some jQuery functionality that is bound to a certain class. =/ thoughts? ...

Image Auto Resize / Scaling with JQUERY

Hello, I have a div with width 600 px. I want to pull the images dynamically. Images size are varies. What I want to do is, if the image size is more than 600 px, we will resize the image to 600 px to fit into the div. But if the image is not more than 600px, we will leave as original image width. How can i achieve that by using jque...