Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] ssl for image-buttons



******    message to minivend-users from "kyle@invisio.com" <kyle@invisio.com>     ******

I use MV3.12 and was in a similar situation, I had a common header file
which had Javascript image preload function (mouseovers) and also table
cell background images that needed to be pulled up according to ssl or
non ssl (each a different domain) so I came up with this simple user tag:

UserTag wurl Routine <<EOR
sub {
my $http = 'http://www.mydomain.com/images/';
my $https = 'https://www.mysecure.com/~user/images/';
my $url = $CGI::secure ? $https : $http;
return $url;
}
EOR

Simply fill in $http and $https above, insert it in catalog.cfg, reconfig
catalog,
 and then, for example, you could use:

<input type="image" name="mv_todo" src="[wurl]myimage.gif" alt="mytext"
border="0" align="absmiddle" VALUE="Search">

and the appropriate url/path would be inserted.

You should NOT use this for normal <img src=.....> tags though, because
they will be adjusted appropriately already.

Kyle (KC)

At 10:59 AM 10/14/00 , you wrote:
>******    message to minivend-users from Sezer Yalcin <sezery@damla.net>     
>******
>
>
>hi all,
>
>i am using something like this:
>
><input type="image" name="mv_todo" src="myimage.gif" alt="mytext"
>border="0" align="absmiddle" VALUE="Search">
>
>i expect mv3.14 to adjust file url for myimage.gif, depending on there
>is secure page or not. My images are completely on another domain so it
>should add domain prefix but does not?
>
>i can manually add it for sure but this will not for for secure pages.
>How can i get mv image handling without using <img src=""> tag? 
>
>or at least how can i see if a page loads is secure or not?
>
>PS: please do not recommend sth. as javascript. I do not rely on
>non-server based programming and recommend you not for security
>purposes.
>
>regards.
>
>-- 
>
>
>Sezer YALÇIN
>-
>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

-
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


Search for: Match: Format: Sort by: