You need to sign in to do that
Don't have an account?
cby016
update opportunity value without reloading the page
I have a custom button that does an ajax request to another server and retrieves some information. I then update the opportunity with the retrieved information. I would like to update the dom with the new information without having to reload the page, after all isn't that what ajax is for - to update the current page without reloading the whole page?
You might be able to do that, but it would be a massive hack that would break as soon as Salesforce.com changed the page structure. The pages have no API for field manipulation in that manner. So I'd advise against it.
I recommend that you do not do this in an S-Control. Instead, use a Visualforce page with an Extension. This will allow you to update the page's data using AJAX. As stated before, the DOM could change at any time (although it has been generally stable for at least five years, it could change any day).