{ "id": "61142", "key": "TIMOB-510", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11222", "name": "Release 1.2.0", "archived": true, "released": true, "releaseDate": "2010-04-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:20.000+0000", "created": "2011-04-15T02:30:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "iphone", "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:20.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

see UIWebView spec (from community)

{html}", "attachment": [], "flagged": false, "summary": "implement go forward and go back methods on web view", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123425", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "{html}

Hi,

\n

I've seen this asked quite a lot. \nhttp://developer.appcelerator.com/question/671/webview-navigation

\n

Would it be that hard to implement? (given the existing\nfunctionality available in the iPhone SDK? - see my reply)

\n

Here's a link to the UIWebView spec (see 'Moving back and\nforward') \nhttp://developer.apple.com/iphone/library/documentation/UIKit/Refer...

\n

I did try to come up with a way around it, using the webView's\n'load' event and building a history stack, however, when clicking a\nlink on a remote page to another one, the 'load' event does fire\nagain, but still has the same e.url value from when the webview was\ncreated.

\n

It would be nice to have something like myWebView.goBack() ,\nmyWebView.goForward() with myWebView.canGoForward and\nmyWebView.canGoBack

{html}", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2011-04-15T02:30:38.000+0000", "updated": "2011-04-15T02:30:38.000+0000" }, { "id": "123426", "author": { "name": "fspencer", "key": "fspencer", "displayName": "Fred Spencer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Is there a plan to expose a bit more? For example:\ngetCurrentUrl?

\n

Or an update to the url property that updates the value as the\nuser navigates around in the Web View?

\n

Cheers! :-)

{html}", "updateAuthor": { "name": "fspencer", "key": "fspencer", "displayName": "Fred Spencer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:38.000+0000", "updated": "2011-04-15T02:30:38.000+0000" }, { "id": "123427", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [b767ce113817a45e56910ce14d0ab2196e9dea3e])\n[#510\nstate:resolved] added various web controls capabilities to iphone\n\nhttp://github.com/appcelerator/titanium_mobile/commit/b767ce113817a...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:39.000+0000", "updated": "2011-04-15T02:30:39.000+0000" }, { "id": "123428", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

OK this seems to be a much requested feature. i have committed a\nnumber of new capabilities. Currently for iphone but android will\ncatchup.

\n

New properties:

\n

loading[boolean]: boolean indicating if the webview is loading\ncontent

\n

New methods:

\n

reload: reload the current webpage
\nstopLoading: stop loading a currently loading page
\ngoBack: go back one entry in history to the previous page
\ngoForward: go forward one entry in history to the page before the\ncurrent page
\ncanGoBack: returns true if the webview can go back in history
\ncanGoForward: returns true if the webview can go forward in\nhistory

\n

New KS test called WebView controls in WebView.

\n

I also fixed the url property to correct reflect the state of\nthe current document, not just the initial url that created the\nview.

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:39.000+0000", "updated": "2011-04-15T02:30:39.000+0000" }, { "id": "123429", "author": { "name": "fspencer", "key": "fspencer", "displayName": "Fred Spencer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This is fantastic, Jeff. Cheers! :-)

{html}", "updateAuthor": { "name": "fspencer", "key": "fspencer", "displayName": "Fred Spencer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:39.000+0000", "updated": "2011-04-15T02:30:39.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }