On 12 December 2003 14:51, Scott Fletcher wrote:

> It does work now.  Going the other way around does the trick. 
> Surprisely, PHP doesn't treat it as if two seperate thing are combined
> into one post
> data, like color for example that would be displayed as 'redRowNum3'.

That's because PHP never sees the #RowNum3 bit.  The *browser* strips off anything 
after (and including) a #, then makes a request for the page with the shortened URL -- 
in this case, http://www.yourserver.com/yourpage.htm?color=red.  When the page 
resulting from that request is returned to the browser, it's the browser that locates 
the anchor RowNum3 in the page, and automatically scrolls the page so that that anchor 
is in view.

Short explanation: anchors are handled client-side.

> 
> Thanks,
>  Scott
> 
> "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Whoop!  I think I found the problem, let me fix it and see if that
> > work.. 
> > 
> > 
> > "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > That would have been nice but it doesn't seem to work. Alright, I
> > > guess I'll redo the script to make it work differently...
> > > 
> > > Thanks,
> > >  Scott
> > > "Stuart" <[EMAIL PROTECTED]> wrote in message
> > > news:[EMAIL PROTECTED]
> > > > Scott Fletcher wrote:
> > > > > Sample script I have here is this...
> > > > > 
> > > > > --snip--
> > > > > <a href="http://www.yourserver.com/yourpage.htm#RowNum3";
> > > > > target="doc">Jump</a> 
> > > > > 
> > > > > <iframe id="doc" name="doc"
> > > > > src="http://www.yourserver.com/yourpage.htm";></iframe>
> > > > > --snip-- 
> > > > > 
> > > > > Where yourpage.htm have this "<a href='#' name='RowNum3'>blah
> > > > > blah</a>".... 
> > > > > 
> > > > > So, question here is how do I pass the post string to
> the Iframe,
> like
> > > > > "&color=red" in this example, this example doesn't
> work...  The
> iframe
> > > is
> > > > > the target method....
> > > > > 
> > > > > --snip--
> > > > > <a
> href=http://www.yourserver.com/yourpage.htm#RowNum3&color=red
> > > > > target="doc">Jump</a>
> > > > > --snip--
> > > > 
> > > > The anchor goes after the query string, like so...
> > > > 
> > > > <a
> > > > href=http://www.yourserver.com/yourpage.htm?color=red#RowNum3
> > > > target="doc">Jump</a>  
> > > > 
> > > > --
> > > > Stuart

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to