Re: HTML fragment identifier

From: Date: Wed, 19 Dec 2001 04:08:34 +0000
Subject: Re: HTML fragment identifier
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2333@lists.php.net to get a copy of this message
Smarty really does not have anything to do with this, it is a function of the url sent to the browser. If the url has the fragment, and the page has the anchor (as you have shown) and the browser supports the scrolling feature, then it will scroll to the correct spot. The only thing Smarty would have to do with it is making sure the named anchors are in the output HTML. Regards. Jason ----- Original Message ----- From: "Lee Doolan" <rldoolan@pacbell.net> To: <smarty@lists.ispi.net> Sent: Tuesday, December 18, 2001 3:26 PM Subject: [smarty] HTML fragment identifier > > > I have some code which instantiates a smarty object and displays > a template which generates an HTML page which has a bunch of > HTML tags like this: > > [. . .] > <a name="CPhowprivate"><strong>How can I keep my gifts private?</strong></a> > [. . .] > <a name="CPhowsource"><strong>How do I get the source code?</strong></a> > [. . .] > > and so forth. Is there a attribute of the smarty object which can be set > for the HTML fragment id, so that when the smarty->display() method is > invoked the browser will scroll to the selected anchor? > > TIA > -lee > > > > > --- > You are currently subscribed to smarty as: sweatjejm@home.com > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/

« previous php.smarty.general (#2333) next »