Hi Vince, Thanks for responding. Actually, I didn't think there was an easy answer to this.
I want to make sure I understand what you are saying here. Your statement: "The links and inputs within those divs are always on the page, ..." Could you really have meant to write: "The links and inputs within those divs are NOT always on the page, ..." In our situation (as I understand), check boxes are placed in the modal box AFTER the button is clicked, and info comes back from the server, which means the elements aren't always on the page. Paul >From: Vince <[EMAIL PROTECTED]> >Reply-To: [email protected] >To: [email protected] >Subject: Re: [Wtr-general] hi and help with some javascript >Date: Mon, 18 Dec 2006 21:04:16 CST > >Paul, > >We've got a few of these in one of our products, and they are more trouble >than you may have realized... > >Now, you may have to tinker a bit, as there is not a single implementation >of modals with AJAX, but the way the AJAX modal boxes work in general is by >making a hidden div visible, or vice versa. The links and inputs within >those divs are always on the page, meaning that you cannot simply assume >that if the input "exists?" that the button has successfully been clicked >exposing the modal. > >Because you didn't have enough to worry about, the asynchronous AJAX calls >also circumvent Watir's wait() method, meaning that you will have to look >for other indicators to tell you if the postback has returned yet. > >A sample of the asp.net implementation of this modal type can be found >here: http://ajax.asp.net/ajaxtoolkit/ModalPopup/ModalPopup.aspx > >The quickest and most effective way I was able to create tests for pages >that utilize these modals was to have some help from the devs, and to make >a lot of assumptions. This is pretty new territory for everyone, so good >luck, and do share any tricks you come up with. >--------------------------------------------------------------------- >Posted via Jive Forums >http://forums.openqa.org/thread.jspa?threadID=5830&messageID=16306#16306 >_______________________________________________ >Wtr-general mailing list >[email protected] >http://rubyforge.org/mailman/listinfo/wtr-general _________________________________________________________________ Get free, personalized online radio with MSN Radio powered by Pandora http://radio.msn.com/?icid=T002MSN03A07001 _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
