Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

https with javascript and image problem.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-18-2003, 03:52 AM
 
Alan Alan is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 83
 

Default https with javascript and image problem.

Hello guys, really need help on this problem here, as I'm still very fresh out of womb when it comes to internet security. I modified some part of my cart_totals.tpl, and alert pop-ups started appearing with "....site contains both secure and insecure content...."

What did I do wrong here? my https directory have symbolic link to the xcart directory...

[code]{* $Id: cart_totals.tpl,v 1.24.2.3 2003/02/03 14:21:22 svowl Exp $ *}
{literal}
<script language="JavaScript" type="text/JavaScript">
<!-- function MM_openBrWindow(theURL,winName,features)
{window.open(theURL,winName,features);} --> </script>
{/literal}
<table cellpadding=0 cellspacing=0 width=100%><tr><td>
</td><td align=right>
{if $shipping ne "" and $need_shipping}
<font class=FormButton>{$lng.lbl_delivery}: </font>
<select name=shippingid onchange="document.cartform.submit()">
{section name=ship_num loop=$shipping}
<option value="{$shipping[ship_num].shippingid}" {if $shipping[ship_num].shippingid eq $cart.shippingid}selected{/if}>{$shipping[ship_num].shipping|escape}</option>
{/section}
</select>


{else}
<input type=hidden name=shippingid value=0>
{/if}
</td></tr></table>
<div align=right>
<font class=FormButton>{$lng.lbl_subtotal}:</font> <font class=ProductPriceSmall>{include file="currency.tpl" value=$cart.sub_total}</font>{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$cart.sub_total}

{if $config.General.use_vat eq "Y"}<font class=FormButton>{$lng.lbl_including_vat_cart_tota l}: </font><font class=ProductPriceSmall>{include file="currency.tpl" value=$cart.total_vat}</font>{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$cart.total_vat}
{/if}

.....
###nothing is changed, cutting short the code
.....

<input type=hidden name=paymentid value={$smarty.get.paymentid}>
<input type=hidden name=mode value={$smarty.get.mode}>
<input type=hidden name=action value=update>
</div>[code]

BTW should I be using built in javascript function for popup windows? I don't really know how to use the x-cart ones though =(

Thanks for any insights![/code]
__________________
Best Regards!
Alan
Search is my friend
Reply With Quote
  #2  
Old 04-18-2003, 04:50 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Easiest way to find the problem is view the source on the page you receive the problem and do a search for 'http' and see if any references to images,javascripts,etc. are being pulled from http vs https.

hth.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 04-22-2003, 07:30 PM
 
Alan Alan is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 83
 

Default


Thanks Boomer, the culprit is a white space <img src> linking to HitsLink...
I should have used search...
__________________
Best Regards!
Alan
Search is my friend
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:00 AM.

   

 
X-Cart forums © 2001-2020