Howdy_McGee Posted August 12, 2010 Share Posted August 12, 2010 Ok, so I'm creating a newsletter page for my company. They want to pull the entire HTML of each newsletter into the HTML page that is already up. I don't want to hardcode every newsletter HTML into this one HTML document so I figured I would use AJAX to pull the HTML for each newsletter into the page. I don't know where to start though and I tried looking at the AJAX section at w3schools but it didn't help much...Anyone got any advice or a good website that has a AJAX tutorial? Link to comment Share on other sites More sharing options...
wirehopper Posted August 12, 2010 Share Posted August 12, 2010 You could use .shtml to pull the newsletter content into another page. Link to comment Share on other sites More sharing options...
Howdy_McGee Posted August 12, 2010 Author Share Posted August 12, 2010 Well the newsletter is a page in itself. I just want to put that page - inside another page. But I don't really want the page to refresh. Never messed with SHTML, you know of any good tutorials? Link to comment Share on other sites More sharing options...
ShadowMage Posted August 12, 2010 Share Posted August 12, 2010 You could use iframes, and use javascript to modify the src of the iframe. Link to comment Share on other sites More sharing options...
Howdy_McGee Posted August 12, 2010 Author Share Posted August 12, 2010 IFrames always have scroll bars though dont they? Link to comment Share on other sites More sharing options...
thescientist Posted August 12, 2010 Share Posted August 12, 2010 not necessarilyhttp://www.w3schools.com/TAGS/tag_iframe.asp Link to comment Share on other sites More sharing options...
ShadowMage Posted August 12, 2010 Share Posted August 12, 2010 IFrames always have scroll bars though dont they?You can specify whether they do or not with the scrolling attribute.Edit: Whooops, to slow. Link to comment Share on other sites More sharing options...
Howdy_McGee Posted August 12, 2010 Author Share Posted August 12, 2010 I was playing around w/ it on W3schools and I can't get it to not scroll. I tried hiding the overflow in an inline style, I tried scrolling="no" and frameborder="0" but it's still has got a scroll bar. Link to comment Share on other sites More sharing options...
thescientist Posted August 12, 2010 Share Posted August 12, 2010 i took the very same example that comes up on that page and added scrolling="no" and it took the bars away <html><body><iframe src ="/default.asp" width="100%" height="300" scrolling="no"> <p>Your browser does not support iframes.</p></iframe></body></html> Link to comment Share on other sites More sharing options...
ShadowMage Posted August 12, 2010 Share Posted August 12, 2010 i took the very same example that comes up on that page and added scrolling="no" and it took the bars awayYep same here. I tested in FF, IE, Safari, Chrome, and Opera. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.