Is there any way to use a variable in the 'Code' field of the 'Web Element'?

Q&A about the latest versions
Post Reply
pharah.long
Posts: 6
Joined: Fri Nov 24, 2023 8:11 pm

Hello, fellas
How can I use a variable in the 'Code' field of the 'Web Element' ? See the image link below.
Attachments
Screenshot 2023-11-30 002907.png
Screenshot 2023-11-30 002907.png (62.79 KiB) Viewed 15431 times
pharah.long
Posts: 6
Joined: Fri Nov 24, 2023 8:11 pm

Hello, fellas
I have solved it myself. My solution is to set an ID for the iframe and use JavaScript in the Skin Editor to set the 'src' for it.
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Would you mind sharing your method?
But here is a project that swaps out the web elements iframe.
Regards,
Attachments
web_element_content.zip
(13.91 KiB) Downloaded 270 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
pharah.long
Posts: 6
Joined: Fri Nov 24, 2023 8:11 pm

I just did a simple thing, as shown in the image below. :lol:
Attachments
Screenshot 2023-12-01 165320.png
Screenshot 2023-12-01 165320.png (19.95 KiB) Viewed 15359 times
Screenshot 2023-12-01 165438.png
Screenshot 2023-12-01 165438.png (4.81 KiB) Viewed 15359 times
Post Reply