"Considerate la vostra semenza: fatti non foste a viver come bruti ma per seguir virtute e canoscenza" (Dante)
Saturday, February 4, 2012
Open Sharepoint editing popup via javascript
In some cases, developing within sharepoint 2010, you need to launch through javascript a editing popup for an item. To achieve this functionality you must enter this code snippet:
The url passed to the function must be according to this scheme
http://localhost/<miosito>/Lists//EditForm.aspx?ID=<id>&IsDlg=1
Replacing <mysite> with link to sharepoint site, or directly with
/Lists//EditForm.aspx?ID=<id>&IsDlg=1
Replace <id> with the id of the element
Enjoy!
No comments:
Post a Comment