Hi,
My popup window (Modal) target is not working.
Page1.asp
========
I have javascript:
function PopNewWin(url)
{
if (window.showModalDialog) {
window.showModalDialog(url,"PopupWin","dialogWidth :500px;dialogHeight:150px"); } else { window.open(url,'PopupWin','height=150,width=500,t oolbar=no,directories=no,status=no,menubar=no,scro llbars=no,resizable=no ,modal=yes'); }}and<a href="javascript:PopNewWin('Page2.asp')">Popup Link</a>Page2.asp=======i have a form with POST method displayed, of which the target window isPopupWin, which is the current one.<%if request.form("action")= 1 then% something here after the form post...<%else% <form action="Page2.asp" method="post" onSubmit="returnValidateForm(this)" enctype="multipart/form-data" target="PopupWin" <input type="hidden" name="action" value="1" ... ... <input type="submit" id="button1" value="Click to Submit"><%end if%>I suppose, that since the modal pop window name is PopupWin, then if in theform post , i specify the target as the same,then after submit, it should use back the same window, instead of openinganother new one, which is what happen now.How can I make it that after submit, it will use back the same window frame.Thank you. 1 2611
"magix" <ma***@asia.comwrote in message
news:47**********@news.tm.net.my...
Hi,
My popup window (Modal) target is not working.
Page1.asp
========
I have javascript:
function PopNewWin(url)
{
if (window.showModalDialog) {
window.showModalDialog(url,"PopupWin","dialogWidth :500px;dialogHeight:150px");
} else {
window.open(url,'PopupWin','height=150,width=500,t oolbar=no,directories=no,status=no,menubar=no,scro llbars=no,resizable=no
,modal=yes'); }}and<a href="javascript:PopNewWin('Page2.asp')">Popup
Link</a>Page2.asp=======i have a form with POST method displayed, of which
the target window isPopupWin, which is the current one.<%if
request.form("action")= 1 then% something here after the form
post...<%else% <form action="Page2.asp" method="post"
onSubmit="returnValidateForm(this)" enctype="multipart/form-data"
target="PopupWin" <input type="hidden" name="action" value="1">
... ... <input type="submit" id="button1" value="Click to
Submit"><%end if%>I suppose, that since the modal pop window name is
PopupWin, then if in theform post , i specify the target as the same,then
after submit, it should use back the same window, instead of
openinganother new one, which is what happen now.How can I make it that
after submit, it will use back the same window frame.Thank you.
ok I solved it by placing:
<Script>window.name = "PopupWin";</script>
at the head of the Page2.asp This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Roy Smith |
last post by:
In the recent "transforming a list into a string" thread, we've been
discussing the fact that list.pop() is O(1), but list.pop(0) is O(n). I
decided to do a little timing experiment. To be sure,...
|
by: Andre |
last post by:
Hi guys, newbie question. I am having trouble with a script that is
supposed to login me to my account on yahoo pop server. When i do this:
import getpass, poplib, re
POPHOST =...
|
by: spencer |
last post by:
Hi,
The code.
def buildStackMajor():
for node in dirStackMinor:
#print 's is the node...', node
dirStackMajor.append(node)
dirStackMinor.pop()
print 'POP the stack...', len(dirStackMinor)...
|
by: Will |
last post by:
Hi,
Sorry to be a pest...
But I can figure this out.
I'm pushing to a stack. then I need to check to see if the word is a
palindrome.
Is the code below correct?
if so, how can I check the...
|
by: John Hoge |
last post by:
I would like to open an exit pop when a user leaves my site, but I
don't want to the back button to trigger the pop if the user remains
in my site.
I'm using the onUnload attribute of the Body...
|
by: Stig Brautaset |
last post by:
Hi group,
I'm playing with a little generic linked list/stack library, and have a
little problem with the interface of the pop() function. If I used a
struct like this it would be simple:
...
|
by: Nicholas Parsons |
last post by:
Howdy Folks,
I was just playing around in IDLE at the interactive prompt and typed
in dir({}) for the fun of it. I was quite surprised to see a pop
method defined there. I mean is that a...
|
by: Scott |
last post by:
As said before I'm new to programming, and I need in depth explaination to
understand everything the way I want to know it, call it a personality quirk
;p.
With pop() you remove the last element...
|
by: j_depp_99 |
last post by:
The program below fails on execution and I think the error is in my
pop function but it all looks correct.Also could someone check my code
as to why my print function is not
working? I havent...
|
by: merrittr |
last post by:
I need some C advice I want to read in string commands from a user
when the user enters a \n
I want to push it on the stac. Then at some point , if the user enters
the word print pop off and print...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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: 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: 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...
|
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...
| |