For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 37 replies, 3 voices, and was last updated 11 years, 11 months ago by
Henzalah.
-
AuthorPosts
-
HenzalahMemberhallo everybody,
i am facing a problem with text field (on change javascript) for example i have 53 apartment i have created all the apartments as .mobi files (apartment1.mobi) and for example if i want to enter apartment 5 i will type
5 in the text field and it will directs to apartment5i have been working in this for 2 days but i didnt manage to get a result.
i hope that someone might help me in this
thanks in advance.
March 28, 2014 at 11:08 am #348357
HenzalahMemberpleaseeeeeeee any reply
March 28, 2014 at 11:55 am #348359
support-octavioMemberHi Henzalah,
I have marked as duplicated your other threads since it is not necessary open many of them to get help. Please note that we try cover as many support cases as possible for day and we don’t just start with the first one that enter in the queue, we have to give priority to yes/no questions and bugs or possible bugs related with mobione.
Back to your question, can you share what you have tried so far? You might be missing a little thing and we can help to spot it, it’d be better to fix something almost finished than providing a completely different approach that you might not be familiar with.
March 28, 2014 at 12:05 pm #348362
HenzalahMemberthanks alot for ur reply
i attached my file and sry for writting in more than one place.
thanks alot for ur supportAttachments:
You must be logged in to view attached files.March 28, 2014 at 12:20 pm #348365
HenzalahMemberalso i tried more than on way but i never get a result writting the JS code directly or in the cosy_custom.js drives me to the same dead end
all i want is when i type a number inside the text field it directs me to apartment.mobi for example ( i have created 53 apartment and i named them as (apartment1.mobi and so on).i hope that i am clear enough.
Attachments:
You must be logged in to view attached files.March 28, 2014 at 1:59 pm #348370
Code_AMemberGive something like this a try:
var aptNum = $('#m1-<screen>-<textfield>').val(); var aptScreen = 'm1-apartment' + aptNum; phoneui.gotoScreen(aptScreen);March 28, 2014 at 2:13 pm #348371
HenzalahMembercode A
i will try it now thx alot i believe that i should also write the destination folder for the apartments.mobi
right ??
March 28, 2014 at 2:18 pm #348372March 28, 2014 at 2:40 pm #348373
Code_AMemberIn your case (from what I can tell).
<screen> = cosy
<textfield> = textField1You may need add your other mobi files to the misc files section of your project. I normally use the multipage widget instead of multiple screens. My above code is untested but I think it should be on the right track.
March 28, 2014 at 3:01 pm #348376
HenzalahMemberi modified everything as u mentioned but still i didnt get any result…
i will explain to you what i need exactly
i have 53 appartment each one is apartment1.mobi, apartment2.mobi and so on.
i would love to attach all these apartments with numbers so that when i put 3 in the search field it takes me to apartment 3
and i tried alot of codes and JS
maybe if u can explain to me what i can wirte inside code and what i can write inside cosy_custom.js i can manage to find the solution because there is 2 places where i can modify in.appreciate ur help.
March 28, 2014 at 5:28 pm #348382
Code_AMemberI just tested the code and works fine. Make sure you add the additional mobi files to your project (see example below).
var aptNum = $('#m1-cosy-textField1').val(); phoneui.gotoScreen('m1-apartment' + aptNum);Attachments:
You must be logged in to view attached files.March 29, 2014 at 2:59 pm #348393
HenzalahMemberhallo again
i tested the new code that u send to me but still not working for me i inserted one .mobi file to test it but it didnt work .
can u please check it incase there is something i did wrongAttachments:
You must be logged in to view attached files.March 29, 2014 at 8:00 pm #348394
Code_AMemberMaybe it is case sensitive. Did you try using Apartment instead of apartment? If that doesn’t work then post your project.
March 30, 2014 at 7:42 am #348397
HenzalahMemberohhhh Finaly it is working thanks alot
now i already created a Login UI which i want to conect each User ID and Password to an apartment is this possible or there is any restriction ?
Thanks alot again
March 30, 2014 at 9:44 am #348399
Code_AMemberYes, it is possible but how you do it depends on how you are storing your data. Are you storing the user data locally or on web server? For example, is the data in localStorage, in a file, in a DB? Please explain.
-
AuthorPosts
