Jump to content

Executing javascript from an iframe in the browser


alberto2345

Recommended Posts

All good, came up with a solution to the issue.

What I did was create a function in the main javascript file that would access the iframe and execute the function through that. This is achieved using:

appFrame.contentWindow.functionName(passingObj);

(in my case anyway)

However I feel this isn't the best way to achieve this since its using an, in my opinion, unnecessary "piggyback". If there is a better method to do this, please let me and everyone else know. Otherwise I would suggest adding a way to do this through an MTA function that would work better.

Thanks

Edited by alberto2345
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...