facebook

Java Script in Text Input Widget

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #327197 Reply

    Edit by support-octavio: Duplicated thread: http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=3127

    Inserting the following Java script when there is a “Change” in a Text Input field Widget, what change would I need to make this Java script function?

    <script>
    $(function() {
    var availableTags = [
    “ActionScript”,
    “AppleScript”,
    “Asp”,
    “BASIC”,
    “C”,
    “C++”,
    “Clojure”,
    “COBOL”,
    “ColdFusion”,
    “Erlang”,
    “Fortran”,
    “Groovy”,
    “Haskell”,
    “Java”,
    “JavaScript”,
    “Lisp”,
    “Perl”,
    “PHP”,
    “Python”,
    “Ruby”,
    “Scala”,
    “Scheme”
    ];
    $( “#tags” ).autocomplete({
    source: availableTags
    });
    });
    </script>

    <div class=”demo”>

    <div class=”ui-widget”>
    <label for=”tags”>Tags: </label>
    <input id=”tags”>
    </div>

    </div><!– End demo –>

    <div class=”demo-description” style=”display: none; “>
    <p>The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are tags for programming languages, give “ja” (for Java or JavaScript) a try.</p>
    <p>The datasource is a simple JavaScript array, provided to the widget using the source-option.</p>
    </div><!– End demo-description –>

    Your Help is greatly appreciated !

Viewing 1 post (of 1 total)
Reply To: Java Script in Text Input Widget

You must be logged in to post in the forum log in