473,396 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

auto fresh with a parameter

Hi all,

I am trying to implement something called lightbox for creating
modal forms on a webpage. Any way, I want to an auto redirect to
occur, but I need the redirect to add in a parameter in addition to the
URL.

The way I have seen this parameter passed in is via a link like so:

<a href="form.html" class="lbOn">Click here</a>
I tried using the meta tag (see below) but passing in the class="lbOn"
doesn't seem to work like it does link above.

As always, thank you for your time and help.

<html>

<head>

<link rel="stylesheet"
href="http://localhost:3000/stylesheets/lightbox.css" type="text/css"
/>
<script src="http://localhost:3000/javascripts/prototype.js"
type="text/javascript"></script>
<script src="http://localhost:3000/javascripts/lightbox.js"
type="text/javascript"></script>
<meta HTTP-EQUIV="REFRESH" content="0;
url=http://localhost:3000/AddPatientVisit/form.html" class="lbOn">
<---here is the code in question-->

</head>

<body> <!--onload="doRedirect()">-->

<p>Loading <a href="http://localhost:3000/AddPatientVisit/form.html"
class="lbOn">redirection target</a></p>
<p>In approx. 2 seconds the redirection target page should load.<br>
If it doesn't please select the link above.</p>

</body>

</html>

Apr 27 '06 #1
1 1460
wrote on 27 apr 2006 in comp.lang.javascript:
<meta HTTP-EQUIV="REFRESH" content="0;
url=http://localhost:3000/AddPatientVisit/form.html" class="lbOn">


A meta is an invisible header directive, a class is a css style.

How can an invisible directive have a style,
like a blue color, or a font-size?

What is the sense of having script code and html when the meta
redirects [=refreshes to another page] immediately?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joe Johnson | last post by:
Greetings, I just did a fresh install of Solaris 10 on Sparc. The OS ships with perl_5.8.4. When I run some of my scripts that run fine on Linux, I get this: IO::Seekable::getpos missing at...
20
by: Vijay Kumar R. Zanvar | last post by:
Hello, Unlike register, auto keyword can not be used to declare formal parameter(s). Is there any specific reason for this? Kind regards, Vijay Kumar R. Zanvar
4
by: Mike | last post by:
Hello, I have an autoincrement field and I'm not sure how to use a parameter with it to insert data: this.sqlCommand1.CommandText = "INSERT INTO SickAndTired (String_ID, Input_string) VALUES...
3
by: S.Dickson | last post by:
I had an access database that i use as an ordering system. I have a form for entering customer details. When i add a new customer on the form the customer number is an auto number that appears when...
22
by: nospam_news | last post by:
I currently get asked about my usage of "auto". What is it for? The keyword is clearly superflous here. In contrast to the huge majority of C/C++ developers I write definitions very explicitly...
2
by: pbd22 | last post by:
Hi. I have been wrestling with a problem for over a week now and I think I need to breathe and rethink my approach. I am wondering if somebody wouldn't mind telling me how they would tackle...
0
by: Spam Catcher | last post by:
Hi all, I have a problem with VS.NET for a while which I can't seem to figure out. VS.NET 2005 has a built in web server. When I create a new VB.NET winforms project which references a web...
3
by: Don | last post by:
Is it possible to create a link which will cause either A) the server to serve a fresh copy of a file or B) the browser to "refresh" the copy of the file. Doing it via a link is the only...
1
by: cacarpenter89 | last post by:
When I start Outlook up for the first time after a fresh re-imaging of the hard drive, auto-discover tries to locate an account with the domain name 'user' rather than the domain name of the person...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.