natalieG Posted April 1, 2006 Share Posted April 1, 2006 we have a php file with included html to do some frames. we tried the followingsyntax to load news.txt into a frame wity no success. [b]<frame name="newsframe" src=<php? echo include "news.txt"?>> [/b]load the following:<TABLE>news.txt</TABLE>into the frame "newsframe" as the file news.txt does npt have the TABLE delclaration, so we needto add it we are using frames as we want to scroll olne area annd leave the others alone.Thanks,Jennifer Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 1, 2006 Share Posted April 1, 2006 [b]<frame name="newsframe" src=<php? echo include "news.txt"?>> [/b]Should be...<frame name="newsframe" src="news.txt">....try that. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 1, 2006 Share Posted April 1, 2006 Just thought further on this...the frame src="...." - if you want that to be different then use src="<?php echo FILEPATH&NAME; ?>"you don't need to include the file - but it shudl be valid html if only to not like a noob.....Now theother point - I hate frames. Much of my work is done for accessibility to AA and some to AAA and I prefer to mainta9in control over the flow of documents. Instead of a frame why not consider usign a div and specify some height and width for the div and also set a value for the overflow so that you can scroll within it. In my personal opinion your page will look far more professional and the doc flow will be maintained.If you did use that then you would of course use the include('FILEPATH&NAME'); inside the div tags. Quote Link to comment Share on other sites More sharing options...
natalieG Posted April 2, 2006 Author Share Posted April 2, 2006 Thats a clever idea-We trierd this and ikt dod not seem to scroll over the entire set ofd data. could you check the syntax for us and see what we did wrong?[a href=\"http://msdsimaging.com/news_main.php\" target=\"_blank\"]http://msdsimaging.com/news_main.php[/a]. The scroll bars, show, but the file in news.txt goesback to last year and in the div tags, we show only a few entries.Thanks,Jen[!--quoteo(post=360701:date=Apr 1 2006, 05:24 PM:name=ToonMariner)--][div class=\'quotetop\']QUOTE(ToonMariner @ Apr 1 2006, 05:24 PM) [snapback]360701[/snapback][/div][div class=\'quotemain\'][!--quotec--]Just thought further on this...the frame src="...." - if you want that to be different then use src="<?php echo FILEPATH&NAME; ?>"you don't need to include the file - but it shudl be valid html if only to not like a noob.....Now theother point - I hate frames. Much of my work is done for accessibility to AA and some to AAA and I prefer to mainta9in control over the flow of documents. Instead of a frame why not consider usign a div and specify some height and width for the div and also set a value for the overflow so that you can scroll within it. In my personal opinion your page will look far more professional and the doc flow will be maintained.If you did use that then you would of course use the include('FILEPATH&NAME'); inside the div tags.[/quote] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.