[Javascript] Form Elements Show Through My Layer?

Peter Brunone peter at brunone.com
Sat Jun 23 13:53:47 CDT 2001


Jay,

	Possibly, but don't get your hopes up.  Form elements have a nasty habit of
showing up that way.

	You might try putting the form inside a layer and making that layer
invisible...

Regards,

Peter

|-----Original Message-----
|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
|Behalf Of Jay Lepore
|Sent: Saturday, June 23, 2001 11:01 AM
|To: javascript at LaTech.edu
|Subject: [Javascript] Form Elements Show Through My Layer?
|
|
|Hello,
|
|When I make a layer visible on top of a form element, the form element
|shows through.  Is there a browser-independent way of curing that one?
|
|Thanks.
|
|Jay
|
|-----Original Message-----
|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]
|On Behalf Of javascript-request at LaTech.edu
|Sent: Saturday, June 09, 2001 1:01 PM
|To: javascript at LaTech.edu
|Subject: Javascript digest, Vol 1 #135 - 11 msgs
|
|Send Javascript mailing list submissions to
|	javascript at LaTech.edu
|
|To subscribe or unsubscribe via the World Wide Web, visit
|	http://www.LaTech.edu/mailman/listinfo/javascript
|or, via email, send a message with subject or body 'help' to
|	javascript-request at LaTech.edu
|
|You can reach the person managing the list at
|	javascript-admin at LaTech.edu
|
|When replying, please edit your Subject line so it is more specific
|than "Re: Contents of Javascript digest..."
|
|
|Today's Topics:
|
|   1. Email validation question (Neal, Craig)
|   2. RE: Email validation question (Josiah Gordon)
|   3. Automated Reload (Reuben D Budiardja)
|   4. Re: Automated Reload (Peter-Paul Koch)
|   5. RE: Automated Reload (Andrew Dunn)
|   6. RE: Automated Reload (Andrew Gibson)
|   7. RE: Automated Reload (Peter-Paul Koch)
|   8. Re: Automated Reload (Reuben D Budiardja)
|   9. Re: Automated Reload (Peter-Paul Koch)
|  10. Re: Automated Reload (TomMallard)
|  11. Know which video to play (Peter Liu)
|
|--__--__--
|
|Message: 1
|From: "Neal, Craig" <CNeal at dthr.ab.ca>
|To: "'javascript at LaTech.edu'" <javascript at LaTech.edu>
|Date: Thu, 7 Jun 2001 11:20:43 -0600
|Subject: [Javascript] Email validation question
|Reply-To: javascript at LaTech.edu
|
|I'm having trouble finding the answer I need in my JavaScript books
|regarding client-side JavaScript validation.
|
|Typical email validation routines include:
|
|if (document.form.formfield.value.indexOf("@") == -1)
|
|However I need to make sure that a user doesn't enter 2 or more email
|addresses in the form field and this only tests to see if there are no @
|characters. How do I code it to test for 0 and 2 or more?
|
|Thanks
|
|
|--__--__--
|
|Message: 2
|From: "Josiah Gordon" <jgordon at directfile.com>
|To: <javascript at LaTech.edu>
|Subject: RE: [Javascript] Email validation question
|Date: Fri, 8 Jun 2001 10:35:49 -0700
|Reply-To: javascript at LaTech.edu
|
|Try a regular expression search for multiple occurrences of "@".
|
|var pattern = new RegExp("/@{2,}/");
|var fieldValue = "john at aol.com, kim at aol.com";
|var result = fieldValue.match(pattern);
|if (result != null) {
|	//multiple @s found
|}
|
|
|--Josiah Gordon
|
|-----Original Message-----
|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
|Behalf Of Neal, Craig
|Sent: Thursday, June 07, 2001 10:21 AM
|To: 'javascript at LaTech.edu'
|Subject: [Javascript] Email validation question
|
|
|I'm having trouble finding the answer I need in my JavaScript books
|regarding client-side JavaScript validation.
|
|Typical email validation routines include:
|
|if (document.form.formfield.value.indexOf("@") == -1)
|
|However I need to make sure that a user doesn't enter 2 or more email
|addresses in the form field and this only tests to see if there are no @
|characters. How do I code it to test for 0 and 2 or more?
|
|Thanks
|
|_______________________________________________
|Javascript mailing list
|Javascript at LaTech.edu
|http://www.LaTech.edu/mailman/listinfo/javascript
|
|
|
|
|--__--__--
|
|Message: 3
|Date: Sat, 09 Jun 2001 00:14:17 -0500
|To: javascript at LaTech.edu
|From: "Reuben D Budiardja" <reubendb at goshen.edu>
|Subject: [Javascript] Automated Reload
|Reply-To: javascript at LaTech.edu
|
|Hi,
|Could someone point out to me on how to make a page automatically reload
|
|after some interval of time? say, I want the page to be automatically
|reload every 30 minutes?
|
|Thanks in advance.
|Reuben D. Budiardja
|
|
|
|
|
|
|--__--__--
|
|Message: 4
|From: "Peter-Paul Koch" <gassinaumasis at hotmail.com>
|To: javascript at LaTech.edu
|Subject: Re: [Javascript] Automated Reload
|Date: Sat, 09 Jun 2001 10:27:01 -0000
|Reply-To: javascript at LaTech.edu
|
|
|
|>Could someone point out to me on how to make a page automatically
|reload
|>after some interval of time? say, I want the page to be automatically
|>reload every 30 minutes?
|
|<META HTTP-EQUIV="refresh" CONTENT="1800;URL=thepage.html">
|
|refreshes to thepage.html after 1800 seconds.
|
|ppk
|
|________________________________________________________________________
|_
|Get Your Private, Free E-mail from MSN Hotmail at
|http://www.hotmail.com.
|
|
|
|--__--__--
|
|Message: 5
|From: "Andrew Dunn" <adunn at mail.interworx.com.au>
|To: <javascript at LaTech.edu>
|Subject: RE: [Javascript] Automated Reload
|Date: Sat, 9 Jun 2001 21:03:32 +1000
|Reply-To: javascript at LaTech.edu
|
|Hi,
|   I have a problem along this line as well. I have a page that allows
|users
|to update a field in a database. When the field has been updated the
|user is
|sent back using the history.back(); function. When they are sent back i
|want
|a hidden form to submit so it will refresh the page, with the updated
|information. I wanted to use the history.next property to check if the
|user
|came from the update page but it seems IE does not support this. Is
|there
|anyway to check what page the user came from to see whether the info has
|to
|be updated?
|
|Andrew
|
|-----Original Message-----
|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
|Behalf Of Peter-Paul Koch
|Sent: Saturday, 9 June 2001 8:27 PM
|To: javascript at LaTech.edu
|Subject: Re: [Javascript] Automated Reload
|
|
|
|
|>Could someone point out to me on how to make a page automatically
|reload
|>after some interval of time? say, I want the page to be automatically
|>reload every 30 minutes?
|
|<META HTTP-EQUIV="refresh" CONTENT="1800;URL=thepage.html">
|
|refreshes to thepage.html after 1800 seconds.
|
|ppk
|
|________________________________________________________________________
|_
|Get Your Private, Free E-mail from MSN Hotmail at
|http://www.hotmail.com.
|
|
|_______________________________________________
|Javascript mailing list
|Javascript at LaTech.edu
|http://www.LaTech.edu/mailman/listinfo/javascript
|
|
|
|--__--__--
|
|Message: 6
|From: "Andrew Gibson" <andyg at ihug.co.nz>
|To: <javascript at LaTech.edu>
|Subject: RE: [Javascript] Automated Reload
|Date: Sat, 9 Jun 2001 23:05:02 +1200
|Reply-To: javascript at LaTech.edu
|
|Instead of history.back()
|why don't you redirect them and append a querystring to
|the page. In asp I'd do it like this
|
|' do database stuff
|response.redirect "first.asp?done=yes"
|
|then on the original page first.asp
|
|if request.querystring("done")="yes" then
| ' populate page with new data
|end if
|
|
| > Hi,
| >    I have a problem along this line as well. I have a page that
| > allows users
| > to update a field in a database. When the field has been updated
| > the user is
| > sent back using the history.back(); function. When they are sent
| > back i want
| > a hidden form to submit so it will refresh the page, with the updated
| > information. I wanted to use the history.next property to check
| > if the user
| > came from the update page but it seems IE does not support this. Is
|there
| > anyway to check what page the user came from to see whether the
| > info has to
| > be updated?
| >
| > Andrew
| >
| > -----Original Message-----
| > From: javascript-admin at LaTech.edu
|[mailto:javascript-admin at LaTech.edu]On
| > Behalf Of Peter-Paul Koch
| > Sent: Saturday, 9 June 2001 8:27 PM
| > To: javascript at LaTech.edu
| > Subject: Re: [Javascript] Automated Reload
| >
| >
| >
| >
| > >Could someone point out to me on how to make a page automatically
|reload
| > >after some interval of time? say, I want the page to be
|automatically
| > >reload every 30 minutes?
| >
| > <META HTTP-EQUIV="refresh" CONTENT="1800;URL=thepage.html">
| >
| > refreshes to thepage.html after 1800 seconds.
| >
| > ppk
| >
| >
|________________________________________________________________________
|_
| > Get Your Private, Free E-mail from MSN Hotmail at
|http://www.hotmail.com.
| >
| >
| > _______________________________________________
| > Javascript mailing list
| > Javascript at LaTech.edu
| > http://www.LaTech.edu/mailman/listinfo/javascript
| >
| >
| > _______________________________________________
| > Javascript mailing list
| > Javascript at LaTech.edu
| > http://www.LaTech.edu/mailman/listinfo/javascript
| >
|
|
|
|--__--__--
|
|Message: 7
|From: "Peter-Paul Koch" <gassinaumasis at hotmail.com>
|To: javascript at LaTech.edu
|Subject: RE: [Javascript] Automated Reload
|Date: Sat, 09 Jun 2001 13:41:59 -0000
|Reply-To: javascript at LaTech.edu
|
|
|
|
|>    I have a problem along this line as well. I have a page that allows
|
|>users to update a field in a database. When the field has been updated
|the
|>user is sent back using the history.back(); function. When they are
|sent
|>back i want a hidden form to submit so it will refresh the page, with
|the
|>updated information.
|
|I think it's easier to submit the form to the same page, where a script
|first stores the input in the database and then prints the HTML page,
|including the new info. This way you don't have these complex refresh
|problems.
|
|In fake syntax:
|
|<server side script>
|if (form submitted)
|{
|store value in databse
|}
|
|print "Content-type: text/html\n\n";
|print "<HTML>etc.";
|print "<FORM METHOD=POST>"; // no ACTION, submits to itself
|print "<INPUT VALUE="<% get from database %>">";
|</server side script>
|
|If the user doesn't submit the form (if he enters the page through a
|normal
|link) he sees the old value, if he submits the form he sees the new
|value.
|
|ppk
|
|________________________________________________________________________
|_
|Get Your Private, Free E-mail from MSN Hotmail at
|http://www.hotmail.com.
|
|
|
|--__--__--
|
|Message: 8
|Date: Sat, 09 Jun 2001 09:38:58 -0500
|To: javascript at LaTech.edu
|From: "Reuben D Budiardja" <reubendb at goshen.edu>
|Subject: Re: [Javascript] Automated Reload
|Reply-To: javascript at LaTech.edu
|
|Thanks. But, something has changed in my application design. I need to
|reload the page automatically as well as submiting some informartion to
|the
|database back end.
|
|So, what I really want is to be able to automatically submit every 30
|minutes, for example. How do I do that?
|
|MY first thought was to put the argument / query string in the URL, but
|I
|wonder if that's the only way, because I don't really want to
|necessarily
|display all my query string.
|
|Thanks a lot.
|Reuben D. Budiardja
|
|At 10:27 AM 6/9/01 +0000, you wrote:
|
|
|>>Could someone point out to me on how to make a page automatically
|reload
|>>after some interval of time? say, I want the page to be automatically
|>>reload every 30 minutes?
|>
|><META HTTP-EQUIV="refresh" CONTENT="1800;URL=thepage.html">
|>
|>refreshes to thepage.html after 1800 seconds.
|>
|>ppk
|>
|>_______________________________________________________________________
|__
|>Get Your Private, Free E-mail from MSN Hotmail at
|http://www.hotmail.com.
|>
|>
|>_______________________________________________
|>Javascript mailing list
|>Javascript at LaTech.edu
|>http://www.LaTech.edu/mailman/listinfo/javascript
|
|
|
|--__--__--
|
|Message: 9
|From: "Peter-Paul Koch" <gassinaumasis at hotmail.com>
|To: javascript at LaTech.edu
|Subject: Re: [Javascript] Automated Reload
|Date: Sat, 09 Jun 2001 15:43:43 -0000
|Reply-To: javascript at LaTech.edu
|
|
|
|
|>Thanks. But, something has changed in my application design. I need to
|>reload the page automatically as well as submiting some informartion to
|the
|>database back end.
|>
|>So, what I really want is to be able to automatically submit every 30
|>minutes, for example. How do I do that?
|>
|>MY first thought was to put the argument / query string in the URL, but
|I
|>wonder if that's the only way, because I don't really want to
|necessarily
|>display all my query string.
|
|Or a script that's called onLoad
|
|function submitIt()
|{
|setTimeout('document.forms[0].submit()',1800000)
|}
|
|(time in milliseconds)
|
|ppk
|
|________________________________________________________________________
|_
|Get Your Private, Free E-mail from MSN Hotmail at
|http://www.hotmail.com.
|
|
|
|--__--__--
|
|Message: 10
|From: "TomMallard" <mallard at serv.net>
|To: <javascript at LaTech.edu>
|Subject: Re: [Javascript] Automated Reload
|Date: Sat, 9 Jun 2001 09:10:51 -0700
|Organization: Individual
|Reply-To: javascript at LaTech.edu
|
|"reload the page automatically"...like refresh? A meta tag should take
|care
|of this.
|
|tom
|----- Original Message -----
|From: "Reuben D Budiardja" <reubendb at goshen.edu>
|To: <javascript at LaTech.edu>
|Sent: Saturday, June 09, 2001 7:38 AM
|Subject: Re: [Javascript] Automated Reload
|
|
|> Thanks. But, something has changed in my application design. I need to
|> reload the page automatically as well as submiting some informartion
|to
|the
|> database back end.
|>
|> So, what I really want is to be able to automatically submit every 30
|> minutes, for example. How do I do that?
|>
|> MY first thought was to put the argument / query string in the URL,
|but I
|> wonder if that's the only way, because I don't really want to
|necessarily
|> display all my query string.
|>
|> Thanks a lot.
|> Reuben D. Budiardja
|>
|> At 10:27 AM 6/9/01 +0000, you wrote:
|>
|>
|> >>Could someone point out to me on how to make a page automatically
|reload
|> >>after some interval of time? say, I want the page to be
|automatically
|> >>reload every 30 minutes?
|> >
|> ><META HTTP-EQUIV="refresh" CONTENT="1800;URL=thepage.html">
|> >
|> >refreshes to thepage.html after 1800 seconds.
|> >
|> >ppk
|> >
|>
|>_______________________________________________________________________
|__
|> >Get Your Private, Free E-mail from MSN Hotmail at
|http://www.hotmail.com.
|> >
|> >
|> >_______________________________________________
|> >Javascript mailing list
|> >Javascript at LaTech.edu
|> >http://www.LaTech.edu/mailman/listinfo/javascript
|>
|>
|> _______________________________________________
|> Javascript mailing list
|> Javascript at LaTech.edu
|> http://www.LaTech.edu/mailman/listinfo/javascript
|>
|
|
|
|--__--__--
|
|Message: 11
|Date: Sat, 09 Jun 2001 16:49:50 -0000
|From: "Peter Liu" <cpl874 at optimum.com>
|To: javascript at LaTech.edu
|Subject: [Javascript] Know which video to play
|Reply-To: javascript at LaTech.edu
|
|I have a HTML, functions as a menu, with multiple video links.
|Instead of creating multiple HTMLs to house each individual video,
|I'd like to have just 1 HTML that knows what the user has clicked.
|Based on what's clicked, embed the right video (WMV) in another page
|with video interface.
|
|Please give me a pointer for link to sample javascript that can
|achieve this!!
|
|Thanks a lot for the help,
|
|
|Liu
|
|
|
|
|--__--__--
|
|_______________________________________________
|Javascript mailing list
|Javascript at LaTech.edu
|http://www.LaTech.edu/mailman/listinfo/javascript
|
|
|End of Javascript Digest
|
|
|_______________________________________________
|Javascript mailing list
|Javascript at LaTech.edu
|http://www.LaTech.edu/mailman/listinfo/javascript
|





More information about the Javascript mailing list