jquery

[jQuery] give element same width as previous sibling

Using jQuery I want to give a specific element the same width (or min-width in this case) as the element before (sibling). In my case there is an unordered list (UL), which I want to give the same width as the div before. For example: <div style="width:300px;"></div> <ul class="list"><li>item1</li><li>item2</li></ul> <div style="width:2...

Why does jQuery 1.3.2 not find an existing control by ID - what am I doing wrong???

I have a complex html-Form and am using jQ for some of the work there. And spent the best part of this afternoon trying to understand a problem which I was able to trace back to the point where jQuery failed to find an existing control. The command $("#FormView1_CopaBOM973row%18%_dkF").width(); returned null. First I thought about an er...

IE error with parseInt dropdown value (jquery val())

I have an dropdown with the following in it: <select id="shipping" name="shipping_option"> <option SELECTED value="60">R60</option> <option value="90">R90</option> <option value="100">R100</option> </select> Then, when the content of the dropdown is changed, javascript runs updateTotal(), which is the following: function u...

Test jQuery & JavaScript on IE6

What is the best way to test my web app on IE6. Obviously I have IE8 installed on my machine, I've tought about using a Virtual Machine, are there any other options?. I wan't to make sure my jQuery and JavaScript code functions properly.... ...

Using jquery do sorting in gridview of .net?

Need Example of jquery for sorting... ? ...

php: pass large arrays of data through pages

I am trying to to solve a problem where I need to pass large arrays of data to another page, this is my scenario: The user input his/her gmail login information inside a form, I then send this information to an ajax page where i authenticate and fetch all the contacts, if the login is invalid they can try again but if it authenticated I...

form inside form serialize problem

I am trying to submit a form inside another form because I will need first form's outcome in the second form. I tried using form serialize as advised in some other threads. Problem here is, I dont receive an error but it does not function either. <script type="text/javascript"> $(document).ready(function(){ $("[id='vide...

using google.loader.ClientLocation

what will be best way to use using google.loader.ClientLocation to get client country & city name in jquery Thanks ...

Problem with Jquery live-based function

Hi! I am currently dynamically adding content to the page with the help of Jquery. The content that is being added contains some input fields and I need to use some kind of form hint/helper plugin on those. I have tried this one, but i have no idea how to set it up correctly: http://mucur.name/system/jquery%5Fexample/ whilst dealing wi...

JQuery UI Tabs - Spinner Background Image

All, I am using JQuery UI tabs. When a tab is clicked, I want the tab to show the tab title along with a spinner animated gif next to it. When the tab is loaded, the image should hide. How can I achieve this? Thanks ...

uploading file with jquery (not with flash plugins)

Code successfully upload file when I remove jquery script codes and submit. But with the following code, text in output div disappears and new text from other page does not write there either. <script type="text/javascript"> $(document).ready(function(){ $("[name='video-submit']").click(function() { $.ajax({ type: "POST", e...

Looking for Inspiration: How can jQuery be truly useful?

After I read jQuery in Action, I could grok the purpose and strengths of the jQuery Core API. To date, I've used jQuery in several production applications. But now I'd like to graduate from a jQuery novice to a jQuery professional. Do any blogs or books detail how jQuery can be truly useful in production applications? Essentia...

jquery: looking for a lightweight wysiwyg editor

hi all, i searched the web for a lightweight (online) wysiwyg editor and tried several ones - the good ones were just all too bloated to me and the light ones where missing features. is there a good lightweight editor (app. 70kb maximum) which supports also table editing? thx in advance, fuxi ...

close previous jGrowl notifications before showing a new one.

I have a simple app that executes $.jGrowl("loading");. Then the data is displayed $.jGrowl("blah blah blah data goes here"); after crunching data which can take 1 -5 seconds. I've seen a post that mentions using the default.pool to only display one message at a time. The format I want is: Show box 1 crunch data close box 1 show b...

Is a draggable and resizable textbox/textarea possible using jQuery?

I can get the drag to work, but the resizing is not cooperating. (The behavior is evident using either the text box or the text area.) I'm using jQuery 1.3.2 and jQuery UI 1.7.2. Here's my attempt: <HTML> <HEAD> <TITLE>Drag/Resize TextBox Workbench</TITLE> <script src="js/jquery.js" type="text/javascript" ></script> <script sr...

simplemodal, close and then immediately reopen

I'm tyring to use the simplemodal jquery plugin to display some HTML. I have an ajax button in this html that when pressed will return some wider HTML content to the modal box. There doesn't seem to be a way to make simplemodal "aware" of this and have it autoresize, so waht I'd like to do is just kill the modal when the ajax button i...

jquery UI datepicker - not finding defaultDate

I have a form text field that pulls a date from a database (in the format yyyy-mm-dd). <input class="" type="text" name="closingDate" id="closingDate" value="<?php echo $closingdate;?>" />@ Midday I then have a jQuery datepicker that will grab its 'defaultDate' value as the value attribute of the input shown above. $(document).ready(...

jQuery - keydown() on div not working in Firefox

I have the following example code, which should pop up an alert when the div is in focus and a key is pressed. This does what I expect in IE 7, but not in Firefox 3.5.5. What am I doing wrong? <html> <head> <title>JS test</title> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascri...

Lightweight jQuery tree controller?

I need a simple jQuery folder tree controller with the following features: to be based on a nested unordered list expand/collapse drag and drop to reorder ajax support (not sure if I need this) Which is the tree controller you think is the most appropriate for this? Thank you in advance for your time, titel ...

jQuery parent.parent question

I am handling a hyperlink's click event with a javascript function. I am using jQuery's ajax method to delete a record. Then I want to remove the element I just deleted from the page. The page structure looks like this: <ul> <li> <div id="div1"></div> <div id="div2"> <a id="DeleteItem">This is the hyperlink in questio...