Meta Refresh

Jul 23, 2007

I have a requirement to hit a page, run some JavaScript, and move on to another page. It's uncertain whether the user actually has JavaScript enabled, so I can't use JS to effectuate the move to the second page. Here's what I've got:

<html>
<head>
<meta http-equiv='refresh' content=&#390;url=page2.html'>
</head>
<body>
<script src="http://www.example.com/example.js"></script>
<script>
_xxx = "xxxxxxxxx";
xxx();
</script>
</body>
</html>

My question: will the JS run before the refresh to page2.html? I tested this with an alert() in the script and it seemed to work fine. I just thought some of the W3C gurus out here might be able to give more authoritative answers.

View 1 Replies


ADVERTISEMENT

Stopping Http Or Meta Refresh

Jan 14, 2009

I have a web page which takes a while to generate due to serverside processing. I currently show a "please wait" page, which includes a meta refresh tag, as well as a refresh http header, to refresh the current page every X seconds to check if thier data is finished processing. They're also provided a manual link to click to refresh the page, just in case thier browser doesn't like automatic redirection.

I think this works great for just about all users. But I have this idea that it would be nice if I used ajax to check back with the server instead of making the browser reload the webpage. I want this to be an enhancement of functionality, so that users without javascript or ajax capability still fallback on the solid current functionality. This means I need a way to stop the browser from obeying the http refresh header and meta tag. Is such a thing possible with javascript?

View 3 Replies View Related

Call A Function In A Meta Refresh Statement?

Jan 18, 2010

Is there a way to call a javascript function in a meta refresh statement? I'm refreshing my page but if I have data in my fields I don't want to loose them. If I can call using a JS function then in that function I can call the Submit function and save my data in the called script.

My syntax below doesn't fire the JS function:

<meta http-equiv="refresh" content="30;url=javascript:auto_refresh();">

View 1 Replies View Related

META Tags

Jul 23, 2005

I have a web form that needs to be printed for signatures. Problem is the
form is just a bit too big and always prints on two pages. Is there a meta
tag that will tell the printer to print the document on one page...or is
there a meta tag I can use to print at 80%?

View 1 Replies View Related

Add Meta Tag To <head>?

Mar 11, 2009

[URL]

That didnt work The code is added to the oScript element but thats it. I have tried another script from here:

[URL]

I want to add a meta tag from the body tag and it worked using Jscript

This worked only on my local but not on hoster:

HtmlMeta GoogleVerify = new HtmlMeta();
GoogleVerify.Name = "verify-v1";
GoogleVerify.Content = "681rsArfYmoRz88BIT8ZVDeLk4b6VMEn1+StcF61iwY=";
HtmlHead head = (HtmlHead)Page.Header;
head.Controls.Add(GoogleVerify);

And on the hoster theres a scripting error as well why innerHTML doest work?

View 9 Replies View Related

How To Read Meta Tag Value With Js?

Nov 23, 2005

Does anyone know how - or better yet - have a sample of how to extract information from a meta tag in an HTML document's head tag using Javascipt?

I have looked at the DOM with Firefox - but it seems so long. I'd be really interested in a better way. If someone has the javascript for walking through the DOM, that would be cool too. I havn't built it yet.

View 2 Replies View Related

Add Additional Meta Tags Using JS

Jul 20, 2005

I have documents that I want to automatically add additional meta
tags to. The documents already have some meta tags and I want to keep them
all together, so I want to add my new meta tags to the end of the existing
ones... can someone help me out with a script to do this... example below.=

View 1 Replies View Related

Meta Tag For Scripting Language

Jul 20, 2005

I have some doubts about this meta tag:
<META http-equiv="Content-Script-Type" content="text/javascript">

Do I really need to declare this meta tag in all my pages?

If I declare it, will I still need to create my scripts this way?
<script type='text/javascript'>

Is there any advantage/disadvantage when using it?

View 2 Replies View Related

Meta Redirect, New Window?

Feb 17, 2003

is it possible to use the META http-equiv=refresh tag to redirect to another page in a NEW window?

View 2 Replies View Related

How To Turn Off The AutoComplete Using Meta Tags

Jul 23, 2005

I was wondering if there is some other way to turn autocomplete off besides using "autocomplete=off", using a meta tag or something similar. It would be great if there is some way to turn it off at a page level....

View 2 Replies View Related

Update Meta Description With Div Content?

Feb 22, 2010

is there a way to set the meta description to x amount of charictars from the content of a div in the body?

View 2 Replies View Related

Passing Meta-knowledge About A Form Element

Jan 20, 2006

I need to create a table where each element has certain specific properties.

For example, elements in the first column should always have a range of
0-100, and increment by 1. Elements in column 2 might have a range of
0-360, and increment by 0.1. Altogether there might be 8 elements in
each row.

Since this is basically the same javascript function over and over, I
wonder if there is a way to create some <input> element that might
contain this knowledge in a way that javascript can access it.

For example, could I have

<input type="text" class="percent" onkeypress="javascript:blah(event)">

where the javascript function could retrieve the class value?

Since this is going to be fairly complex, I'd like to make it fairly
self-documenting and simple. It's much easier for a maintainer to
understand class="precent" than "javascript:blah(0,100,1,event)",
especially since I am also going to have to pass navigation information
(is this a border element in the table? what are my neighbors? kind
of information... - so that the actual information might end up being
javascript:blah(0,100,1,5,21,16,18,0,1,0,0,event) to denote the data
type, the 4 neighbors, and the 4 border conditions....

View 3 Replies View Related

JQuery :: Selector Incompatibility With Meta Characters?

Dec 22, 2011

I'm working for a company as a consultant and i'm trying to upgrade their jQuery version to the latest available (1.7.1). Previously they were able to do a selection such as $('a[name*=word<>word]') without any problems, however, after upgrading to 1.7.1 the selection is invalid even when escaping both meta characters with a double backslash ( $('a[name*=word\<\>word']) ) - I know the best solution would be to just change the selection based on something else like a class name, but this is something they are using across the whole site and we have a deadline for this.

View 4 Replies View Related

Dynamically Changing Page Title And Meta Description?

Sep 9, 2009

I am using PHP & mySql to grab the title and description that I have stored in a table in the DB.

I am trying to dynamically change the <head> <title></title>, as well as <meta name="Description" content="" /> .

I used document.title to change the title. I see the title changing in the browser, but when I click on view source in the browser to see it int he code, the title is empty. How can I also see it in the code?

How do I change the description in the meta tag?

View 4 Replies View Related

Refresh Parent From IFrame Makes Refresh Loop In FF Only?

Jan 2, 2009

I have this code in a page that appears in my iframe if requested from parent:

<script type="text/javascript">
parent.rrr();
</script>
The parent code is:
function rrr() {
javascript:location.reload(true);
}

So, the person clicks a link from the parent, it does a php process in a hidden iframe, which then tells the parent page to refresh. The only problem is that it puts Firefox in a constant loop of refreshing. IE and Chrome work fine. They refresh once and stop.

Though the src code opens the iframe like so: <iframe src="" style="display:none; height:1px;" name="hdplus" id="hdplus"></iframe> Firefox seems to refresh the page with the memory of the child page being in the iframe, constantly looping the child request to refresh the parent.

Why won't Firefox just accept that no page should load in the iframe, as stated in the code? I need to stop this loop, which means I need to get firefox to reset the iframe as it reloads the page.

View 2 Replies View Related

JQuery :: Using The Validate Plugin With The Meta Data Plugin?

Jan 20, 2010

im using the validate plugin with the meta data plugin

jQuery(document).ready(
function(){
jQuery("#com-createForm").validate({ meta: "rules" } );
});

and then in the html i have for example

[Code]...

View 2 Replies View Related

JQuery :: Refresh DIV With Full Page Refresh?

Aug 11, 2009

How to refresh DIV , without refresh entire page,Am having four DIV ,

DIV1,DIV2,DIV3,DIV4

I want to refresh only DIV! without affecting the DIV3,DIV4 ,

View 8 Replies View Related

Cancel Previous Refresh Request Before New Refresh?

Apr 13, 2011

I have the below code:

<script type="text/javascript">
function loadQuickMessageCheck(File,ID){
var xmlhttp;

[code]....

View 2 Replies View Related

JQuery :: .ajax And Page Refresh In Firefox - Can't Send Form Data In FF Without Page Refresh

Apr 15, 2010

So my problem is that i can't send form data in FF without page refresh (though in IE7-8 everything works smoothly).

My code fragments:

View 1 Replies View Related

Refresh Help

Aug 31, 2005

I have a situation where I need to be able to refresh a windows parent
parent. I can not seem to use anything like

window.opener.parent.location.reload()

as by the time I execute the statement the parent has closed and all
connections closed and I am not even sure that would work!

Is there a way to reference a window to refresh it other than by using
window.parent or window.opener.

View 1 Replies View Related

Refresh

Jan 31, 2006

i would like to refresh an image source, which is alreadz stored in user's cache. one waz would be append some ?time at the end of img's url, bur next time user come accross the picture, the old pic from the old cache would've been loaded..so, i need to force somehow the browser to send a request (it does not send requests for images stored in cache by default)... like f5 (or refresh button)

View 7 Replies View Related

How To Refresh?

Mar 19, 2006

page1 opens page2 in a new window. if the user returns to page1 and makes changes they suppose to be shown in page2 (that is still opened) . is there any way to refresh page2 if page1 was it's opener?

View 4 Replies View Related

Why IE Refresh It Self?

Jan 27, 2002

I have 1 page and this page has button when cliek this button, it pop up new window, I use image instead of button.

The problem is when new window pop up, old windows refresh itself 1 time, why it refresh? how to prevent?

PHP Code:

<input type=image src='emotion.gif' onclick='exmp=window.open("smile.php","isag","toolbar=0, menubar=0, scrollbars=yes, resizable=yes");'>

View 2 Replies View Related

Forcing IE To Refresh?

Jul 23, 2005

I'm writing a script that proactively validates data input.

Under IE, throwing up an alert seems to interfere with the behavior of
radio buttons. In other words, if changing the value of the radio button
field fires the validation, the radio button either isn't set or isn't
displayed correctly after the popup is dismissed.

If I stick the error messages in a non-editable textarea field, the
textarea field doesn't get refreshed.

I tried "focus" - didn't help.

Mozilla works perfectly of course.

View 1 Replies View Related

Refresh ShowModalDialog

Jul 23, 2005

i am trying to refresh a ShowModalDialog that contains information. I have
search about it but it never seems to be possible. As anybody got some
info., way, idea, documentation about a ShowModalDialog refresh.

View 2 Replies View Related

Page Does Not Refresh

Jul 23, 2005

I'm building a suite of free php applications to create virtual worlds.
My problem is i can't get my file to refresh. Can this be done with
javascript? I would like to have the display and the form be on a single
page..unless this can be done with frames.

The sample application contains 2 files:
a)The php file (with input controls and the embedded world)
b)The embedded world (text file)

1. The php file accepts input from the user
2. The user hits Submit which creates the text file for the world
this works - the text file is created with changes. next the page
should refresh itself and show the world based on the user's input.

Right now steps 1 and 2 work perfectly in the sense that the text file
for the world does get created. however the page will still show the
older version of the text file.

To get the page to refresh properly, i have to hit the reload button on
the browser...this gives me the "this page can't be refreshed without
sending..." alert...but it then refreshes and shows the changes.

the code:

View 1 Replies View Related







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