Print Page | Close Window

Custom 404.asp + showing cart & search

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=1692
Printed Date: 22-April-2025 at 8:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom 404.asp + showing cart & search
Posted By: worldofrugs
Subject: Custom 404.asp + showing cart & search
Date Posted: 06-June-2008 at 11:09am
I have made a custom 404.asp page to handle my 301-redirects, 404-not found etc...
On this page I have used the header & footer from the shopping cart to implement so cart-features...
I included also the smallshoppingcart and the search function
The cart works fine, after adding the full path in the links for View & Checkout in the SmallShoppingCart.asp file.
I had to do this as I use it in the 404 page, so if you call a page that does not exist in a folder that is not /productcart/pc/  it will go wrong Wink

It all goes fine except I run into one issue:
- The search function...

The search function:
It shows the text "Searching... Please Wait." already below (see screenshot) and trying to use the search does work kind-of, but not perfect. It does perform the search function, but the Searching screen (with animation) does not come up as on other pages...
Not a problem that that doesn't show, as it still performs the search.
So my question is: How / why is the "Searching... Please Wait." showing and how do I get rid of it?

-------------------------------------------------------------------------------


(Screenshot - Look at right/top)
404



Replies:
Posted By: worldofrugs
Date Posted: 06-June-2008 at 2:48pm
Found a solution... Perhaps not the best in the world, but it works...

I made a copy of SmallSearchBox.asp and named it SmallSearchBox2.asp

Took out this code:
onSubmit="pcf_CheckSearchBox();"  and the code:

<script language="JavaScript">
<!--
function pcf_CheckSearchBox() {
     pcv_strTextBox = document.getElementById("smallsearchbox").value;
    if (pcv_strTextBox != "") {
        pcf_OpenModal2.open();
    }
}
//-->
</script>
<%
'// Loading Window
Response.Write(pcf_InitializePrototype())
response.Write(pcf_ModalWindow(dictLanguage.Item(Session("language")&"_advSrca_23"), "2", 200))
%>

In my 404.asp I don't include the file SmallSearchbox.asp anymore but include SmallSearchBox2.asp.

Working like a charm Big%20smile
It does not show the Searching text etc.. but nicely goes to the search results page with the entered value..
As said before, prob. not the best way to handle this, but since it only is for my 404 page...Wink

If someone has a better solution, lemme know...



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