Need help with JQuery

9 views
Skip to first unread message

evilone...@yahoo.com

unread,
May 20, 2021, 12:07:28 PM5/20/21
to sequenceserver
Hi,

Could you please help me with JQuery issues?

I added two check boxes to the BLAST user interface: one called "Select all nucleotide databases" (checkallnt) above the list of nucleotide databases and one called "Select all protein databases" (checkallaa) above the list of protein databases.
When you click the "Select all nucleotide databases" checkbox, all check boxes of the nucleotide databases will be selected and the same functionality applies to the "Select all protein databases" checkbox.

I added the following code to the search.erb
<div class="checkboxall">
                <label>
                  <input type="checkbox" name="checkallnt" id="checkallnt" />
                  Select all nucleotide databases
                </label>
            </div>       

            <div
                class="checkboxall">
                <label>
                  <input type="checkbox" name="checkallaa" id="checkallaa" />
                  Select all protein databases
                </label>
            </div>       

The following code were added to the sequenceserver.js (Please see the attached file)

I was able to get all the check boxes of the nucleotide databases selected when the "Select all nucleotide databases" checkbox is checked and the check boxes of protein databases turn gray (disable).  The same functional feature can be seen for the protein databases. The only issue I have encountered is I expected that the "Select all protein databases" checkbox must be disable when the "Select all nucleotide databases" checkbox is checked and vice versa.

The following code are not working

$('#checkallnt).prop("disable",true);

$('#checkallaa).prop("disable",true);

I am attaching a screenshot of the BLAST UI so you could understand my issue I encountered

Thanks for your help.
addedCodeToSS.txt
BLAST-UI.png

Anurag Priyam

unread,
May 20, 2021, 1:26:17 PM5/20/21
to sequenceserver
Hi,

We have this feature in version 2.0 of SequenceServer: https://groups.google.com/g/sequenceserver/c/c98ePBzcuVE/m/xy5opgAMBwAJ

You can upgrade to version 2.0, or take a look at how the feature is implemented there. But of the top of my head, I think the property you are trying to change is called ‘disabled’.

Priyam

--
You received this message because you are subscribed to the Google Groups "sequenceserver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sequenceserve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sequenceserver/0ab662ba-5ace-4ed4-9637-75b0a6e252d2n%40googlegroups.com.
<addedCodeToSS.txt><BLAST-UI.png>

Reply all
Reply to author
Forward
0 new messages