[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 b

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

2009-05-07 Thread Dragon-Fly999
al Message- > From: jquery-en@googlegroups.com [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, >

[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: Disable user input to a div

2009-05-02 Thread Dragon-Fly999
ite the link 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

[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 o

[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. ... ... ...

[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] 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] Re: Selector questions

2009-04-16 Thread Dragon-Fly999
.find(":checkbox"); > > and > > $(this).closest('div.wrapper').prev(); > > On Thu, Apr 16, 2009 at 09:26, Dragon-Fly999 wrote: > > > > > Thanks, Karl. Your suggestions work fine. I just started using > > JQuery and found the selectors very po

[jQuery] Re: Selector questions

2009-04-16 Thread Dragon-Fly999
15, 10:31 pm, Karl Swedberg 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 elements and elements he

[jQuery] Selector questions

2009-04-15 Thread Dragon-Fly999
Hi, I have a couple of questions about selectors. I have the following HTML: = Some elements and elements here. ... ... Information Type 1 First Middle Last ... ... More elements and elements here. = Question 1: In the click handler of the first c

[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 cod