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


ADVERTISEMENT

JQuery :: Ajax - Page Refreshes To A Blank White Page?

Aug 31, 2009

Im doing an Ajax call which calls a Java struts 2 action. This action basically just does a DB update. There is no data being returned to the client. The page refreshes to a blank white page. I dont want his to happen. I want a pop up box on my page. The ajax call happens when i press a save button. Here is the jquery code:

[Code]...

Im a Jquery newbie. As far as I can gather JQuery is expecting data back. It gets nothing back (which is what I want). But Jquery does a refresh with this. Hence why my page goes to a blank white page. I think this is what is happening

I was thinking of putting in my dummy div and loading the blank/empty no html into the dummy div but there has to be a way to stop the white page showing up. I dont get pop up boxes either as shown in code above:

View 2 Replies View Related

Page Refreshes Before Timer Has Done It's Job

Aug 7, 2010

On the html form the user enters the time to start, time to end, and frequency of a reminder alert.I pass this to my javascript and then am trying to setup a 1 second loop where it checks against the clock to see if it's time to begin the reminders. I get to the function, but the setTimeout doesn't complete and my page just refreshes.

View 5 Replies View Related

Can't Submit - Page Refreshes And Nothing Gets Sent To Test12.php

Jun 24, 2009

I'm trying to use javascript to submit a form. I was wondering whether this was possible.

<html>
<head>
<script language='JavaScript'>
function submitURL(url) {
document.mForm.url.value = url;
document.mForm.submit();
}</script>
[Code]...

Clicking on the link puts the correct URL in the input field, but then the page refreshes and nothing gets sent to test12.php.

View 1 Replies View Related

Submit Button Refreshes The Whole Page

Aug 24, 2011

I have the following JS. In this, when I press the submit button, I have a JS function that will create 2 input boxes and one more submit button.

When I type the values in those input boxes and click on the newly created submit button, the addition of the above input values should display. But the entire input boxes and submit button gets lost and the old page is getting displayed.

My JS:

View 5 Replies View Related

Maintaining Login Status Across Page Refreshes

Jul 23, 2005

i have a login area (user/pass text
boxes). when the user submits the form, the page is reloaded with with
a global php variable "loggedIn" set to true. i also store the
username and password in the page in a hidden form -- so that it can be
passed to other pages on the site through standard navigation
(maintaining the "loggedIn" status). however, is there any way to save
this information if the user hits refresh?

as it stands, whenever the
user hits refresh, the user/pass data is lost, and loggedIn is set to
false. can this be worked around without using cookies?

View 4 Replies View Related

JQuery :: Page Immediately Refreshes Itself Wiping Out Changes

Feb 18, 2011

I have written code that looks like this. The code works great for about a split second and then the page refreshes itself and I am back to square one. How can I prevent the page from refreshing itself and wiping out my jQuery changes. The page I am working on is located here [URL]

[code]
<script type="text/javascript" src="jquery-1.5.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){

[Code].....

View 4 Replies View Related

A Link In Parent That Refreshes A Page In An Iframe?

Feb 7, 2011

My site has a menu + iframe layout. Clicking on the menu link loads a page in the iframe. The iframe is set to a specified dimension.

I only have a single page that loads in the iframe. Clicking on the menu link loads a specific section on the page using the name anchor. The specified dimension of the iframe allows for the selected info to be visible.

I can create a new page for every link, but to the site's nature (its like a catalogue), I rather have it on a single page and have it called by the name anchor. I am trying to set it so that every time a menu link is clicked, the single page refreshes itself, and then goes to the anchored location.
I need this for a reason.

I have tried many things but I have not got it working.

Here is my iframe:

Code HTML4Strict:
<iframe name="data" id="data"></iframe>

Some of the codes I tried messing around with:

Code HTML4Strict:
<a href="info.html#red" target="data" onclick="window.location.reload()">Red</a>
Code HTML4Strict:
<a href="info.html#red" target="data"

[Code]....

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

JQuery :: Everytime Refreshes It Shoots Me Back To The Top Of The Page

Mar 27, 2011

I have this code:

Everytime it refreshes it shoots me back to the top of the page.

How can I stop that from happening?

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

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

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







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