Page 1 of 1

Event trigger object on another page?

Posted: Sat May 23, 2020 6:14 pm
by onlye
I have an image on a page of my site. I have a layer that slides out on another page. I would like to click the image and have it link to the second page (that works) and use the Events to Show the layer. It looks like I can only see the objects for the page I am working on. So on page one and can't see the layer on the other page to select it in Events. Is this the case?

thanks,

sample - using the calculator icon at the top of the page

https://eric.dollaradaysites.net/rnscalc/index.php

the calculator icon on home page links to shop2 page. the calculator on shop page opens the layer.

thanks

Re: Event trigger object on another page?

Posted: Sat May 23, 2020 8:23 pm
by Pablo
Correct, you can only access/control elements on the current page. If you could control elements on another page then this could be a major security risk so that is why browsers do not allow this.

Re: Event trigger object on another page?

Posted: Sat May 23, 2020 10:28 pm
by onlye
Thanks Pablo

Re: Event trigger object on another page?

Posted: Sun May 24, 2020 11:52 pm
by rogerl
Do you always want the calculator layer to pop open when shop2 loads? or do different events happen on shop2 when clicked from other locations.