Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Using ResultSet to load dynamically into treeview   Message List  
Reply | Forward Message #33895 of 52117 |
I am calling a jsp within the loadNodeData function to perform a a
query and return a result containing an array of strings. How do I
get the query results into oResults and ResultSet below? Which
script should I include for ResultSet?

function loadNodeData(node, fnLoadComplete) {

var nodeLabel = encodeURI(node.label);

//prepare URL for XHR request:
var sUrl = "/orderpkg/hi.jsp?orderid="+nodeLabel+"&doc=COI";

//prepare our callback object
var callback = {
success: function(oResponse) {
var oResults = eval("(" + oResponse.responseText + ")");
if((oResults.ResultSet.Result) &&(oResults.ResultSet.Result.length))
{
success: function(oResponse) {
if(YAHOO.lang.isArray(oResponse.responseText)) {
----
}
}





Sun Jul 6, 2008 9:53 pm

lmadhavrao
Offline Offline
Send Email Send Email

Forward
Message #33895 of 52117 |
Expand Messages Author Sort by Date

I am calling a jsp within the loadNodeData function to perform a a query and return a result containing an array of strings. How do I get the query results...
lmadhavrao
Offline Send Email
Jul 6, 2008
9:54 pm

function loadNodeData(node, fnLoadComplete) { var nodeLabel = _encodeURIComponent_(node.label); var sUrl = "/orderpkg/hi.jsp?orderid=" + nodeLabel +...
Satyam
satyamutsa
Offline Send Email
Jul 7, 2008
7:19 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help