Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

Java Script for Editing Documents

How can i use JavaScript to edit a document instead of @command[@EditDocument].
Please help
Thanks in Advance
0
SonaliB
Asked:
SonaliB
1 Solution
 
ZvonkoSystems architectCommented:
Put this as JavaScript for your Edit button:
window.location=window.location.href.replace(/?opendocument/i,'?EditDocument')

This one liner script works also in <HEAD> section of your html page. Then it forces the document to open in edit mode.

Tell us if you need more details.

So long,
Zvonko

0
 
SonaliBAuthor Commented:
Thanks its working superb.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now