Skip to content

Improved submission of sequences to external code and URLs

Compare
Choose a tag to compare
@AndrewCRMartin AndrewCRMartin released this 11 Feb 16:08
· 38 commits to master since this release

This release has two new features:

  1. When you use the action button to pass a set of selected sequences to a piece of JavaScript, the code now passes an array of complete sequence objects instead of building an array containing sequence objects with only id and sequence attributes. This means that the sequence object can have additional attributes (such as an accession or primary key for a database table) that mean nothing to JSAV itself and are not displayed, but can be passed out to other code.
  2. When you use idSubmit to pass data for a single sequence to a URL, you used to be limited to passing the sequence itself. Using the new idSubmit option, you can now say which attribute you wish to pass - e.g. the id or some additional attribute that you have placed in the sequence object. The default is to pass the sequence as before.