- This topic has 10 replies, 6 voices, and was last updated 11 years ago by
master.oren.
-
AuthorPosts
-
MichaelJeffressMemberI 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,
support-octavioMemberHi 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 🙂
MichaelJeffressMemberThanks Octavio:
I look forward to your feedback. Your help is greatly appreciated !
Mike
support-octavioMemberHi 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.
MichaelJeffressMemberHi Octavio,
Thanks for the example. It works great. I will definitely be able to incorporate this.
I definitely appreciate your help !
Regards,
Mike
MichaelJeffressMemberHi 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.
support-octavioMemberHi MJConsulting,
I can take a look, but can’t promise a timeframe. This will be in my todo list.
YannMemberHello ,
i get an error with this codeTypeError: ‘undefined’ is not a function (evaluating ‘a.curCSS(b,”padding”+this,!0)’)
may a conflict wiht other js?
thanks
Yann
darrell777MemberI 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
epetParticipantJust 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 ?
master.orenMemberHi
I tried the zip file with the demo and it is not working.
Any ideas?
Oren
-
AuthorPosts