Open Popup Window
I want when an website opens then a popup window made in flash should be open automatically in a new window. How it is possible?
I want when an website opens then a popup window made in flash should be open automatically in a new window. How it is possible?
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.
Popup Window code...
1. I have a form, with a textbox and a button. I have to enter a value in the text box and then i have to click the button, which opens a popup window. Here i want to pass the value of the text box which is entered in the parent window to popup window.
I have to use that value in the popup window's form_load event in the Code behind, and i have to take the values from the database using the value which i have entered in the parent window. Code:
I'am not familiar wit ASP but I have to maintain an application. In a window there are some text selection fields and a search button. If you press on the search button record list is build according to what is filled in the selection fields. You can select a record and then a detailed window is shown or in another occasion a popup window is shown.
The request is now if the opened window or popup window is closed, then the opener window has to be opened with the same content (content selection fields + record list) as it was before the window or popup is opened.
Now I thought that I have read that every window which is opened gets an ID and that it is possible to call up that window by the ID from the cache again. Is that right? And if so? Or has somebody a better idea. Code:
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a description and a class_id (stored in the value attribute of each option). The user will then select a class from the drop-down list.
What I want to do is have a control in the parent browser window which can store the class_id and the description that the user has selected in the popup window.
what control I should use in the parent window and more importantly how I get the value from the popup window (this must be client side code as the user will have entered other values into the form in the parent browser window)?
I am facing a problem in asp pages. I am requesting some values from a page and moving to another page from the second page.
i m opening an popup window and for refreshing econd page from that Popup. i m using code.window.opener.location.href='second window name') in doing this I am losing the values of the first form. which i have to insert in the dbase in the Third page
In an asp page I have the following scenario happening (or would like
to happen)
person picks a menu item in main page which opens a popup window that
allows customization of that menu item. Upon submitting that page the
results go to a second page in the popup window for collection into
variables.
I was hoping to just close that second page, but
everything I have tried results in a message window stating the
program is trying to close the page (y or n). I was hoping to get rid
of this, but can't seem to no matter how hard I try.
There are many examples on here that seem rather old and may have
worked with former versions of IE without problem, but none have
worked how I wanted.
Does anyone have suggestions on how I could get the above...or even
modify things so that maybe the original popup window can be
closed...I do wonder if its the fact that a second page has been
opened in the popup window.
i am linking the text to a new fresh page by a popup. however, when i take away the <a></a> tag, when i move myu mouse over, it does not have the effect. but when i set the href to --> href="#", it pop out 2 windows. How can i solved the prob? I just need to link the text to a new fresh pop out when on click.
function popup(url)
{
newwindow=window.open(url,'name','resizable=yes,sc rollbars=yes');
if (window.focus) {newwindow.focus()}
return false;
}
<a href="#" onClick="popup('search_coyfrm.asp')">Search Company</a>
I have 3 asp pages.
A link in the first one creates a popup window.
A link in the popup window opens a page with 2 frames in it, top and bottom.
Now, I have a link in bottom frame of this page, which, when clicked , should give focus to the existing popup window.
When creating the popup window, I used a reference to it like...
When I use this command in a webpage
Response.Write "<a
href=""javascript:window.open('events/EventDetails.asp?EventID=" &
theEventID & "' )"">" & theLinkText & "</a>"
I get the new window to open but it also affects the "host" window. The "host" window is left with the word "[object]" in it. If I refresh the window that says [object] the new window opens again. Why and how can I make the new window open without affecting the previous one?
The following code is not working properly in IE6 but it does work for mozilla firefox. I am trying to open a new popup window without affecting the frame from "where" it came. But what happens when I click on the link is that the popup window is displayed correctly but the frame then changes to my default.htm. It is supposed to stay the same
here is my code
Response.Write "<td><a href=" & """" & """" & " onclick=" & """" &
"javascript:window.open('desc.asp?msg=" & tempdesc & "','" & rownum &
"','toolbar=no,location=no,directories=no,status=no ,menubar=no,scrollbars=yes,resizable=no,width=600, height=600,left=300,top=300')"
& """" & ">" & left(tempdesc,50) & "....</a></td>"
I have a popup window that is used to display text from a database. Some times it can be a few words, sometimes it can be a hundred words. What I would like to do is resize the popup window to fit the text. Well actually it is just the height that needs to be resized. I have set the width to 600. I have put the text in a table and I was thinking
I could set the height of the window to be the height of the table plus some for room. I don't know if that is possible.
At first I tried to count the number of lines and multiple by a factor by that doesn't work so nicely because I was getting the number of lines by dividing the number of charaters by the maximum number of characters in a line.
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.
View Replies View RelatedI have a main window which shows all records from a table. When a user clicks on "Edit" for a record, a popup showing information of the selected record is displayed.
The user then changes the information on the popup and clicks "OK" button which calls an ASP page to update that record in the table. Everything works with no problem up to this stage.
My problem start after the update process. I need to know how to close the popup and then refresh the main window showing the updated information....
I have a child window that has a button to close it. I would like the parent window to be refreshed (since action taken in the child would change the values in the parent). The code I have works, but I get that "Retry" popup... I would like to bypass that. Any suggestions? Code:
View Replies View RelatedI am designing a website to records details of people who visit our company. When entering a visitors details I wish to record the company that they work for, to save the user time a dropdown list of companies is populated dynamically from the backend (Oracle) database. In the event of a company not existing in the database the user would have to go to the page to add a new company and then come back to the form meaning that they would lose anything they have already entered.
What I am trying to do is to enable the user to click on a link which will bring up a pop up window into which they may enter the new company, on closing down this popup the new company will be added to the dropdown list.
So far I have got the popup to display and to accept the user input and I have inserted this new company name into the database with a unique reference number generated by a sequence and before_update trigger. The following code is for the popup window and accepts user input, writes it to the database and closes the window: Code:
I am using asp to do form processing. When the form is submitted I want to open a popup window and have the form processed. at the conclusion of the processing I want to diaplay a thank you message and have the user stay within the popup window until they close it all the while my main page is still visible beneath the popup window.
What is happeing is that the from action script is opened in a new browser window and it does not function the way I want it to.
Code is as follows: ......
I've been writing web pages that pops up smaller windows when links are
clicked. I noticed that very often after the small window is poped up, the
mouse pointer remains busy instead of returning to the normal pointer.
Does anyone seen this problem before and know how to resolve it?
Code I use is like this:
function viewproductdetail(sku)
{
g =
open(page,'g','status=no,toolbar=no,menubar=no,hei ght=550,width=500,scrollba
rs=yes');
g.focus();
}
I have an ASP page that goes from part to part based off of a session variable. Is there any way to check for when the user clicks back so that I can change the variable. If not I will have to separate all of the pages out and that is just not fun.
So, when the user clicks back, the session variable gets changed. That is what I am looking for.
P.S. Is there a faster way to check if a variable is blank other than an
If Bleh="" Then
<some code>
End If
P.P.S. When a submit button is clicked, I want to open a new window with a message like "Be sure to fill out this on page X"
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:
View Replies View Relatedhow 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:
<p><a href="Search/search_owner1_form.asp" target="reportWindow" class="style2">OWNER 1</a></p>
I have an the following asp. How to have this asp to open in another
window when it is called?
<% something %>
I have a submit button that a form uses to submit the contents of that form to another page.
<input type="submit" class="input" onclick="this.form.action='checkname.asp';">
Is there any way to open a new window and perform the action in the onclick event?
Is there any way to keep a window on top using window.open? I can't use a modal or window.focus onload b/c I have to get inputs
View Replies View RelatedI 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.
View Replies View RelatedI 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??
using ASP 3.0 and IIS 5, can anybody tell me why the following code isn't working?
sub admin_onclick
window.open "http://sean/lonestar/lsf.asp"
end sub
It's about as straight-forward as you can get. Incidentally,the ASP that is referenced works.
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")%>"
---------------------------
When a open an asp page from a modal window through window.open, my
session values of parent(the screen that invoked the modal window) are
lost.