Timeline for JavaScript Remoting on Standard Page Layout
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 6, 2012 at 20:31 | comment | added | jordan.baucke | Yes, that's true it might take a bit longer, but I've done much more complex operations and haven't had any problems getting the results. | |
Sep 6, 2012 at 19:40 | comment | added | Tony H. | I would imagine that would take twice as long if you're iterating through the collection twice. Time is important as javascript remoting functions have a small window in which to get a result from the controller. | |
Sep 6, 2012 at 19:29 | comment | added | jordan.baucke |
Try reworking the query and test if you have the same result: List<sObject> tasks = [SELECT Id...]; and than integer count...for(sObject task : tasks){ count++;} and see if it still has problems.
|
|
Sep 6, 2012 at 18:45 | comment | added | Tony H. | I just confirmed that it does timeout when just the visualforce page is opened as well.Error message: "Unable to connect to server". After refreshing the page 3 times i finally got a count of records on the Task object. This may not have as much to do with JSRemoting as it does with the aggregate query? Just trying to think this through.. | |
Sep 6, 2012 at 17:18 | comment | added | jordan.baucke |
That's weird, I mean the @RemoteAction function should work normally inside of the iFrame whenever it loads. Have you tried the same action just opening the VF page (full window, not inside of iFrame) to see if it loads)?
|
|
Sep 6, 2012 at 16:45 | comment | added | Tony H. | Hi Jordan, the Javascript remoting function is called as soon as the DOM of the iframe is done loading. The javascript remoting functions usually return the error the first couple of attempts in the morning, then, after warmed up, work just fine. Salesforce premier support has been unable to help me with this issue, so i've come to you guys :) | |
Sep 6, 2012 at 16:43 | history | edited | jordan.baucke | CC BY-SA 3.0 |
added 323 characters in body
|
Sep 6, 2012 at 16:36 | history | answered | jordan.baucke | CC BY-SA 3.0 |