Populate iframe and switch to scene


(Steve Warby) #1

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 ?

Cheers

Steve W


#2

Hi Steve!

A project example is always helpful.


(Mark Hunte) #3

As @JimScott says posting a project always helps.

But

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.