T.R | Title | User | Personal Name | Date | Lines |
---|
169.1 | I don't think there is any way around it | HNDYMN::MCCARTHY | A Quinn Martin Production | Mon Mar 31 1997 12:01 | 12 |
| Well that is a creative use of the ACTION clause in a FORM. They are
intended to fire off CGI scripts which then parse their input.
From memory the "?" in the URL is part of the information passed to the
CGI script - in your example, you are passing no extra info so nothing
trails the "?".
I don't think you are going to be able to get the "?" removed without writting
a simple CGI script on your server that then requests the URL you are
trying to access.
bjm
|
169.2 | Can't use CGI - Any other ideas? | SCAMP::SMITH | Never say never, I always say. | Mon Mar 31 1997 17:13 | 13 |
|
BJM,
Oh, rats! I'm using America Offline, and their Servers
don't currently support CGI Scripting, so I guess I'm
outta luck. Do you know of any other way to do it at
all? If there's a way to do it without using "Form"
stuff, that's fine with me. I just want to press a
button and go to a URL. Maybe JavaScript can do it?
Thanks.
Mike
|
169.3 | kiss | HYLNDR::BADGER | Can DO! | Mon Mar 31 1997 18:29 | 7 |
| Am I missing something here?
why not:
<a href="http://www.site.to.go.com"><img src=button.gif></a>
ed
|
169.4 | Didn't wanna use GIF's for this page... | SCAMP::SMITH | Never say never, I always say. | Mon Mar 31 1997 20:12 | 17 |
|
re: -.1
Ed, I guess I wasn't too clear in the Base Note, but there
are going to be a lot of buttons on this page, and I really
didn't want to have to create gobs of GIFs for it. I'd
rather use "pre-made" buttons that are available with code
such as this:
<FORM NAME=TEST1 ACTION="http://home.netscape.com/" target="_parent">
<INPUT TYPE="SUBMIT" VALUE="Netscape">
But with the above code, a "?" is being appended to the "action", so
a URL of http://home.netscape.com/? is what's being called.
Mike
|
169.5 | Method... | AZUR::POULICHET | By what I know, that's what I think | Tue Apr 01 1997 10:05 | 7 |
| Mike,
the "?" mark is used with the GET method (the default).
Try to add <FORM METHOD="POST" NAME=TES1...
^^^^^^^^^^^^^
- Yvan.
|
169.6 | | JGODCL::BOWEN | Two stars short of a Galaxy | Tue Apr 01 1997 10:21 | 17 |
| Or you could use a small hammer and use the following...
<a href="javascript:Jump("Explore")">
<img src="/~gif/Explore.gif" border="no" align=top alt=Explore></a>
<SCRIPT LANGUAGE="javaScript">
<!--
function Jump(What) {
if (What == "Explore")
{
location = "/viewer/explore.asp";
}
}
//-->
</script>
|
169.7 | Yikes, the Security Alert! | SCAMP::SMITH | Never say never, I always say. | Tue Apr 01 1997 16:00 | 21 |
|
re: .5
Yvan, your idea worked, sort of... Now, when the button
is pressed, the Security Alert (Passwords, Credit Cards,
etc.) appears. I could live with that, I guess, but some
Sites don't like it. Microsoft and WinZip worked okay,
but Netscape returned the following error after I clicked
OK on the Security Alert:
This server has encountered an internal error which prevents
it from fulfilling your request. The most likely cause is a
misconfiguration. Please ask the administrator to look for
messages in the server's error log.
I guess it thinks I'm trying to submit something to a non-
existent form, maybe? Why do you suppose some Sites don't
care, but others do? Different levels of security, perhaps?
Mike
|
169.8 | I'd try your plan, except I don't comprehend it! | SCAMP::SMITH | Never say never, I always say. | Tue Apr 01 1997 16:04 | 13 |
|
re: .6
I'd try your plan, except I don't comprehend it! :^(
I'm not sure, but it appears I would need a separate
GIF File for each button, which I did want to avoid,
anyway.
Is that correct?
Mike
|
169.9 | one gif for all the "buttons" | HNDYMN::MCCARTHY | A Quinn Martin Production | Tue Apr 01 1997 19:51 | 9 |
| >>I'm not sure, but it appears I would need a separate
>>GIF File for each button, which I did want to avoid,
>>anyway.
Point all the img= at the same .gif file - no problem. The buttons you get
from a form all look alike anyway.
bjm
|
169.10 | The JavaScript is a bit too tricky for me, yet... | SCAMP::SMITH | Never say never, I always say. | Tue Apr 01 1997 21:58 | 21 |
|
re: .6,.9
The JavaScript is outta my league for now. I tried using
it, and it seemed to work as far as calling the URL cleanly
(I put the URL after Location = ), but I'm not clear on the
GIF part (among others).
Is the GIF file going to be the "button face", and
if so, how would it have a different label for each
button if it's the same GIF file over and over?
Would I need to define a different function for every
button/URL? Etc., etc...
Guess I better invest in a book about JavaScript (but if
you're willing to help me a bit more, I won't complain)!
Thanks!
Mike
|
169.11 | | JGODCL::BOWEN | Two stars short of a Galaxy | Wed Apr 02 1997 10:01 | 8 |
| I use a different button for each, with Paint Shop Pro it's a matter of
seconds to create one, you can however just use one with different
text alongside it.
There are various solutions with ActiveX controls but these only work
with *intel* MSIE.
Kevin
|
169.12 | Can I make the GIF's "press in" like buttons? | SCAMP::SMITH | Never say never, I always say. | Wed Apr 02 1997 18:14 | 12 |
|
re: .*
If I incorporate (well, attempt to incorporate would
probably be more accurate) some of the aforementioned
"GIF files for Buttons method", I'm just going to be
clicking on a picture to call a URL, but it won't
actually be "pressing in" like the Buttons I was
mucking with in the Base Note, right?
Mike
|
169.13 | Try a button with a click event? | PENUTS::AERNI | Ron Aerni, AMCS IS @SHR | Thu Apr 03 1997 22:33 | 18 |
| How about using a button and assigning a URL to Window.Location.Href
when it is clicked? Try the attached code on a page of your choosing.
RJA
<form name="Form1">
<input type="button" name="Button1" value="Microsoft"
onClick="JumpSub('http://www.microsoft.com/')" language="VBScript">
<input type="button" name="Button2" value="DIGITAL"
onClick="JumpSub('http://www.digital.com/')" language="VBScript">
</form>
<script language="VBScript">
Sub JumpSub (URL)
Window.Location.Href = URL
End Sub
</script>
|
169.14 | Error = JumpSub is not defined | SCAMP::SMITH | Never say never, I always say. | Fri Apr 04 1997 23:48 | 8 |
|
re: -.1
Ron, I'm getting a JavaScript error
saying that JumpSub is not defined.
Mike
|
169.15 | try this | VMSBIZ::SANDER | OpenVMS Marketing | Sat Apr 05 1997 00:45 | 12 |
| <html>
<head>
</head>
<body>
<form name="Form1">
<input type="button" name="Button1" value="Microsoft"
onClick="parent.location.assign('http://www.microsoft.com');">
<input type="button" name="Button2" value="DIGITAL"
onClick="parent.location.assign('http://www.digital.com');">
</form>
</body>
</html>
|
169.16 | JavaScript version of .13 (But .15 is shorter!) | PENUTS::AERNI | Ron Aerni, AMCS IS @SHR | Sat Apr 05 1997 01:05 | 25 |
| Re: .14
Mike, I'm running IE 3.0x so I suspect the problem may be related to
IE supporting VBScript but your browser not supporting it. You're
getting a JavaScript error and there is *no* JavaScript in it! Below
is a JavaScript version of the form. It works in IE but let's see if
this works for you!
RJA
<form name="Form1">
<input type="button" name="Button1" value="Microsoft"
onClick="JumpSub('http://www.microsoft.com/')" language="JavaScript">
<input type="button" name="Button2" value="DIGITAL"
onClick="JumpSub('http://www.digital.com/')" language="JavaScript">
</form>
<script language="JavaScript">
<!--
function JumpSub (URL) {
Window.Location.Href = URL;
}
-->
</script>
|
169.17 | .15 works with Netscape 3.X | SCAMP::SMITH | Never say never, I always say. | Mon Apr 07 1997 21:49 | 8 |
|
re: .*
Well, .15 worked for me. I'm running Netscape 3.X.
I will try .16 soon and post the results. Thanks!
Mike
|
169.18 | Guess Netscape only likes JavaScript...? | SCAMP::SMITH | Never say never, I always say. | Mon Apr 07 1997 22:15 | 7 |
|
When I tried .16 (with Netscape 3.X), I got:
Javascript Error: Window is not defined
Mike
|
169.19 | Try this? | YIELD::JBAKER | | Mon Apr 14 1997 23:23 | 7 |
| Don't know if you're past this, but at
http://homepage.interaccess.com/~markarts/
this url has some cool buttons. If you put
your mouse over them they push in, there is
an onmouseover command in the frame source.
Jennifer
|
169.20 | Thanks, Jennifer! Good example! | SCAMP::SMITH | Never say never, I always say. | Tue Apr 15 1997 21:30 | 9 |
|
re: -.1
Thanks, Jennifer. Whoa, the "code" looks pretty serious (for
me, anyway)! Guess I better get back to my "Dummies - You,
too, can learn JavaScript in 2 Years (maybe)" book.
Mike
|