Editing
JQuery Listings Operations Buttons
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Button element attributes== * The <code>class</code> attribute of the anchor determines its button style and its AJAX handler. (Buttons implemented with the JQuery UI library.) ** Some common button classes handled by the <code>$.bindListingsButtons()</code> routine of the <code>LITTLED.Listings</code> library: ** <code>details-btn</code> Links to stand-alone page containing detailed information about the individual record. ** <code>preview-btn</code> Links to stand-along page on the public site driven by that individual record. ** <code>print-btn</code> Prints the record, or opens a page specially formatted for printing the individual record. ** <code>update-cache-btn</code> Invokes AJAX that updates the cached content for the individual record. ** <code>edit-btn</code> Opens record edit dialog/page. ** <code>trash-btn</code> Opens delete record dialog/page. * Configure the AJAX handlers for listings operations with JQuery within the pageβs <code>$(document).ready();</code> handler. ** See [[JQuery_Initialization_on_Listings_Pages|JQuery Initialization on Listings Pages]] * <code>βdata-*β</code> attributes of the anchor tags specify which records to operate on when calling AJAX handlers. Some examples: ** <code>data-id</code> β record id ** <code>data-tid</code> β record content type id ** <code>data-pid</code> β record parent id ** <code>data-op</code> β operation name * Each anchor tag has a <code>title</code> attribute which serves as a tooltip. * The innerhtml of the anchor tag is not displayed if the JQuery UI button is successfully loaded. [[Category:CMS Documentation]] [[Category:JQuery/AJAX]]
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information