Modal Window in Firefox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Smellyfrog

    Modal Window in Firefox

    Hi,

    I'm a newbie in mozilla web development. I've been developping apps
    for IE and Netscape for years though.
    After searching the internet (groups google etc..), I found a way to
    pop a modal window using a XUL page.

    Here is my question: despite seing examples of how to return a value
    to the caller window, I have been unable to make this work. Is there
    anyone who would have a TESTED very simple example on poping a modal
    window that would receive one argument and would return a result?

    I want to use this to pop a calendar page and return the date chosen.
    I have the code for the calendar, but I need the mechanism to get the
    date back. This window has to be modal by requirement.

    Many thanks
    Yannick
  • mscir

    #2
    Re: Modal Window in Firefox

    Smellyfrog wrote:

    <snip>
    [color=blue]
    > Is there
    > anyone who would have a TESTED very simple example on poping a modal
    > window that would receive one argument and would return a result?[/color]

    I use this on Netscape 7.2 and Firefox 1 PR to open a modal window to
    the dictionary site, (it looks up a word and give you
    dictionary/thesaurus hits free).

    javascript:Qr=d ocument.getSele ction();if(!Qr) {void(Qr=prompt ('Look up
    this word at
    yourDictionary. com:',''))};if( Qr)w=window.ope n('http://www.yourdiction ary.com:80/cgi-bin/lkupbttn.cgi?dl ookup='+escape( Qr),'yourDictio nary','width=48 0,height=400,to p=0,left=0,scro llbars=yes,resi zable=yes,modal =yes');w.focus( );

    Mike

    Comment

    • Smellyfrog

      #3
      Re: Modal Window in Firefox

      Hi Mike,

      Thanks a million for your reply. It did give me a new approach on how
      to pop a window as modal.
      However would you know how to return a value to the caller window?
      This is my main problem at the moment.

      Thanks
      Yannick

      mscir <mscir@access4l ess.net> wrote in message news:<10oimvd5d 238j83@corp.sup ernews.com>...[color=blue]
      > Smellyfrog wrote:
      >
      > <snip>
      >[color=green]
      > > Is there
      > > anyone who would have a TESTED very simple example on poping a modal
      > > window that would receive one argument and would return a result?[/color]
      >
      > I use this on Netscape 7.2 and Firefox 1 PR to open a modal window to
      > the dictionary site, (it looks up a word and give you
      > dictionary/thesaurus hits free).
      >
      > javascript:Qr=d ocument.getSele ction();if(!Qr) {void(Qr=prompt ('Look up
      > this word at
      > yourDictionary. com:',''))};if( Qr)w=window.ope n('http://www.yourdiction ary.com:80/cgi-bin/lkupbttn.cgi?dl ookup='+escape( Qr),'yourDictio nary','width=48 0,height=400,to p=0,left=0,scro llbars=yes,resi zable=yes,modal =yes');w.focus( );
      >
      > Mike[/color]

      Comment

      • mscir

        #4
        Re: Modal Window in Firefox

        Smellyfrog wrote:
        [color=blue]
        > Thanks a million for your reply. It did give me a new approach on how
        > to pop a window as modal.
        > However would you know how to return a value to the caller window?
        > This is my main problem at the moment.[/color]

        Hi Yannick,

        Would you mind explaining what you want to do in a little more detail?

        Mike

        Comment

        Working...