Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Iframes and Javascript 1

Status
Not open for further replies.

jammer1221

Programmer
Jul 30, 2003
352
US
Hey all,

I have been developing a site and while still structuring the basic framework I decided to use iframes to display content and javascript to make the layout look exactly how I wanted it to. As I've continued to develop the site I've toyed with the thought of just leaving the javascript and iframes in there. The javascript could (and should) be replaced with CSS and the iframes should be taken out and replaced with the actual html pages. But, I was wondering if you guys can shed some light on why the previously mentioned techniques are not used all that often or why they are frowned upon (if they even are)?

Thanks,
Matt
 
Here are the top 3 reasons I don't bother with this approach (which was popular last century, but as you say, is no longer used widely):

- Can't bookmark content properly
- Can't maintain navigation "state" when using the browser back button
- Heavy javascript blows SEO opportunities

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Hey Jeff,

Sorry for the long delay, but, thanks for the reply! ...very helpful

Matt
 
I found some problem that may be related to IFrames, I'm not sure.

I'm using required field validators and I'd like to display the required field validators messages when page starts.

Using JavaScript and changing validators display to block works fine for regular controls but doesn't display messages for the UserControls.

Do you know if there is a solution for the problem?

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top