- This topic has 14 replies, 5 voices, and was last updated 11 years, 4 months ago by
DaveClark.
-
AuthorPosts
-
rob@volleyhollix.comMemberWhy is it on the “OnClick” Popup Alert box the new line \n does not work? It does not give a new line or line feed.
Example:
alert(‘Hello user.\n Today is a great day.’);
It displays as:
Hello user.\n Today is a great day.
support-octavioMemberHi Rob,
Thanks for reporting the issue. I assume that you are having this problem in Test Center, after running some tests we found that this is a bug in iPhone personality. In iPad/Android personalities it works fine. I’ve already reported to de dev team to track the bug. Thanks again for your feedback.
rob@volleyhollix.comMemberYes it’s in the test center.
It worked fine before the update you recently did like 3 weeks ago. since that update this became an issue.
KariSolamakiMember@rob@volleyhollix.com wrote:
Why is it on the “OnClick” Popup Alert box the new line \n does not work? It does not give a new line or line feed.
Example: alert(‘Hello user.\n Today is a great day.’);
It displays as: Hello user.\n Today is a great day.As examininig the .js file I found that there is \\n instead of \n and that is the reason why the new line control doesn’t work in popup windows! There is a bug in .js code generation, is it?
Also textarea word wrapping in Mobile Web Simulator doesn’t work, in Test Center it works! Is this also a bug in .js code generation?Best regards,
Einotes Team
support-vadimParticipantHi Rob,
Thank you for reporting this issue. It actually appears to be broken since 2.3.2 release, and only for iPhone4 and iPhone5 devices in TestCenter. We’ve just fixed it, the fix will be available in next Mobione version.
Hi Einotes Team,
I tried to reproduce the problem with textarea, but had no success with that. Could you please give us steps to reproduce it, or, ideally, send us mobi-file that looks different in Web Sim and Test Center?
Best regards,
Vadim Ridosh
KariSolamakiMemberHi Einotes Team,
I tried to reproduce the problem with textarea, but had no success with that. Could you please give us steps to reproduce it, or, ideally, send us mobi-file that looks different in Web Sim and Test Center?
Best regards,
Vadim RidoshI am just evaluating the environment and it seems quite good.
Regars ET
Attachments:
You must be logged in to view attached files.
support-vadimParticipantHi Einotes Team,
Thank you for your help, we are able to reproduce the problem now (it was specific to text areas located inside list items – that’s why it wasn’t easy for us to reproduce it).
The fix for the problem will be included in next Mobione release.Regards,
Vadim Ridosh
KariSolamakiMemberThank you for such quick replies! When will the update take place?
This 15 days trial is quite short to get whole picture about the environment, but I see it very promising for my purposes 😉The very best wishes, ET
support-octavioMemberHi,
You can ask to our sales team for an extension license, to contact them send an email to sales at genuitec dot com.
KariSolamakiMember@support-vadim wrote:
Hi Einotes Team,
Thank you for your help, we are able to reproduce the problem now (it was specific to text areas located inside list items – that’s why it wasn’t easy for us to reproduce it). The fix for the problem will be included in next Mobione release.
Regards, Vadim RidoshAs using the example file generated html in my iPhone 4 safari browser there is a slight problem. If I try to scroll by keeping finger on the text rea the whole screen scrolls. The top bar should stay visible. If I keep finger on top of images the scrolling behave correctly, strange, isn’t it?
Best regards, ET
support-vadimParticipantHi,
That’s a known Mobile Safari limitation. Double-finger scrolling is intended to scroll text areas, single-finger scrolling scrolls the whole design area. Unfortunately, it’s impossible to switch these scrolling modes on and off separately. So, if we prohibit scrolling of the whole design it will prohibit textarea’s content scrolling as well.
Regards,
Vadim Ridosh
KariSolamakiMember@Einotes Team wrote:
@rob@volleyhollix.com wrote:
Why is it on the “OnClick” Popup Alert box the new line \n does not work? It does not give a new line or line feed.
Example: alert(‘Hello user.\n Today is a great day.’);
It displays as: Hello user.\n Today is a great day.As examininig the .js file I found that there is \\n instead of \n and that is the reason why the new line control doesn’t work in popup windows! There is a bug in .js code generation, is it?
Also textarea word wrapping in Mobile Web Simulator doesn’t work, in Test Center it works! Is this also a bug in .js code generation?
Best regards, Einotes TeamI found out that if I make a javascript function into _custom.js as follows:
function popupGreatDay() {alert(“Hello user.\n Today is a great day.”);}
the line feed works fine.
Br, ET
support-octavioMemberHi,
Thanks for the info. We are working on a Mobione 2.6 update to be available by the end of this week with a fix for the newline issue.
KariSolamakiMemberIn my mind the ‘Run JavaScript’ with custom function is more useful than ‘Popup Alert’ at least easier to maintain when writing long messages into alert boxes. I use dual screen system and in left screen I have _custom.js file open in editor (Notepad++) and right screen I have MobiOne Design Center. Works like a charm!
Br, ET
DaveClarkParticipantthe newline \n seems to be working in mobione 2.5 in the simulator, not in test center, I have been doing this and calling it from a on button click
function Help()
{
var message = “Decimial points are dots ….not commas\n\n” +
“The formulas have typical values entered as an example, change any or all to suit your needs\n\n” +“If you have a clutch use 100 for the efficiency, a torque converter will be anywhere from 85 to 95 percent “;
var title = “UnderDrive Help\n\n”;
phoneui.alert(message, ”,title,”);
}the newlines are working now. I never could get this to work in test center. in an native app whatever you use in the “title” variable is displayed in the alert box
-
AuthorPosts