Results 1 to 5 of 5
  1. #1

    Default prevent javascript on secure page

    Hi all

    I'm running some javascript code at the bottom of my tpl_index_default page which displays some news articles. Does anyone know how I can modify the code so that it will not display on secure pages - ie when logging in, as this gives a security warning. Here is the code:

    <table width="100%" border="0px" class="leftbox" bordercolor="#666666">
    <tr>
    <td align="center"><h1>Latest Articles </h1>
    <script language=javascript>document.write("<"+"script language=javascript src='http://www.contentinfusion.com/Category.aspx?CATEGORYID=10&FORMAT=JS&MEMBERID=6536&TITLE_TEXTFONT=Arial&TITLE_T EXTSIZE=2&TITLE_TEXTCOLOR=990000&BODY_TEXTFONT=Arial&BODY_TEXTSIZE=2&BODY_TEXTCO LOR=&PANEL_COLOR=&MAX_ITEMS=5&PANEL_WIDTH=550&SHOW_SUMMARY=True&SHOW_IMAGES=Fals eONLY_IMAGES=False&ARTICLE_URL=http%3a%2f%2fwww.desirables.biz%2findex.php%3fmai n_page%3dpage_2%26&TEXT_ALIGN=Left&NEW_WINDOW=False&KEYWORD_FILTER=&WINDOW_TARGE T=&ARTICLES_APPLY=True&THUMBNAIL_SIZE=1&location="+ document.location +"'>"+"<"+"/script>");</script></td>
    </tr>
    </table>


    Thanks

  2. #2

    Default Re: prevent javascript on secure page

    OK

    Please ignore that - that javascript wan't the culprit, it was a flash image viewer on my main page.

    I had to change the codebase references for Macromedia to HTTPS which seems to have worked, though I'm sure there was a better solution

    Whatever gets the job done I suppose...

    Thanks all

  3. #3

    Default Re: prevent javascript on secure page

    Still wrong!!!

    Sorry

    I have a flash image viewer in my main page and the above code in the index page.

    Both reference http so my only option so far has been to substitute for https on both the contentinfusion link and also, the codebase references to Macromedia in the flash element.

    This seems to me an unneccesary waste of hits to these companies' ssl servers as this will happen even when landing on a non secure view of my home page.

    If anyone has any ideas that would be great.

    For now, it is working though

    Thanks

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: prevent javascript on secure page

    The URL where you are having trouble?

  5. #5

    Default Re: prevent javascript on secure page

    sorry yes - in my signature

    http://www.desirables.biz

    for the ssl version is

    https://host178.ipowerweb.com/~desir...e=index&zenid=

    As you can see, I have it working by forcing https in those two areas though I'm sure thats not the best way

    Thanks!

 

 

Similar Threads

  1. This page contains both secure and non-secure items?
    By doubletiger in forum General Questions
    Replies: 2
    Last Post: 11 Sep 2010, 01:16 PM
  2. Javascript killing Secure Pages
    By ft11 in forum General Questions
    Replies: 2
    Last Post: 9 Oct 2007, 11:11 PM
  3. Prevent duplicate orders by using javascript on confirm button?
    By emtecmedia in forum General Questions
    Replies: 4
    Last Post: 5 Dec 2006, 10:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg