Results 1 to 7 of 7
Hey,
I never looked into HTML or webscripting.. (Ok Ive done some perl.. but aside from that)
And now I need to show a webpage without redirecting.
I need to ...
- 09-26-2007 #1
Basic HTML(?) Scripts..
Hey,
I never looked into HTML or webscripting.. (Ok Ive done some perl.. but aside from that)
And now I need to show a webpage without redirecting.
I need to show ../../../mypage/almost/thisone.html
How can I do that that all the basic webbrowsers support it? (InternetExplorer, Firefox, Opera, Konqurer and Safari)?
It has to show that page 100%.
BUT, it has to put some Buttons on it. But I figured out that I can do that with CSS..
I thought that the (Pseudo) code should be something like
<LINK>MYPAGE<LINK> (This is the part I dont know)
<DIV><CreateButton></DIV> (Create Button doenst exict but I do that to draw the concept)
<DIV><CreateAnotherButton></DIV>
Well, how can I do the linking thing? and I can do that with the buttons with CSS and DIVS right?
Sorry for my extreme low knowledge about HTML + CSS..
I just aint intrested into remembering it.. -.-' (Gimme perls, C++ or a bit low level assembler ;P)
- 09-26-2007 #2
I'm afraid I don't actually know what you're asking.
Basically, you have a page and want to create a hyperlink to another page? Then you just use:
Or do you want to actually embed another page's contents into the current one? This is best done by using a serverside scripting language, but you could theoretically use an iframe.Code:<a href="otherpage.html">link text</a>
I suggest you read the W3C's HTML tutorial:
HTML TutorialDISTRO=Arch
Registered Linux User #388732
- 09-27-2007 #3
heh thanks I ment the second one.
So serverside. No biggy that can be done.. ^^
Ive dont a couple HTML tutorials already, though I just dont like to do it..
I keep forgetting stuff..
Im going ot check if Perl has such a function.
Thanks. (and else Im going to look inot the iframes)
Later on:
Ive made this script:
<html>
<head>
<style>p.cssClass{ position: relative; top: 30px; left: 50px; }</style>
</head>
<body>
<IFRAME>../../mypagedir/mypage.html</IFRAME> <!--Find Perl/PHP Replacement--!>
<p class="cssClass"><form method="post" action="DOSOMETHING" ><input type="submit" value="Advance Mode" /></form></p>
</body
</html>
I had to use tutorials.. I just cant remember HTML for some reason..
And I guess this is still wrong.. =P
Why isnt C(++) also for websites?...(I know php/perl are close.. learning Perla and PHP atm)
- 09-27-2007 #4
You use an iframe by using:
It is documented at:Code:<iframe src="otherpage.html"></iframe>
HTML IFRAME TAG
You can use any programming language as a serverside application. You just need to instruct your server to execute such a program and use its ouptut as the page. This is exactly what Perl CGI scripts and PHP do.
For instance, this C program would create a basic web page:
You would compile this and use it.Code:#include <stdio.h> int main() { puts("<html><body>Welcome to my page!</body></html>"); return 0; }
To do it in PHP would basically be:
Code:... <?php include 'otherpage.php'; ?> ...
DISTRO=Arch
Registered Linux User #388732
- 09-27-2007 #5
- 09-27-2007 #6
Check this link:
Getting Started with CGI Programming in C
Basically, any program that can produce output and can be executed by the server can be used to generate a webpage. Now, as chance would have it, it is FAR more difficult to do this with C than it is with, say, PHP, as PHP was designed specifically for this purpose.
However, if you can get your server to execute the program, it will work. The link explains it and uses examples and all.DISTRO=Arch
Registered Linux User #388732
- 09-27-2007 #7


Reply With Quote