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
0answers
22 views

How to add ajax nature my VF page?

I have a simple VF page as shown below: <apex:page standardController="Account"> <apex:includeScript value="/soap/ajax/16.0/connection.js"/> <apex:includeScript ...
0
votes
0answers
25 views

Not able to use ActionSupport for date type of inputtext

I am trying to rerender particular section on change of date. however I am facing problem to rerender section on onchange event. I tried using onchange, onclick, onmouseout but this doesn't work as ...
2
votes
1answer
45 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 ...
0
votes
0answers
41 views

How to send an Ajax request to a force.com visualforce page from our public domain Site.com site (across domains)?

We're trying to retrieve whether our service is available in particular zip codes. In Salesforce we have a custom object called "Service_Zone__c," each record of which has a zipcode and an "in"/"out" ...
0
votes
3answers
27 views

Changes in controller properties not perstisted from actionFunction call

I have a repeat block that loops over a List<String> and outputs them to an HTML table. Underneath that is the actionFunction declaration followed by an HTML button which when clicked calls the ...
3
votes
1answer
56 views

Difference between Regular Page refresh and AJAX Page Refresh

VF <apex:page controller="transientctrl"> t1 = {!t1} <p/> t2 = {!t2} <apex:form > <apex:commandButton value="Refresh" /> </apex:form> </apex:page> Controller ...
1
vote
2answers
82 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!
1
vote
1answer
83 views

Unable to Access RestResource via jQuery Ajax

Question I am trying to access an endpoint I setup in Apex. The class is pretty simple: @RestResource (urlMapping = '/MyService/*') global class MyServiceApexClass { @HttpGet global static ...
0
votes
2answers
208 views

Page reloads on Clicking apex commandlink though reRender is set to None

I have an issue in apex:commandlink ,On clicking apex commandlink the page gets reloaded though i have set my reRender property to none.This works in chrome but not working in firefox and IE this ...
0
votes
1answer
47 views

Element viewStateWrapper with id = ajax-view-state must exist : Error

I have an visualforce page in which i am rerendering the apex form element on dropdown change. This page works fine until their is an validation error ( i am validating with jquery validate). Once ...
1
vote
1answer
95 views

apex:tabPanel issue in VF page

I am using very simple code for tab. It is working in one org but not working in other org. My VF page code is: <apex:page id="thePage"> <apex:tabPanel switchType="client" ...
1
vote
0answers
39 views

Blob Data corrupt when use Ajax proxy

Hi I want to get image from a public url and want to display this on page. For doing this I am making an ajax proxy request because public url is on cross domain: ...
0
votes
0answers
147 views

X-editable POST URL parameter and Visualforce

I would like to build a page using the framework X-editable My question is this: It takes a parameter of URL on the field which is documented as: url to server-side script to process ...
3
votes
1answer
27 views

Sending Contact Information To External Site With AJAX

I am working on a website that is using Salesforce for membership management purposes. Salesforce is the single repository for membership information and needs to be able to send membership ...
2
votes
1answer
1k views

Rerender page components from apex:component

I have a Visualforce component (apex:component) where I would like to trigger the rerendering of an apex component on the containing page. In this case the component to rerender is an ...
1
vote
1answer
220 views

File Attachments over AJAX call (XMLHttpRequest error)

Im trying to write a script that will grab a series of attachments and zip them up using JSZip. All is working well but the script does a call to grab the download url it seems like whats happening ...
1
vote
0answers
27 views

Custom javascript is not allowed to run on Salesforce DOM [duplicate]

Recently i have created an app which uses custom JavaScript in sidebar home page component using custom links, The app works perfectly and i also uploaded it to appexchange as managed released package ...
1
vote
2answers
185 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?
5
votes
1answer
517 views

Ajax custom button calling apex method errors out

i have one Ajax custom button {!REQUIRESCRIPT("/soap/ajax/24.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/20.0/apex.js")} alert("k"); ...
2
votes
1answer
75 views

Getting Data from Salesforce with force.com-sites page

We have a requirement for a public facing page that requests data from SFDC without logging in. So, the idea is for a public user to enter information, and based on that information, the page would ...
1
vote
0answers
96 views

We can click any record it refreshes with in page

My Requirement is: i have created a custom visual force page. in that one custom object have a number of records, when we click on one record it goes to another tab, But my requirement is it ...
3
votes
1answer
1k views

Trying to implement Lazy Loading with FancyTree

So I'm trying to implement a Tree Structure using FancyTree. I've gotten the tree to display, but I want to implement lazy loading, but I'm having some trouble. Page: <apex:component ...
1
vote
2answers
131 views

In Salesforce ,I have an issue how to call the vf page in div through jquery ajax attribute URL

$.ajax({ type: "GET", url : "https://ap1.salesforce.com/apex/ABCgraph", dataType:"html", In the above sample ,How to call the VF page in "url".
1
vote
1answer
310 views

Calling Rest resource from Ajax in Canvas App

I've a Rest Resource in salesforce which creates records in salesforce. And i've a demo canvas app hosted on Heroku. On that app, i'm authenticating using Single Request and trying to query ...
2
votes
1answer
489 views

Need to pass string of size 100300 in Javascript Remoting function

i am working on a need where in a text file needs which is uploaded, needs to be processed in the controller. We are uploading and displaying the uploaded file in the UI and the same needs to be ...
0
votes
0answers
56 views

Email Button redirects to Url

i Have 2 Objects Quote(Parent), Quote-line(Child), both objects having the same field Update, when update==true condition email button redirect to URl, remain all cases email button does not Work. i ...
0
votes
1answer
111 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 ...
4
votes
1answer
1k 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
270 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
475 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
3answers
298 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
751 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
154 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.. ...
2
votes
2answers
2k 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 ...
3
votes
1answer
323 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
1k 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
300 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
82 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
433 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
372 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
201 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
4k 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
450 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
123 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 ...
4
votes
1answer
781 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
336 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
711 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
278 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 ...
21
votes
2answers
510 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
489 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 ...