0

article

This article explains how to fix a bug in Sharepoint where the page would go dead after a save dialog is prompted. It states to add in my case where the link button is under the page where the link button resides

exportButton.OnClientClick = "document.getElementsByTagName(\'form\')[0].onsubmit = function() {return true;}";

Ive tried this the error it produces is "server tag not well formed". My form name is aspnetForm and my link button name is TestLinkButton. Any ideas what im doing wrong from the article?

1 Answer 1

0

I'm curious what this is really solving, but I'll put that curiosity aside for now and just answer your question.

Get rid of those backslashes:

   document.getElementsByTagName('form')[0].onsubmit = function() {return true;};

If that doesn't work, can you explain how you are injecting this line into the page? Maybe I can help out more then.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.