android - PhoneGap redirect From server html file to local file -
i in process of developing iphone phonegap application , have stumbled problem redirecting user after login.
the flow follows:
- application loading.
i redirecting user login page located on remote server , passing parameter of current page user redirected after successful login.
e.g. http://www.myloginserver.co.il?ret='this url of local html file'.
the problem cant login page redirect local html.
i have tried passing following urls:
- window.location.href
- window.location.href.substring(window.location.href.indexof("www/")
- "file:////" + window.location.href.substring(window.location.href.indexof("www/")
has encountered problem?
thanks, udi
interesting question. i'm not sure if possible...what instead create login form locally in /www/ , use ajax query server , see if able login. in callback function of ajax request can determine if can send them next page or if need retry login.
Comments
Post a Comment