facebook

Help ** Autocomplete in MobiOne

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #327305 Reply

    I would greatly appreciate your help in debugging my custom.js file which runs on a particular change event. I am attempting to use this canned jquery code snippet for autocomplete of a text field. I am able to access the element values from the mobi text input field, but I am not having success in passing the value to the autocomplete function. Below is the code snippet that I added to the file:

    gotoIt = function(){
    var p = $(‘#m1-test1-textField1’).val();

    document.write(p);
    document.write (“<p> This is it <p>”);
    document.write(“<p> I am in the part 2 offunction now ! <p>”);
    document.write(“again” + p);
    document.write(“<p> I am in the function now line 2 ! <p>”);
    var tags = p;
    document.write(“<p> Tags=” + tags +”<p>”);
    var availableTags = [
    “ActionScript”,
    “AppleScript”,
    “Asp”,
    “BASIC”,
    “C”,
    “C++”,
    “Clojure”,
    “COBOL”,
    “ColdFusion”,
    “Erlang”,
    “Fortran”,
    “Groovy”,
    “Haskell”,
    “Java”,
    “JavaScript”,
    “Lisp”,
    “Perl”,
    “PHP”,
    “Python”,
    “Ruby”,
    “Scala”,
    “Scheme”
    ];

    document.write(“<p> I am still here after the array! <p>”);

    $( “#tags” ).autocomplete({
    source: availableTags
    });

    }
    I appreciate your help.

    Best Regards,

    #327387 Reply

    Hi MJConsulting,

    I’ve looked at the jquery-ui autocomplete widget. Also got it work in an mobione app. I will share it tomorrow when I make a few tweaks 🙂

    #327425 Reply

    Thanks Octavio:

    I look forward to your feedback. Your help is greatly appreciated !

    Mike

    #327619 Reply

    Hi MJConsulting,

    I attached a zip file with the files to get this works. Please use it as a example to implement in your own app.

    Attachments:
    You must be logged in to view attached files.
    #327622 Reply

    Hi Octavio,

    Thanks for the example. It works great. I will definitely be able to incorporate this.

    I definitely appreciate your help !

    Regards,
    Mike

    #327816 Reply

    Hi Octavio:

    Thanks again for the help with getting the auto-complete to work. Your tweaks to the code works great. I would appreciate help with styling the output so that the output formats more like a menu, with discernible lines between each item in the list. (See attached image)

    Your help is greatly appreciated.

    Mike

    Attachments:
    You must be logged in to view attached files.
    #327926 Reply

    Hi MJConsulting,

    I can take a look, but can’t promise a timeframe. This will be in my todo list.

    #335133 Reply

    Yann
    Member

    Hello ,
    i get an error with this code

    TypeError: ‘undefined’ is not a function (evaluating ‘a.curCSS(b,”padding”+this,!0)’)

    may a conflict wiht other js?
    thanks
    Yann

    #336380 Reply

    darrell777
    Member

    I also have issue with the demo working. The error I get is the following:
    TypeError: Result of expression ‘a.curCSS’ [undefined] is not a function. I would like to use the autocomplete in a project that I’m working on.

    Fyi: the issue seems to be in file jquery-ui-1.8.21.custom-min.js .

    Thanks,

    Darrell

    #337788 Reply

    epet
    Participant

    Just replace the 18 “a.curCSS” references on jquery-ui-1.8.21.custom.min.js with “a.css” and it should partly work.
    Partly, because the autocomplete will work but with ui problems (wrong css output).
    At least the output you see on the Test Center is the same on a Android phone (4.0.3 in my tests).
    Has anyone from the support any ideas to make this widget work on mobione projects ?

    #349319 Reply

    master.oren
    Member

    Hi

    I tried the zip file with the demo and it is not working.

    Any ideas?

    Oren

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Help ** Autocomplete in MobiOne

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