FogBugz Technical Support

A forum for technical support discussion related to Fogbugz.
The current FogBugz Knowledge Base can be found at http://help.fogcreek.com/fogbugz.

Posts by Fog Creek Employees are marked:

Documentation
Release Notes
Network Status

HOWTO Create anchors with the id attribute?

When editing an article is it possible to create anchors with the id attribute? See 12.2.3 in this link:

http://www.w3.org/TR/html401/struct/links.html
Stefan Strandgren Send private email
Wednesday, May 28, 2008
 
 
Hi Stefan,

Funny you should ask that just now because I've just finished an onload script that creates a clickable table of contents in FB wiki articles (using id attributes). I use Greasemonkey to run it, but it could just as easily be included as a script tag in the server header file. The latter approach would, with a little tweaking, allow it to work for ie users (and firefox users without greasemonkey).

The script works by inserting mediawiki-style id attributes into every heading element, after the page has loaded. It also supports linking directly to a heading with the anchor notation (wiki.domain.com/default.asp?w101#my-heading)

Let me know if you're interested, and I'll send it to you.
Aidan Fraser Send private email
Wednesday, May 28, 2008
 
 
The FogBugz wiki does not currently support anchors within a document, unfortunately.  It's definitely on the list of features we're considering for the next release, though.
Eric Nehrlich Send private email
Thursday, May 29, 2008
 
 
Aidan,

I'd love to try out your script if you wouldn't mind sending it my way.

Thanks!
Paul D. Send private email
Thursday, May 29, 2008
 
 
Have sent it to you, Paul. Let me know how you get on with it. I'd be pleasantly surprised if it works in IE without any persuasion. Greasemonkey automatically runs the script in a namespace, and after the onLoad event, so YMMV.

Cheers!
Aidan Fraser Send private email
Monday, June 2, 2008
 
 
Apparently there's a Greasemonkey alternative for IE called GreasemonkIE. I can't vouch for it, but worth a go I'd say.

http://www.daishar.com/blog/archives/2005/03/greasemonkey_fo.html
Aidan Fraser Send private email
Monday, June 2, 2008
 
 
Hi Aidan,

Thanks for the script! It worked perfectly with Greasemonkey. Better yet, I just put the whole script at the end of the wiki template and that worked as well. It didn't seem to work in IE, but that's OK, we're all Firefox here.

Again, thanks for the script.
Paul D. Send private email
Wednesday, June 4, 2008
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz Bug Tracking and Evidence-Based Scheduling.