简体   繁体   中英

How to redirect to wiki page in edit mode on button click in SharePoint?

I have a button on the click of which I want it to redirect to wiki page of xyz in edit mode from its wiki page. How can I do it?

If you open Developer Tools you'll see that the Edit button calls this javascript function:

 CoreInvoke("PageActionClick", this);

So when user redirect to xyz page at that time on Page Load, you need to be call the function somehow, but the second parameter cannot be "this" anymore, it needs to send the edit button object as reference.

javascript :

 $(document).ready(function(){
        CoreInvoke("PageActionClick", $("ctl00_PageStateActionButton"));
     });

Read for more details : http://social.technet.microsoft.com/Forums/en-US/sharepointgenerallegacy/thread/c730ff5f-0ac0-4949-b712-f5e437f23311/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM