How do I catch a target="_blank" inside a WebView on Titanium? - titanium

In Titanium Appcelerator, I got a webview.
Inside the webview the page contains
I want to intercept these in Titanium.
Already tried the "load" and "click" event handlers but seems they do not work on these cases.
Any advice on how to catch and handle internal new window links on Titanium WebViews?

Related

react-native-modalfy keyboard issue on iOS

I created a modal using react-native-modalfy(because of its universal usage) that has an input field. On android everything is working as expected(i.e., modal moving up when keyboard aperars) but on the iOS, whenever I try to type something the keyboard appears on the modal UI and doesn't allow me to see anything that happens on the modal UI. Is there any workaround to get past this issue?enter image description here

Popup manu placed behind other items using React Native Expo Web

I have the next layout on the page:
And I'm trying to add popup menu like on youtube mobile app:
but I can't place it above other elements. React Navive for web creates own stacking context for each block. So that z-index doesn't make any sense. Is there any ways how to handle that?

how to play scorm file with react native?

I have a scorm content and I play it inside a webview in my react native application, but I want to change the style of the buttons which appear at bottom of the webview and which control stop/play/resume video ...
So is there a way to do that ?
There are a couple of ways you could approach this.
You can execute JavaScript directly on the WebView; so, you could use document.getElementById('...') to obtain a reference to the buttons you want to change, and then update the button styles, making sure to retain the onPress behaviour.
Slightly nicer; you could hide the buttons on the page altogether, and instead define some <Button />s inside of your React layout. In the onPress of your React buttons, you could execute the JavaScript you'd normally expect the WebPage buttons to execute. This would require figuring out how to trigger those handlers.
Both of these require some inspection, understanding and experimentation with the source you're trying to manipulate. I'd recommend opening up the page in your browser and using:
javascript:console.log('your');console.log('js');console.log('here);
inside your URL bar to find the commands you want to run before trying to pass them into the WebView. Alternatively, you can also inject JavaScript directly into the page if you use the browser's Inspector pane.
See: Execute JavaScript inside WebView source

Alloy left/right keyboard events ScrollableView

I'm building a titanium alloy app and I'm using ScrollableView to show different pages of the app. I have set showPagingControl="false" and scrollingEnabled="false". Its got a basic login code so when the user is valid it goes to the next page.
I just realised that focusing the scrollableview and using keyboard left/right buttons changes the page which isn't ideal as the user isn't meant to be logged in. Is it possible to disable this?
I'm marking this as resolved as I think it was an error in my emulator

Rubymotion implementation of the previous/next buttons in the webview

I'm new to iOS development and recently started out with rubymotion.
Im currently working on a "start page" kind of application that loads an in app html/css/js file in a webview. The "start page" then links to different sections/pages on (a to be released) responsive design version of http://hiof.no .
My current build of the app is based on the PaintHTML example:
https://github.com/HipByte/RubyMotionSamples/tree/master/PaintHTML
The feature I'm stuck on at the moment is previous/next page navigation to navigate back and forth in the webview history.
The idea of the navigation feature is to have previous/forward buttons positioned fixed on the bottom left side of the app similar to the Path app "new content" button.
Any ideas how I can implement access to the webview history with "native" rubymotion code?
the UIWebView have to methods UIWebView#goBack and UIWebView#goForward,
create two button and set the action to #webView.goBack and #webView.goForward; and you can enable the button with the methods [UIWebView#canGoForward and UIWebView#canGoBack]
Documentation