W3C home > Mailing lists > Public > www-forms@w3.org > December 2001

How to specify URL parameters in itemset action?

From: Eric Fu <ericfu@etrieve.com>
Date: Tue, 18 Dec 2001 17:00:45 -0800
Message-ID: <BD3A1AAD5A57D411AD6700B0D020246502399FDA@HIMALAYA>
To: "'www-forms@w3.org'" <www-forms@w3.org>
What is the correct way to specify actions in an "itemset".

for example, in the following, how do you put the book id as the URI
parameter in the actoin: 

<selectOne selectUI="menu">
  <itemset nodeset="books/book" >
    <caption ref="name" />
    <value ref="id" />
    <action>
       <loadURI href="http://host/borrow.asp?book_id=????" /> 
    </action>
  </itemset>
</selectOne>


More specifically, I would like the above expanded into something like the
following: 

<selectOne selectUI="menu">
  <choices>
     <item>
        <caption>book_title_1</caption>
        <value>book1</value>
	  <action>
           <loadURI href="http://host/borrow.asp?book_id=book1" />
        </action>
     </item>
     <item>
        <caption>book_title_2</caption>
        <value>book2</value>
	  <action>
           <loadURI href="http://host/borrow.asp?book_id=book2" />
        </action>
     </item>
   </choices>
</selectOne>


- Eric
Received on Tuesday, 18 December 2001 20:11:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:50 GMT