- This topic has 6 replies, 2 voices, and was last updated 11 years, 6 months ago by
support-octavio.
-
AuthorPosts
-
adikateMemberhi my Alert not showing when location.reload(); is used. how can i make alert visible. i used phoneui.goPage(); but its just going to page and not reloading when i go to next page. thats y i used location.reload();. is there a way on how to show my alert visible…
support-octavioMemberHi adikate,
Could you post full snippet of code or project so we can see exactly what is being implemented. If you want to keep data in privacy send the sample project to support at genuitec dot com, use title mobione data from adikate
adikateMemberhi, used alert to go to a page but i cant and now i’m using ‘confirm’ method, everything is perfect in test center but when i run on my iphone its showing ‘pagename.html’ but i dont want that to be shown. i know that for alert we can use phoneui.alert() to get rid of or avoid ‘pagename.html’. what do i need to to do for mine to avoid ‘pagename.html’
var r=confirm("Want to be in same page"); if (r==true) { location.reload(); } else { phoneui.gotoPage('m1-nextpage','NONE'); }
adikateMemberSorry to say that, in this forum it takes ages for me to get a reply…eagerly waiting for a solution to my problem since yesterday.
support-octavioMemberHi adikate,
Following are 2 phoneui.js api that can be used in apps and webapps. The app context using the phonegap notification api which does not include the app URL. When used in a webapp the implementation falls back to standard javascript alert() and confirm() dialogs with the app url. In the jsdoc ‘TC’ refers to Test Center.
/** * shows alert and calls fnContinue then. Note: works in different * ways in iOS and TC. For TC it returns immediately, while for iOS * it returns only when user pressed OK * * @param message Text message * @param fnContinue function that called when user selected button. * @param optionalTitle optional, title for dialog * @param optionalButtonLabel optional, button label */ phoneui.alert(message, fnContinue, optionalTitle, optionalButtonLabel) /** * shows confirmation dialog. result comes to fnContinue. Blocks in web app, doesn't block in * phonegap apps * * @param message Text message * @param fnContinue function that called when user selected button. Takes 1-based index of selected button * @param optionalTitle optional, title for dialog * @param optionalButtonLabel optional, string with comma-separated button labels */ phoneui.confirm(message, fnContinue, optionalTitle, optionalButtonLabel) {
adikateMemberi edited my code as below and stil not working on my iphone. its not taking to the page where i want for Yes/No button…
phoneui.confirm("Want to be in same page", r(), "Message", "Yes,No" ) function r(button) { if (button=='1') { location.reload(); } else { phoneui.gotoPage('m1-nextpage','NONE'); } }
support-octavioMemberHi adikate,
Could you share your project to investigate and look for the issue? If you want to keep the data in privacy send it to support at genuitec dot com, use title mobione data from adikate
Also, can you share more details about why you are using window.location? won’t work just doing nothing?
-
AuthorPosts