Anywhere Buttons Code Error

General ShopSite user discussion

Anywhere Buttons Code Error

Postby Danka » Sat May 14, 2011 9:03 am

I just found Shopsite and I am doing some testing with the Anywhere buttons. Off of the Shopsite page where it talks about anywhere buttons, I copied the Shopsite generated code shown below.... . I put the code in an HTML page in both Dreamweaver & EW 4 and it shows many errors. I realize this isn't a Dreamweaver or EW 4 forum but I was hoping someone here could tell me how to cure the errors. I use a Doctype of >>>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml"><<<<<<<<<<< Does anyone else get these errors when validating the page they are on?? :?:

Many Thanks. Danka


<form action="http://ademostore.com/cgi-bin/shopper/sc/order.cgi" method="post">
<input type="hidden" name="storeid" value="*14a411dac56fb01605b2274b">
<input type="hidden" name="dbname" value="products">
<input type="hidden" name="function" value="add">
<input type="hidden" name="itemnum" value="87">
<input type="hidden" name="87:finoptnum" value=1>
<br>Handle Color
<select name="87:finopt:0" size="1">
<option value="Black">Black</option>
<option value="Orange">Orange</option>
</select>
<br>Quantity
<input type="text" size="2" name="87:qnty" value="1">
<input type="image" src="http://ademostore.com/shopper/als/media/order.gif" border="0" name="Add to Cart" alt="Add to Cart">
<input type="image" src="http://ademostore.com/shopper/als/media/checkout.gif" border="0" name="View Cart" alt="View Cart">
</form>
Danka
 
Posts: 2
Joined: Sat May 14, 2011 8:52 am

Re: Anywhere Buttons Code Error

Postby Jim » Sat May 14, 2011 2:07 pm

ShopSite generates HTML code, it does not generate XHTML code. XHTML requires closing tags on almost any html tag, like a closing </p> and if the tag doesn't have a closing tag associated it requires a /> at the close of the tag. All tags names need to be lowercase etc. I'm not fluent in the XHTML standard but you could check to see what all is required.

If you are using orderanywhere you can modify the html code that ShopSite generates or you can manually create the XHTML code if you desire that your pages be XHTML complient.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Anywhere Buttons Code Error

Postby Danka » Sat May 14, 2011 7:53 pm

THANKS JIM! That explains a lot for me. Since I left Front Page, I have been using this XHMTL and all is good unless I try something like this shopcart code. I need search engine exposure...and I don't know if not using XHTML will hurt me there... I know it will eventually but I can't possibly (although I am beginning to wonder) be the only one still using HTML right now. Do you use the search engines and HTML?? Does it bother anything that you know of??

Thanks Again Jim!!! I have very little hair left to be pulling it out!!!

Dan.
Danka
 
Posts: 2
Joined: Sat May 14, 2011 8:52 am

Re: Anywhere Buttons Code Error

Postby Jim » Sat May 14, 2011 8:35 pm

I have no idea how search engines rank sites. If you do an online search for xhtml vs html you get conflicting reports as to which is better. One site had about 60% of sites using xhtml. However I also found sites that claims xhtml will be done away with and that html5 will be the standard. Many of the references where from 2008, 2009 so who knows how things have changed in the last couple of years or how they will change in the next couple.

I don't think any browser is completely 100% standards compliant, so to me the real issue is how the page displays in the browsers currently in use. If it displays fine in IE, Firefox, Chrome, Safari, then most of the web can view your website.

Attracting visitors to your site is important so any thing you can do to improve that will be helpful. I don't think most search engines give details of how they rank sites so trying to second guess what they are doing is risky. With millions of websites you really need something unique about your site that will expose your site. If you have a nitch that you fill word of mouth form current satisfied customers will probably beat high search engine ranking. (Just my opinion so it may be worth as much as you paid for it. ;-) )
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: Bing [Bot] and 79 guests