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:

  1. application loading.
  2. 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:

  1. window.location.href
  2. window.location.href.substring(window.location.href.indexof("www/")
  3. "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

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -