|
-
Apr 3rd, 2001, 04:36 PM
#1
I want to call a VBScript Sub thru a link so I use this code
<A HREF="" onClick="vbscript:PopUp">
I add HREF in to make it look like a link (and I wont just change the font and underline it 'cuz of CSS)
but when I click the link it reloads the default page in that directory, what fo I use to make this do
"nothing"
And another Q.... How do i display HTML code on a web page?
Thanks and Regards
Simon
-
Apr 3rd, 2001, 04:46 PM
#2
use something like this...
</TABLE>
That will display </TABLE>
-
Apr 3rd, 2001, 04:53 PM
#3
-
Apr 3rd, 2001, 05:01 PM
#4
You might also want to try the <PRE></PRE> tags.....though I am not sure they will do what you want.
-
Apr 3rd, 2001, 05:03 PM
#5
Addicted Member
Originally posted by chenko
I want to call a VBScript Sub thru a link so I use this code
<A HREF="" onClick="vbscript:PopUp">
Try this..
<A HREF="vbscript:PopUp">Click Me to popup</A>
-
Apr 3rd, 2001, 05:08 PM
#6
Originally posted by Active
<A HREF="vbscript:PopUp">Click Me to popup</A>
I get......
" Type mismatch 'popup' "
-
Apr 3rd, 2001, 08:36 PM
#7
Fanatic Member
You can do this:
<a href="#" onClick="vbscript:PopUp">Click me</a>
Alcohol & calculus don't mix.
Never drink & derive.
-
Apr 4th, 2001, 03:24 PM
#8
Havnt tried it yet but Cheers!
Si
-
Apr 4th, 2001, 08:13 PM
#9
display HTML code
Here is neat chunk of code to do just that.
<%
Dim oFS, oStream, sText, sFileName
Set oFS = Server.CreateObject("Scripting.FileSystemObject")
sFileName = Request.ServerVariables("HTTP_Script")
sFileName = ServerMapPath(sFileName)
Set oStream = oFS.OpenTextFile(sFileName)
sText = oStream.ReadAll()
oStream.Close
%>
<html>
<body>
<pre>
<%=sText%>
</pre>
</body>
</html>
-
Apr 5th, 2001, 01:49 AM
#10
-
Apr 5th, 2001, 01:51 AM
#11
and Simon.. why won't you use CSS??.. started hating CSS,bcoz of me? :P
-
Apr 6th, 2001, 11:59 AM
#12
Huh? CSS? how can I use that for what I want?
And yes it is ASP Anoop, but mind me saying, that code was a waste of space!
Wynd: The # sorta works, but I moves it to the top of the page 
Is there anyother way I can do this?
-
Apr 6th, 2001, 08:55 PM
#13
<a href = "javascript:void()" onClick = "popICQ">
-
Apr 6th, 2001, 10:30 PM
#14
Fanatic Member
Yeah, what anoop said, try this:
<a href="javascript:void(0)" onClick="vbscript:PopUp">
Alcohol & calculus don't mix.
Never drink & derive.
-
Apr 6th, 2001, 10:31 PM
#15
Fanatic Member
Seems like there is something sticking a space in there...
Alcohol & calculus don't mix.
Never drink & derive.
-
Apr 7th, 2001, 09:49 AM
#16
Originally posted by anoop007
<a href = "javascript:void()" onClick = "popICQ">
Cheeky bugger, You had to show off an post It to didnt you!!
Cheers!
-
Apr 7th, 2001, 12:04 PM
#17
PowerPoster
i think you have to send it 0 like Wynd said though. Becausing voiding 0 does nothing.
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Apr 7th, 2001, 04:03 PM
#18
Its works with out the Zero anyways
Cheers guys!
-
Apr 7th, 2001, 05:45 PM
#19
PowerPoster
Thats cool, i did not know that
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Apr 7th, 2001, 07:33 PM
#20
I found another way to display HTML code on your page, if you are using ASP, you can do this:
<%=Server.HTMLEncode("<table>")%>
It will embed it as <table> in your HTML, resulting in the display of <table>.
-
Apr 7th, 2001, 08:22 PM
#21
-
Apr 9th, 2001, 07:20 AM
#22
Black Cat
In javascript, you can "return false" to the onClick event to process script without processing the link.
Code:
<a href="page.html" onClick="return MyFunction()">Boost Your Post Count</a>
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Apr 9th, 2001, 09:14 AM
#23
Well its not a function and Ive got it sorted
Thanks all!!
......Why do all my questions suddenly appear at the top making me look like a dumb ass! ??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|