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

specifying URL parameters in itemset action?

From: Eric Fu <ericfu@etrieve.com>
Date: Wed, 19 Dec 2001 09:46:17 -0800
Message-ID: <BD3A1AAD5A57D411AD6700B0D020246502399FDD@HIMALAYA>
To: "'www-forms@w3.org'" <www-forms@w3.org>
No response to my question. I searched around the current draft and it
doesn't appear to have a clear answer in there either. 

So I will use the following syntax for the mean time and hope the working
group will have something like this in mind for the future: 

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


That will load URI of the form:
"http://host/borrow.asp?book_id=1111&borrower=ericfu"



- Eric



-----Original Message-----
From: Eric Fu [mailto:ericfu@etrieve.com]
Sent: Tuesday, December 18, 2001 5:01 PM
To: 'www-forms@w3.org'
Subject: How to specify URL parameters in itemset action?


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 Wednesday, 19 December 2001 12:57:36 GMT

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