Refresh Livetable With Changed URL

Last modified by beldaz on 2015/08/27 02:15

tableHelp you update the livetable URL and refresh the content when the user chooses a different option from a HTML select element
Developed by

Oana Tabaranu

0 Votes
LicenseGNU Lesser General Public License 2.1

Table of contents


<select  id="document-options">
 <option value="selectValue1">select option 1</option>
 <option value="selectValue2">select option 2</option>
 <option value="selectValue3">select option 3</option>
document.observe('dom:loaded', function() {
   if($('document-options')) {
      Event.observe($('document-options'), 'click', function() {
       var selectedParameter = $('document-options').value;
       // change paramName parameter value in the livetable URL and refresh
       var index = ta.getUrl.indexOf('paramName=');
       if(index > 0) {
          ta.getUrl = ta.getUrl.substr(0, index - 1) + "&paramName=" + selectedParameter;
       // refresh live table
        ta.showRows(1, ta.limit);
Created by Oana Tabaranu on 2010/04/09 17:11

Get Connected