HTML is interpreted on the clients machine only, and receiving executable code is a serious security risk.
It is technically possible to do things with ActiveX, but in my experience that's pretty much a dead technology since everyone has it disabled (because of the inherent security problems).
If you want to execute a subroutine on the server, you can do that with most server side languages.
I recommend ColdFusion/CFML as a good choice - it's easy to learn, quick to use, and yet still powerful.
Other popular options include PHP, JSP, ASP.NET/C#, Ruby, CGI/Perl - a Google/Yahoo! search on any of them should be able to turn up more information about them.
Does HTML allow you to include a subroutine in another language, C++ or ??
Nope! HTML does not allow you to include a subroutine in another language.
You should use PHP, JSP or CGI to do so
Reply:The simple answer is no. But I'll attempt to describe
the relationship between HTML and c++.
HTML is a mix of many evolved changes. You must make the
distinction between HTML on the server and HTML on the
client.
On the server, HTML may have parts in server script
languages like php, jsp, asp etc. These parts execute by
the server whilst the server serves these pages. C++
can not be used like a server script language in this case.
Scripts that are not embedded into HTML can also run on
the server if a client calls them. These server scripts
are called CGI scripts and can be written in any
programming language the server supports - including c++.
Of course because c++ is not a scripting language, you need
to compile the sources to executable binaries that your
server supports.
On the client, html may have embedded scripts in
javascript, that the client's browser execute. The client's
browser can not execute c++ directly. But if the client's
browser is Internet explorer, then it can run ActiveX
components, and these are typically created using c++ in
windows.
hope it clears it up :)
Reply:Hi.It actually depends on the complexity of the requirement. Javascript is a client script which is fairly simple and can be embedded in a webpage. Client scripts I mean they can only run on the client browser.
I would rather suggest ASP or ASP.Net which is actually a mix of Server code and HTML. It allows us to do loads of things and it would really be helpful. It is very consice and you can pick it up easily. Only thing what sets you back is you need IIS to be installed on your computer to host the application.
For more advanced operations you can creat activeX controls in VB or VC++ and embed in HTML using the tag %26lt;object%26gt; . To learn HTML, Javascript and ASP www.w3schools.com is a wonderful site and I would sincerely advise you to check this out for the basics.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment