Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] [selected] tag problem in [loop] tag (Minivend 4.02)



******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******

Quoting Shozo Murahashi (murahashi@ayayu.com):
> 
> [selected] tag didn't work on Minivend 4.02.
> 
> Below is my added tag code.
> Custom database state which is state.txt, is work well.
> 
> [comment]Japanese Prefecture selection[/comment]
>   <SELECT onChange="this.form.submit()" NAME=state>
>   [loop search="ra=yes/fi=state.txt/ml=1000/tf=code/rf=0,name"
> option="state"]
>    <OPTION [selected state [loop-data state name] ] VALUE="[loop-data
> state name]"> [loop-data state name]
>   [/loop]
>   </SELECT>
> 
> 
> Is this the limitation of Minivend or bug?
> Is there any suggestion or hint?

It is not a bug. Without knowing what is in [loop-data state name] I cannot
tell you what is going on. If you were to quote the tags, well...

But you don't want to do this anyway. Try:

   <SELECT onChange="this.form.submit()" NAME=state>
   [loop search="ra=yes/fi=state.txt/ml=1000/tf=code" option="state"]
    <OPTION VALUE="[loop-code]"> [loop-data state name]
   [/loop]
   </SELECT>
 
No [selected] tag needed.

-- 
Internet Robotics, 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <mikeh@minivend.com>

Be patient. God isn't finished with me yet.  -- unknown
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: