The Results Of A Form To Open In A 'pop Up' Window?
May 6, 2010
I found an article [URL] that allows a user to search Google directions from a web page. It works very well, however is it possible to have the resulting page open in a popup window?
View 3 Replies
ADVERTISEMENT
Oct 2, 2004
I use php includes to display a small form on a web page.The form has only about 2 fields,and when the user hits submit I want the form to be submitted but at the same time I dont want the page to be redirected.Instead I want a small window to pop up saying thank you or whatever.To see a demonstration of what I want to do,please go to download.com ,scroll down to the bottom of the page and you'll see a poll.When you make a vote a new window pops up showing the results of the vote but you arent moved from download.com's homepage to any other page in the parent window.How can I acheive that?I'm using this code right now:
<script language="JavaScript">
function showpoll() {
window.open('manage.php','manage','width=260,height=360,status=no,scrollbars=yes,resizable=no,toolbar=no');
document.forms["form1"].submit();
}
</script>
<form method="post" action="manage.php" onSubmit= "showpoll();" name="form1">
When I hit the submit button on the form a new window does pop up containing manage.php but it doesnt submit the form since manage.php doesnt give the message that its supposed to give when the form is submitted.It instead asks me to input all the fields.While the parent window is redirected to manage.php and it shows the message that its supposed to show when the form has been submitted.I hope I made myself clear.
View 1 Replies
View Related
Jul 23, 2005
I just want my form target to be another page but open it in the same
window. Here is my code for the 2 pages : Code:
View 3 Replies
View Related
Mar 18, 2009
I dont know a lot about Javascript or AJAX. But, what I am wanting to do is to have two forms and what ever is entered in either will open a new window with that info.
[URL]
In form one I want what is entered to be placed where the 77777 is in the URL in a new window.
In form two I want what is entered to replace IRN=77777 with Username=88888 and where the 88888 is will be what is entered in the field.
Here is what I have currently on my page:
Code:
<table border="0">
<tbody>
<tr>
<td>Search IRN:<br /><input name="" style="width: 200px;" type="text"></td>
[Code]....
View 3 Replies
View Related
Nov 23, 2011
I am trying to create a form which when the submit button is selected will open a new window with 1 of 4 URLs based on the the combination of data in 2 select boxes.
For example:
if select box 1 = a and select box 2 = a then open new window with URL 1
if select box 1 = a and select box 2 = b then open new window with URL 2
if select box 1 = b and select box 2 = a then open new window with URL 3
if select box 1 = b and select box 2 = b then open new window with URL 4
View 4 Replies
View Related
Jul 23, 2005
I want to open a new browser-window with javascript and fill some
input-fields in this window with predefined values. So the User does
not have to edit the input-fields manually but only has to submit the
form.
....
var childWindow = window.open("http://anyForm.html");
childWindow.document.getElementsByName('anyinputfi eld')[0].value='hello'
....
Unfortunately this does not work... Mozilla throws an error:
"Error: uncaught exception: Permission denied to get property
Window.PropertyIterator"
Is there any workaround?
View 1 Replies
View Related
Nov 10, 2006
Is it possible to remote modify an already open window form from a
local HTML file? Example (simplified):
1. I have a local HTML file, where I have some kind of link. When this
link is pressed, then I need to add a "searchstring" into...
2. the second already opened window form (e.g. Google)
I need to do this to avoid any copy / pasting of these values.
All I have read about is that this is possible if I use Parent/Child
windows, but I would like to know if this is possible to do between two
independant pages?
View 2 Replies
View Related
Feb 7, 2009
I have this piece of code which is opening link in new window:
How to change this code so link would open in the same window?
Probably I should change this part: javascript:void window.open
View 1 Replies
View Related
Aug 30, 2011
I found this forum while running out of ideas and being extremely desperate to fixing a probably small javascript error in a script. the script is supposed to open a small form window that allows the user to input an email address and update it to proceed. the form item is initially unchecked, but as the user clicks it and enter his email address, it updates the value of the email address and the box becomes "checkable". the problem is that with both IE and firefox, the box doesn't close again, doesn't get checkable and basically doesn't work. in the firefox debugging console, I found the following error:
Quote:
The part responsible in the javascript for this section is:
Quote:
And the html code that is supposed to pop up the box is:
Quote:
View 1 Replies
View Related
Jan 17, 2012
I have a problem on the links on my page im working.sorry guys still a noob and my english is not that good. :b. my question is like i have a list of packages of food. [link_a] [link_b] [link_c] and i have a function that i put in my head tag:
function linkA()
{
window.open('link_a.html','link','width=300,height=200,resizable=yes');
}
now i can go to linka.html by click my link <A HREF="javascript:linkA()" >link a</A> is there a way i can have one functions that can open a link depend on what page .when it clicks then go to its designated page or i have to stick on writing function for linkB ,C,D and so on.
View 7 Replies
View Related
Oct 19, 2011
How to open a link on the same window using window.open or any other method in JavaScript.
View 2 Replies
View Related
Jan 29, 2010
I have a HTML and I am opening another link in a separate window using window.open() . The child window is something like 'http://yahoo.com' which is out side html. I need to refresh the parent window when the child window is closed.
View 4 Replies
View Related
Dec 1, 2011
Code: window.location but have it open in new browser window (like with target="_blank", not window.open)
View 7 Replies
View Related
Jul 23, 2005
Through window.open or window.showmodaldialog, I want to open a word
or excel document in Print Preview mode. Bcos I don't want the user to
make any changes or save it but the user can ONLY VIEW OR take a print
out.
View 1 Replies
View Related
Nov 16, 2009
I'm using an <A> tag with an onclick event to open a window with JS (window.open)... In FIREFOX, if I click very quickly, multiple windows open. Not a problem in IE.
View 8 Replies
View Related
Apr 2, 2008
my file is located at c:AdminFiles.xml
i tried the following ways
window.open("c:/AdminFiles.xml",'HeavyXml');
window.open("c:AdminFiles.xml",'HeavyXml');
window.open("c:\AdminFiles.xml",'HeavyXml');
in the above i'm getting the following error: "Firefox doesn't know how to open this address, because the protocol (c) isnt associated with any program"
window.open("file:///c:\AdminFiles.xml",'HeavyXml');
the last attempt give to respond at all...
View 5 Replies
View Related
Jun 5, 2011
I'm a newbie when it comes to PHP & JQuery. I have a small issue and was wondering if someone could help me out.
I have a PHP page which takes in the 'source' and 'destination' from the user and results the distance in a new window.
I just want the distance displayed within the same window. I have absolutely NO clue how to use Jquery or what the syntax is.[code]...
View 7 Replies
View Related
Jan 27, 2010
1. First form on the page has questions with radio buttons. Each radio's value is a number so a score is assessed at the end.
2. Second form on the page is an email the admin form, which duplicates the score in one field.
Question: I would like to know how to write the form results to a text area in second form. However, I can't do this for one, and secondly, the value is a number, can I use labels? Here's the code I've 'made up' so far...
[Code]...
View 1 Replies
View Related
Aug 4, 2010
I've got a page that lists a bunch of info in a large table. In each row is a link, and when that link is clicked on, an ajax call fires that returns detailed info on the item in that row. I usually display the html just to the right of the table, but the table has gotten too large. I need to display the info in a pop up now. The only thing is, how do I get the results of my ajax call into a pop up window? I've been having an awful time getting this to work.
I'm using JQuery to make the ajax call, what can I put in my success of complete event to create the pop up using the data the ajax call returns?
View 5 Replies
View Related
Feb 14, 2011
window.open() doesn't open an entirely new window in FF3.6, just a new tab
Edit: Yeah, ok, so if i specify a size smaller than the current standard window, it'll be forced to open a new window. but what if i want a new standard sized window to open entirely?
View 4 Replies
View Related
Jul 8, 2010
I have a question about child parent window in firefox. I have 2 pages Parent.php and child.php... user enter details in Parents.php to show the results from DB. results are displayed in child.php. I tried to put a link/button on child.php "close the window". it closes BUT it takes me to parent page. IS there anyway I can close both windows simeltaneously???
View 2 Replies
View Related
Aug 4, 2010
i want to display the form results on the same page. how do i do that? i have radio buttons, checkboxes, password and texts in my form.
View 14 Replies
View Related
Jan 29, 2006
I need a script that will open a new window (popup / new link) in a specific size, but will also close the old window (where the popup came from). I know the popup window is easy but finding a work-able close window script as the new window is opened is impossible!!
View 3 Replies
View Related
Nov 22, 2011
I am trying to pop up a window and then do stuff(set flags) when the content of the new window is done loading. For this I am trying to detect the window.onload of the pop-up child window but so far I am unsuccessful. I believe my problem is that the URL of child window is on different domain, than the one of the opener(parent) so that the window.onload is not being called. Though this may change, at the moment I do not have access to the code for the page I'm opening up in the pop-up. Im pretty new to web development.
[Code]....
View 3 Replies
View Related
Apr 18, 2011
My client wants a simple quiz with the correct answers displayed if they get them wrong. I used code from somewhere on this site, but this is the first time I have ever wrote javascript. My problem is: When the scored answers are displayed in the new window, there are no spaces. How do I format the script to display text with breaks between each answer?
[Code]...
View 13 Replies
View Related
Sep 23, 2010
I need to open a popup window from a PHP site and pass in some parameters to use in the pop up window. I have the params in an input box and need to get the val of the box into a param and pass it to the new popup window. All pages are local and in the same folder. The id of the input box is 'ddutykey'. The name of the new window would be showduty.php if possible.
View 3 Replies
View Related