Running VB code on WebPages

Lukas

Real Name No Gimmicks
Joined
30 Jan 2002
Messages
421
Hi guys,

A little off topic here, but really need your help.

I was wondering if it's possible to run VB Code on Webpages.
I have an access application I would like to run in a web browser. Basically the application is nothing but a bunch of buttons that open telnet sessions to designated ip adresses.

Code in access looks like this:

Private Sub TelnetUCB_click()
Call Shell ("telnet 193.xx.xxx.xx", 1)
End Sub


Is there A way to implement this into a webpage?



Thnx in advance,


Lukas
 
You should take a look at .ASP i think. The code in ASP is VB, but the pages will have to be run on a webserver* (not a problem but important to know).

*Meaning you can't use "file:///c:/folder/whatever.asp" to run it.
 
Damn

Zedric, thnx for reply...

The meaning of all this is that I'm collecting all of our information and tools at work, converting everything to html/php and getting it on a intranet server.

The only problem is that I don't know s*** of ASP...



Getting ready to google now, but if anyone knows how to build such a page in asp, please let me know...


Greetz

Lukas
 
Since you mension PHP I assume you know that language. ASP is almost exactly the same thing, only the code is VBScript instead of PHP code and the tags are <% %> instead of <? ?>. I'm sure Microsoft has alot of information and tutorials on ASP.
 
Yes, you are able to run and call VBSCRIPT from HTML.

<SCRIPT LANGUAGE="VBSCRIPT">
<!--
CODE HERE
-->
</SCRIPT>

Enjoy.
 
and yes, as Zedric mentioned. <% and %>

If you know PHP, ASP, Perl, and other languages are VERY easy to learn.

To call a VBSCRIPT from an A HREF use the onClick=""
 
Errr...

Thnx for the answers, but there is a slight misunderstanding.

I know HTML but I don't know PHP. I mean, I can install it, configure PHP nuke, and edit a little code. But I don't know how to write a whole application in PHP... (that's yet to come)

Now that's that cleared up, my code would be like this:


<%
<SCRIPT LANGUAGE="VBSCRIPT">
<a href="blabla" onclick="Call Shell ("telnet 193.xx.xxx.xx", 1)"
</SCRIPT>
%>

or not?


I would really like to thank you guys for trying to help me out...



Greetz

Lukas
 
No not really. The <% code %> is for ASP, which is run on the server side and therefor browser independant. The <SCRIPT></SCRIPT> is just like javascript but VBScript code instead. This code is run in the browser (client side) and is therefor browser dependant. In this case that means Internet Explorer only. This is also the way most email viruses are made, so many people may have turned VBScript off in order to secure themselfs. I'd go with ASP. It's very easy if you know VB allready.

Example
-----------
page1.asp:
Code:
<A HREF="page2.asp">Click Here!</A>
page2.asp
Code:
<%
Call Shell ("telnet 193.xx.xxx.xx", 1)
%>

Or something like it.
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back