jquery

jquery iphone ui and jqtouch , which is better ?

jquery iphone ui and jqtouch they are lib of iphone , i want to choose one to use, which is better ? thanks ...

TextArea Caret Coordinates jQuery

Hi there. I'm looking to get the X/Y coordinates of the caret within a textarea on key down. I've searched vigorously but without any luck whatsoever, it seems you can get the position, but not the on-screen X/Y coordinates. Cheers! ...

Animate addClass/removeClass?

Live example here: http://timkjaerlange.com/foobar/stack-stuff/august-18-2010/test.html I want to animate addClass and removeClass on this interface that I've made. However I don't know how to go about this. I have three boxes that I want to switch between based on when the user clicks a link. <div id="boxes" class="slideshow"> ...

jQuery/UI/Tab ajax not loading flash cfcharts in IE7/8

Hello, I have a coldfusion page that uses JQuery UI TAB to load another coldfufion page which includes a cfchart in flash format. But this works completely fine in FF.(everything was loaded, flash cfchart, tables ...) <li><a href="xxx.cfm?param=#xxx#">XXX</a></li> However in IE: all of the html elements that are generated with the fl...

Event binding to buttons in FireFox requires an alert() box

Hi there I have a piece of javasacript code that searches through several iframes for buttons with specifi id's. When I find the button, I bind a click event to the button. This works perfectly fine in IE, but only works in Firefox if I alert something, and upon clicking ok on the alert box, the button clicks works fine. Here's my code ...

Jquery problem with IE working fine in FF

Hello i have this code that works perfect in Firefox but in IE 8 doesn't work and doesn't give me any error ?! $(".shp_div").change(function () { var str = ""; $("select option:selected").each(function () { var countprod =parseInt($("#countprod").val()); var str2 = $(this).val(); str2_array = str2.split('|'); ...

Why isn't my JQuery working properly? (scrolling news ticker)

I did everything in this tutorial: http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html It should be pretty simple. <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"&gt;&lt;/script&gt; <script language="text/javascript" src="http://www.gcmingati.net/wordpress...

Remove non breaking space (&nbsp;) from between elements using jquery

How can I use jquery to remove non-breaking spaces (nbsp) which appear between html elements? So, for example, the following code is generated by a cms: <div><span>content</span>&nbsp;<span>content</span></div> I am able to target the elements using slectors. The following page suggests an answer to remove normal whitespace, but no...

jqGrid - Hiding columns in the grid view but showing them in the edit form

I'm trying to create a grid that will show more details (with possibility for editing) in the form editing mode than in the table view. Is there a way I can define a column to be hidden in the grid but shown in the row editing dialog? (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing#editgridrow) ...

Firefox empty POST with $.ajax

I've got a jQuery function that's posting to the server using $.ajax and it works fine in IE, Chrome and Safari, but in Firefox, no POST values are being received by the server. When i query the form collection (using classic ASP), i get undefined for all the values $.ajax({ type: 'POST', url: url, dataType: "text", da...

JQuery element within a certain div but ending with...

<div id="a"> <select id="ctl100_placeholder1_ctl201_dpReasons"></select> </div> <div id="b"> <select id="ctl100_placeholder2_ctl202_dpReasons"></select> </div> <div id="c"> <select id="ctl100_placeholder3_ctl203_dpReasons"></select> </div> I am using asp.net dropdownlist which renders as above and I can get hold of the ...

$ is not defined- You've used the same selector more than once- Selector: ".stripNav ul li a"

Hi It might be asked before but I am new to Jquery and using just simple script "Slider" and now i need other script on same page named "Gallery". Both are working correctly on different pages but if i am trying to use both scripts on same page, "Gallery" is working but not "Slider", firebug is saying, "$ is not defined- You've used th...

Add rows to a table inside a repeater in client side with jquery

I have a repeater which contains a table. I am giving the user the ability to add a new row in the repeater by adding a new row to the table. Can anyone give me ideas? As I am very new to jQuery, can someone give sample code? ...

Search for input name

On my form, I store inputs in this way: <input name="tokens[0][A]"> <input name="tokens[1][B]"> <input name="tokens[2][A]"> etc. Is there a way, using javascript or jquery, to easily grab all the inputs with [A] as their final index? All I actually need to do is count the number of inputs with an [A] index. ...

JQuery How to select only the current li and not parent.

How do you select using JQuery the current li and not its parents. In my sample below, when I hover over a li that has a parent li the 'world' gets displayed on the parent as well as the current li. I would like to only display the 'world' in the current li. How do I do this? style: a.show-anyway { display: block; } a.world { di...

jQuery to set the value of a hidden field?

I want to be able to set the value of a hidden field to the value of a rel attribute in a link: $("#currentDir").val($(".jstree-clicked").attr("rel")); But this doesn't work. This simpler expression works just fine however: $("#currentDir").val("TEST"); That sets the hidden field with id = currentDir to the value "TEST". But why do...

Javascript smooth scroll on page load?

PHP example: http://davidwalsh.name/dw-content/onload-smooth-scroll.php?scrollto=c4 Scrolling to a #link within the current page is easy, but I'm trying to load a new page then scroll it down after it has loaded. Here's how my links are set up: <a href="page1.php#top">Page 1</a> <a href="page2.php#top">Page 2</a> <a href="page3.php#to...

jQuery parent and child page

Hi, could anyone help me with that. I have a jquery lightbox. So I would like to use it as child page and as soon as you close it refresh update panel within parent page. I'm not sure how to set the relationship between page and lightbox. Thank u in advance for valuable examples :) ...

Asp.net ajax+ Jquery: EndRequestHandler(sender, args)

Hi, I am working on asp.net, addon with JQuery. After registering endRequest inside ready() function of Jquery. Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); For the function: function EndRequestHandler(sender, args) {} How could I retrieve the ID of the button where I click based on 's...

hide/show other input element on select change?

Typical noob question. :-) I looked at some of similar questions raised here, the solutions are too complicated for me to make them work. Or they don't really work? Anyway what this code does is it hides/shows the Province input when the option selected is USA/notUSA. The default selection is the option with value United states. To make ...