ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Moved Home Page to Root: Small Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Moved Home Page to Root: Small Problem

 Post Reply Post Reply
Author
Message
mrjasonsweet View Drop Down
Newbie
Newbie


Joined: 03-June-2006
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote mrjasonsweet Quote  Post ReplyReply Direct Link To This Post Topic: Moved Home Page to Root: Small Problem
    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.
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post 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. 
Back to Top
ProductCart View Drop Down
Admin Group
Admin Group

ProductCart Team

Joined: 01-October-2003
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProductCart Quote  Post ReplyReply Direct Link To This Post 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 shopping cart software
Back to Top
inetbizo View Drop Down
Groupie
Groupie
Avatar

Joined: 10-April-2008
Location: Destin, FL, USA
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote inetbizo Quote  Post ReplyReply Direct Link To This Post 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

Edited by inetbizo - 12-November-2008 at 1:44pm
Current Project http://www.canvasusa.com
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 12-November-2008 at 2:23pm
Back to Top
inetbizo View Drop Down
Groupie
Groupie
Avatar

Joined: 10-April-2008
Location: Destin, FL, USA
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote inetbizo Quote  Post ReplyReply Direct Link To This Post 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://www.canvasusa.com
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.