Window.open Returning Information To Original Page?

Jun 5, 2009

i have a form, and for the user to upload a file, i use window.open with my upload script. however, after the file is uploaded, i want the filename to be put back on the original page in an input text field. how would i go about doing this?

View 1 Replies


ADVERTISEMENT

Open New Window Using Href Without Changing Original Page URL

Apr 10, 2010

I need to run window.open() via href (not via onclick) as the CMS I'm working on only allows setting the href, not the whole <a> tag. I'm doing this: <a href="javascript: window.open('myUrl.php');">click this</a> and the window pops up just fine but the originating page changes to blank with '[object Window]' in it. How can I prevent the originating page from changing URL (by adding something to the javascript call)? Like "return void;" or something - but of course that didn't work...

View 2 Replies View Related

Script Ot Open A Popup Window - And Reload Original Page

Jul 3, 2007

I need a script to open a popup window which contains a php form.
after the form has been submitted or cancelled i need to go back to
the originated page (php also) and reload original page.

do you guys have any simple solutions?

View 1 Replies View Related

Open New Window In The Original Window

Apr 12, 2010

open to a new window in the original window. the original window is blocked from any user inputs. a good example is here at [URL] and click on "locations" button. is there a special name for this window.open?

View 2 Replies View Related

WEB Site Opens An Application Window And Then, From Its Original Window It Navigates To A Status Page?

May 11, 2011

My WEB site opens an application window and then, from its original window it navigates to a status page.

Code:
var newWindow
function popUpApplication() {

[code]...

View 5 Replies View Related

Pop Up Window Will Not Obey A Close Command From Original Page.

Jul 20, 2005

I am trying to create a new window from which the original page can close that new window. For some reason the following code will not work. Passing the window.open command to a variable called myWindow does not work with the mouse event, but it seems to work fine with a javascript: URL command. I would prefer to do it with the mouse event. Code:

View 2 Replies View Related

Getting [object] Error In Original Window When Opening A New Window

Jul 20, 2005

I'm using window.open and as soon as I click on the link to open the new window, my original page content is replaced with '[object]'.

<
href="javascript:onClick=window.open('leaving.htm','','t oolbar=no,location=no,status=no,menubar=no,scrollb ars=no,resizable=no,width=300,height=400')">Lin
1 </a>


Any ideas ...

View 1 Replies View Related

Problem With Html Page Using Cached Page In Window.open(url) Call

Jul 20, 2005

I have an html page that uses javascript to open a new window and
display a file that gets created when a button is pressed.

My problem is when the file is changed and the display button is
pressed, the old file is still displaying. I have tried using

<META HTTP-EQUIV=expires CONTENT=0><META HTTP-EQUIV=PRAGMA CONTENT=NO-CACHE>, but doesn't work 100% of the time.

View 1 Replies View Related

Open Page In New Window, But Add Some Text

Jul 20, 2005

I open a link in a new window:

<a href="http://www.somewhere.com/some.hml"
onclick="window.open(url,null,'resizable=yes,toolbar=no,loc ation=no,directories=no,status=no,menubar=no,scrol lbars=yes,width=600,height=400');">Link</a>

The page I am opening is not mine.
I want to edit the content of the page I am opening, adding text
"This page is opened in a new window" as a first thing after the body
tag of the opened page.

Is it possible to do it with javascript, while opening the page, or
should I use Java?

View 7 Replies View Related

Open A Window To A Particular Region Of A Page?

Jan 25, 2010

I need to open a window without scrollbars, menus, etc. and a specific size. I believe I have found scripts that can do this. But I also need it to open to specific coordinates of the page. i.e, only displaying the center portion of the page (the page is not mine) and not letting the user move to other portions with scroll bars, nor resize the window.I realiize that hitting tab will usually move them around, but I am not worried about that. They won't know where they are and will just reload.I have basic html skills but not scripting, other than copying/pasting other people's code.

View 1 Replies View Related

Resizing Page - Should Open In A New Window

Apr 11, 2010

Am making a user registration page and i want it to be smaller then my other pages and it should open in a new window, something like a popup window.

View 2 Replies View Related

Open New Window With Page From History?

Oct 4, 2005

how I can create a link that goes back 2 steps in the history, but opens this in a new window? I've searched for this but no success so far.

View 4 Replies View Related

Page Refreshes With Window.open

Aug 12, 2009

I had a small problem in my page. There are some select menus that the user can select and there is a download button which on click should allow the user to download a file based on the selected options...I used the following code under the onclick event but the problem is that it allows the user to download the file but the page refreshes itself or in other words all the selections are lost when the download window opens

View 1 Replies View Related

Make New Page Open In The Same Window?

Jul 20, 2009

I have this javascript to open a new page.Currently it open the page but opens it as a pop up.How can i change to open in the same page.[code]

View 7 Replies View Related

Web Page Gets Replaced / Use Php To Open Header In New Window?

Feb 11, 2009

I am using my script to update my table with the click number and then redirect to the stored href link code...

The only problem I have with this is that my web page gets replaced.

What I really want to do is open a new window and have the new web page in that. I can put a notice to say it will open a new window, its just that it will really annoy people if my page closes on them when they are half way through a tutorial !

What do I need to do to open the link in a new window ?

View 11 Replies View Related

Open A Window (which Is Already Opened) On Page Load

Mar 19, 2010

Suppose I have multiple pages, and one javascript file (the js file is available to all pages). Using a javascript function I open a new window from first page. Script looks like this:

[Code]...

What I would like to do is close this window as soon as other pages load. Suppose user clicks a menu and that load a new page. But I would like to close the child window after the 2nd page load. Is it possible to close the window in the second page with the name (using the same java script, or may be use another java script)?

View 1 Replies View Related

JQuery :: Open Window On Page Reload?

Mar 16, 2011

I've got the following bit of code:

Code:
$(function(){
$(".facebook").fancybox({
'width': '80%',

[Code]....

I can't get the iFrame to load again. In my window.load function I'm basically trying to reinitialize the fancybox iframe code and then based on the link here: [URL]

I'm trying to trigger it again. The alert appears so I know it's getting to the function but it's not opening up the iFrame.

View 1 Replies View Related

Open/Close Extra Information On TD Onclick?

Jul 1, 2011

I'm trying to open extra information if a user clicks on a TD, and close it if he click on it again. How I can do this? All I learned to do is to show it, but I can't find something that hide it if I click on the same place.

View 5 Replies View Related

How To Reference Original Window From Popup?

Nov 20, 2003

I have a webpage with a link that produces a popup using javascript. I have another link in the popup. When the popup link is clicked I want only the original window to change location, while the popup remains the same. How can this be done?

View 6 Replies View Related

Struck To Open A Popup Window After Submit The Page

Jan 14, 2010

I struck to open a popup window after submit the page. I used the following logic . but it's not open.

out.println("<a href="javascript:ozPopup('ozPpolApptChangeStartTime.jsp?apt=RptAppt&apptId="+id+"&date="+date+"','PpolApptLov','left=100,top=60,width=640,height=300,scrollbars=yes,resizable=yes');">");

View 1 Replies View Related

Setting The Page Title Of Chrome Window.open?

Feb 14, 2011

I have some JavaScript that is being used to open a new window and display a PDF file. This is working fine apart from the title of the new window being open. I am using the window.open function and I have set the title of the page using the document.write function (see code below). The code works fine for FF and IE but for some reason Google Chrome just displays 'Untitled - Google Chrome'

<body>
<a href="javascript:openNewWindow();">Click Here</a>
<script type="text/javascript">
function openNewWindow()

[Code]....

Note: I have also tried adding - pdfWindow.document.title="Title"; - to the JavaScript, with no luck.

Is there anything specific that is required for Chrome or am I just missing something??

View 1 Replies View Related

Open A New Browser Window In A Data Access Page

Mar 2, 2006

I know this is a Java Script fourum but since VB and Java are so closely related I thought I would look for some help here. Anyway I am running MSAccess Data Access Pages and need to know if I can open a new browser window from a page created by a parameter query? In breif here is my problem. I used the "Image Control" to bind 6 photos via a Parameter Query with the drive path to each photo stored in a table. So far this works great and the co-workers are impressed. However the photos (Thumbnails) are small and it would be great if I could use the "Image Control's" (on-click) event to open a new widow so as to see a larger image of the photo. As an interim solution I am using the Hyperlink control, however when you click on it the photo opens in the same window and when you click IE's Back arrow the Parameter query prompts the user for the value again. All this could be avoided if the Image control (or hyperlink) could open a new window (with the photo of course), and when finished merely close it. The script

<script language=vbscript for=Image0 event=onclick>
<!--
window.open.
-->
</script>

does nothing without the correct href which I don't know since that information is coming from the parameter query.

View 1 Replies View Related

All Links In Page Open In The Special Window Size

Aug 27, 2006

I have a page whit many links ( for example a Dictionary ) ,I want all links in this page open in the special window size whitout scroll ,statusbar,toolbar,.....

I have script for one link but I want a one code for all links or the script which I can insert in head of main page for all links .

View 1 Replies View Related

Linking Template Page To Open A File In Another Window?

Sep 16, 2011

I am building a static website, and I have images in my index page each image has a title name, how do I make an image clicked to open in a different window if clicked, I have a template page designed to be used for opening an image in a different window if clicked but I don`t know how to configure everything. Secondly, I would want the image to be placed in a particular section in the template page.

View 2 Replies View Related

Passing An Increment Variable Into A Window.open Page?

Mar 25, 2010

I have a variable with a number value. I use variable++ to increase the value of the variable. How can I pass the new varible into a new window opened with window.open?

View 8 Replies View Related

Code - Void Window.open - Link Would Open In The Same Window?

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







Copyrights 2005-15 www.BigResource.com, All rights reserved