[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: How to tell if page was called secure or not
****** message to minivend-users from Kyle Cook <kyle@invisio.com> ******
Ryan,
Thanks, I didn't even think to try a Javascript solution. I will
try it out. And you are partially correct in that I do know wether
most of the pages are called via http or https. The problem came
up because I have a multi page check out process and for
example the needfield.html could be called via http or https.
I know I could have separate needfield.html pages but that
seemed redundant.
Thanks Again!
Kyle Cook
At 02:09 PM 5/1/99 -0700, you wrote:
>****** message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com>
> ******
>
>Are you using an include or something? I would imagine that _you_ know
>which pages are secure, and you should tailor your URLs to match the
>situation. However, if you REALLY want to test for SSL:
>
>if (document.location.protocol="https:") {
> ifeelsecure;
>} else {
> ifeelparanoid;
>}
>
>At 02:05 PM 5/1/99 , Kyle Cook wrote:
>>****** message to minivend-users from Kyle Cook <kyle@invisio.com>
>******
>>
>>Hi all!
>>
>>Does anyone know of a simple way to replace a path
>>to a file depending on if the page was called through http
>>or https?
>>
>>Example:
>>I have javascript running for mouseovers and in the
>>script I must preload images. However, because
>>it is not a standard html image call, Minivend can't
>>change the path info. So I need another way of
>>changing the path info depending on wether the
>>page was called via http or https.
>>
>>Here is an example of a javascript line that can cause
>>a problem. It is in the special pages and the problem
>>is that some of those pages may be called via http
>>or https depending on what happens in the checkout
>>process.
>>
>>infoafil_F2.src = "http://www.domain.com/images/pic.gif";
>>
>>Thanks for any help,
>>
>>Kyle Cook
>>http://www.invisio.com
>>Web site design, database driven sites,
>>and shopping cart programming.
>>Great sites, value priced!
>>
>>-
>>To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
>>email with 'UNSUBSCRIBE minivend-users' in the body to
>Majordomo@minivend.com.
>>Archive of past messages: http://www.minivend.com/minivend/minivend-list
>>
>
>Ryan Hertz tel 520-645-3812
>Webmaster tel 800-645-BAIT
>Advertising Director fax 520-645-2588
>Gary Yamamoto Custom Baits, Inc. http://www.yamamoto.baits.com
>-
>To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list
Kyle Cook
http://www.invisio.com
Web site design, database driven sites,
and shopping cart programming.
Great sites, value priced!
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list