Questions tagged [ajax]

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

Filter by
Sorted by
Tagged with
4
votes
3answers
1k views

visualforce page ActionFunction reRender not Working

reRender on actionFunction is not working. I've also tried placing the actionFunction on top. What's wrong with my code? function doSearch() { searchServer(document.getElementById("accName")....
3
votes
1answer
1k views

Possible to Set Access-Control-Allow-Origin in an SFMC Landingpage?

we want load some content from an SFMC Landingpage using AJAX on our Webpage. But its not working in every Browser because the CORS Access-Control-Allow-Origin is missing on the SFMC Landingpage. Is ...
8
votes
1answer
2k 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 ...
8
votes
1answer
2k views

Is there a Javascript Wrapper Salesforce Metadata API?

I'm using Andrew Fawcett's legendary Apex Wrapper Salesforce Metadata API in several projects. It perfectly works and provides a new dimension of APEX programming. Now there are situations where it ...
1
vote
2answers
1k views

Is there a way to connect directly to Salesforce's REST API directly from JS? [closed]

I get a cross origin error when I do an AJAX call, and am wondering if there´s a way to solve that. Thanks!
5
votes
1answer
2k views

Are aura:waiting and aura:doneWaiting component specific events?

Good afternoon everyone, I have a question regarding the use of the aura:waiting and aura:doneWaiting system events. I currently have two nested child components within a container component as you ...
4
votes
2answers
835 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( name....
4
votes
1answer
2k 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
481 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. myapp.na9.visual.force.com/apex/...
3
votes
2answers
2k 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')+"'"); ...
2
votes
1answer
112 views

How to apply Apex:ActionSupport to trigger HTTP action

I am trying to use apex:actionSupport to trigger an URL (along with calling a value , c.sfprn , from {!RowList}. Currently, dropdown menu works, but when an user clicks the dropdown, nothing triggers....
2
votes
2answers
1k views

ExactTarget REST API - using javascript to get accessToken

With the clientId and clientSecret, is there a way to use JavaScript to get the accessToken through ajax?
2
votes
3answers
1k 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 ...
1
vote
1answer
417 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 ...
1
vote
1answer
1k views

Visualforce Picklist from Javascript Query

Can I draw a Picklist in a Visualforce with a Javascript query? With de ajax connection.js in visualforce, I'm trying to retrieve a list of some values, Ex: var qr = sforce.connection.query(“SELECT ...
1
vote
1answer
289 views

Custom Button that will change a field in a custom object and consequently invoke before update trigger on the same object

I have a ajax cutom button that calls a apex class and the class is changing status field of that object. Now I want to invoke a before update trigger on the same object, which is not working. ...
0
votes
3answers
2k 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? ...