Author |
Topic |
|
IfOnly
VP-CART New User
United Kingdom
90 Posts |
Posted - February 12 2004 : 10:30:47
|
http://www.select-sports.co.uk/shopping/default.asp
I have customised default.asp but as far as the two row table for Search, Shop,View etc and the second row Product Catergories and on the far right search form, all I did was make the table 100% width. Now, when previewed on the developing site, there is an unnecessary double height to the second row. I have tried using this <style type=" text/css" > form {display:inline;} </style> Did not work. I have searched for surplus br and p tags - non there. Can anyone tell me how to reduce it to a single 25 pixel height please(all cells in table have height="25". It displays as single on IE6 on my home PC but not once loaded onto the web server and viewed. Thanks Phil
Regards
Phil
Edited by - IfOnly on February 12 2004 10:31:09 |
|
jonmadrid
VP-CART New User
USA
192 Posts |
Posted - February 12 2004 : 19:28:30
|
I think the issue at hand is the <form> tag. IE (and some other browsers) give some problems in sitautions like that where the height of the area the form is in is fairly short. I'm not sure why that is or if thats even a documented issue but I have run into the same thing several times. There is hope though.
Try this: rather than having the <form> directly in that cell, take it out and wrap it around that entire 'Navigation table' instead. That might solve the problem by not trying to squeeze it in there, so-to-speak. Does that make sense? My guess is that your height issue will go away when you do that.
Let me know if that solves it for you. I hope it does!
All the best,
Jon Madrid -------------------- Madrid Communications Web Design, Development, and Hosting www.madridcom.com
|
|
|
IfOnly
VP-CART New User
United Kingdom
90 Posts |
Posted - February 13 2004 : 02:37:59
|
Thanks Jon I did not quite follow that but AS I thought the problem may be normal html errors I posted the question to a forum I use for that and rec'd the following answers - none of which unfortunately worked: http://www.frontpagewebmaster.com/m-182227/mpage-1/key-//tm.htm#182308 In Netscape 6 is works just fine!! I am beginning to wonder if it is the first cell in that row which contains the asp statement: <tr> <td width=156 valign=middle align=left bordercolor="#FFFFFF" bgcolor="#46648C" height="25"> <%navigateshowallcategories%> </td> Does this have some quirks as well?
Regards
Phil
Edited by - IfOnly on February 13 2004 02:42:52 |
|
|
williamj
VP-CART New User
Canada
77 Posts |
Posted - February 13 2004 : 05:11:21
|
Jon is right, your problem is with the <form> tags. I had the same problem. Jon's suggestion will work but I see you have two forms in the same row which may be a problem. Maybe Jon will have a solution to this.
|
|
|
jonmadrid
VP-CART New User
USA
192 Posts |
Posted - February 13 2004 : 11:25:43
|
IfOnly,
If you can paste the HTML code as you see it (when editing the page) up on the forum here, I can modify it to how I think it will work and send it back to you. The reason I ask for that is that the HTML that is output on your actual webpage is a bit jumbled and not structured properly (nested tags, etc). I copied the source and created a new HTML doc with my editor and it found a series of problems. I don't know if thats due to VP-ASP generated code or what, but if you post what you have, I'll see what I can do.
All the best,
Jon Madrid -------------------- Madrid Communications Web Design, Development, and Hosting www.madridcom.com
|
|
|
IfOnly
VP-CART New User
United Kingdom
90 Posts |
Posted - February 14 2004 : 01:05:57
|
Hi Jon Thanks for your kind offer. (I have just edited this as another good asp guy(Spooky, who links to Vp's cart form the forum) from the other forum has spotted that the actual file code the asp statement <%navigateshowallcategories%> renders in the browser with the form tag before the </td> tag and feels this is the problem. He states
"Youll have to modify the function navigateshowallcategories Extract the form tags from that code and place them before and after the <td> tags - that is the problem."
My problem is I do not know where to find that statement in all the asp files. Would you know please Jon and VP support may be interested because their demo online has the same problem)
The clients logo is nested into the top of the page and this may be causing problems of nested tables as I have taken the code from his existing web site and tried to intergrate it into the top. Here is the page code: <!--#include file="shop$db.asp"--> <!--#include file="shoprandomproducts.asp"--> <!--#include file="shopfileio.asp"--> <%shopinit%> <html> <head> <title>Select Sport Shopping</title> <link rel="stylesheet" href="shop.css" type="text/css"> <meta NAME="description" content=""> </head> <body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"> <div align="center"> <table border="0" bgcolor="#FFFFFF" width="100%"> <tr bgcolor="#FFFFFF"> <td colspan="3" valign="top" align="center" bgcolor="#FFFFFF"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td width="1%" valign="top"> <img border="0" src="images/logo_ss_txt_web.gif" width="346" height="86"></td> <td width="98%" valign="top" background="images/tpmdbk.jpg"> </td> <td width="1%" valign="top"> <img border="0" src="images/toprightmergeweb.jpg" width="346" height="86"></td> </tr> </table> </td> </tr> <tr bgcolor="#FFFFFF"> <td colspan="3"> <table border="0" cellspacing="1" cellpadding="0" bgcolor="#FFFFFF" bordercolor="#FFFFFF" width="100%" height="50"> <tr bgcolor="#336633" valign="top" bordercolor=#FFFFFF> <td width="156" height="25" valign="middle" align="center" bordercolor="#FFFFFF" bgcolor="#46648C"> <a target="_blank" href="size.htm"><span CLASS="text-white-bold">Check Sizes</span></a></td> <td width="107" height="25" valign="middle" align="center" bordercolor="#FFFFFF" bgcolor="#46648C"> <a href="shopsearch.asp"><span CLASS="text-white-bold">Search</span></a> </td> <td width="107" height="25" valign="middle" align="center" bordercolor="#FFFFFF" bgcolor="#46648C"> <a href="shopdisplaycategories.asp"><span CLASS="text-white-bold">Shop</span></a> </td> <td width="107" height="25" valign="middle" align="center" bordercolor="#FFFFFF" bgcolor="#46648C"> <a href="shopaddtocart.asp"><span CLASS="text-white-bold">View</span></a> </td> <td width="107" height="25" valign="middle" align="center" bordercolor="#FFFFFF" bgcolor="#46648C"> <a href="shopend.asp"><span CLASS="text-white-bold">Empty</span></a> </td> <td width="107" height="25" valign="middle" align="center" bordercolor="#FFFFFF" bgcolor="#46648C"> <a href="shopcustomer.asp"><span CLASS="text-white-bold">Checkout</span></a> </td> <td width="120" height="25" valign="middle" align="center" bordercolor="#FFFFFF" bgcolor="#46648C"> <a href="shopcustadmin.asp"><span CLASS="text-white-bold">Service</span></a> </td> </tr> <tr> <td width=156 valign=middle align=left bordercolor="#FFFFFF" bgcolor="#46648C" height=25> <%navigateshowallcategories%> </td> <td width=156 valign=middle align=left bordercolor="#FFFFFF" bgcolor="#46648C" height=25> </td> <td width=156 valign=middle align=left bordercolor="#FFFFFF" bgcolor="#46648C" height=25> <form action="shopsearch.asp?search=Yes" method="post" id=form3 name=form3> </td> <td bgcolor="#46648C" colspan=6 valign=top align=right> <input type="text" name="keyword" CLASS="input-text"> <input name="B1" type="submit" value="Search" CLASS="submit-text"> </td> </tr> </form></table> </td> </tr> <tr> <!-- Start: Left Navigation--> <td valign="top" bordercolor="#336633" rowspan="2"> <table border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" bordercolor="#FFFFFF" width=160> <tr valign="top" bordercolor="#FFFFFF"> <td width="150" height="35" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"> <a href="shopcustadmin.asp"><span CLASS="text-white-bold">Customer Service</span></a> </td> </tr> <tr valign="top" bordercolor="#FFFFFF"> <td width="150" height="35" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"> <a HREF="shopcustadminlogin.asp"><span CLASS="text-white-bold">Login</span></a> </td> </tr> <tr valign="top" bordercolor="#FFFFFF"> <td width="150" height="35" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"> <a HREF="shoptellafriend.asp"><span CLASS="text-white-bold">Tell a Friend</span></a> </td> </tr> <tr valign="top" bordercolor="#FFFFFF"> <td width="150" height="35" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"> <a HREF="shopcustregister.asp"><span CLASS="text-white-bold">Register</span></a> </td> </tr> <tr valign="top" bordercolor="#FFFFFF"> <td width="150" height="35" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"> <a HREF="shopmaillist.asp"><span CLASS="text-white-bold">Mail List</span></a> </td> </tr> <tr valign="top" bordercolor="#FFFFFF"> <td width="150" height="35" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"> <a HREF="shopcustcontact.asp"><span CLASS="text-white-bold">Contact Us</span></a> </td> </tr> <tr valign="top" bordercolor="#FFFFFF"> <td width="150" height="35" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"> <form action="shoplogin.asp" method="post"> <input type="hidden" name="returnurl" value="shopdisplaycategories.asp"> <span CLASS="text-white-bold">Last Name</span> <input type="text" name="strlastname" CLASS="input-text"> <br> <span CLASS="text-white-bold">Email</span><br> <input type="text" name="stremail" CLASS="input-text"><br> <input name="L1" type="submit" value="Login" CLASS="submit-text"> </form> </td> </tr> <tr> <td colspan="2" align="center" valign="baseline"> </td> </tr> </table> </td> <td valign="top" align="left"> <font face="Verdana"><b>Select Sports</b> opened in 1990 to specialise in cricket and hockey equipment at competitive prices.<br> We supply a full range of cricket equipment including: cricket bats, pads, gloves, wicket keeping pads and gloves, helmets, protective equipment (thigh pads, arm and chest guards, abdo's), cricket clothing including, trousers, shirts and sweaters and cricket balls.<br> Similarly for hockey we stock: composite and wooden sticks, indoor and junior sticks, stick bags and hockey bags, goalkeeping equipment, hockey clothing, stick care products and grips.<br> <br> Select Sports supply to cricketers and hockey players at all levels of the game. Only top quality goods are supplied from all the leading manufacturers.<br> Discounts from the recommended retail price apply to all products. Bulk orders for club clothing can attract additional discounts.<br> Please checkout our special offers below and browse our online shop using the link above</font></td> <td valign="top" rowspan="2" bgcolor="#DCDCDC"> <font face="Verdana"><b>A full range of stock is carried, supplied by all the leading brands.</b><br> </font><div align="center"> <center> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="table1"> <tr> <td width="50%" align="center" bgcolor="#2FA4D0"><font face="Verdana"><b> Cricket</b></font></td> <td width="50%" align="center" bgcolor="#2FA4D0"><font face="Verdana"><b> Hockey</b></font></td> </tr> <tr> <td width="50%" valign="top" align="center" bgcolor="#A9E0FE"> <font face="Verdana">Gray Nicolls<br> Slazenger<br> Kookaburra<br> Gunn & Moore<br> Newbery<br> Salix<br> Duncan Fearnley<br> Easton<br> Readers<br> Puma<br> Asics</font></td> <td width="50%" valign="top" align="center" bgcolor="#A9E0FE"> <font face="Verdana">Gray Nicolls<br> Slazenger<br> T.K.<br> Kookaburra<br> Dita<br> Newbery</font></td> </tr> </table> </center></div> <p> </td> </tr> <tr> <td valign="top" align="center"> <!-- Start: Main display--> <% DisplayrandomProducts %> <!-- end Main Display--> <!--start trailer--> </td> </tr> <tr> <td width="20%" align="center"> </td> <td width="60%" align="center"> <table border="0" cellspacing="1" cellpadding="0" bgcolor="#FFFFFF" bordercolor="#FFFFFF"> <tr bordercolor="#FFFFFF" valign="top"> <td width="90" height="25" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"><a href="default.asp"><span CLASS="text-white-bold">Home</span></a></td> <td width="90" height="25" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"><a href="shopdisplaycategories.asp"><span CLASS="text-white-bold">Categories</span></a></td> <td width="90" height="25" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"><a href="shopaddtocart.asp"><span CLASS="text-white-bold">View Cart</span></a></td> <td width="90" height="25" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"><a href="shopcustomer.asp"><span CLASS="text-white-bold">Checkout</span></a></td> <td width="90" height="25" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"><a href="shopsearch.asp"><span CLASS="text-white-bold">Search</span></a></td> <td width="90" height="25" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"><a href="shopend.asp"><span CLASS="text-white-bold">Empty Cart</span></a></td> </tr> </table> </td> <td width="20%" align="center"> </td> </tr> <tr> <td width="20%" align="center"> </td> <td width="60%" align="center"> <span CLASS="small-black-text">Copyright © 2004 Sensible Web Ltd. All rights reserved.</span> <br> <a href="http://www.sensibleweb.co.uk">Sensible Web Ltd</a></td> <td width="20%" align="center"> </td> </tr> </table> </div> </body> </html>
Regards
Phil
Edited by - IfOnly on February 14 2004 06:09:05
Edited by - IfOnly on February 14 2004 06:15:20 |
|
|
jonmadrid
VP-CART New User
USA
192 Posts |
Posted - February 16 2004 : 07:53:31
|
IfOnly,
Ok. I tinkered with your code and got it work (a.k.a. to diaply properly). There are two things that I found...
1) The source of the problem is the navigateshowallcategories sub. In particular, it's when the "</select></form>" tags are added on to the end of the generated code for the drop down menu. The only way I was able to get it to show the right height was to remove, or comment out, that line of code. It worked straight away and the browser didn't seem to mind that the form wasn't close. I hate doing that because it's not correct structuring but it works and is probably the easiest solution.
To do adjust that, all you need to do is this:
Open shopproductsubs.asp, and around line 405, look for this:
******* response.write "</select></form>" *******
Just comment it out, like this (single quote before code):
******* 'response.write "</select></form>" *******
Save and upload your file. That should solve that problem.
2) I made some corrections and changes to the code you posted for your page, and have posted the posted code back here (below). There were a few things that appeared to be incorrect or improperly structured... Nothing major.
I made the changes mentioned (above) and used this code (below) and it produced the desired result on our test server. Let me know if it works for you!
******* <!--#include file="shop$db.asp"--> <!--#include file="shoprandomproducts.asp"--> <!--#include file="shopfileio.asp"--> <%shopinit%> <html> <head> <title>Select Sport Shopping</title> <link rel="stylesheet" href="shop.css" type="text/css"> <meta NAME="description" content=""> </head> <body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"> <div align="center"> <table border="0" bgcolor="#FFFFFF" width="100%"> <tr bgcolor="#FFFFFF"> <td colspan="3" valign="top" align="center" bgcolor="#FFFFFF"><table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td width="1%" valign="top"> <img border="0" src="images/logo_ss_txt_web.gif" width="346" height="86"></td> <td width="98%" valign="top" background="images/tpmdbk.jpg"> </td> <td width="1%" valign="top"> <img border="0" src="images/toprightmergeweb.jpg" width="346" height="86"></td> </tr> </table> </td> </tr> <tr bgcolor="#FFFFFF"> <td colspan="3"> <table border="0" cellspacing="1" cellpadding="0" bgcolor="#FFFFFF" bordercolor="#FFFFFF" width="100%" height="50"> <tr bgcolor="#336633" valign="top" bordercolor=#FFFFFF> <td width="156" height="25" valign="middle" align="center" bordercolor="#FFFFFF" bgcolor="#46648C"> <a target="_blank" href="size.htm"><span CLASS="text-white-bold">Check Sizes</span></a></td> <td width="107" height="25" valign="middle" align="center" bordercolor="#FFFFFF" bgcolor="#46648C"> <a href="shopsearch.asp"><span CLASS="text-white-bold">Search</span></a> </td> <td width="107" height="25" valign="middle" align="center" bordercolor="#FFFFFF" bgcolor="#46648C"> <a href="shopdisplaycategories.asp"><span CLASS="text-white-bold">Shop</span></a> </td> <td width="107" height="25" valign="middle" align="center" bordercolor="#FFFFFF" bgcolor="#46648C"> <a href="shopaddtocart.asp"><span CLASS="text-white-bold">View</span></a> </td> <td width="107" height="25" valign="middle" align="center" bordercolor="#FFFFFF" bgcolor="#46648C"> <a href="shopend.asp"><span CLASS="text-white-bold">Empty</span></a> </td> <td width="107" height="25" valign="middle" align="center" bordercolor="#FFFFFF" bgcolor="#46648C"> <a href="shopcustomer.asp"><span CLASS="text-white-bold">Checkout</span></a> </td> <td width="120" height="25" valign="middle" align="center" bordercolor="#FFFFFF" bgcolor="#46648C"> <a href="shopcustadmin.asp"><span CLASS="text-white-bold">Service</span></a> </td> </tr> <tr> <td width=156 valign=middle align=left bordercolor="#FFFFFF" bgcolor="#46648C" height=25> <table> <tr> <td> <%navigateshowallcategories%> </td> </tr> </table> </td> <td width=156 valign=middle align=left bordercolor="#FFFFFF" bgcolor="#46648C" height=25> </td> <form action="shopsearch.asp?search=Yes" method="post" id=form3 name=form3> <td width=156 valign=middle align=left bordercolor="#FFFFFF" bgcolor="#46648C" height=25></td> <td bgcolor="#46648C" colspan=6 valign=top align=right> <input type="text" name="keyword" CLASS="input-text"> <input name="B1" type="submit" value="Search" CLASS="submit-text"> </td> </form> </tr> </table> </td> </tr> <tr> <!-- Start: Left Navigation--> <td valign="top" bordercolor="#336633" rowspan="2"> <table border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" bordercolor="#FFFFFF" width=160> <tr valign="top" bordercolor="#FFFFFF"> <td width="150" height="35" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"> <a href="shopcustadmin.asp"><span CLASS="text-white-bold">Customer Service</span></a> </td> </tr> <tr valign="top" bordercolor="#FFFFFF"> <td width="150" height="35" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"> <a HREF="shopcustadminlogin.asp"><span CLASS="text-white-bold">Login</span></a> </td> </tr> <tr valign="top" bordercolor="#FFFFFF"> <td width="150" height="35" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"> <a HREF="shoptellafriend.asp"><span CLASS="text-white-bold">Tell a Friend</span></a> </td> </tr> <tr valign="top" bordercolor="#FFFFFF"> <td width="150" height="35" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"> <a HREF="shopcustregister.asp"><span CLASS="text-white-bold">Register</span></a> </td> </tr> <tr valign="top" bordercolor="#FFFFFF"> <td width="150" height="35" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"> <a HREF="shopmaillist.asp"><span CLASS="text-white-bold">Mail List</span></a> </td> </tr> <tr valign="top" bordercolor="#FFFFFF"> <td width="150" height="35" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"> <a HREF="shopcustcontact.asp"><span CLASS="text-white-bold">Contact Us</span></a> </td> </tr> <tr valign="top" bordercolor="#FFFFFF"> <td width="150" height="35" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"><form action="shoplogin.asp" method="post"> <input type="hidden" name="returnurl" value="shopdisplaycategories.asp"> <span CLASS="text-white-bold">Last Name</span> <input type="text" name="strlastname" CLASS="input-text"> <br> <span CLASS="text-white-bold">Email</span><br> <input type="text" name="stremail" CLASS="input-text"> <br> <input name="L1" type="submit" value="Login" CLASS="submit-text"> </form> </td> </tr> <tr> <td colspan="2" align="center" valign="baseline"> </td> </tr> </table> </td> <td valign="top" align="left"> <font face="Verdana"><b>Select Sports</b> opened in 1990 to specialise in cricket and hockey equipment at competitive prices.<br> We supply a full range of cricket equipment including: cricket bats, pads, gloves, wicket keeping pads and gloves, helmets, protective equipment (thigh pads, arm and chest guards, abdo's), cricket clothing including, trousers, shirts and sweaters and cricket balls.<br> Similarly for hockey we stock: composite and wooden sticks, indoor and junior sticks, stick bags and hockey bags, goalkeeping equipment, hockey clothing, stick care products and grips.<br> <br> Select Sports supply to cricketers and hockey players at all levels of the game. Only top quality goods are supplied from all the leading manufacturers.<br> Discounts from the recommended retail price apply to all products. Bulk orders for club clothing can attract additional discounts.<br> Please checkout our special offers below and browse our online shop using the link above</font></td> <td valign="top" rowspan="2" bgcolor="#DCDCDC"> <font face="Verdana"><b>A full range of stock is carried, supplied by all the leading brands.</b><br> </font> <div align="center"> <center> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="table1"> <tr> <td width="50%" align="center" bgcolor="#2FA4D0"><font face="Verdana"><b> Cricket</b></font></td> <td width="50%" align="center" bgcolor="#2FA4D0"><font face="Verdana"><b> Hockey</b></font></td> </tr> <tr> <td width="50%" valign="top" align="center" bgcolor="#A9E0FE"> <font face="Verdana">Gray Nicolls<br> Slazenger<br> Kookaburra<br> Gunn & Moore<br> Newbery<br> Salix<br> Duncan Fearnley<br> Easton<br> Readers<br> Puma<br> Asics</font></td> <td width="50%" valign="top" align="center" bgcolor="#A9E0FE"> <font face="Verdana">Gray Nicolls<br> Slazenger<br> T.K.<br> Kookaburra<br> Dita<br> Newbery</font></td> </tr> </table> </center> </div> <p> </td> </tr> <tr> <td valign="top" align="center"><!-- Start: Main display--> <%DisplayrandomProducts%> <!-- end Main Display--> <!--start trailer--> </td> </tr> <tr> <td width="20%" align="center"> </td> <td width="60%" align="center"> <table border="0" cellspacing="1" cellpadding="0" bgcolor="#FFFFFF" bordercolor="#FFFFFF"> <tr bordercolor="#FFFFFF" valign="top"> <td width="90" height="25" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"><a href="default.asp"><span CLASS="text-white-bold">Home</span></a></td> <td width="90" height="25" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"><a href="shopdisplaycategories.asp"><span CLASS="text-white-bold">Categories</span></a></td> <td width="90" height="25" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"><a href="shopaddtocart.asp"><span CLASS="text-white-bold">View Cart</span></a></td> <td width="90" height="25" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"><a href="shopcustomer.asp"><span CLASS="text-white-bold">Checkout</span></a></td> <td width="90" height="25" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"><a href="shopsearch.asp"><span CLASS="text-white-bold">Search</span></a></td> <td width="90" height="25" valign="middle" align="center" bgcolor="#46648C" bordercolor="#FFFFFF"><a href="shopend.asp"><span CLASS="text-white-bold">Empty Cart</span></a></td> </tr> </table> </td> <td width="20%" align="center"> </td> </tr> <tr> <td width="20%" align="center"> </td> <td width="60%" align="center"> <span CLASS="small-black-text">Copyright © 2004 Sensible Web Ltd. All rights reserved.</span> <br> <a href="http://www.sensibleweb.co.uk">Sensible Web Ltd</a></td> <td width="20%" align="center"> </td> </tr> </table> </div> </body> </html> *******
All the best,
Jon Madrid -------------------- Madrid Communications Web Design, Development, and Hosting www.madridcom.com
|
|
|
IfOnly
VP-CART New User
United Kingdom
90 Posts |
Posted - February 16 2004 : 08:44:24
|
Jon thanks very much for spending the time on this. I uploaded the commented out file as suggested and immediately noticed the single row height - brilliant; But then when I tried a search "Bat" (only a couple in there at present) nothing happened. I then removed the comment out and uploaded and the search worked retuening some bats. Sorry about this
Regards
Phil |
|
|
jonmadrid
VP-CART New User
USA
192 Posts |
Posted - February 16 2004 : 09:20:28
|
Phil,
Ok. I think I know what's wrong: The original form tag (for the drop down list) hasn't been closed so when the form for the search comes around it is still posting to the location for the drop down. I don't know why I didn't think of that the first time.
Anyway, I have another fix for you that seems to work. Mind you this is another 'hack' and isn't proper HTML structuring but it should work.
Here's what to do: In the default.asp doc (or whatever doc the other code you posted was for), look for this line of code:
******* <form action="shopsearch.asp?search=Yes" method="post" id=form3 name=form3> *******
and insert this line just above it:
******* </select></form> *******
Save and upload. Thats it. All that does is closes the dropdown select list and the form so that the search form will be used for searching, insted of the dropdown list form. Make sense?
Let me know if you get it working. I hope you do!
All the best,
Jon Madrid -------------------- Madrid Communications Web Design, Development, and Hosting www.madridcom.com
|
|
|
IfOnly
VP-CART New User
United Kingdom
90 Posts |
Posted - February 16 2004 : 11:15:27
|
Thanks Jon I did that but it did not work I am afraid. Did you mean to make the amendments in default.asp as well as the ealier ones to shopproductssub.asp. I removed the changes in shopproductssub.asp to make the search work before my previous posting?
[code<tr> <td width=156 valign=middle align=left bordercolor="#FFFFFF" bgcolor="#46648C" height=25> <%navigateshowallcategories%> </td> <td width=156 valign=middle align=left bordercolor="#FFFFFF" bgcolor="#46648C" height=25> </td> <td width=156 valign=middle align=left bordercolor="#FFFFFF" bgcolor="#46648C" height=25> </select></form> <form action="shopsearch.asp?search=Yes" method="post" id=form3 name=form3> </td> <td bgcolor="#46648C" colspan=6 valign=top align=right> <input type="text" name="keyword" CLASS="input-text"> <input name="B1" type="submit" value="Search" CLASS="submit-text"> </td> </tr> </form></table>[/code]
Regards
Phil
Edited by - IfOnly on February 16 2004 11:18:28 |
|
|
jonmadrid
VP-CART New User
USA
192 Posts |
Posted - February 16 2004 : 12:35:08
|
Hi Phil,
Yes. Make both sets of changes. The second change assumes that the first ones were made. Make sense?
I tested the code and it worked for me. Let me know if you still have any troubles.
All the best,
Jon Madrid -------------------- Madrid Communications Web Design, Development, and Hosting www.madridcom.com
|
|
|
IfOnly
VP-CART New User
United Kingdom
90 Posts |
Posted - February 16 2004 : 13:14:54
|
Jon - you are an absolute star!!
It worked a treat, the row height is now more respectable and the search works. I noticed that the online demo version has the same problem, perhaps VP could benefit from all your hard work.
Thanks again for all your patience and hard work on this.
Regards
Phil |
|
|
|
Topic |
|