- This topic has 4 replies, 2 voices, and was last updated 11 years, 10 months ago by
Stu Wade.
-
AuthorPosts
-
GuenterBeckerParticipantWarm Welcom to Octavio and all other Board People, hope you are fine.
1.
Ongoing with our m1 testing there is rising a new question. Is there a solution, widget, plugin or what else to realise a richt text input/textarea where the user has the ability to format the text. For example in a multiline text some words in bold or another color?2.
Using the map widget works fine in the test center. But publishing the web app via m1 and using it on iphone5 (ios 6.1.4) I get only the message that a network is needed. I doublechecked the phone options and all parameters are well set. Even with other apps I’m able to get map services via 3G or wifi. There is not difference if the phone is connected to a wifi or if there is no wifi and the phone has to use mobile data transfer through 3G or UMTS it won’t work. I used the Example “adress.mobi” available for download in this Board. Whats wrong?3.
In the same Stiuation as shown above no phonegui commands/events in the -custom.js file like the Document Ready or preprocessDOM are activated/fired. Wokring fine in the test center (example prelode Dropdown List Values if page is ready) but not on the phone.Even the last 2 Problems are essential for our decision to use m1 for future development of Web Apps in our Company.
Thank you for your support.
GuenterBeckerParticipantHello Octavio,
Due to my requested Help I proofed my understanding of m1 web app compilation.
Concerning my Question 3. I found that all html code of the pages been called by the menu of a startup page are collected and compiled into the startup page html file. I understand that this is the final web app file.
Is it correct that all code written into the custom.js file of the subpages is not collected and not transfered in the startuppage-custom.js file. If yes does that mean that I have to put all the code of the subpages-custom.js-events into the startuppage-custom.js file?
Example event of startup-custom.js:
phoneui.postPageTransition = function(newPageId) {
// prevent Landscape
if (removeHash(newPageid) != ‘m1-efamobLandscape’) {
prevPageId = newPageId;
}
switch(newPageID){
case “m1-subpage1”:
$(‘#m1-projectname-subpage1-label1’).text(‘ABC’);
break;
case “m1-subpage2”:
if (flag==false){$(‘#m1-projectname-subpage2-image1’).hide();}
break;
}
}If my assuming is correct than please forget my question 3 because I understand that my problems are not an m1 error the failure is done by me.
Maybe that this is also correct for question 2 because all neccessary map preparation is done in the subpage-custom.js file.Could you please confirm. If my understanding is not correct please explain whats wrong. If you need to have a look in our experimental web app its hostetd under code vmFQQ.
Stu WadeMemberOnly the startup custom.js file is included by default and it is recommended that all custom code should be in that file.
I gather from your post that the other .js files contain startup code. There is only the single startup event as a m1 WebApp is basically a single page of HTML. You need to put this startup code in the main custom.js file in the PostPageTransition routine
GuenterBeckerParticipantGood Morning Stu,
hope you are fine. Your answer ist exactly what I understood. Due to this I will transfer all the subpages code into the main-custom.js and hope that it will work.
Do you have an idea for my first questiuon about the richt text input.
Stu WadeMemberA rather late reply …
I know of no way to incorporate rich text format, but you can use the HTML widget to insert formatted text.
-
AuthorPosts