Jump to content

How do you do it?


OTTO
 Share

Recommended Posts

i was wondering what was scripting launguage was used to make tryit editor v1.4.

They were made in asp, if you look at the url below you will see tryit.asp as opposed to tryit.htm - pages that have a extension like .asp or .php are processed by that engine on the server side. so if you look at the address bar for this site you see index.php, this forum is written with php.http://www.w3schools.com/HTML/tryit.asp?fi...me=tryhtml_font
( small question : anyone know the url of the right page ? I had tried to find and see error )

If you go to the link i gave above, right click on the page on the right hand side and go to properties, you will see an address url, copy that and then paste it into the browser address bar and click goi.e. http://www.w3schools.com/HTML/tryit_view.a...me=tryhtml_font
Link to comment
Share on other sites

They were made in asp, if you look at the url below you will see tryit.asp as opposed to tryit.htm - pages that have a extension like .asp or .php are processed by that engine on the server side.  so if you look at the address bar for this site you see index.php, this forum is written with php.http://www.w3schools.com/HTML/tryit.asp?fi...me=tryhtml_fontIf you go to the link i gave above, right click on the page on the right hand side and go to properties, you will see an address url, copy that and then paste it into the browser address bar and click goi.e. http://www.w3schools.com/HTML/tryit_view.a...me=tryhtml_font

Simplicity , thanks :)
Link to comment
Share on other sites

ok well im a little confuse i see that what you enter in the editor calls on that page but how would u go about creating something like that?

good question, lets view the source code and strip down what's happening.http://www.w3schools.com/HTML/tryit.asp?fi...me=tryhtml_fontThe whole section is built within a table, the box on the left is a textarea of a form, you make a change to the textarea and it is submitted to tryit_view.asp This tryit_view.asp must update a page that is then shown through an iframe on the right hand side.The key to exactly what happens when the form gets submitted to tryit_view.asp is a mystery though (one benefit of server side scirpting, nobody can pinch your code!)This is the relevant code from the link above<table width="100%" border="0" cellpadding="5" cellspacing="0"><form action="tryit_view.asp" method="post" target="view"><tr><td colspan="2"><input name="submit" type="submit" value="Edit the text and click me"></td></tr><tr><td width="50%"><textarea width="100%" height="400px" style="width:100%;height:400px" name="code" wrap="logical" rows="21" cols="42"><html><body><p><font size="2" face="Verdana">This is a paragraph.</font></p><p><font size="5" face="Times">This is another paragraph.</font></p></body></html></textarea></td><td><iframe width="100%" height="400px" style="width:100%;height:400px;background-color:ffffff" name="view" src="tryit_view.asp?filename=tryhtml_font"></iframe></td></tr><tr><th colspan="2" class="right" align="left">Edit the text above, and click on the button to see the result.</th></tr></form> </table>Hope this gives you some idea as to what's happening on the page :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...