Re: [galaxy-dev] Uploading to history via JavaScript

2012-11-13 Thread Ted Goldstein
Thanks Jeremy and Brad. I have made some good progress. The code below works but does not give a newname. It needs this to work: 'runtool_btn': 'Execute', is a required parameter in the various checks (there is also validation code there for a URL origin parameter too). The code below works

[galaxy-dev] Uploading to history via JavaScript

2012-11-12 Thread Ted Goldstein
Essentially, this the similar to a dataset upload where the origin is from a web page when a user clicks on a HTML button. The button is not part of the tool framework but any number of possible I am writing a variety of data editors in JavaScript and it would be convenient to upload the

Re: [galaxy-dev] Uploading to history via JavaScript

2012-11-12 Thread Jeremy Goecks
What is the error that you're seeing on the server side? I haven't tried this myself, but Brad Chapman suggested this example payload: -- {tool_id: upload1, history_id: identifier of history to use, params: {file_type: vcf, dbkey: hg19, files_0|url_paste: