Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #15704 > unrolled thread
| Started by | "robertbaer@teranews.com" <robertbaer@localnet.com> |
|---|---|
| First post | 2012-09-05 00:27 -0700 |
| Last post | 2012-09-07 06:55 +0000 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.javascript
How jump inside page? "robertbaer@teranews.com" <robertbaer@localnet.com> - 2012-09-05 00:27 -0700
Re: How jump inside page? SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-09-05 12:03 +0200
Re: How jump inside page? "robertbaer@teranews.com" <robertbaer@localnet.com> - 2012-09-05 11:12 -0700
Re: How jump inside page? "robertbaer@teranews.com" <robertbaer@localnet.com> - 2012-09-06 15:47 -0700
Re: How jump inside page? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-09-07 06:55 +0000
| From | "robertbaer@teranews.com" <robertbaer@localnet.com> |
|---|---|
| Date | 2012-09-05 00:27 -0700 |
| Subject | How jump inside page? |
| Message-ID | <O9D1s.2871$wr2.2283@newsfe08.iad> |
** sample: how can i make it work?
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<!-- sample Does NOT go to "skipp" -->
<div class="grid_13 padtop">
<h3>"Get in Touch"..</h3>
<script>
window.location.replace('s.html#skipp');
</script>
<form id="contact-form">
<div class="success"> Contact form submitted!<br> <strong>We will
be in touch soon.</strong></div>
<fieldset>
<label class="name">
<input type="text" value="Name:">
<span class="error">*This is not a valid name.</span>
<span class="empty">*This field is required.</span>
<span class="clear"></span>
</label>
<label class="email">
<input type="text" value="E-mail:">
<span class="error">*This is not a valid email address.</span>
<span class="empty">*This field is required.</span>
<span class="clear"></span>
</label>
<label class="phone">
<input type="text" value="Phone:">
<span class="error">*This is not a valid phone number.</span>
<span class="empty">*This field is required.</span>
<span class="clear"></span>
</label>
<label class="message">
<textarea>Message:</textarea>
<span class="error">*The message is too short.</span>
<span class="empty">*This field is required.</span>
<span class="clear"></span>
</label>
<div class="buttons"><span><a class="button"
data-type="reset">Clear</a></span>
<span><a class="button"
data-type="submit">Submit</a></span></div>
</fieldset>
</form>
<br>
<a name="skipp">This is after form.<br> </a>
</div>
</body>
</html>
[toc] | [next] | [standalone]
| From | SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> |
|---|---|
| Date | 2012-09-05 12:03 +0200 |
| Message-ID | <5047237c$0$6192$ba4acef3@reader.news.orange.fr> |
| In reply to | #15704 |
Le 05/09/12 09:27, robertbaer@teranews.com a écrit :
> ** sample: how can i make it work?
at time where you try to replace/reload the page, the link 'skipp' isn't
yet knonw
<script>
onload = function() { window.location.replace('#skipp'); }
/*
or :
onload = function() { self.location = '#skipp'; }
*/
</script>
<form id="contact-form" style="margin-bottom:2000px">
--
Stéphane Moriaux avec/with iMac-intel
[toc] | [prev] | [next] | [standalone]
| From | "robertbaer@teranews.com" <robertbaer@localnet.com> |
|---|---|
| Date | 2012-09-05 11:12 -0700 |
| Message-ID | <_BM1s.3079$wr2.477@newsfe08.iad> |
| In reply to | #15705 |
SAM wrote:
>
> at time where you try to replace/reload the page, the link 'skipp' isn't
> yet knonw
>
>
> <script>
>
> onload = function() { window.location.replace('#skipp'); }
> /*
> or :
> onload = function() { self.location = '#skipp'; }
> */
>
> </script>
>
> <form id="contact-form" style="margin-bottom:2000px">
Thanks.
[toc] | [prev] | [next] | [standalone]
| From | "robertbaer@teranews.com" <robertbaer@localnet.com> |
|---|---|
| Date | 2012-09-06 15:47 -0700 |
| Message-ID | <NJ92s.11$vo3.7@newsfe06.iad> |
| In reply to | #15705 |
SAM wrote:
> Le 05/09/12 09:27, robertbaer@teranews.com a écrit :
>> ** sample: how can i make it work?
>
> at time where you try to replace/reload the page, the link 'skipp' isn't
> yet knonw
>
>
> <script>
>
> onload = function() { window.location.replace('#skipp'); }
> /*
> or :
> onload = function() { self.location = '#skipp'; }
> */
>
> </script>
>
> <form id="contact-form" style="margin-bottom:2000px">
>
>
No matter what i do, it does not work; the onload does not "initiate"
the "label" location; all i get is a jump to top of page.
Verified this by starting from one page (r.html) to go the other
(s.html):
<script>
onload = function() { window.location.replace('s.html#skipp'); }
</script>
So..how can i get it to work?
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2012-09-07 06:55 +0000 |
| Message-ID | <XnsA0C75AB4754F6eejj99@194.109.133.133> |
| In reply to | #15754 |
robertbaer@teranews.com wrote on 07 sep 2012 in comp.lang.javascript:
> No matter what i do, it does not work; the onload does not "initiate"
> the "label" location; all i get is a jump to top of page.
> Verified this by starting from one page (r.html) to go the other
> (s.html):
> <script>
> onload = function() { window.location.replace('s.html#skipp'); }
> </script>
>
> So..how can i get it to work?
What is
'not "initiate" the "label" location;',
some ancient initiation rite?
just put
<a name='skipp'></a>
somewhere,
and start debugging by directly loading [in your browser]:
<http://www.yoursite.xx/yourdir/s.html#skipp>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web