function load(url){
table.setURL(url);
table.request();
}
<button onClick="load('http://URLTONEWFILE.CSV')">Load New File</button>
[code]
This works perfectly, however I need to take it a step further to load CSV files, based on user choices from two drop down boxes. Something like this:
[code]<form name="myform"">
<select name="mycolour">
<option value="red">RED</option>
<option value="yellow">YELLOW</option>
<option value="blue>BLUE</option>
</select>
<select name="myshape">
<option value="square">SQUARE</option>
<option value="circle">CIRCLE</option>
<option value="triangle">TRIANGLE</option>
</select>
<button onClick="load('http://mysite.com/csv/mycolour_myshape.csv')">Load New File</button>
</form>
This topic is archived.