- This topic has 2 replies, 3 voices, and was last updated 11 years, 5 months ago by support-michael.
-
AuthorPosts
-
DaveClarkParticipantI really like the MobiOne package, I have been able to dive right in. I do have a few questions
I an doing an app that has a lot of preconfigured formulas in it, it would be nice to have a number and decimal point and delete only keypad (maybe a previous and next button) the telephone choice does not work as needed, the number choice does work but has more things than I really need and it takes up valuable screen real estate.
The page change translation option, when it slides left or right, it blinks the screen a moment near the end of its routine, so I do not thinks it looks too good. Maybe when it is turned into a native IOS or Android app that will be nicer?
One of my formulas I would like to do is, calculating a shock absorber going thru its travel. I want to move in one inch increments and display the results in that position, in a new box and then move on to the next inch and again display the result at the new position in a new box, when finished; the user can scroll the page to view the results.
My question is…
How or can I declare text areas dynamically at runtime. I will get a travel input from the user and I want to loop in one inch increment up to the user entered value, so I will need to declare them and display them at runtime and I do not know in advance how much travel or how many there will be.
Any help would be very much appreciated
Stu WadeMemberHi Dave,
No help for the keyboard here, I fear.
Similarly the page transitions – all I can say is they work smoothly for me.
As to the main problem, I have a work-around rather than a solution; I suspect you could declare such features, but it would involve some pretty heavy html5 and is not directly supported by M1 as far as I know. The work around is to create a static set of text boxes which is as big as you can imagine being required and render the excess boxes invisible by the simple js command:
$(‘#m1-mypage-textfield’+i).css(‘visibility’,’hidden’);
Where i is the number of the textfield you wish to hide – this would probably be in a
for (var i=firsti; i<=lasti; i++) loopNote that to make the fields reappear it is better to use ‘inherit’ rather than ‘visible’ as the latter overrides any properties of the containing element.
Hope this helps … Just sometimes I am glad that I cut my programming teeth on FORTRAN back in the late 60s 🙂
support-michaelKeymasterHi,
1) numeric keyboard – MobiOne is only able to provide a small set of predefined keyboards. The only keypad layout available to us is the telephone keypad.
2) blink during transition – what device and OS are you using? Also what transition effect are you using? Lastly transition smoothness can be affected by the complexity of the graphics operation. For example gradient and image background can impact performance. So maybe try experimenting with some simple screens with solid backgrounds and see how it works on your device.
3) >How or can I declare text areas dynamically at runtime. I will get a travel input from the user and I want to loop in one inch increment up to the user entered value, so I will need to declare them and display them at runtime and I do not know in advance how much travel or how many there will be.
I’m trying to visualize the screen you are describing. You mention using a series of text areas in the output. Are you referring to TextArea widgets (see the palette) or rather a report with multiple text sections/groups?
If you are creating a variable length formatted text report you could use either an HTML widget that you dynamically generate the html with the report content or you can dynamically update a Text widget’s content. Please share more details about your final format (e.g., provide a mockup if possible) and we can provide more detailed recommendation.
-
AuthorPosts