473,386 Members | 1,997 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,386 software developers and data experts.

Urgent : Problem with ShowModalDialog

Hi all,

I'm experiencing a problem with the ShowModalDialog window. What I do is to
show the window modally then upon a user filling in a couple of fields, the
page posts back to itself and I do a few things then either send back a
javascript alert or a javascript window.close(). Initially, I had a problem
in that the page would post back to the client in a new big window but I
sorted that out today by setting on the smart navigation.

This now works fine when I test it on my Local P.C. but not once the web app
is on my site.

If someone doesn't have a difinitive solution to my problem, could someone
please explain the correct way I should be using the ShowModalDialog window?

Regards
John.
Nov 18 '05 #1
2 1014
John,

instead of using smart navigation just put a line

<base target=_self>

into the <head> section of the modal page.

Eliyahu

"John" <a@b.com> wrote in message
news:OY*************@tk2msftngp13.phx.gbl...
Hi all,

I'm experiencing a problem with the ShowModalDialog window. What I do is to show the window modally then upon a user filling in a couple of fields, the page posts back to itself and I do a few things then either send back a
javascript alert or a javascript window.close(). Initially, I had a problem in that the page would post back to the client in a new big window but I
sorted that out today by setting on the smart navigation.

This now works fine when I test it on my Local P.C. but not once the web app is on my site.

If someone doesn't have a difinitive solution to my problem, could someone
please explain the correct way I should be using the ShowModalDialog window?
Regards
John.

Nov 18 '05 #2
I'll give it a try - thanks!

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:eb**************@TK2MSFTNGP10.phx.gbl...
John,

instead of using smart navigation just put a line

<base target=_self>

into the <head> section of the modal page.

Eliyahu

"John" <a@b.com> wrote in message
news:OY*************@tk2msftngp13.phx.gbl...
Hi all,

I'm experiencing a problem with the ShowModalDialog window. What I do is

to
show the window modally then upon a user filling in a couple of fields,

the
page posts back to itself and I do a few things then either send back a
javascript alert or a javascript window.close(). Initially, I had a

problem
in that the page would post back to the client in a new big window but I
sorted that out today by setting on the smart navigation.

This now works fine when I test it on my Local P.C. but not once the web

app
is on my site.

If someone doesn't have a difinitive solution to my problem, could someone please explain the correct way I should be using the ShowModalDialog

window?

Regards
John.


Nov 18 '05 #3

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

Similar topics

4
by: Jim Mitchell | last post by:
I have a web page that I show using show ModalDialog. The web page takes about 6 seconds to load. No matter what I try, I can not get the cursor to show a "WAIT" until the page is loaded in...
3
by: Chris | last post by:
I'm trying to use the showModalDialog window opener and for some reason even though I have these set to no (an dI've tried 0 and false) the window still shows them. Why? The window opens ok. I see...
3
by: John | last post by:
Hi all, My web app makes use of the ShowModalDialog in a couple of places. In certain instances, the user may click on a "Cancel" image button (there is no code-behind for this) at which point a...
4
by: MW de Jager | last post by:
I want to call ShowModalDialog(...) from my C# code in the code behind page of my aspx page. I do not want to link this to a button, since I want to first do some checking myself before I call the...
3
by: needin4mation | last post by:
Hi, I have an asp:button that has a ShowModalDialog script attribute added to it. When the ShowModalDialog opens the user is supposed to select some data which is then sent back to the calling...
2
by: Sarah | last post by:
I am using the javascript showModalDialog function to open a file upload window. The function opens a page which contains a usercontrol housing the file upload stuff. The control works fine when...
3
by: johkar | last post by:
Just want a verification of logic. This seems to work for IE and Firefox, but I wonder if it would be a problematic test in any of the other latest browsers? Is the use of the "window" object...
4
by: Ralf | last post by:
Here is my scenerio and what I am doing. I am open to other ways of doing this is it makes sense. I have a cell withing a row within a datagrid. When this cell is clicked (its a date field), I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.