2

I have a form where there is field that you use to paste the usual google maps embed HTML code. After I send this form to the server (via POST), the server saves everything to the db and then gives back a redirect (GET redirect, simple URL) to the final page that contains the stored content.

Firefox works (I guess ie too), but chrome comes out with "Refused to execute a JavaScript script. Source code of script found within request". I found another answer that deals with the problem on So: Refused to execute a JavaScript script. Source code of script found within request. The fact is that I could understand it, if I was displaying the final page after the POST with the form, but how can it be after the redirect? I even had a peek to the redirect GET request and it contains not the "CODE" (that is only the EMBED code from google maps, an IFRAME).

How can I solve this?

1 Answer 1

0

before post, you can replace the textarea content with its urlencoded or base64 equivalent with javascript. then post it to your server, and then decode it and save to the database.

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.