Print Page | Close Window

Moved Home Page to Root: Small Problem

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=1986
Printed Date: 13-July-2025 at 12:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Moved Home Page to Root: Small Problem
Posted By: mrjasonsweet
Subject: Moved Home Page to Root: Small Problem
Date Posted: 19-September-2008 at 10:24am
Greetings - I successfully moved the default home page to the root of the site.  All works fine except for one small problem:



This is the standard SmallSearchBox.asp include that I have in header.asp.  When the default home page location is viewed, the "searching.. please wait" message does not appear.

The actual text is referenced in language.asp as:
dictLanguage.Add "english_advSrca_23", "Searching... Please Wait."

And I can see this is referenced in smallsearchbox.asp under:

<%
'// Loading Window
Response.Write(pcf_InitializePrototype())
response.Write(pcf_ModalWindow(dictLanguage.Item(Session("language")&"_advSrca_23"), "2", 200))
%>

Is this an Ajax related issue?
Any insight or feedback would be appreciated.



Replies:
Posted By: Hamish
Date Posted: 19-September-2008 at 4:20pm
Can't say I know the answer off the top of my head, but just check that you followed the guidance on the WIKI for moving to root, which includes a section on preserving AJAX functionality provided by Greg. 

-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: ProductCart
Date Posted: 14-October-2008 at 11:55am
The issue is that the JavaScript function that it invokes uses files that are not found since you are loading the code 2 directories up. We are referring to the following function.


Public Function pcf_InitializePrototype() 
    If Not (pcv_strPrototype) Then
        pcv_strPrototype=True
        pcv_NewLine=CHR(10)
        pcv_strModal=""
        pcv_strModal=pcv_strModal&"<link href='screen.css' rel='stylesheet' type='text/css' />"& pcv_NewLine
        pcv_strModal=pcv_strModal&"<script type='text/javascript' src='../includes/javascripts/highslide.html.packed.js'></script>"& pcv_NewLine   
        pcf_InitializePrototype = pcv_strModal
    End If   
End Function



You would have to move a lot of files to the root to make this work properly. Much easier to simply use a version of the "small search box" that does not use the "Wait... searching" modal window.

To do so, remove the following code:


Response.Write(pcf_InitializePrototype())
response.Write(pcf_ModalWindow(dictLanguage.Item(Session("language")&"_advSrca_23"), "2", 200))





-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software


Posted By: inetbizo
Date Posted: 12-November-2008 at 1:42pm
I have set the store to webroot but wish to keep ajax messages. Where do I find the wikidoc explaining what I need to do ajax wise to keep it working after the upgrade to 3.5? http://wiki.earlyimpact.com/talk/how_to/ajax_small_search_box - http://wiki.earlyimpact.com/talk/how_to/ajax_small_search_box

-------------
Current Project http://canvasusa.com - http://www.canvasusa.com


Posted By: Hamish
Date Posted: 12-November-2008 at 2:23pm
Hi,
  I think your after - http://wiki.earlyimpact.com/how_to/move_home_page_retain_ajax - http://wiki.earlyimpact.com/how_to/move_home_page_retain_ajax




-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: inetbizo
Date Posted: 14-November-2008 at 11:03am
Well, her is the thing. It worked before the 3.5 upgrade. So, perhaps the main wiki page for small search box should document the addendum if you move site to webroot or had it in root and receive a vbScript error. On the talk page that I created, I posted the link to your answer before I got your reply.

-------------
Current Project http://canvasusa.com - http://www.canvasusa.com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net