11-19-2012 05:24 PM
Is there any documentation on Webview fuctions allowing control back, foward refresh. if someone could point me in the right direction that would be great thanks in advance.
Solved! Go to Solution.
11-19-2012 07:37 PM
Quick example I threw together... its pretty self explanatory. I will do a full write up on my blog soon:
import bb.cascades 1.0
Page {
content: Container {
background: Color.create(0.25, 0.25, 0.25)
TextArea {
text: "Text up here"
editable: false
textStyle {
// size: 30
fontWeight: FontWeight.Bold
color: Color.White
}
}
Container {
layout: StackLayout {
orientation: LayoutOrientation.LeftToRight
}
Button {
id: button1
text: "Back"
onClicked: {
myWebView.goBack();
}
}
Button {
id: button2
text: "Forward"
onClicked: {
myWebView.goForward();
}
}
Button {
id: button3
text: "Refresh"
onClicked: {
myWebView.reload();
}
}
}
Container {
ScrollView {
scrollViewProperties.pinchToZoomEnabled: true
scrollViewProperties.scrollMode: ScrollMode.Both
WebView {
id: myWebView
url: "https://www.google.com/"
}
}
}
}
}
Reference from documentation (https://developer.blackberry.com/cascades/referenc
Navigates to the previous page in the navigation history.
If there's no previous page, this method does nothing.
Navigates to the next page in the navigation history.
If there's no next page, this method does nothing.
Stops any loading in progress.
If no loading is in progress, this method does nothing.
Reloads the current page.
11-19-2012 08:02 PM
Oh my god your my hero lol thanks great example
11-23-2012 05:19 AM - edited 11-23-2012 05:53 AM
I was looking for these other WebView functions are the avaible yet
Thanks
11-23-2012 05:51 AM
11-23-2012 05:53 AM
ok besides the normal dev cascades site is there other doc i can find them.
11-23-2012 08:24 AM
11-23-2012 08:18 PM