Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  TreeView LoadXML
Previous Previous
 
Next Next
New Post 4/14/2006 9:57 AM
User is offline Gjergji Spaho
13 posts
www.devalbania.com
10th Ranked


Re: TreeView LoadXML 

Ok here is a simplified version of the treeview(it takes data directly from a simple XML).

http://www.devalbania.com/LandesCalculator/frmDNNTreeView.aspx

The tree is filtered by the category dropdownlist.If a + or - sign of the tree is clicked and then the category is changed in the drop down list the tree doesn't chande.If you change again the category the tree changes.

Here is the code

http://www.devalbania.com/dnntreeview.zip

I really need some help.Thanks in advance!

 
New Post 4/17/2006 8:11 AM
User is offline Jon Henning
1623 posts
www.codeendeavors.com
5th Ranked










Re: TreeView LoadXML 

Looks like you uncovered a bug in the logic used to minimize the payload of the getvar/setvar. Basically I am substituting out the quotes which is serialized with &quote with another character inside the clientapi logic.  I believe I am not doing this substitution correctly in all cases.  If you wouldn't mind trying to replace out the setVar found in the dnn.js file with this newer version.

__dnn.prototype.setVar = function(sKey, sVal)

{

if (this.vars == null)

this.getVars();

this.vars[sKey] = sVal;

var oCtl = dnn.dom.getById('__dnnVariable');

if (oCtl == null)

{

oCtl = dnn.dom.createElement('INPUT');

oCtl.type = 'hidden';

oCtl.id = '__dnnVariable';

dnn.dom.appendChild(dnn.dom.getByTagName("body")[0], oCtl);

}

var sVals = '';

var sKey;

var re = eval('/"/g');

for (sKey in this.vars)

{

sVals += ROW_DELIMITER + sKey + COL_DELIMITER + this.vars[sKey].replace(re, QUOTE_REPLACEMENT);

}

oCtl.value = sVals;

return true;

}

 

Please let me know how this works.


 
New Post 4/18/2006 12:56 AM
User is offline Gjergji Spaho
13 posts
www.devalbania.com
10th Ranked


Re: TreeView LoadXML 

I believe everything is working fine now.

Thank you very much for your support and your great work with the Client API, thanks.

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  TreeView LoadXML
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Code 5 Systems, LLC.
The DNN Missing Link: A Form Module. Form Master 1.6 is an intuitive Form Creation Module at a great price. Quality Custom Module development, and DNN consulting services.
www.code5systems.com
SSL Enabled and Amazingly FAST...
SSL enable your DNN web site with SSLRedirect, compress your DNN web site HTTP data flow by up to 75%-90% with HttpCompressionAgent, and monitor your DNN web site's performance with WebKeepAlive...
www.sanibellogic.com
Ultra Media Gallery & Video Gallery
The most popular photo gallery and video gallery module. with Flash interface.
www.bizmodules.net

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP