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
NTNT 

sforce.apex.execute issue

Hi All,
 
I am using sforce.apex.execute call to execute a apex class web method from Visual force page through javascript .
 
some times it works and some times it doesn't work.
 
It was working fine in 08 release but not in 09 release
 
Please help
 
 
Nitin Gupta
 
 
 


Message Edited by NT on 10-24-2008 05:14 AM
JimRaeJimRae
Can you provide any more information?  Do you get an error?  What is the error message?  Any other details about the specific times when it works versus when it doesn't?
Ron HessRon Hess
the visualforce page may not contain the session ID that the Ajax toolkit uses.  Normally AJAX toolkit is loaded from an SControl, which does load the session id.

does your call work correctly when run from an SControl?

if so, you may have to set the session ID on your Visualforce page using the global variable merge field.