I sent this earlier but haven't seen it appear on the list yet, so am re-sending. My apologies if it's a duplicate!
Back in January 2008 I received MAJOR help from this list in setting up a validation system for various codes I needed to check. It's been working perfectly until I had to make a change. My 2008 problem was that it wouldn't pop up the "you've entered an invalid code" error message. Now I have a different problem. I *think* I know where the issue is but am not familiar enough with javascript to fix it.
The error trapping is set on http://caninereview.ca/CRcart/SubJoyValidate09.html - if one enters anything except the correct code, the error message pops up, exactly as it's supposed to. So far so good.
The problem now is that after correctly popping up the "wrong code" error, it switches over to the "Your Promo Code Validated" page anyway. It is supposed to just stay on the original page until the person enters a correct code or hits the "Back to Sub Page" button.
I think that the problem is caused by "mixed messages" in the javascript (which is written into the page) but am too chicken to mess with it on my own, so am hoping someone here can tell me how to fix it.
<csactiondict> <script type="text/javascript"><!-- CSAct[/*CMP*/ 'C629C2DD8'] = new Array(CSFieldValidate,'PromoForm','SECode',4,0,'SE08','Sorry, that is an incorrect code. Please try again'); CSAct[/*CMP*/ 'C629C2DD9'] = new Array(CSGotoLink,/*URL*/ 'SubPromoValid09.html',''); CSAct[/*CMP*/ 'C629C2DD11'] = new Array(CSGotoLink,/*URL*/ 'http://caninereview.ca/CRcart/CR-Subs09.html','') ;
// --></script> </csactiondict>
Then in the Body area I have:
<p class="bodyleft10class">Enter the Special Event Promotional Code in CAPITAL LETTERS: <input type="text" name="SECode" size="8" onblur="CSAction(new Array(/*CMP*/'C629C2DD8'));" csblur="C629C2DD8"></ p>
and:
<input onclick="CSAction(new Array(/*CMP*/'C629C2DD9'));return CSClickReturn()" type="Submit" value="CONTINUE" csclick="C629C2DD9"> <input onclick="CSAction(new Array(/*CMP*/'C629C2DD11'));return CSClickReturn()" type="button" name="WrongCode" value="BACK TO SUB PAGE" csclick="C629C2DD11">
The first line of code in the body pops up the "Sorry" error message correctly but then the procedure breaks down. I'd sure appreciate it if someone can see what the problem is - thanks in advance!
--
Helen W. Lee, Kamloops, British Columbia Webmaster, Canine Review Magazine: http://www.canine-review.com Savladai Borzoi (est'd 1969): http://goto-hwl.com/Savladai Production & Design, Borzoi Connection
-- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/GoLive/Browse/ Manage your subscription: http://www.ListSearch.com/GoLive/
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!