473,473 Members | 1,614 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Jul 23 '05 #1
3 10340
Smellyfrog wrote:

<snip>
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 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=document.getSelection();if(!Qr){void (Qr=prompt('Look up
this word at
yourDictionary.com:',''))};if(Qr)w=window.open('ht tp://www.yourdictionary.com:80/cgi-bin/lkupbttn.cgi?dlookup='+escape(Qr),'yourDictionary' ,'width=480,height=400,top=0,left=0,scrollbars=yes ,resizable=yes,modal=yes');w.focus();

Mike
Jul 23 '05 #2
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 <ms***@access4less.net> wrote in message news:<10*************@corp.supernews.com>...
Smellyfrog wrote:

<snip>
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 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=document.getSelection();if(!Qr){void (Qr=prompt('Look up
this word at
yourDictionary.com:',''))};if(Qr)w=window.open('ht tp://www.yourdictionary.com:80/cgi-bin/lkupbttn.cgi?dlookup='+escape(Qr),'yourDictionary' ,'width=480,height=400,top=0,left=0,scrollbars=yes ,resizable=yes,modal=yes');w.focus();

Mike

Jul 23 '05 #3
Smellyfrog wrote:
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.


Hi Yannick,

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

Mike
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: amith | last post by:
Hi, I have a javascript, calendar.js which i use to enable my client to select the date. This calendar pops up on the click of a gif image. But the problem is that this poped up window is not...
2
by: Matt | last post by:
I want to know how to submit the form data to a modal dialog window? The following is page1.asp, and when the user clicks submit button, it will post the form data to page2.asp by opening a new...
3
by: Balaji M | last post by:
Is there any way to create a modal dialog in the html, which should work in both ie and netscape. the one window.showmodaldialog works well in ie, but not in netscape i found a way to keep the...
6
by: Ramanand.K | last post by:
var docCal function hello() { winCal= window.open("",null,"toolbar=0,status=0,menubar=0,fullscreen=no,width=195,he ight=245,resizable=0,top="+cnTop+",left="+cnLeft); docCal =...
1
by: aarthi | last post by:
Hi there.... Thanx for ur valuable time... :) I have done an application which works fine in Internet explorer.I have used a number of modal windows.i want it to work fine in Firefox also.Were...
2
by: sthrudel | last post by:
Hi! I'm working on a web application in Asp.net and what I would like to have is a cross borwser modal dialog which accepts user's input. I would like to catch what the user clicked on the...
4
by: John Kotuby | last post by:
Hi all... I am bulding an application and wish to use custom Modal dialog windows. According to a couple of recent articles I have seen, the newer Mozilla browsers (actually I think they said...
3
by: Jimmy | last post by:
Is it possible to open a pop-up browser window (modal-style) inside another browser? e.g. // assuming something is calling this function inside the html as some event got triggered function...
9
by: ninhovid | last post by:
Hi... i'm new at dhtml, and i want to use it in help windows (instead of window.open() of javascript)... i'm done it... but it works only in internet explorer.. in firefox 2 and 3 it opens the...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.