Populate iframe and switch to scene

I have the following code on a button on the same scene as the Iframe:

document.getElementById("cart").innerHTML =  '<iframe src="http://www.toolfolks.com/cart/index.php?route=product/search&search=dcn" height="2000" width="100%" frameBorder="0"  ></iframe>';

This works fine.

On another scene I call the above code on a button click along with a scene change.

The scene changes but the Iframe does not update.

What am I doing wrong here ?


Steve W

Hi Steve!

A project example is always helpful.

As @JimScott says posting a project always helps.


This may be your problem if I take what you say literally. You call the code first.

You need the action to change scene first and the next one to call the code.