jquery

Before every ajax request using jQuery, I want to do sth.

means, do sth, then request using jQuery, like a hooker. How can i do this? ...

Jquery form field value

How can I the HTML string <br> from this HTML FORM pass to the DIV using Jquery? HTML FORM is: <form action="" id="submit_wall" name="submit_wall" method="post"> <textarea cols="50" rows="5" id="message_wall"></textarea> <button type="submit" id="fst" class="cfst">send</button> </form> <div id="wall"></div> <div class="msg"></div> ...

A function of a slider value suitable for zooming

I'm using the jquery ui slider for zooming. It's supposed to zoom from 25% to %500, and about half of the range is used for the first %100 of the size. The slider has values from 1 to 100. I need some function that can be used to calculate zooming based on the slider value, e.g. function getZoom(sliderVal) { //return number from 25...

Jquery: change event to input file on IE

Hello guys, I already looked all around, and can't find a solution: I have a form to upload files, and it should fire the submit after the file selection. On FF/Chrome it goes weel, and submit the form after file selection, but I can't do this on ie. Already tried with click/propertychange but nothing happens. Some code I already tried...

JQuery "hasparent"

The JQuery "has" method effectively selects all elements where they have particular descendants. I want to select elements based on the fact they have particular ancestors. I know about parent([selector]) and parents([selector]) but this selects the parents and not the children with the parents. So is there an ancestor equivalent of "h...

Using jQuery to return next list item in a filtered list.

I have the following list <ul> <li id="item1">Item 1</li> <li id="item2">Item 2</li> <li>Item 3</li> <li id="item4">Item 4</li> </ul> Using jQuery, I'm trying to traverse the list of LIs whose IDs start with "item". var nextItemWithItemID = $("#item2").next("li[id^='item']); However, when I run this code, I end up retrievin...

How can I test if two jQuery wrapped DOM elements are the same?

I'm writing a sortable list implementation in jQuery (b/c of the infamous scroll-in-div issue, any new solutions for this?). However, I don't know how to compare the elements (triggered on mousedown/mouseup) after they've been wrapped in jQuery. In prototype, it was always ele.domNode. This is what I'm trying to accomplish in essence......

How to update sql query with jquery

Hello, I am still trying to update my sql query more dynamically but finding it difficult since im new to both PHP and jquery. I have one main page (pagination.php) that looks like this: <?php function generate_pagination($sql) { include_once('config.php'); $per_page = 3; //Calculating no of pages $result = mysql_query($sql)...

JQuery - add more than 1 comment doesnt work

By this code I add comments to a posts. But there is a problem - the first comment work, but i am not able to add next. I use livequery, so it shold work. Can you help me? $('form.comment_form').livequery('submit', function a() { var element = $(this); var wall_post_id = element.attr("id"); var wall_messag...

jQuery event handler not working

Hi, i have a form like: <form id='new_key' action='/foo/bar' method='post'> <input type="text" id="u"> <input type="submit" value="submit"> </form> I can bind a jquery event to this element like: <script type="text/javascript"> $('#new_key').ready(function() { alert('Handler for .submit() called.'); return false; }); It works a...

JQuery and Google Visualization

Hello, I am using JQuery in my page. Part of my page is a Google Visualization table, and trying to use JQuery from within this table causes an error.. Basically I used a form submit() event to all forms with class "lala". As you can see in the example below, the two forms outside of the Google Visualization table work fine. However, th...

Will this JQuery plugin work in the iPhone and Android browsers? (they use webkit)

I want to use this LazyLoad plugin for JQuery. http://www.appelsiini.net/projects/lazyload But, they say this at the bottom of the page: Due to webkit bug #6656 Lazy Loading wont give you any improvements in Safari. It will load all images you wanted it or not. It seems jQuery 1.3.x breaks the plugin for IE. All images ...

set html select option with jquery

I have a list in a select. After selecting an option i do a check and occasionally i want to change the selected to index 0 (first option, value=""). How do i set the select to that option with jquery? ...

Slider control for volume - JQuery/Javascript

I am looking for a fancy Slider control using JQuery/Javascript. The native JQuery slider is rather bland for this requirement. The slider will be used to specify the volume in the increments of 5. So, this slider should only let user slide in increments of 5. One nice to have feature is to be able to show label above the slider positio...

Is there a JQuery plugin for this?

I am currently using YUI datatable, but it is buggy: http://developer.yahoo.com/yui/datatable/ Is there another similar plugin that can do this , in JQuery? ...

Javascript/AJAX/jQuery - Object Expected Line 1 only in IE

http://pastie.org/856698 Anyone have any idea why the script is causing this error? It doesn't throw an error in Firefox, only IE. Any ideas? A link to the final script can be found at http://www.proskimboarding.com/codingtest/Public/registration.php ...

How would I relatively position widgets on a web page with jQuery

Hello, I'm writing a web app that contains a web page that will be filled with (movable and draggable) widgets. Any clever ideas of how I could position them so they would be visible on all resolutions 1024+ and keep their relative distances the same both from the edge of the screen and from each other (although overlapping would obvious...

embedded iframe form used to upload files. Doesn't work on first submit, works on second.

I have an embedded iframe form which takes a file from a type="file" form field and uploads it using a progress bar: <form action="sell_upload.php" method="post" id="uploadform" enctype="multipart/form-data"> <input type="hidden" name="UPLOAD_IDENTIFIER" id="progress_key" value="<?= $uuid ?>" /> <input type="hidden" name="uploa...

XHTML Validation problem within Javascript

So, I read the W3C validation FAQ about why some javascript causes validation errors but didn't seem to find an answer regarding my problem. If you try to validate http://www.proskimboarding.com/codingtest/Public/registration.php you'll receive a bunch of errors within the javascript code... anyone know of a solution for this? (mainly ...

Get values of textboxes created dynamically

Hi I have a list of textboxes created dynamically accroding to the user selection on aspx page. I want to get and store into an array the value of these using Jquery, javascript. how can i do that? is it possible to loop through all the textboxes in a page? Thanks ...