Post The Form Data And Open The Page As A Modal Window
Is it possible to post the form data and open the page as a modal window?
Because when I do the following, it will open page2.asp in a new window, but
I still able to manipulate page1.asp. I want to make page2.asp as modal
window.
I want to post the form data (http://server/page1.asp) to a modal dialog window (http://server/modaldialog.asp) with a desired height 200px by width 200px.
Here's my attempts and problems:
Attempt #1) In http://server/page1.asp, it has code <form action="http://server/modaldialog.asp" method="post" target="_blank">
In http://server/modaldialog.asp, it has code <body onBlur = "self.focus()">
It can produce modal dialog window modaldialog.asp, but I want to set the width and height of modaldialog.asp.
Attempt #2) var sReturn = window.showModalDialog("modaldialog.asp", params, "dialogHeight:200px; dialogWidth:200px;");
This is the effect I want. But this is not posting the form data to modaldialog.asp. Any workarounds to my problems??
I want to post the form data (http://server/page1.asp) to a modal dialog window (http://server/modaldialog.asp) with a desired height 200px by width 200px.
Here's my attempts and problems:
Attempt #1) In http://server/page1.asp, it has code <form action="http://server/modaldialog.asp" method="post" target="_blank">
In http://server/modaldialog.asp, it has code <body onBlur = "self.focus()">
It can produce modal dialog window modaldialog.asp, but I want to set the width and height of modaldialog.asp.
Attempt #2) var sReturn = window.showModalDialog("modaldialog.asp", params, "dialogHeight:200px; dialogWidth:200px;");
This is the effect I want. But this is not posting the form data to modaldialog.asp.
1. User fills in form and hits submit 2. Some processing is done with the posted data using ASP 3. The posted form variables now need to be submitted to another script which only receives POSTed data.
How do I send the posted data to another script? I can't run step 2 on the next script as its validation script and I'm going across two servers.
I am using a modal window and an iFrame to try and pull a return value back. I am doing this across domains.
I have the value returned from the modal window to the iFrame window but I can not get the value returned to the parent window. The alert in the parent window always returns undefined errors. Code:
In the following code, page1.asp is inside the frame of main.html. When the user click submit button in page1.asp, it will submit the for and open a new window called page2.asp. When the user clicks submit button on page2.asp, I expected to open a new window called page3.asp Unfortunately, it just open page3.asp in the same window as page2.asp, an now page2.asp is gone.
However, if I just open page1.asp, and begins from there, it is fine I think this is because page1.asp is put inside the frame. Code:
My page shows details of a work request. It has a number of buttons: one to go to a search page, another to make a copy of that page, and so on.
What I want the user to be able to do is, click the 'Copy' button and have the details from that page passed to ANOTHER page, ready to submit a new request. Basically, it's just a quick way for users to submit new requests, using a previous one as a sort of template.
This all works using a client-side function in the details page, which simply calls the submitting page using document.submit. However, this uses the same browser window, overwriting the "old" page.
I want a new window to open and have it read the session variables created by the details page. I've tried 'meta http-equiv='refresh' content=1...' and, while that opens a new window, it doesn't read the session variables. Similarly, the gazillion JS scripts I found on the web do pretty much the same thing.
I'm need to open a popup window from an asp page that calculates a value. This value must be returned to the input box on the asp page. I have managed to get the popup window to open and display a value so far but I am not getting the value back into the asp page.
Does anybody have the syntax to post form data to a CSV file? On submit, my form page will post to another asp page that will actually handle the data being dumped to a CSV file. I just can't seem to find the correct ASP syntax for this.
Does anyone know how to post form data to a popup window either by using ASP or JavaScript? I have a form full of inputs and I want to open a popup window where the processing can take place.
and the page loads in the modal dialog no problem.
Now, the asp page is a form that submits to itself and so the modal dialog contains a form that submits to itself.
This is fine except that submitting the form opens a new window.
what I would like to happen is submit the form and it comes back to display itself in the modal dialog again. if the form processing detects an error I will leave the form displayed, if no error is detected then I will close the window using some client side javascript.
however I am having trouble getting the modal dialog form to submit back to itself and redisplay again within the modal dialog.
Im trying to either POST or GET data using an asp action provided by world gift card, and display the data on our website. So the form is on our server, and the action is there server asp script on there server.
I want the data to come back to our server.. I want to use this data to display to our customers so they can check the balance of there gift cards etc... This is what i have so far.. Code:
I would like to open a new window (Function is called NewWindow and is writtent in VBscript) when a user submits a form. All the samples I found on the web indicate something like the following: Code:
how can i open a new window with a if statment but still getting variables values?
tit=Request("title") if x=1 then something else Response.Redirect("<A href="http://www.test.com/lookup?q="&tit">http://www.test.com/lookup?q="&tit") end if I donīt mind using java, but i donīt know how
I am working on a website and have a couple links that open up a new window. My webpage is .ASP as well as the windows I am opening. Currently the link open into a new window. However, I would like to be able to set the the size of the window that is opened. This is the code I am currently using:
I have an .Net project that has an ASP page, that has links. When a user clicks on one of the hyperlinks, it opens an Excel page, in IE. One of the cells in the Excel Workbook contains a link to a PDF document.
If the user clicks on the PDF link, it's opened in the current page. I'd like to know if it's possible to open the PDF in a new page. So it would basically be opening a PDF from the Excel document - that is opened in IE. Code:
I have searched the web and books but so far I am drawing a big fat nada on this one.
I want to open a new window from an ASP page and everything I have found suggests to use JavaScript and not the server side VBScript. The problem is that the server side is what will decide were to send the user. Is there a way to exit or open a new window using JavaScript passing in variables fromVBScript server side then close the ASP page?
the new window will be in the SAME session as the opening window.I don't want to abandon the session of the opening window, just have a new one for the new window.
I wish to open a window with this command Window.OPen(meat/ServerLookup/ServerWindows.asp?ServerName=VarServerName)
It does not seem that the Window.Open can handle the ?ServerName=VarServerName part of the command? DO I need to add stuff to make this work like I want?
I had thought of using a session variable to pass the variable VarServerName to the next page ... but in this case using the ? function would be FAR more convenient... Any Ideas on how to make this work?
i am facing a problem with opening a window from a webpage,
first i tried using window.showModalDialog() window.showModelessDialog() but in that case i can not detect window.opener so i reverted to window.open() but can i detect from the parent if i have any windows open ??
in other words, if i push the button to open a window, then the user pushed it again, i do not want to have two windows open at the same time... can i do that??
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page (same folder).
The cookie is not received. Can someone explain why?
I worked around this by adding a cache-control header with a value of no-cache. This fixes the problem. Unfortunately that causes another problem with Internet Explorer that no-one can figure out (basically with friendly error messages turned on IE shows an error page for no reason - i posted a lengthy message about this to m.p.i.asp.general but no-one has a clue).
I have tried every combination of every cache busting header i can think of but no other one fixes this problem about the cookie not being received.
So basically i'm in a catch-22. If i put the cache-buster in then users will get a nasty error message from IE unless they have 'friendly' error messages off. If i leave out cache-buster code then the session cookie doesn't get returned which means the users cant access my site.
Example asp's are below. To recreate the problem simply create a hyperlink to getCookie.asp in excel then open it (after each attempt you need to shut down Excel). By the way everything works fine if you type the URL into IE directly... the problem is when opening from Excel.
----getCookie.asp------ <% 'cache code which makes next page work 'Response.CacheControl = "no-cache" 'send cookie back to client Response.Cookies("PaulSessionID") = "PaulsCookie" %> <HTML> <HEAD> <SCRIPT> window.open('useCookie.asp','newWin','resizable,sc rollbars,menubar,toolbar') ; </SCRIPT> </HEAD> <BODY> </BODY> </HTML>
-----useCookie.asp------ <%Response.CacheControl = "no-cache"%> The cookie set by the previous page is: "<%=Request.Cookies("PaulSessionID")%>" ---------------------------