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


ADVERTISEMENT

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

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

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

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

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 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

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

Click On A Link To Open It In A New Window/tab WITHOUT Leaving The Current Page

Sep 24, 2007

Basically I want some of the links in my page to open in new tabs (I'm
using Firefox) or windows if the user has their options configured
that way. And I want my page to remain intact as it involves some AJAX
and takes a while to load.

But ...and this seems to be a big "but"... I don't want the focus to
move away from the page I'm on. So techniques such as <a
target="_blank"or <a onclick="window.open(...)"aren't working for
this requirement. I even tried using a separate function and
attempting to return to the original window straight after using the
following function: Code:

View 7 Replies View Related

Open SWF Files In Transparent Window Using Links In HTML Page?

May 13, 2011

I am trying to open some SWF videos from an HTML page. When the user clicks the link, I would like to have the videos open in a transparent window (not a separate browser wndow).

I have figured out how to embed the files and have them open in a transparent window as soon as you load/refresh the page but I want to open the SWF using a link.

View 4 Replies View Related

Open A Window With A Variable - Refresh Page On Submit Data

Sep 30, 2010

I want to be able to open a window with a variable. For example, I will use domain.com?reference=1234- This link will open a pop up window as follows:

<a href="javascript:popUp('http://www.domain.co.uk/staff/tpr/update_action_log.php?action_reference=<?php echo $row2['action_reference']; ?>')" title="Click Here edit this entry"><?php echo $row2['action_reference']; ?></a>

When I open this window, it is always showing data put in last, it isnt refreshed. I wanted to open this pop up window, enter data and then click submit and make the data enter the database and then refresh the parent window. Every time I have done this, either the parent or the pop (or both) is showing old data.

View 9 Replies View Related

Onlick Open New Window If Text Input Matched That Is Printed To The Page?

May 7, 2009

I have everything working accept the last part and I don't know what to do.function show() works and shows data entered in text box.function open_win() works,but I only need it to open when there is a input match say like the name Tom,otherwise I want function show() just to show the input.

Currently the new window opens every time the button is pressed needs to match input string only before window opens and then string print to window I think these two lines are the problems(whatever the input) document.getElementById('myDiv').innerHTML = string; And var bselect= "Tom" open_win(); I think I need to set var to the string printed to page to solve the last part. how to I get the blank window to the center of screen,as it covers the data in the function show.

Below is my code thus far :

<html>
<head>
<title>Input</title>
<script>

[code]...

View 4 Replies View Related

Bookmarklet Parse URL - Take The Current URL Of The Page And Open A New Window With A URL Based On The Current Page?

Mar 16, 2009

I'm trying to create two bookmarklets:

1. Take the current URL of the page and open a new window with a URL based on the current page. Some examples (I use "->" to mean "this URL turns into that URL"):I plan to use these bookmarklets in sequence, first pressing 1 to log into the CMS, then pressing 2 to edit the current page.

View 5 Replies View Related

Links That Uses Window.open Then Open A New Designated Window

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







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