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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -