Sandbox: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<div id="nform-location"> | |||
{{#sqform: | {{#sqform: | ||
{{#sask: | {{#input: type = hidden | name = content | value = {{#sask: type = articles | [[Species::{{#sqvar:species}}]] [[Chromosome Name::{{#sqvar:chrom}}]] [[Band::{{#sqvar:band}}]] [[Strand::{{#sqvar:strand}}]] [[Gene Start (bp)::>{{#sqvar:from}}]] [[Gene Start (bp)::<{{#sqvar:set-to}}]] | saveresult=SelectByLocation | combinemode={{#sqvar:comb}} | return={{#sqvar:cnt}} | SearchLabel= }} }} | ||
{{#sask: | <table cellspacing=5><tr><td> | ||
{{#sqinput: type = ajax | value = | Species: | ||
</td><td> | |||
{{#sask: ?Species}} | |||
</td><td> | |||
Chromosome: | |||
</td><td> | |||
{{#sask: ?Chromosome Name | name = chrom | return = mselect | size = 2 | js = onChange = "document.getElementById('set-to').setAttribute('value',ends(this.id)); select_disable(this.id,'band');" }} | |||
</td><td> | |||
Band: {{#sask: ?Band | name = band | js = onChange = "select_disable(this.id, 'chrom');" }} | |||
</td><td> | |||
Strand: {{#sask: ?Strand }} | |||
</td></tr><tr><td> | |||
Start (bp): | |||
</td><td> | |||
{{#sqinput: type = text | size = 8 | name = from | value = {{#sqvar:from}} | value = 1 }} | |||
</td><td> | |||
End (bp): | |||
</td><td> | |||
{{#sqinput: type = text | name = set-to | id = set-to | size = 8 | value = {{#sqvar:set-to}} | value = 100000000 }} | |||
</td></tr></table> | |||
{{#sqinput: type = ajax | value = List and save entries | update = nlist-result-location | onClick = show_working('nlist-result-location',' ');}} - ''Combine with previous result by'' {{#sqinput: type = select | name = comb | {{SimpleList|replace|union|intersect|clear}}}} - Show result items as {{#sqinput: type = select | name = cnt | {{SimpleList|count|list}}}} | |||
}} | }} | ||
<div id= | </div> | ||
---- | |||
Result in ''SelectByLocation'': <div id="nlist-result-location">NO RESULTS TO DISPLAY YET</div> | |||
----- | |||
----- |
Revision as of 17:12, 31 January 2010
{{#sqform:
{{#input: type = hidden | name = content | value = {{#sask: type = articles | {{#sqvar:species}}Property "Species" (as page type) with input value "{{#sqvar:species}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. {{#sqvar:chrom}}Property "Chromosome Name" (as page type) with input value "{{#sqvar:chrom}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. {{#sqvar:band}}Property "Band" (as page type) with input value "{{#sqvar:band}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. {{#sqvar:strand}}Property "Strand" (as page type) with input value "{{#sqvar:strand}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. >{{#sqvar:from}}Property "Gene Start (bp)" (as page type) with input value ">{{#sqvar:from}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. <{{#sqvar:set-to}}Property "Gene Start (bp)" (as page type) with input value "" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. | saveresult=SelectByLocation | combinemode={{#sqvar:comb}} | return={{#sqvar:cnt}} | SearchLabel= }} }}
Species: |
{{#sask: ?Species}} |
Chromosome: |
{{#sask: ?Chromosome Name | name = chrom | return = mselect | size = 2 | js = onChange = "document.getElementById('set-to').setAttribute('value',ends(this.id)); select_disable(this.id,'band');" }} |
Band: {{#sask: ?Band | name = band | js = onChange = "select_disable(this.id, 'chrom');" }} |
Strand: {{#sask: ?Strand }} |
Start (bp): |
{{#sqinput: type = text | size = 8 | name = from | value = {{#sqvar:from}} | value = 1 }} |
End (bp): |
{{#sqinput: type = text | name = set-to | id = set-to | size = 8 | value = {{#sqvar:set-to}} | value = 100000000 }} |
{{#sqinput: type = ajax | value = List and save entries | update = nlist-result-location | onClick = show_working('nlist-result-location',' ');}} - Combine with previous result by {{#sqinput: type = select | name = comb | Template:SimpleList}} - Show result items as {{#sqinput: type = select | name = cnt | Template:SimpleList}}
}}
Result in SelectByLocation:
NO RESULTS TO DISPLAY YET