VSD 6.0 Build 3 - Link to iframe -...

User 1892988 Photo


Registered User
151 posts

I have a page with a button and an iframe.

The iframe html file (src=) is "afile.html"

If I press the button on my page outside the iframe i want that the iframe src= will refer to "anotherfile.html" and display it.

Possible?
HTML Editor, Visual Site Designer, Web Form Builder, Picture Gallery, Fire Starter,
News Reader, Web Access Manager, Password Wizard

asaruba.com
beholdmyvision.com
User 463058 Photo


Ambassador
1,085 posts
Online Now

Your iframe code might look like this:

<iframe src="afile.html" name="mainFrame"></iframe>


Notice the name attribute. Use whatever name you like, but your link's target attribute needs to have the same value. So, you could have one or more links like the following which will open within the iframe.

<a href="anotherfile.html" target="mainFrame">Another File</a>
User 1892988 Photo


Registered User
151 posts

Thanks Cary!

I actually asked a similar question before and your offer the same solution.
I was secretly hoping for another "smart" solution.

You're completely right. This is the way to go when using the HTML editor but not VSD. You can't manually put a target name in the link properties, they all are fixed choices. (Upgrade tip?)

Only if you build your whole page with HTML editor and activate it with VSD HTML tool on your VSD site.(Which is in this case no option)

HTML Editor, Visual Site Designer, Web Form Builder, Picture Gallery, Fire Starter,
News Reader, Web Access Manager, Password Wizard

asaruba.com
beholdmyvision.com
User 463058 Photo


Ambassador
1,085 posts
Online Now

Oh, okay. With VSD you would have use its html insertion feature and insert the html code for both the iframe with a name attribute and the button image link with its target attribute.
User 1892988 Photo


Registered User
151 posts

True. HTML elements is VSD using the HTML tool is great but whole pages would be a bit too much. If this is often the case, better to start building in HTML editor in the first place.

Thanks again Cary.
HTML Editor, Visual Site Designer, Web Form Builder, Picture Gallery, Fire Starter,
News Reader, Web Access Manager, Password Wizard

asaruba.com
beholdmyvision.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.