Open GoogleCodeExporter opened 9 years ago
hum ...
http://www.noe-kaleidoscope.org/public/people/DenisB/EDBA/Tables/docsTables.html
is better (sorry)
Original comment by Denis.Bo...@imag.fr
on 16 Feb 2009 at 6:31
It worked in ff 2.XXX but not in ff 3.XXX (in ff 3.XX the <a> do not focus),
I'll
have to change a bit (maybe add a small <input> or something else which do
focus)
Original comment by Denis.Bo...@imag.fr
on 18 Feb 2009 at 12:45
[[#mypage.js]] or [[#mypage.js|mypage]] are rendered correctly and, if you
follow
the link, the target page is rendered as well.
About adding an internal link I read the section Inner Page Anchors:
http://www.wikicreole.org/wiki/Talk.Links
My suggestion is the following
[[#1]] -> <a name='1' />
as stated in that talk and
[[#1|text]] -> <a name='1' href='#1'>text</a>
Just adding to [[...]] tag the name attribute, it would be an automatic anchor
for
another link.
I think this changes should be done in wiki parser, but I will give a look in
the
code later.
Original comment by albertos...@gmail.com
on 18 Feb 2009 at 2:17
>[[#mypage.js]] or [[#mypage.js|mypage]] are rendered correctly and,
>if you follow the link, the target page is rendered as well.
yes, it's ok.
>About adding an internal link I read the section Inner Page Anchors:
>
>http://www.wikicreole.org/wiki/Talk.Links
>
>>My suggestion is the following
>>
>>[[#1]] -> <a name='1' />
>>
>>as stated in that talk and
>>
>>[[#1|text]] -> <a name='1' href='#1'>text</a>
>>
I had, some more comment from the page:
>>>I'd prefer a clearer way to disambiguate anchors and links,
>>>so that links don't need text; e.g. [[@Chater1]] for anchor and
>>>[[#Chapter1]] or [[#Chapter1|Chapter 1]] for link.
>>
(even more true, here, because # have also some meaning in docs ...)
>Just adding to [[...]] tag the name attribute, it would be an
>automatic anchor for another link.
>
>I think this changes should be done in wiki parser,
>but I will give a look in the code later.
ok.
about internal : I mean internal, from the point of view of the wiki (idem for
the
comment from wiki creole), with Code Illuminated, it means internal to some
file in
the documentation (but which file? it is to be said somewhere), not just
internal to
the current file. The wiki, it is the set of all files of the documentation.
Original comment by Denis.Bo...@imag.fr
on 18 Feb 2009 at 2:55
bug "<a> do not focus" solved
Tested on ff3 and chrome.
Working example:
http://www.noe-kaleidoscope.org/public/people/DenisB/EDBA/Tables/docsTables.html
follows normal link: xMail.js
then the new special internal link: docsTables.html#login.js#IdUser
Solution:
App.processors = [
function (docs) {
if (document.location.hash) {
var d = document.location.hash.slice(1,document.location.hash.length).indexOf('#');
if ( d > 1 ) {
var g = document.location.hash.slice(2+d,document.location.hash.length);
if ($(docs).find('h1:contains("'+g+'")').length) {
var n = $(docs).find('h1:contains("'+g+'")')[0].innerHTML;
$(docs).find('h1:contains("'+g+'")')[0].innerHTML= n+'<input type="text" size="1"
style="border:0px" id="focusTarget">focusTarget</input>';
$('#focusTarget').focus();
$(docs).find('h1:contains("'+g+'")')[0].innerHTML=n;
}
else if ($(docs).find('h2:contains("'+g+'")').length) {
var n = $(docs).find('h2:contains("'+g+'")')[0].innerHTML;
$(docs).find('h2:contains("'+g+'")')[0].innerHTML= n+'<input type="text" size="1"
style="border:0px" id="focusTarget">focusTarget</input>';
$('#focusTarget').focus();
$(docs).find('h2:contains("'+g+'")')[0].innerHTML=n;
}
}
}
}
];
Original comment by Denis.Bo...@imag.fr
on 18 Feb 2009 at 3:01
about focus, a very small improvment (I've tried to focus few lines after the
target):
$(docs).find('h1:contains("'+g+'")')[0].innerHTML= n+'<br /><br /><br /><input
type="text" size="1" style="border:0px" id="focusTarget">focusTarget</input>';
$('#focusTarget').focus();
$(docs).find('h1:contains("'+g+'")')[0].innerHTML=n;
Original comment by Denis.Bo...@imag.fr
on 19 Feb 2009 at 7:04
Original issue reported on code.google.com by
Denis.Bo...@imag.fr
on 16 Feb 2009 at 6:29