jquery

add "readonly" to <input > (jQuery)

How can i add "readonly" to a specific <input >? .attr('readonly') does not work. ...

jQuery code failing silently in IE

I have a page which works fine in Firefox and Safari on OS X and Chrome on Windows. The expected behaviour is that when you hover over one of the blue boxes an icon will appear to indicate whether or not the box is editable. If it is editable (pencil icon) then clicking it should bring up an overlay with an editing box. In IE8 (and bel...

jquery closest() selecting

I am having issues getting my remove element function working. I have this function: //Remove an Item From Any Group function deleteItem (selector) { $(selector).closest("li").fadeOut(500, function() { $(selector).closest("li").remove(); }); } Then this to call it, $("a.delete").live('click', function() { deleteIt...

jQuery with ASP.NET WebForms for a poor old server dev....

OK, being a server developer, this Javascript voodoo on the ASP.NET page (based on a master page) rendered on the client is a bit too much for me, it seems :-) I decided to try to use jQuery to handle some client-side enabling and disabling of UI elements. I have two radio buttons (rbnDoLimit and rbnDontLimit), and three checkboxes (mo...

Selecting Multiple Options creates Multiple Inputs

I have a select field in a form that allows you to select multiple options. I need to create a new input textbox for every number of options selected, automatically. For example, if you select on option in the select box, one input will appear below it. If you select 5, 5 inputs will appear below it. I'm not sure if this can be done ...

Unloading/Removing content from an iFrame

Is there anyway to unload a page that has been loaded inside of an iframe? I do not want to have to change the iframe src to a blank page if possible. I am basically looking for something that will do something like this $('#frameID').attr("src",""); except that code does not seem to clear the previously loaded page. Is there a "unload"...

Keyboard navigation with Jquery

In Jquery, how can I set an event such that when user is browsing some pictures, and presses the left/right arrow key, it calls a function which can be used to show the previous/next photos? I only need to know how to check if the key pressed was the right/left arrrow key and ignore all other key preses. The image will be in its own div...

JQuery if statement

I've written some JQuery code to iterate over some checkboxes on an ASP.Net web page, and am seeing 2 very strange problems with the if statement embedded in the $.each function. The code is selecting my checkboxes just fine, and as the code iterates through the $.each function I can clearly see that the objValue.checked is true or fals...

Showing jQuery calendar in a jquery dialog popup

Does anyone know of a way to show a jQuery calendar in a jQuery dialog? The calendar seems show behind the popup dialog. I tried adjusting the z-index of the outmost calendar div, but it still didn't work. The z-index of the overlay and the dialog is 1001 and 1002 respectively. $('#ui-datepicker-div').css('z-index', 1005); ...

Thickbox and Google Maps Link

I'm using jQuery's thickbox and want to use it for a Google map link(s). The approach that I've seen does not work for the link (URL) format I'm using. The URL format: http://maps.google.com/?q=1200 Pennsylvania Ave SE, Washington, District of Columbia, 20003 So if I use this: <a class='thickbox' href='http://maps.google.com/?q=1200...

jquery UI Sortable with table and tr width

Hi i am using jquery ui sortable to make my table grid sortable.The code seems to work fine but because i am not using width to TDs when drag the TR srink the content. For examle IF my table row is 500px when start drag it becames 300px.I assume thats happening because no width is defined at grid.Thats because i am using 2 class for TDs...

How to integrate a website with a Java back end?

Is JSF the only option? The HTML front end uses JQuery as a front-end scripting framework. ...

How do I save a page with $.ajax()

How do I save items from an aspx page using $.AJAX() ? Should I use a WebService Method and pass the data to the webMethod and process save.? like $.ajax({ type:"POST", url:"Save.aspx/MySaveMethod", data:{????} }); What does data: contain. Is there a better way. I am using ASP.NET 2.0 and JQuery. ...

JavaScript: DOM load events, execution sequence, and $(document).ready()

I just realized that I lack the fundamental knowledge of what exactly happens as a page is being loaded into a browser. Assume I have a structure like this: <head> <script src="jquery.js" type="text/javascript"></script> <script src="first.js" type="text/javascript"></script> </head> <body> ... <script type="text/javascript" id="midd...

jqModal Window Effect goes off when form Submission

I am invoking a modal window using jqmodal and in it contains a form. When I try to submit the form, the modal window effect goes off. Is there a way i can retain the effect even when the form refresh happens. Ajax submit is 2 complex because of tapestry elements. One more requirement is how do i get to load another html in the same AJ...

Setting a <input> element's display text to "dimmed"

Given this HTML - how can I extend my jQuery to make the text being displayed by the <input> elements appears "dimmed" or grayed out when I select the "Do Not Limit" radiobutton? See the sample here: http://jquery.bluenose.ch/jquerydemo.html <script type="text/javascript"> $(document).ready(function() { $("#rbnDontLimit").click(fun...

jQuery UI Dialog individual CSS styling

Hi all, I'm looking to style a modal dialog (using UI Dialog) with unique CSS that is separate from the traditional dialog, so in essence to have two jQuery dialogs that each look different. I've styled one, for example, <div id="dialog_style1" class="dialog1 hidden">One content</div> and another <div id="dialog_style2" class="dialo...

jQuery Draggable: Image Flicker

I've been developing an Image panning tool, and after a kind member directed me to the draggable plugin for jQuery, I have most of it completed. Right now if the user drags the image (contained inside a div of about 300px by 300px), the image will first flicker, then pan. This problems seems to occur after a mouse down event, on the mo...

Are there any Ajax windowing frameworks out there?

I have a project with a lot of pop-up layering going on and while i will have one layer open, that layer will effectively serve as another window. I'm currently managing this with _json specific return pages that just return json objects and the layer acts on that. Each call from the layer is from a jquery .ajax call which processes ...

Can't get thickbox to work if it is linking from a masterpage?

I have a page called test.aspx and in that page, I have the following link: <a href="../help/default.aspx?height=100&width=500" class="thickbox"> <asp:ImageButton ID="ibtnHelp" runat="server" ImageUrl="~/images/needhelp.jpg" /></a> When I click on the link, it opens up the default.aspx page unde...