Combobox Problems
Michael Kiberu <[email protected]>
| Newsgroups | gmane.comp.web.zope.german |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I've build a combobox in a portlet (tal portlet) that give me some problems. After selecting an element (News Items) out of it, I want it to load the element and keep it as new element in the combobox selected. What it does now it loads the element and jumps back to the first. We've been trying to solve it on different ways but failed. Tal-Code: attached. Website: http://onemansweek.webruner.com/ Thx for any assistance, Michael _______________________________________________ zope mailing list [email protected] https://mail.dzug.org/mailman/listinfo/zope
tal-code.txt
(text/plain, 1004 B)
<dl class="portlet my-news-portlet"
tal:define="portal_state context/@@plone_portal_state;
context_state context/@@plone_context_state;">
<dt class="cllistingHeader">
<span class="portletTopLeft"></span>
<span>
Column Listings
</span>
<span class="portletTopRight">
</span>
</dt>
<form method="get" id="columnselector" action="selectRedirect"
tal:define="newsitems python:context.portal_catalog
(portal_type='News Item', review_state='published',
sort_on='Date',
sort_order='reverse');"
tal:condition="newsitems">
<select size="1" onchange="location.href=this.options[this.selectedIndex].value">
<option tal:repeat="news newsitems"
tal:content="news/Title"
tal:attributes="value news/getURL">Heino
</option>
</select>
<noscript>
<input id="submit" name="submit" type="submit" value="Go" />
</noscript>
</form>
</dl>