function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
uxtx_timuxtx_tim 

using jquery and ajax toolkit together

I'm trying to combine jquery's ajax settings object with the force.com ajax toolkit in order to create an ajax enabled tree hierarchy.

 

My thought was that by specifying a synchronous soql query within the settings object, i could use jquery's success setting for my callback instead of the toolkit's onSuccess.  Looking at my js console, it looks like the query is running and im getting a response with the contents of my query back.  However, right after I get a response I run into a javascript error in connection.js saying writer is undefined.

 

What is writer looking for?

 

 

jQuery.ajax({
             "type" : "POST",
             "data" : sforce.connection.query(
                     "Select Name, Id,Signal_ID__c,parent__c From Signal_Element__c WHERE parent__c = null LIMIT 3"),
             "success" : function(){    alert ("successful query");}
  
	});

 writer is undefined in connection.js