<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
What if a title's HREF is pointing to a different page?  Nothing. 8-)<br>
There won't be any problems, UI-wise or HREF link-wise.<br>
<br>
The # at the end of the URL is called a "fragment" (see perldoc URI).<br>
The fragment is essentially ignored in retrieving content from URLs by<br>
web browsers.  It's only really used to short-cut navigation to a<br>
particular part of the page further down, after the first page<br>
"break".  So I'm not modifying what url the HREF is point to at all.<br>
If there happens to be a titlebox on the linked to page, then the<br>
patch takes care of the destination &lt;A NAME&gt;.  If not, then
everything<br>
is still OK because the # and everything past it is ignored.<br>
<br>
For example (my patch applied):<br>
<br>
RTIR Display.html:<br>
<br>
  &lt;a name="The Basics"&gt;&lt;/a&gt;<br>
...<br>
          &lt;a href="/RTIR/Edit.html?id=1#The Basics<br>
<a class="moz-txt-link-rfc2396E" href="view-source:http://rt.xabean.com/RTIR/Edit.html?id=1#The%20Basics">&lt;view-source:http://rt.xabean.com/RTIR/Edit.html?id=1#The%20Basics&gt;</a>"&gt;The<br>
Basics&lt;/a&gt;&lt;/span&gt;<br>
<br>
This works because the destination &lt;A NAME&gt; exists, because
there's a<br>
TitleBox with the same title in the Edit.html page.<br>
<br>
Same page:<br>
<br>
  &lt;a name="Articles"&gt;&lt;/a&gt;<br>
...<br>
          &lt;a href="/RTIR/Advanced.html?id=1#Articles<br>
<a class="moz-txt-link-rfc2396E" href="view-source:http://rt.xabean.com/RTIR/Advanced.html?id=1#Articles">&lt;view-source:http://rt.xabean.com/RTIR/Advanced.html?id=1#Articles&gt;</a>"&gt;Articles&lt;/a&gt;&lt;/span&gt;<br>
<br>
This doesn't, because there isn't a TitleBox on in the Advanced.html<br>
page named "Articles".  But that's ok, because the browser ignores a<br>
link to an &lt;a name&gt; that doesn't exist.<br>
<br>
Does this answer your question?  If there's a better way to do this,<br>
I'm open to suggestions.<br>
<br>
<br>
<br>
On 09/08/09 19:49, Ruslan Zakirov wrote:<br>
<span style="white-space: pre;">&gt; Hello Richard,<br>
&gt;<br>
&gt; What if title's href is pointing to a different page?<br>
&gt;<br>
&gt; On Tue, Sep 8, 2009 at 7:25 PM, Richard<br>
&gt; Harman<a class="moz-txt-link-rfc2396E" href="mailto:rt-devel@richardharman.com">&lt;rt-devel@richardharman.com&gt;</a> wrote:<br>
&gt;&gt; At my office I extended my RT UI by adding four more
TitleBox widgets,<br>
&gt;&gt; to hold custom fields specific to what my office does.  In
order to<br>
&gt;&gt; speed up accessibility, I modified the TitleBoxStart
component to<br>
&gt;&gt; include an &lt;A NAME&gt; tag, and modify the TitleBox's
title to point to the<br>
&gt;&gt; &lt;A NAME&gt; tag.<br>
&gt;&gt;<br>
&gt;&gt; This lets people jump down to the part of the edit page
they're focused<br>
&gt;&gt; on directly, instead of having to scroll down.</span><br>
<br>
- -- <br>
- -----------------------------------------------------------<br>
"Looks like there'll be no money for you, Crazy Round Man."<br>
                                             - Samurai Jack<br>
Richard G Harman Jr           <a class="moz-txt-link-rfc2396E" href="mailto:me+nospam@richardharman.com">&lt;me+nospam@richardharman.com&gt;</a><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
Comment: Using GnuPG with Fedora - <a class="moz-txt-link-freetext" href="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</a><br>
<br>
iEYEARECAAYFAkqm+/MACgkQ3rKdb192Vz/9sQCgiBl616khOHeyGBtzQQ+fW0z8<br>
ksYAoJTN6lcoMIb3hmamYgJ5vFxoqvwR<br>
=lLUg<br>
-----END PGP SIGNATURE-----<br>
<br>
</body>
</html>