How could I return a list of records using only javascript, with no apex: elements.
My original approach was to use an apex:repeat like so:
<apex:repeat value="{!attachments}" var="attach">
//STUFF
</apex:repeat>
In conjunction with a method in my controller.
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?