View Full Version : Who Wants To Attempt This Impossible Problem Then?
[Ostrich]
26-05-2000, 13:28
Actually I spose it would be quite easy for people who know what they're doing....what I want to know is:
Is there anyway you can target a cell in a table as you would a frame. i.e. can I say load the NEWS page in that cell there! ?
:)
no sorry mate, however u could use an internal frame, stick something like this in ur html <iframe name="frame" scrolling="no" frameborder="0" width="100%" height="800" src="main.html"></iframe>
[Ostrich]
26-05-2000, 15:20
Ahh...I spose the long way round that would be making a kinda frame 'border'.
Ah well, looks like I'll just make a template page then.
:)
It's possible if the server your site is hosted on support SSI or PHP.
Stormkeep
29-05-2000, 08:34
Aplha you say its possible with php or ssi
what about with ASP
if so can you tell me how please? :)
sk
Yes it's probably possible with ASP. I don't know how though - I don't know ASP.
It is possible with ASP by putting ALL the news pages in the same ASP page. If you've used ASP you'll know what I mean, if not, I'll try to explain...
ASP uses VBscript in the page which is executed at the server. You can then add if...then conditions right into the page like this:
if request.querystring("content") = "news1" then %>
News item 1 stuff goes here. You can even use SSIs here if you're using newspro.
<% end if
Then if your asp page is called index.asp, if you access with the url of index.asp?content="news1" it will display the news 1 stuff. You can add other ones too:
if request.querystring("content") = "news2" then %>
This would be the second news item.
<% end if
If you put all the if..then's into your chosen table cell it will only display the relevant news article depending on the url.
The beauty of this, of course, is that the user is essentially reloading the same page so it loads really quickly. All the server does is change the one cell.
------------------
Share and Enjoy.Ramblings Of Jinx (http://www.consortium.uk.net/jinxm/)
PC Games Planet
31-05-2000, 19:52
Its possible if you tackle it a different way. Make the cells into layers (I think netscape layers are best) and then you can specify the source etc. without having to bother with frames or ASP
[Ostrich]
03-06-2000, 07:51
Hmm..I dabbled with layers before but they always mess up when the screen resolution changes http://forums.gameplay.com/ubb/cry.gif
Erm..Jinx, thanks for all that but I just got lost. I've never done anything with ASP before. I know what it is but not done anything yet. http://forums.gameplay.com/ubb/cry.gif
:)
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.