This topic is locked
[SOLVED]

 Inline Preview with Master-Detail

12/15/2009 6:56:19 AM
ASPRunnerPro General questions
P
pikkio author

Hello,

Is there a way to display preview data without click on link?
I've tried with "<script>$("a#Composizione_preview1").click();</script>" before </Body> tag but doesn't work!

"Composizione" is detail table and "1" the record. Is also there a method to display preview data for all record without click?
Thanks in advance

Bye

J
Jane 12/15/2009

Hi,
use custom JavaScript code on the Visual Editor tab for this purpose.

Here is a sample:

<script>

setTimeout('$("a[@id^=DetailTable_preview]").each( function() { $(this).click(); });',1000);

</script>



More info here:

http://www.xlinesoft.com/asprunnerpro/docs/how_to_control_inline_add_edit_functionality_from_script.htm

P
pikkio author 12/15/2009

Nice!It works great!! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=46165&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />
Thx Jane