jquery

Sorting table data with JQuery, table has columns with dates and dollar signs, which plug-in is good?

I have to sort a table and looking for right plugin. Some of the columns have dates and some have currency signs($) as shown below. Are there any JQuery plugins available for sorting this kind of data. ...

Avoid go to link of block element while clicking on link inside

I have a LI element whith a link, and other links inside. It would be something like this: jQuery: $('li').click(function() { window.location = $(this).children('a.li-url').attr('href'); }); HTML: <ul> <li> <a href="http://www.link.com" class="li-url"></a> <h1>Title</h1> Lorem ipsum dolor <a href="htt...

jquery "everyTime" function

I'm trying to refresh my recent list every 5 seconds. I was looking at ajax and found jquery. I found a function known as "everyTime" This is what I have so far, I don't really know how to get it to work... It's not working:\ <html> <head> <script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; <script> $(document).ev...

Relative position in DOM of elements in jQuery

Given two jquery objects, Is there some way I tell which one is "further ahead" in the document tree than the other? In other words, with a document <p id="p1" ></p> <div id="div1"> <p id="p2"></p> </div> <p id="p3"></p> Is there some function that behaves thus? $("#p1").isBefore($("#p2")); // == true $("#p3").isBefore($("#p2...

Hide Toolbar on top of iPhone Keyboard

Hi, is there anyway in javascript or HTML to hide the toolbar from iPhone keyboard. I only have one form input and I don't want the user to see the next, previous or done. If anyone can help that would be great, I am using PhoneGap ...

Conditional logic for 2 forms with one submit

With the help of Nick Craver, I am now able to have two forms with two separate PHP processing scripts use one submit button. I need to expand on this a little bit. I need it to work so that if you have a value in input#retUser it submits with formOne action. If you have a value in #fname && #lname && #email1 it submits with formTwo Acti...

Form Input from Link

Hello, So I have: <input type="text" id="keyword" placeholder="placeholder" value="" /> What is the best way to go about defining the value based on the link? ie. http://mysite.com/valueplacer?=thisisthevalue Does this: <input type="text" id="keyword" placeholder="placeholder" value="thisisthevalue" /> Thanks! ...

easiest way to alert a form's data

Simple question I can't seem to get right. I have a form #formOne, I need to alert it's data. Something isn't working, $("#formOne").submit(function(){ alert("you are submitting" + data); )}; If not data what do you use after +? Thanks! ...

Stop a form from being submitted unless specified amount of checkboxes are checked

Hi, I am creating a page that allows users access to a certain section of my website if they click 8 out of 25 checkboxes in the right sequence. First of all thanks to Reigel for the orignal code, he took what I had and rewrote it, its way better than what I initialy started with. Also thanks to Peter Ajtai for helping me optimize the c...

show hide content depending if a checkbox is checked

I'm pretty new to jquery so I'm proud of myself for what I've figured out so far. What I'm trying to do is show/hide a list of options depending on the approprate check box status. Eveything is working just fine but I can't figure out how to check to see if a check box is checked on load I know I should be able to use is.checked right no...

DOM weirdness with jQuery Cycle

I'm getting images from directories dynamically for some slideshows in a WordPress site I'm building. Sometimes they show up on pages, sometimes they don't. Looking at this I'm sure I need some sort of preloader to initialize my images into the DOM before the cycle plugin does what it does, but I just don't know where to shoehorn the pe...

Images are only visible the first time in Safari

In safari, the images in the middle section load fine the first time you opend this page http://cacrochester.com/ If you refresh the page, the images are not visible. It seems to only be in Safari (so far on browsers that i've tested). Anyone know why? I'm using the NivoSlider btw. ...

How can I make a JQuery UI slider and a textbox coexist on a mobile browser?

I'm trying to have a jQuery UI Slider on a webpage to be displayed on an Android phone. The slider does not work by default, but when JS code that converts touch events to mouse events is dropped in (http://ross.posterous.com/2008/08/19/iphone-touch-events-in-javascript/), the slider works. Only problem being, with the new code, if ther...

Keeping code from being exploited, Securing Javascript and Forms

Hi, I am creating a page that allows users access to a certain section of my website if they click 8 out of 25 checkboxes in the right sequence. First of all thanks to Reigel for the orignal code, he took what I had and rewrote it, its way better than what I initialy started with. Also thanks to Peter Ajtai for helping me optimize the c...

sAjaxSource doesn't get executed in IE

I am using jquery datatables serverside in my MVC application. When I put a break point to my controller method “FillTable” the execution only reaches on the first occasion on IE. If I go back and reload the page and the data is different the function doesn’t get called. When I try Firefox the break point is hit on each reload without an...

Javascript slideshow not displaying the height of images

Hello Im using the following code on my website Contact Lenses Aus <p> <script type="text/javascript"> // <![CDATA[ jQuery(document).ready(function() { slider = jQuery('#slider-content'); slider.before('<div id="stripNav0" class="stripNav">').cycle({ fx: 'scrollLeft', timeout: 6000, ...

replace a divs contents with the last entry

I have a div with a bunch of list items in it. I just want to remove all the contents inside except for the last list item. Is it possible to use $(this) in reference to a div id without putting it inside some sort of click function? Something like this? (I know its wrong) $('div[id='+id+']').html($(this).(".list-item:last")); If not...

Beginner jQuery Questions (FF/IE issue)

I've been playing around a bit, with jQuery, just trying to do some replacing of text fields on click of a link and hiding/showing of content items as well. It seems to be working just fine in IE, but I can't seem to get it to work in FF. My jQuery: $(function() { $(".articles a").click(function() { articlenumber = "1" $(artic...

How to pass page or master page object to AJAX page method

I wrote a page Page method in my aspx page. in web service method I need to call FindControl method return textbox and get text box value. But my findControl will take MasterPage object to iterate. Please see my code <script type = "text/javascript"> function ShowCurrentDateTime() { $.ajax({ type: "POST", ...

Why doen't val work on a cloned object?

I can't get it to work. ​<div id=​​​​​​​​​​​​"xrod"><input class="yrod"></div> Why doesn't this line of jquery not set the value of the cloned input to 5? var row = $('#xrod').clone(); row.find('.yrod') .val(5)​; $('#xrod').append(row.html()); ...