WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 XTree and special characters, Petter, November 3, 2003
     Re:XTree and special characters, adam, November 3, 2003
     Re:XTree and special characters, adam, November 3, 2003

Subject: XTree and special characters From: Petter Date: November 3, 2003

Hi !

I have this code:

if (document.getElementById) {
var atree = new WebFXTree('Published Documents','./AllDocuments?OpenView');
atree.setBehavior('classic');
var a101 = new WebFXTreeItem('HTP Library','','','K.gif','K.gif');
atree.add(a101);
var a101101 = new WebFXTreeItem('Capital Value Process (CVP)','','','P.gif','Q.gif');
a101.add(a101101);
var a101101101 = new WebFXTreeItem('Capital Value Process (CVP)','','','T.gif','U.gif');
a101101.add(a101101101);
var a101101101101 = new WebFXTreeItem('Petter's Folder','','','R.gif','S.gif');
a101101101.add(a101101101101);
document.write(atree);}

 

When I load the page I get an javascript error. I trace this to the special character ' at line 10 in the code.

How would I go about to include this special character ?

I have tried to replace the character ' with ' , but then the node label displayed: Petter's Folder..

Could I use " instead of ' ?

Thanks a lot in advance !

/Petter




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX