Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Javascript/ Login.php


Guest

Recommended Posts

Posted

I'm working with a DHTML/ Javascript menu to replace the Categories box in the left column, and everything works great until I navigate to the Login.php page.

 

I'm including the page from Column_Left.php. The only difference on Login.php that I can see is the "?osCsid=" in the querystring.

 

Any help would be greatly appreciated.

Posted

The problem on the login.php page is that the javascript/DHTML menu doesn't load.

 

Would something on that page be disabling my menu from loading?

Posted

Do you have two locations for your secure and non-secure files?

 

If so, did you copy all the correct files to both locations?

Posted

I have no seperation other than the default setup. Should I be seperating my secure/ non secure files? Then menu doesn't load as soon as I get to any part of the site that gets redirected through my hosts ssl path.

 

 

The site is still in serious production, but feel free to check it out:

 

http://www.altarrecords.net/catalog/

Posted

Actually your problem is further than this.

 

I go to your main page ... hidden behind the java menu is the regular menu for the categories

 

I click on some new products until ... the categories menu is long enough to see at the same time as the java menu.

 

I think you have a java issue here you might want to clear up.

 

To be sure, disable your java and put in the regular categories box. Does it work?

 

Now figure out the java toys.

Posted

I know that the original menu is still behind the DHTML menu. I just need to comment out the include before I go to production. There is no java being used on the page that I'm aware of, just javascript.

 

Sorry, I should have let you know about the original menu in the background.

 

Thanks for your help

Posted

Everything does work with the regular category box. However, All images that I echo into the page don't show up on any page that has ssl.

 

What am I doing wrong???

 

If you add something to the cart, then go to check out, you will see what I mean

 

http://www.altarrecords.net/catalog/

Posted

https://host32.ipowerweb.com/~altarrec/cata.../E8-Tickets.gif

 

 

This is the image on the right hand side that won't load. So, it is there in the secure directory. I just won't load when the pages get the little lock at the bottom of the screen :)

 

This is my code to access the image:

I created another box called "sticky_item". This line resides in "column_right.php"

 

    require(DIR_WS_BOXES . 'sticky_item.php');

 

 

This my "sticky_item.php":

 

 

 

<?php

?>

<!-- sticky_item //-->

         <tr>

           

 <td> 

   <?php

echo '<a href="/catalog/product_info.php?products_id=89"><img src="/catalog/images/E8-Tickets.gif" width="112" border="0"></a>' 



?>

   </td>

         </tr>

<!-- sticky_item_eof //-->

 

Thanks again.

Posted

Ok, I got the image to load on the secure pages if I use the secure path to the image rather than the virtual path.

 

ie:

 

echo '<a href="http://www.altarrecords.net/catalog/product_info.php?products_id=89"><img src="https://host32.ipowerweb.com/~altarrec/catalog/images/E8-Tickets.gif" width="112" border="0"></a>'

 

as opposed to:

 

echo '<a href="http://www.altarrecords.net/catalog/product_info.php?products_id=89"><img src="/catalog/images/E8-Tickets.gif" width="112" border="0"></a>'

 

 

Why is this? Is there a better way of doing this? Like using the :

<php? echo tep_image(DIR_WS_IMAGES . 'E8-Tickets.gif') ?>

Posted

Ok, I'm trying to do this the "OSC" way, and I think my image problem is solved... Now, I need to figure out how to implement the DHTML Menu in a similar fashion. Please Let me know if this is correct.

 

    <?php

 $info_box_contents = array();

  $info_box_contents[] = array('align' => 'right',

                                'text'  => '<a href="http://www.altarrecords.net/catalog/product_info.php?products_id=89">' . tep_image(DIR_WS_IMAGES . 'E8-Tickets.gif', 'Purchase Your E-8/Generations Tickets Here')  . '</a>');

 new infoBox($info_box_contents);



?>

 

Thanks again Linda.

 

-Justin

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...