Skip to main content
9 events
when toggle format what by license comment
Dec 9, 2013 at 15:07 vote accept akarnid
Dec 9, 2013 at 9:25 comment added Andrew Fawcett I typically use the debug tools in Chrome under Developer menu, to set break points and step through the code. It may be worth moving to another more specific answer about the JavaScript and the error its throwing.
Dec 8, 2013 at 23:19 comment added akarnid What would be the best way for me to debug this , HTML/JS wise? My problems now have only got to do with updating/rerendering the HTML on the page after calling the RemoteAction.
Dec 8, 2013 at 21:55 comment added akarnid Yah, I figured out that problem. I guess that my problem is now just related to Javascript syntax, since my html/js code is failing and the JS error console in my Chrome throws a ReferenceError: Can't find variable: getStatus . But as far as I can see it's already declared correctly as inside a <script> tag.
Dec 7, 2013 at 20:29 comment added Andrew Fawcett Well this is not really a Apex REST service, its a JavaScript Remoting service for use explicitly through the JS remoting proxies injected into the page. As regards Apex REST services, thats a different question you might want to raise here with more detail, but basically yeah if your method returns a String this forms the response (wrapped in a JSON response) or if you return an object this is serialised into a JSON string or you can control the response directly, there is more in the Apex Developers guide on Apex REST services.
Dec 6, 2013 at 23:42 comment added akarnid I'm wondering about this REST callout service - When I test the endpoint using a tool like Advanced REST Client I get a response from the endpoint. But I'm actually getting nothing at all from the service when I've implemented it via the Apex class. Am I doing something wrong when working with the response? One method of doing it should be instantiating a String var, and then assign the stringified value of the response to that variable. But as far as I can see it's not working. I see when I invoke it via Anonymous Apex that the only thing the response contains are the status code(200 OK)
Dec 3, 2013 at 22:07 comment added Andrew Fawcett Your welcome! Glad this was able to help you out, if it ultimately happens to resolve your issue please indicate its been helpful with an upvote and/or a tick for the correct answer. It not only puts a smile on my face, but more importantly helps future readers know it resolve the problem! :-)
Dec 3, 2013 at 21:45 comment added akarnid thanks for that input Andrew, of course the error was because of the apex:commandButton. I'll keep trying this with the regular button.
Dec 3, 2013 at 21:25 history answered Andrew Fawcett CC BY-SA 3.0