homepage Welcome to WebmasterWorld Guest from 54.227.34.0
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
anchor link in a iframe
Cira



 
Msg#: 4312162 posted 10:25 pm on May 13, 2011 (gmt 0)

Hi guys,

How are you all?

Im putting together a site at the moment and it uses an iframe for a form because that's what they want it.

Is there a way to have a button in the main page and on click send it to the textbox inside the iframe?

Thanks

Dave

 

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4312162 posted 3:19 am on May 14, 2011 (gmt 0)

When you create the iframe, you can give it an id attribute: <iframe id="mxyzptlk">

Then when you create an anchor tag in the parent page, you can use a target="mxyzptlk" attribute to target changes within the iframe. This normally means refreshing the iframe's entire content to a different URL.

Changing just a textbox on the iframed URL would not be an HTML functionality, and unless you want to refresh the entire URL, you would probably use AJAX or JavaScript. If that is what you want to do, we've got a dedicated JavaScript and AJAX forum [webmasterworld.com] where you can ask for more detailed help, if needed.

Cira



 
Msg#: 4312162 posted 4:29 pm on May 15, 2011 (gmt 0)

Thanks Tedster,

They have now decided they dont want an iframe so this is not going to be a problem anymore. But i will look into it for future reference.

Thanks for taking the time to reply

KwikDrySystems



 
Msg#: 4312162 posted 12:26 pm on Jun 2, 2011 (gmt 0)

I'm glad they decided to not use iframes, I am not a big fan. Though, that's just me ;)

[edited by: incrediBILL at 12:45 pm (utc) on Jun 2, 2011]
[edit reason] sigs removed [/edit]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved