|
The best place to insert the following code snippets is at the very
end of the list page.
Open List page in Visual Editor, find the closing </BODY> tag
and insert code snippet right before it.
Wrap this code in <script> ... </script> tags.
<script>inlineAdd(newrecord_id++);
</script>
</body></html>
1. Simulate "inline
add" click:
inlineAdd(newrecord_id++);
2. Edit all records
setTimeout('$("a[@id^=ieditlink]").each(
function() { if(this.id!="ieditlink_add") $(this).click(); });',1000);
3. Edit record number X
$("a#ieditlinkX").click();
where X ranges from 1 to number of records on the page.
You can combine more than one action:
<script>
inlineAdd(newrecord_id++);
$("a#ieditlink3").click();
</script>
This will display inline add form and will make record number 3 editable.
|