Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8936919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:19:09+00:00 2026-06-15T10:19:09+00:00

This fiddle is not the complete set of code. However it is the isolated

  • 0

This fiddle is not the complete set of code. However it is the isolated code in which I am having a problem.

This works in all versions of IE, and will not work in Safari/Chrome. Specifically I am trying to get this to work on an IPAD. The Select button will push, and the function will not do anything, and will essentially be stuck there… Anyone have any suggestions?

http://jsfiddle.net/Eh9QC/

function selectStatements(f)
            {
            var selectedArray = new Array();
            var selObj = document.getElementById('statementGroups');
            var i = 1;
            var count = 0;
            for (i=0; i<selObj.options.length; i++)
                {
                 if ( (selObj.options[i].selected) && count<20 )
                   {
                     selectedArray[count] = selObj.options[i].value;
                     count ++;
                   }
                }
            f.chosenStatements.value = selectedArray;
            document.glStatementForm.glaction.value = "updateChosenList";
            document.glStatementForm.action="glstsend.shtml";
            document.glStatementForm.method="POST";
            document.glStatementForm.submit();
            }
   </script>​​​

HTML:

      #IF EXPR = (clientState == "setList")                   -->
    <div id="openBox2">
                 <tr>
                     <td VALIGN="top"><B>Statements:</B>
                     <td VALIGN="top">
                     <SELECT NAME="statementGroups" SIZE=10 MULTIPLE>                                               <!--
                               #SET NAME = ldx VALUE = 0                                                         --><!--
                               #WHILE EXPR=(ldx < disp_list_count)                                               -->
                                      <OPTION VALUE= "(*disp_dropdown_value[ldx]*)">(*disp_dropdown_text[ldx]*)     <!--
                                      #SET NAME = ldx VALUE = ldx + 1                                            --><!--
                              #ENDWHILE                                                                          -->
                     </SELECT>

                 <tr>
                     <td> <BR />
                     <td> <INPUT TYPE=BUTTON VALUE="Select" STYLE="font:8pt Arial" ONCLICK="selectStatements(this.form);">
                                                                         <!--
              #ENDIF                                                  -->

             </table>
    </div>
   ​
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:19:10+00:00Added an answer on June 15, 2026 at 10:19 am

    First, you have

    var selObj = document.getElementById('statementGroups');
    

    referring probably to this element in the HTML

    <SELECT NAME="statementGroups" SIZE=10 MULTIPLE> 
    

    but this element does not have any id assigned. To be confident browsers will find it you need

    <select name="statementGroups" id="statementGroups" size="10" 
    multiple="multiple">
    

    Second,

    document.glStatementForm...
    

    presumably refers to a form with id or name “glStatementForm”. But this is not a usual way to refer to it, unless you’ve somehow deliberately added it to the document namespace. I’m not sure what the most cross-browser-compliant way of accessing form fields is, but probably something like:

    var glsForm = document.getElementById('glStatementForm'),
    glsForm.elements['action'].value = "updateChosenList";
    glsForm.action = "glstsend.shtml";
    glsForm.method = "POST";
    glsForm.submit();
    

    and also make sure in the HTML that you set the id attribute of the glStatementForm.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's my fiddle : http://jsfiddle.net/JWww3/ I'm not sure to understand why this code is
So, this fiddle: http://jsfiddle.net/aXsWz/31/ actually works how I want things to work. However, that
In this fiddle when user drags a div auto scroll works in chrome but
I have this fiddle : http://jsfiddle.net/XjeCf/1/ that works like I want and this one
In this fiddle, i am not able to get the Dynamic Event Handler onclick
Please consider the following code (also in this fiddle ): var viewModel = {
I have the following code in this fiddle , I want the height of
I've got this problem with completed events not firing for WCF long running calls
This fiddle demonstrates the problem. I'm trying to align an image and a button
In this fiddle http://jsfiddle.net/dAHqe/2/ I've created examples for the 2 main uses (that I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.