Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Web Store

$
0
0
Re: Web Store
West Wind Web Store .NET
Re: Web Store
Apr. 14, 2013
09:32 pm
3RF1A6B2FShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:rossrooker

1. The business object validation should handle that on the server most likely. There's not much client validation in this code base because it mostly pre-dates AJAX functionality. It's relatively easy to set up for actual fields of order items and inputs, but not so easy to do for arbitrary HTML you enter on your own into topics. So if you need to validate that you need to handle that inside of the actual topic.

I think what you need to do if you want to handle that on the client is capture the submit() event and then look at the controls.

<script> $("#form1").submit( function() {var val = $("#wwWebTextbox2").val();if (!val) { showStatus("value can't be blank"); // or whatever you want to do display outputreturnfalse; }// other criteria here returntrue; });</script>

This is ugly but something along those lines should work.

2. It doesn't...
When you click on the item you just go back to the actual item, not what you actually typed or entered. This is true of items in general. Your shopping cart and what's displayed there is your only display mechanism for the actual data. If you used the Type based special field insertion mechanism then special type values should be reflected in the shopping cart list.

+++ Rick ---


I have 2 questions I need answered below:

Question 1: onblur="return ValidateField('wwTextBox2')" works when they leave the field but if they never enter the field and click the Add to Cart button an error needs to stop them. What then?

Question 2: How do I display the info entered by the user after they add the item to the shopping cart and then click on the item in the shopping cart? IE... when you click on the added line in the shopping cart, the detailed area displays but doesn't reflect the data that was entered.



Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles