<!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 <A NAME>. 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>
<a name="The Basics"></a><br>
...<br>
<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"><view-source:http://rt.xabean.com/RTIR/Edit.html?id=1#The%20Basics></a>">The<br>
Basics</a></span><br>
<br>
This works because the destination <A NAME> exists, because
there's a<br>
TitleBox with the same title in the Edit.html page.<br>
<br>
Same page:<br>
<br>
<a name="Articles"></a><br>
...<br>
<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"><view-source:http://rt.xabean.com/RTIR/Advanced.html?id=1#Articles></a>">Articles</a></span><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 <a name> 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;">> Hello Richard,<br>
><br>
> What if title's href is pointing to a different page?<br>
><br>
> On Tue, Sep 8, 2009 at 7:25 PM, Richard<br>
> Harman<a class="moz-txt-link-rfc2396E" href="mailto:rt-devel@richardharman.com"><rt-devel@richardharman.com></a> wrote:<br>
>> At my office I extended my RT UI by adding four more
TitleBox widgets,<br>
>> to hold custom fields specific to what my office does. In
order to<br>
>> speed up accessibility, I modified the TitleBoxStart
component to<br>
>> include an <A NAME> tag, and modify the TitleBox's
title to point to the<br>
>> <A NAME> tag.<br>
>><br>
>> This lets people jump down to the part of the edit page
they're focused<br>
>> 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"><me+nospam@richardharman.com></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>