473,395 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Javascript: modal dialog in FireFox

5
I'm trying to adjust the javascript code made for IE to Firefox (and other browsers).
I have a lot of functions that call the showmodaldialog in the middle of the code, wait for a returnvalue from the window called, and continue with the rest of the code. My problem is that if I call the window.open() method, the flow of the calling method continue to be processed, without waiting for the return value.
A loop cicle after the new window is opened is the only solution I've got without redesign the all application? Thanks in advance and sorry for my simple english.
Jul 21 '06 #1
5 14091
Banfa
9,065 Expert Mod 8TB
Can you not use window.prompt() ? See

http://www.w3schools.com/htmldom/met_win_prompt.asp
Jul 21 '06 #2
natmio
5
Can you not use window.prompt() ? See

http://www.w3schools.com/htmldom/met_win_prompt.asp

Really thank Banfa, I could do so, but I think that it's not really performat (visually talking).
An example (the simplest I have) could be the "change password" functionality. The user click on a menu link that runs a method. In this method a windows is called. This window contains only the old, new and confirm new text fields and a button to confirm. The return value of that windows is the old and new password. The remain code of the main method post the page to execute the ASP change password.
All the methods containing the ShowModalDialog behave in the same manner.
Before redesign the flow of all this method, I'd like to know if there is a elegant way to do the same things. Thanks
Jul 21 '06 #3
Banfa
9,065 Expert Mod 8TB
OK well in that case i do not think there is an elegant way of replacing this MS specific function I think you will have to redesign the flow of your pages.

Sorry
Jul 21 '06 #4
natmio
5
I was afraid that this is the only solution. Thank you very much for your kind support.
natmio
Jul 21 '06 #5
natmio
5
I post the message emailed to me by B4rT. I think this could be a good solution. (I've not tried this yet)

"Here is the solution for your problem:
http://www.hedgerwow.com/360/dhtml/...alog_window.htm
Unfortunatelly it desn't work for Firefox 2 (I don't know yet why)"

Thanks B4rT, I'll try it as soon as possible.
Aug 21 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Gilles T. | last post by:
Hi, How I can refresh a modal dialog in asp.net? I open a modal dialog in first with a dropdownlist. To add a element in my dropdownlist (table), I open a second modal dialog to ask element and...
14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
2
by: jm | last post by:
I have a parent window: <script language="javascript"> function doSearch() { result=showModalDialog("searchmni.aspx?lastname=smith"); alert(result); } </script>
10
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
6
by: tshad | last post by:
I am trying to set up a Javascript popup box that has a way of sending back a message to asp.net on how to process some data. At the moment I am just doing: ...
9
by: tshad | last post by:
This is from my previous post, but a different issue. I have the following Javascript routine that opens a popup page, but doesn't seem to work if called from an asp.net button. It seems to work...
4
by: Peter Bons | last post by:
Hi all, I have an asp.net page with a button that has a javascript onclick method attached to it to display a modal dialog like this: If reportHasParameters Then 'add client side onclick()...
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...
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.