Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 3822

jQuery is an open-source multi-browser JavaScript library designed to simplify the client-side scripting of HTML. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.

3 votes
1 answer
5k views

Pass checkbox 'checked' values to Submit function [closed]

For each element returned by {! followers } one checkbox is created. I have a submit button, and 'on Submit' I want to record which checkboxes are and are not checked. <apex:repeat value="{! follo …
Daft's user avatar
  • 2,681
3 votes
1 answer
21k views

Can't upload files with IE11 - does not support binary blobs

console.log("answer id " + answer_id); console.log("new attachment created with id " + result[0].id); refresh_page(); //jQuery … console.log('failure'); console.log("answer id " + answer_id); console.log("failed to create attachment " + result[0]); //jQuery
Daft's user avatar
  • 2,681
2 votes
1 answer
4k views

Force outputLink redirect

I want to dynamically reset the 'value' attribute of of this outputLink. <div class="BackLink"> <apex:outputLink target="_top" value="/apex/ThisPage" styleClass="backlink" >This p …
Daft's user avatar
  • 2,681
2 votes
1 answer
991 views

Can I append apex elements to html with jQuery?

In a visualforce page, if I have a DOM completely created dynamically with jQuery, could I append the following code dynamically too? <div id="file"> <apex:inputFile value="{! … attachment.name}" id="file" title="Upload Attachment" styleclass="fileType"/> </div><br /> Can I append apex elements to html with jQuery? …
Daft's user avatar
  • 2,681
2 votes
2 answers
3k views

Return list of records from Salesforce Object with JavaScript

But because the DOM of my page is created on the fly with jQuery, using apex elements won't really work. … Would anyone have any suggestions as to how I could return a list of records from one object with javascript and / or jQuery? …
Daft's user avatar
  • 2,681
4 votes
1 answer
2k views

Can I return .getAll() in a particular order?

unitList}; var openUnitList = function (unitdiv) { jQuery('div.unit_dropdown').remove(); var unit_ul = jQuery('<ul>'), unit_dr = jQuery('<div>') .addClass('unit_dropdown') .append(unit_ul … ); unit_dr.appendTo(unitdiv); jQuery.each(unit_list_items, function (idx, val) { unit_ul.append(jQuery('<li>') .addClass('unit_list_items') .text …
Daft's user avatar
  • 2,681
1 vote
1 answer
193 views

Return fields from custom list setting and pass to JS

If I have a custom list setting, 'Info_List__c' with 2 fields, 'Info_Field__c' and 'Info_Name__C'. What would a method look like that would iterate through the list and return all entries. And how w …
Daft's user avatar
  • 2,681
2 votes
1 answer
384 views

Can I use this method as the argument in a ternary operator?

I'm using the jqGrid plugin for jQuery. In the jqGrid function, I want to pass in a value for the width, but I want to pass in the value depending on the outcome of a method in my controller. … public Boolean isTest{ get{ String userAgent = System.currentPageReference().getHeaders().get('User-Agent'); return userAgent.contains('test'); } } JS jQuery
Daft's user avatar
  • 2,681
4 votes
1 answer
417 views

Pass ParentId from span tag to JS function

I am returning a list of Users/Records that I follow in Chatter. Ultimately, what I want to do is display the list in a webpage and simply click on a User or Record and I will stop following them. So …
Daft's user avatar
  • 2,681
4 votes
1 answer
122 views

Wrong value displaying. With 'EntitySubscription' in Chatter

Im using the following code to return the list of users that I am following in Chatter. I am following 4 users. List<EntitySubscription> followers; followers = [ SELECT Id, ParentId, S …
Daft's user avatar
  • 2,681