- This topic has 9 replies, 3 voices, and was last updated 12 years, 5 months ago by
donij.
-
AuthorPosts
-
donijMemberHi,
In my application after submitting a form the server redirects me to http://www.google.com. How do I display this page on the phone app.
Thanks
February 12, 2013 at 4:30 am #335303
donijMemberHi Octavio/Wayne,
please any help on this. Am stuck until I get this resolved. Please help. Thanks.
February 12, 2013 at 10:38 am #335318
donijMemberPlease help!!!
February 12, 2013 at 1:41 pm #335327
support-octavioMemberThere is no general support for embedding arbitrary remote site in a mobione app. See this article: http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=3600
February 12, 2013 at 2:04 pm #335332
donijMemberThanks Octavio. That is really a dead end! Does this also affect image capture in mobione as I posted in topic “image capture”?
February 13, 2013 at 10:42 am #335372
donijMemberHi Octavio, Could it be possible to get the site dom structure returned by the redirect and pass it to the phone web browser using phoneui ….. just like you have the code when you click a link to a site liike this….
phoneui.showURL('http://www.google.com', '_self', {});
Appreciate your response.
THANKS
February 13, 2013 at 6:19 pm #335397
donijMemberHi Octavio,
I will really appreciate a response if this will give a better picture of what am trying to achieve. I have read some details about phonegap childbrowser plugin that allows the application to detect a location change with the onLocationChange callback (or event).
For example…
if I submit a form by the click of a button.
The form gets submitted to the required url but the response is a redirect to an external page.
Is there any way that mobione/phoneui detect the redirected/location change so that either the new url is captured and then we can use code likephoneui.showURL('http://theredirectedurl', '_self', {});
In the case of phonegap it uses the childbrowser plugin to do this. Do we have such with mobione.
Thanks a mil. Response greatly appreciated.
February 13, 2013 at 11:39 pm #335400
support-octavioMemberIf I recall well, it is the same code used in this tutorial: http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=3203
So, it should works 🙂
February 14, 2013 at 12:36 pm #335436
BrandonMemberIf Im not mistaken the form response is passed back as the data variable.
If it is you should be able to use that if it is returning you url in your phoneui.postSubmitForm_m1_<screenname> = function.phoneui.showURL(data, '_self', {});
February 15, 2013 at 1:28 am #335457
donijMemberThanks guys for your response. I have gone through the sample but the difficulty is that the redirect does not just send the url of the destination site.
in my phoneui.postSubmitForm callback what I get as data is not just a url but a complete web page….. some lines of the return site is as below. If I could have a general way of extracting the destination url the I could just use
phoneui.showURL('http://theredirectedurl', '_self', {});
. Any ideas about how to extract the url irrespective of the redirected site.
Thanks once again.
Below is the data received as data in phoneui.postSubmitForm callback
<!doctype html><html manifest="http://www.google.com.ng/?mnfst=1"> <head> <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport"><meta name="format-detection" content="telephone=no"><meta name="format-detection" content="address=no"> <title>Google</title> <style>#logo span,.lsb{background:url(/images/nav_logo117.png)
-
AuthorPosts