Here's a patch (untested):
Index: monodoc.ashx
===================================================================
RCS file: /cvs/public/monodoc/browser/web/monodoc.ashx,v
retrieving revision 1.9
diff -u -r1.9 monodoc.ashx
--- monodoc.ashx 8 Aug 2003 04:34:44 -0000 1.9
+++ monodoc.ashx 10 Aug 2003 22:45:54 -0000
@@ -81,6 +81,7 @@
w.WriteStartElement ("tree");
w.WriteAttributeString ("text",
n.Caption);
w.WriteAttributeString ("action",
"monodoc.ashx?tlink="+n.tree.HelpSource.SourceID + "@" +
HttpUtility.UrlEncode (n.URL));
+ w.WriteAttributeString ("target",
"content");
if (n.Nodes != null){
w.WriteAttributeString ("src",
"monodoc.ashx?tree=" + tree + "@" + i);
}
@@ -250,13 +251,15 @@
webFXTreeConfig.tIcon =
'xtree/images/msdn/menu_tee.gif';
var tree = new WebFXTree('Mono Documentation');
+ var node;
");
for (int i = 0; i < help_tree.Nodes.Count; i++)
{
+ context.Response.Write ("node = ");
Node n = (Node)help_tree.Nodes [i];
if (n.Nodes.Count != 0)
- context.Response.Write
(@"tree.add(new WebFXLoadTreeItem('");
+ context.Response.Write (@"new
WebFXLoadTreeItem('");
else
- context.Response.Write
(@"tree.add(new WebFXTreeItem('");
+ context.Response.Write (@"new
WebFXTreeItem('");
context.Response.Write (n.Caption);
if (n.Nodes.Count != 0) {
@@ -269,7 +272,9 @@
context.Response.Write
(context.Request.Path);
context.Response.Write (@"?link=");
context.Response.Write (n.URL);
- context.Response.Write (@"')); ");
+ context.Response.Write ("');\n");
+ context.Response.Write ("node.target =
'content';\n");
+ context.Response.Write ("tree.add
(node);\n");
}
context.Response.Write (@"
document.write(tree);
Piers.
> -----Original Message-----
> From: Piers Haken
> Sent: Sunday, August 10, 2003 3:32 PM
> To: Miguel de Icaza
> Cc: Mono Docs; [EMAIL PROTECTED]
> Subject: RE: [Mono-list] Live Monodoc server.
>
>
> I think you need to set add an attribute 'target="content"'
> to each of the XML tree items and each of the root WebFXLoadTreeItems.
>
> Then you can remove the base element.
>
> Piers.
>
> > -----Original Message-----
> > From: Miguel de Icaza [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, August 10, 2003 8:20 AM
> > To: Piers Haken
> > Cc: Mono Docs; [EMAIL PROTECTED]
> > Subject: RE: [Mono-list] Live Monodoc server.
> >
> >
> > Hello!
> >
> > > I should clarify this. The tree doesn't work in IE, and I
> > think it's
> > > this line that's the culprit. All the URLs are being expanded as
> > > "http://./..."
> >
> > Yeah, but if I make this change the target of clicking on a
> > link starts
> > changing the other panel. Any suggestions about how to fix this?
> >
> > Miguel
> >
> _______________________________________________
> Mono-list maillist - [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/mono-list
>
_______________________________________________
Mono-docs-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-docs-list