ios - How to store and access previous sites accessed in WebView -


i have simple app few navigation buttons load pre-defined websites within webview container.

if possible user last url visited after click different button.

e.g. user clicks button 1 , goes google.com, carry's out search. user clicks button 2 , reads posts on stackoverflow, decide go button 1 (google). in ideal world user see search results carried out on button 1, , not directed google.com

would able use geturl store last visited url, , reload url once user goes button? if how go storing url? quite new titanium.

i have version of app uses tab group , loads different webviews each tab, solves problem of loading last url makes app memory heavy uses lot of webviews.

try @ thisti webview 'load' event listener.

  • you can use load event know url being shown in webview.
  • in order have navigation system, save urls in array.
  • to perform , forth operations, use variables keep track whether user has pressed button or forward button.

try above steps , till try put demo code you. :)

thanks


Comments

Popular posts from this blog

ruby on rails - Permission denied @ sys_fail2 - (D:/RoR/projects/grp/public/uploads/ -

c++ - nodejs socket.io closes connection before upgrading to websocket -

java - What is the equivalent of @Value in CDI world? -