I can confirm that little quick in HTML about over-populating a text input
with a maxlength. It's always been the way it's worked for some reason.

As for your code, that looks fine and should work, assuming you are
executing inside a @ROWS or @FOR block so that the @CURROW evaluates.

I @LEFT and @RIGHT things all the time without issue. 

Robert

-----Original Message-----
From: WebDude [mailto:[email protected]] 
Sent: Monday, December 21, 2009 9:52 AM
To: [email protected]
Subject: Witango-Talk: Array and Left

I am having a bit of a problem. I noticed that when I create a variable and
load that variable into an HTML text form input, the MAXLENGTH attribute is
ignored. It seems that if you set the input field to MAXLENGTH=5, you cannot
type more then 5 characters into the field, however, when loading a variable
into the field, the MAXLENGTH is ignored. Mmmmm...

The values I am loading into the input form are from an array. Seems it
would be simple enough, but I cannot seem to get it to work. Currently, I
have something like this (using just on column for clarity sake).

<@ASSIGN NAME="initValue" VALUE="<@VAR text11>"> 
<@ASSIGN NAME="array2" VALUE="<@ARRAY VALUE=@@initValue CDELIM=','
RDELIM=';'>"> 
<@ASSIGN promoid<@CURROW> '<@VAR array2[<@CURROW>,1]>'>

I tried changing the promoid to

<@ASSIGN promoid<@CURROW> '<@LEFT STR="<@VAR array2[<@CURROW>,1]>"
NUMCHARS="3">'>

But I get no love. Am I missing something here? I just want to be able to
limit the number of characters to 3. Yes, I can use this on the form page,
but was interested in a more elegant way of doing this.

Thanks!
 
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to