- This topic has 10 replies, 6 voices, and was last updated 11 years, 1 month 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,
June 20, 2012 at 11:15 pm #327387
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 🙂
June 21, 2012 at 11:33 am #327425
MichaelJeffressMemberThanks Octavio:
I look forward to your feedback. Your help is greatly appreciated !
Mike
June 26, 2012 at 4:55 pm #327619
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.June 26, 2012 at 6:22 pm #327622
MichaelJeffressMemberHi Octavio,
Thanks for the example. It works great. I will definitely be able to incorporate this.
I definitely appreciate your help !
Regards,
MikeJuly 2, 2012 at 10:17 pm #327816
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.July 5, 2012 at 11:22 am #327926
support-octavioMemberHi MJConsulting,
I can take a look, but can’t promise a timeframe. This will be in my todo list.
February 7, 2013 at 7:22 am #335133
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
YannMarch 7, 2013 at 3:54 pm #336380
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
April 9, 2013 at 8:42 am #337788
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 ?May 11, 2014 at 6:31 am #349319
master.orenMemberHi
I tried the zip file with the demo and it is not working.
Any ideas?
Oren
-
AuthorPosts