[jQuery] append() and the browser back button

2009-05-08 Thread Dragon-Fly999
Hi, I use append() to add html fragments to a page dynamically. This works fine until the user navigates to another page and then clicks on the browser back button. The dynamically added html fragments are no longer visible. I read somewhere that dynamically added elements are not remembered

[jQuery] Document ready function and the browser forward/back button

2009-05-07 Thread Dragon-Fly999
Hi, I have a few document ready functions on my page. I don't want the functions to get executed if the page is loaded because the user clicks on the browser forward/back button. Is there a way to prevent the document ready functions from getting executed if the user clicks on the forward/back

[jQuery] Re: Document ready function and the browser forward/back button

2009-05-07 Thread Dragon-Fly999
[mailto:jquery...@googlegroups.com] On Behalf Of Dragon-Fly999 Sent: Thursday, May 07, 2009 7:20 AM To: jQuery (English) Subject: [jQuery] Document ready function and the browser forward/back button Hi, I have a few document ready functions on my page. I don't want the functions to get

[jQuery] Disable user input to a div

2009-05-02 Thread Dragon-Fly999
Hi, I have a page with a few divs. One of the divs contains several anchors, text boxes, and list boxes. Under certain error conditions, I need to disable all the anchors, text boxes, and list boxes inside that div (but other divs on that page should not be disabled). What is the easiest way

[jQuery] Re: Disable user input to a div

2009-05-02 Thread Dragon-Fly999
to # and disable the inputs (you can disable inputs), but the best way in my opinion would be to use an overlay. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Dragon-Fly999 Sent: Saturday, May 02, 2009 11:59 AM To: jQuery

[jQuery] A selector question

2009-04-28 Thread Dragon-Fly999
Hi, I have the following html and would like to find out how to select #subgroup under #group2. I tried $(#group2 #subgroup) but that didn't seem to work. Thank you. div id=main div id=group1 div id=subgroup ... /div /div div id=group2 div id=subgroup ... /div

[jQuery] Delayed execution

2009-04-24 Thread Dragon-Fly999
Hi, my page allows the user to enter a number in a text box and a search request is sent to the server (if the user stops typing for 200 ms) using AJAX. The following is the desired behavior. (1) User starts typing a number in the text box. As the user is typing, no search requests are sent to

[jQuery] Temporarily ignore user input

2009-04-18 Thread Dragon-Fly999
Hi, I'm trying to find out how to temporarily ignore user input while a search is in progress. The following is the desired behavior. (1) User enters some information (e.g. name and age). (2) User clicks on the search button. (3) $.post() to execute a search in the background. (4) Show a search

[jQuery] Re: Selector questions

2009-04-16 Thread Dragon-Fly999
...@englishrules.com wrote: On Apr 15, 2009, at 6:24 PM, Dragon-Fly999 wrote: Hi, I have a couple of questions about selectors. I have the following HTML: = Some a elements and input elements here. ... ... a id=info-1-headingInformation Type 1/a div div input class

[jQuery] Re: Selector questions

2009-04-16 Thread Dragon-Fly999
); and $(this).closest('div.wrapper').prev(); On Thu, Apr 16, 2009 at 09:26, Dragon-Fly999 dragon-fly...@hotmail.comwrote: Thanks, Karl. Your suggestions work fine. I just started using JQuery and found the selectors very powerful. I was wondering if the selectors that you suggested

[jQuery] Shorten the JQuery code

2009-04-16 Thread Dragon-Fly999
Could someone tell me how to shorten the following code? Thanks. if ($('.def').length == 0) { $('#no-defs').show(); } else { $('#no-defs').hide(); }

[jQuery] Count how many checkboxes are checked

2009-04-15 Thread Dragon-Fly999
Hi, I'm new to JQuery and I have a question about checkboxes. I have 5 checkboxes on my page and they are passed into my plug-in. I'd like to find out how many of them are checked in my plug-in. The following code works but I'm sure there is a better way to do it (especially the part of the

[jQuery] Selector questions

2009-04-15 Thread Dragon-Fly999
Hi, I have a couple of questions about selectors. I have the following HTML: = Some a elements and input elements here. ... ... a id=info-1-headingInformation Type 1/a div div input class=cat id=first type=checkbox/label for=firstFirst/label /div div input class=cat id=mid