This is a discussion on "load script on http and not https" within the PHP Forum section. This forum, and the thread "load script on http and not https are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
load script on http and not https
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
load script on http and not https
I have adsense on my store template, the problem comes whe someone wants to log in to their account. The login page is https which displays the unsecure items warning. this is caused by adsense code. what I want to do is have some code that will check if the page is http or https and only display the code if its http, as i think getting a warning scares some web users..
Any ideas? |
|
|
|
#2
|
|||
|
|||
|
Re: load script on http and not https
To get rid of the warning put the images inside the secure folder.
|
|
#3
|
|||
|
|||
|
Re: load script on http and not https
Quote:
|
|
#4
|
||||
|
||||
|
Re: load script on http and not https
Is it oscommerce???
If so this may be useful... http://www.oscommerce.com/community/...ns,3206/page,3 Craig |
|
#5
|
|||
|
|||
|
Re: load script on http and not https
Cheers for that craig,,
All I had to do was cut the adsense code and save it as google.js and put it in my includes/boxes folder the add the following to my page where the adsense code was.
|
![]() |
| Tags |
| load, script, http, https |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IE5x & https, time-outs loading site... | c_martini | Web Page Design | 11 | Nov 7th, 2006 08:41 |
| http://www.sabukudo.com | Grobulous | Free Web Site Critique | 8 | Oct 4th, 2006 12:11 |
| login client automatically to https website | minnie | ASP.NET Forum | 1 | Jul 30th, 2006 18:15 |
| Session variables lost when http goes to https. Add to link? | Andy K | Classic ASP | 3 | Jul 19th, 2005 15:20 |