Control content in a page cell from a link in another cell
Autor: Trevor M.
Visited 1909,
Followers 2,
Udostępniony 0
I would like to be able to click on a link in a text object in a page cell and have that link open the resulting data in another cell on the same page. Is this possible in Website X5 17 Pro?
I assume it could be done using code but I am not sufficently experienced at code writing to achieve this. My site is a reponsive site.
Alternatively, a pop-up window with the results would be OK.
Posted on the
There is no pop up, but you can do this using the anchor function.
Set an anchor on the OBJECT, you want to go to on this page. If you want this to be a special part that part needs to be 1 object, so if it is a part of a larger piece of text, split the text up in 2 text objects and make the one you want to go to the anchor one. Give the anchor a name.
now you can set in the link option a link to that page, and then set on the same page the name of the anchor. that's it.
Let me know if you need more information, or check the help file.
http://help.websitex5.com/en/v17/pro/ancore_ht.htm?zoom_highlightsub=anchor
http://help.websitex5.com/en/v17/pro/ins_link_tab1.htm?zoom_highlightsub=anchor
Best regards
Hello Trevor
If an iframe is not too much code for you, then an iframe could be used.
See an example here: http://calendarforum.dk/examples.html
Click on the links above the QR-code, and you will see the display window be changed according to the link you click.
There is also not much code for the links. The upper link is this :
<a href="http://www.bramminginfo.dk/kalmus/display1kommende.php" target="display">Display1 - Museum</a>
The name and ID of the iframe is "display" and therefore the content will be replaced with the defined URL.
The iframe can be of any size you specify.
Autor
Thanks for you help I have tested both and both serve to help me. IFrame is the best solution but Andre's solution is also ok.