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  |  

DotNetNuke Marketplace
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


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
1622 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.

 


Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com
Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com
TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com

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