With AJAX (Asynchronous JavaScript and XML), web applications can send data to, and retrieve data from, a server asynchronously.

learn more… | top users | synonyms

0
votes
1answer
24 views

ajax toolkit : Javascript alert not displaying any value

This is OnClick Javascript code invoked from a List Button on a related list UI. var cid = '{!Case.Id}'; varQueryString = "select id,integration_status__c,Target_System__c from transaction__c ...
3
votes
1answer
89 views

How do I use Javascript or jQuery externally to send data to Salesforce Leads?

I have a website form using HTML and jQuery/Javascript on my own domain that I want to post to Salesforce (web2lead or not, as long as it gets there) using an ajax call. I keep getting the ...
3
votes
1answer
210 views

How can I use AJAX to check whether a user has Development Mode enabled?

I'm using a Homepage Component to make an AJAX request from the built-in "Send an Email" to a Visualforce page I have written. The Visualforce page then returns JSONP for the original page to use. ...
3
votes
2answers
56 views

How to use 'in' clause in salesforce ajax query?

In document.ready method i am doing this var setIds=new Array() //array of saleforce ids $(sel).each(function() { setIds.push("'"+$(this).attr('id')+"'"); ...
0
votes
1answer
41 views

ActionStatus firing an event Twice on VF Page

Feel I am missing something obvious...I have a page with a button that calls a web service, then re-renders an output panel to show the results EDIT - seems to be an issue with PageBlockButtons? ...
4
votes
2answers
99 views

How to create and save a Task with URL button without navigating to Task screen

I have a url custom button on the Lead and Contact record. It creates a completed task on that record. However, I would like it so that when I click on the button, called "Log a Visit", the screen ...
0
votes
1answer
61 views

problem with actionfunction

I have a page with actionFunction to get a parameter onclick on an outputLink from 3 defined. but this warning appear after loading the page before I click on anything.. ...
1
vote
2answers
175 views

Custom Button Javascript…Webservice is not called

Return value from Apex method to Javascript in Salesforce using a custom button.For that i have controller : global class web { Webservice static String fetch(Id localId) { return ...
1
vote
1answer
63 views

Cross domain issue

I am trying to access SOAP API from site.com page through AJAX call. In browser it is showing error like 'No 'Access-Control-Allow-Origin' header is present on the requested resource...' . How can I ...
4
votes
1answer
387 views

how to display loading animation image while inline vf page is loading?

i am having two inline visualforce pages that has been embedded in account detail page. The data for the inline vf pages are coming from a webservice. Since it is a webservice call it takes few ...
3
votes
0answers
103 views

Odd behaviour with custom URL button

I am trying to create a record from another object page with this custom URL button. {!REQUIRESCRIPT('/soap/ajax/29.0/connection.js')} var newOpp = new sforce.SObject('Opportunity'); ...
3
votes
1answer
38 views

apex:actionStatus: rendering stopText dynamically

I have a button that updates some fields on a selected record. After update, I want to show the user the name of the updated record (the record was chosen by user via picklist) Here's what I did: ...
1
vote
1answer
183 views

Creating dynamic filter report in salesforce .want to get results in the same page?

<apex:page > <html> <form method="get" action="https://cs6.salesforce.com/00ON0000000FOHS" > <b>Enter Text</b><input type="text" id="pv2" name="pv2"/> ...
2
votes
3answers
172 views

How to perform equivalent of an AJAX long-poll with Visualforce

I have a web page that communicates with a node.js backend. I use AJAX to long-poll the server, allowing realtime updates to be received as they occur server-side. Below is a simplification of my ...
2
votes
0answers
133 views

Get Current User Contacts via Ajax Request

Is there a way of fetch a current user's contact information from a canvas app via an ajax (javascript) request? Thanks.
9
votes
3answers
2k views

How are request parameters sent via <apex:actionFunction> component

when we use apex:param inside an apex:actionFunction component as given below <apex:page controller="testCon"> <apex:outputText value="Clicked? {!state}" id="showstate" /> ...
1
vote
1answer
225 views

Behavior of rerender attribute and stop facet

I was looking into example of apex:selectList in salesforce doc and in the following sample code mentioned in the doc <apex:page controller="sampleCon"> <apex:form> <apex:selectList ...
2
votes
1answer
95 views

How to cancel form ajax way?

I have a page linking with a custom object. If you click on the edit link you can edit and update the custom object. I want to do all of this by just rerender a section without redirecting to another ...
3
votes
1answer
406 views

Inline ajax edit of pageBlockTable columns

I've been searching for a simple example but I think those that I've found were too big or didn't answer my question on its main point so here it goes. My question is if it's possible to inline edit ...
4
votes
1answer
249 views

Ajax Toolkit, asynchronous javascript return values to a global variable

I am creating this Visual force page that will heavily rely on the Ajax tool kit and trying to do it asynchronous style, because I think that is what the cool kids are doing. Is it not possible to ...
1
vote
1answer
344 views

JavaScript Ajax not finding the RemoteAction method in my controller

I have a method in my Controller that is defined as: @RemoteAction global static Chart getChartObject( String chartName, String patient ){..} The return value is a class defined inside the ...
1
vote
1answer
152 views

salesforce XMLHttpRequest on IE10

Salesforce overrides XMLHttpRequest whenever I use IE10. Because of this we can't use Jquery File Upload to post files to S3. What could be walk around to this problem? or This is just a simple bug ...
20
votes
2answers
335 views

Error handling from JS remoting

We are using JS remoting. Found this interesting race condition: JS Remoting AJAX request made by user. Before it completes the user moves to another page When user moves browser to another page ...
3
votes
2answers
327 views

Ajax Request Returns Nothing

I'm trying to post some data via ajax and get a response back indicating if the post worked correctly, however I'm running into some issues. I have a visualforce page called updateLog ...
3
votes
2answers
691 views

Is there a json object that gets returned on the web-to-lead submit?

Using slightly custom web-to-lead form and thinking about using ajax to send the data and wait for a response json object. Is there any object that gets returned? The main idea was: function ...
4
votes
1answer
337 views

AJAX Rendering Corrupts HTML

I started to learn VF a few weeks ago and I created a page (no sidebar, no header) with three sections: 1. Search 2. List of Results 3. View Details I want to use AJAX when the search button is ...
3
votes
1answer
1k views

Access Denied during Ajax call in IE

I have a VF page which makes a Ajax call to an external REST API. It works perfectly as expected in Chrome browser, but it fails in IE with a error "Access Denied". Initially, IE gave a error "No ...
5
votes
1answer
279 views

input type color and upload file

I'm trying to allow a user to both upload a document and utilize the HTML input type="color". Then click Save and have both saved to the record. The color as a field on the record, the file as an ...
3
votes
1answer
92 views

Handling network failure on AJAX requests

I need to be able to handle network failure on AJAX requests. For example, a user looses their wifi connection. What I could do is put a timeout on all AJAX requests and assume that if they ...
4
votes
1answer
228 views

Catching all errors when using ajax toolkit

I am writing some javascript to be executed by a custom button on a Lead page. I would like to capture all of the validation errors that may be thrown when I update the page. It seems that if I save ...
2
votes
2answers
212 views

Button redirects page before async call is finished in another field

I am really confused as to how to solve this issue I have on a visualforce page. Basically I have a pageblock table with some Opportunity Products displayed. On the onchange event of the fields in the ...
4
votes
1answer
170 views

forcetk proxy gets a 302 in session timeout

I am using the forcetk proxy so that I can send AJAX requests and not have to worry about the cross domain restrictions. The sequence is: I am on page in myapp. ...
2
votes
1answer
181 views

Handling session timeouts from AJAX requests

I need to able to handle session timeouts nicely from ajax requests. So the user's session has timeout and they should get redirected to the userlogin page if they submit an ajax request. I just ...
-2
votes
1answer
276 views

Visualization chart not being displayed

I'm using the code below but it is no showing any chart, is there an obvious reason why? < script type="text/javascript" src="http://google.com/jsapi"></script> <script ...
2
votes
1answer
111 views

JS remoting question

I am a newbie to SF. We have a spring MVC application. The controller returns the result as JSON object. My task is to call that controller method using JS remoting and display the results in ...
2
votes
0answers
142 views

Salesforce AJAX API not allowing ContentVersion Create

I've this code to create a Content record from AJAX toolkit api: And when I click upload of file this is the SOAP packet that gets posted and in return I get this error: <se:Envelope ...
3
votes
1answer
201 views

Visualforce ajax Uncaught Error: NOT_SUPPORTED_ERR: DOM Exception 9

I have got a visualforce page which uses ajax components actionFunction and actionStatus. Whenever the actionFunction is called, I use actionStatus to show the status. The onstart works fine, but the ...
5
votes
1answer
1k views

Visualforce: Major grief with IE9 AJAX refresh/rerender issues

Friends, I have a VF page which is part of a customer portal. This page displays records from custom object in a Apex:DataTable. I have added pagination with Prev,Next,First,Last links to enable ...
1
vote
2answers
207 views

How to build a Stackexchange-like search while typing in Salesforce

We have an internal defect tracker in Salesforce which should have much more of the charming features of Stackexchange. One feature that I love the most is the live-search for duplicates while ...
4
votes
1answer
143 views

Is there a way to cancel actionFunctions?

With standard AJAX, I can cancel a request-in-progress by using xhr.abort(): var xhr = new XMLHttpRequest(); // set up my xhr // etc... xhr.send(); // Later: realize I don't want the response after ...
4
votes
2answers
444 views

Does customer portal support ajax?

For example, i have a simple JS button which returns the username of the logged in user. {!REQUIRESCRIPT("/soap/ajax/25.0/connection.js")} var name= sforce.connection.getUserInfo(); alert( ...
11
votes
2answers
1k views

What actually happens on re-render?

I would like to know what actually happens on re-render (Ajax Call and DOM replacement) in Salesforce. My Idea: The ajax call is made to get data. On complete of ajax call, the DOM is ...
5
votes
1answer
431 views

Remote Actions and Session Timeout Question

We have a visualforce page that serves as a somewhat live dashboard for information in our salesforce instance. Through javascript and Javascript remoting (remote actions), we are polling salesforce ...
2
votes
2answers
349 views

Visualforce Page Loses Search Parameters when Going Back from Detail

I am building a Visualforce search page with results in a list format. When a user clicks a result, they are taken to a detail page for that record. However, when they hit the back button on their ...
4
votes
1answer
858 views

apex:actionSupport swallowing JavaScript errors

I ran into a issue when using apex:actionSupport that was swallowing JavaScript errors. Snippet from page: <apex:inputField value="{!controllerOli.CustomFieldStartDate__c}" id="start_date" ...
9
votes
1answer
366 views

Has anyone had issues with initial page load times when injecting a second VF page via AJAX?

I have a few visualforce pages that, together, make up a custom dashboard. The first page or "shell" page is just a HTML form that lets you select a client services rep and an optional client type ...
0
votes
2answers
185 views

How to Populating Similar fields

I am looking for fields to update in one object to other I mean there are similar fields in both the objects Test1 & Test2, Test2 had the look up to Test1 object so if we enter the details in ...