Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-20-2011, 03:45 PM   PM User | #1
chubbypama
New to the CF scene

 
Join Date: Apr 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
chubbypama is an unknown quantity at this point
Exclamation using an iframe src that's not a file.

is it possible to pass a a string of html code to the src property of an iframe?
i was thinking about creating a file and saving the html out to it, but that means that everytime someone comes to my asp page, it's going to create a new file. sounds like it'll be a lot of overhead.
So i want to do somethign like:

<DIV>
<iframe src=<%=myHTMLstring%>></iframe>
</DIV>

any suggestions?
chubbypama is offline   Reply With Quote
Old 04-20-2011, 03:52 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,579
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
The question would be: what exactly are you trying to achieve?
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 04-20-2011, 04:03 PM   PM User | #3
chubbypama
New to the CF scene

 
Join Date: Apr 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
chubbypama is an unknown quantity at this point
in my own page, i need to display "modified" content from another web page. so i get all the html data via an httprequest object, modify the content, and then I need to display it in a "tab" control. I found some sample code on the internet from devshed that uses divs and iframes and buttons to create a tab control where it displays 4 buttons. when you click on a button, a div appears with external content inside. this works fine, but again, i want to pass a string to the iframe instead.
I guess the other option is to create a div and write some javascript or css that will show / hide the div tags? but I don't know how to create 4 buttons that will show a different div in the same spot....
chubbypama is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:53 PM.


Advertisement
Log in to turn off these ads.