![]() |
Custom 404.asp + showing cart & search |
Post Reply ![]() |
Author | |
worldofrugs ![]() Senior Member ![]() ![]() Joined: 24-April-2008 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() 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) ![]() Edited by worldofrugs - 06-June-2008 at 11:46am |
|
![]() |
|
worldofrugs ![]() Senior Member ![]() ![]() Joined: 24-April-2008 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
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 ![]() 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... ![]() If someone has a better solution, lemme know... |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |