Still waiting for a way out!!!
:(

-Betsy Joy

On Apr 26, 4:06 pm, Betsy <joybe...@gmail.com> wrote:
> Hi Angrez,
>
> The Function code that generates the modal dialog box is as below:-
>
> function putComments()
>         {
>                 var val="";
>                 // it does not allow to close the window until comment is 
> entered
>                 while(val==""  || val==null)
>                 {
>                         if (window.showModalDialog){
>                                 
> val=showModalDialog("comments.jsp",window,"dialogHeight: 230px;
> dialogWidth: 370px; dialogTop: 200px; dialogLeft: 304px; edge: Sunken;
> center: Yes; help: No; resizable: Yes; status: No;");
>                         }else{
>                                 val= "Due to browser restriction we can not 
> take the comment."
>                         }
>                 }
>                 document.forms[0].txtComment.value=val;
>         }
>
> I have a Button which calls a submit function which in turn results in
> an OK-Cancel popup. As soon as the user clicks on Ok, the modal dialog
> shows up where the user has to type in some comments and click on
> save. This in turn initiates a simple OK popup.
>
> I need to attach to this modal dialog and perform the required actions
> as well as handle all the popups on the way...
>
> Thanks a lot..
> -Betsy Joy.
>
> On Apr 26, 3:21 pm, Angrez Singh <ang...@gmail.com> wrote:
>
>
>
>
>
> > Hi,
>
> > Can you please separate out that modal code and send us a sample HTML? I'll
> > look into it and try to get some solution. I know handling pop ups is bit
> > tricky and most of the times people face this problem. I'll highly
> > appreciate if you can separate out some code and send that to the list.
>
> > Thanks,
> > Angrez
>
> > On Mon, Apr 26, 2010 at 12:12 PM, Betsy <joybe...@gmail.com> wrote:
> > > Hi all,
>
> > > Would like to have some insight on handling modal dialog boxes
> > > with firewatir...
>
> > > Though the below link is old:-
> > >http://wiki.openqa.org/display/WTR/FireWatir+Release+Notes
>
> > > It says"Modal Dialog is not supported on Firefox, so it is not
> > > supported by FireWatir as well. Need to check if there are any
> > > alternatives methods available to support modal dialog on Firefox
> > > browser."
>
> > > But to my "not so pleasant" surprise the modal dialog box on my
> > > application works perfectly well on mozilla too...
> > > What to do???
>
> > > -Betsy Joy
>
> > > --
> > > Before posting, please readhttp://watir.com/support. In short: search
> > > before you ask, be nice.
>
> > > You received this message because you are subscribed to
> > >http://groups.google.com/group/watir-general
> > > To post: watir-general@googlegroups.com
>
> > --
> > Before posting, please readhttp://watir.com/support. In short: search 
> > before you ask, be nice.
>
> > You received this message because you are subscribed 
> > tohttp://groups.google.com/group/watir-general
> > To post: watir-general@googlegroups.com
>
> --
> Before posting, please readhttp://watir.com/support. In short: search before 
> you ask, be nice.
>
> You received this message because you are subscribed 
> tohttp://groups.google.com/group/watir-general
> To post: watir-general@googlegroups.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to