[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Solution: How to tell if page was called secure or not
****** message to minivend-users from Kyle Cook <kyle@invisio.com> ******
Thanks to all that responded to this email.
Ryan Hertz gave me what I needed.
The original problem dealt with javascript mousovers and not
the typical <img src= tags.
Minivend does indeed call images via http or https as needed
for these standard tags,
but it doesn't understand javascript with a line such as this
infoafil_F2.src = "pic.gif";
>> -----Original Message-----
>> From: owner-minivend-users@minivend.com
>> [mailto:owner-minivend-users@minivend.com]On Behalf Of Ryan Hertz
>> Sent: Saturday, May 01, 1999 2:10 PM
>> To: minivend-users@minivend.com; minivend-users@minivend.com
>> Subject: Re: How to tell if page was called secure or not
>>
>>
>> ****** 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