I've gone to different websites on my iPhone that will pop up a UIAlertView when it loads. How is this accomplished? I want to put some code on my page to pop up a UIAlertView when viewed on an iPhone.
You can make use of bridecall from the js to native code to trigger the UIAlertView..
Related
I use UIWebView in my app. And only one site load without css styles (only mobile version, with desktop all alright). I try load this site in Safari on my iOS device, all good. There is problem only with webView.
Doesn't help load with UIWebView LoadRequest method or transition to this page from full version of site.
Source code of this site has tag <noscript> and text from this tag shown on this webview.
It's look like something don't let download all scripts and styles, because in Chrome I looked source code of full loaded mobile site and it has more scripts, then page in WebView.
Moreover, I tried change UIWebView to the WKWebView, the problem remained. Also I use Xamarin.Forms and tried Forms.WebView - nothing. Is it a problem with code of site?
I am using the magnific-popup (http://dimsemenov.com/plugins/magnific-popup/) but I don't need to use this one. I have just used it before and it worked well.
My questions is how to actually trigger different lightboxes from inside a SWF?
We have one SWF that has images and animation located at six different sections of the screen. It's sort of a launch page and each section has an image with some animation and when the users clicks on a section another web page will load.
This application will be hosted on a computer with a touch screen and we were using a kiosk app to run the app and it had a small navigation bar built in but now we are using a different operating system that works better with the touch screen hardware (OSX to Windows 8) but does not work with the same kiosk app. I also can't seem to find any kiosk apps that do the same thing for Windows 8.
Instead of using a Kiosk app I would like to just use Chrome in Kiosk/Fullscreen mode and have each section open in a new lightbox window instead of using a navigation bar. However, I can't seem to trigger the lightbox event from within the SWF itself.
Any help greatly appreciated.
In as2 something like this getURL("javascript: lightbox(maybe-attributes);"); or using flash.external.ExternalInterface class. I don't know in as3 if there's another class/method
Christian find perfect match with this jquery/flash.external.ExternalInterface
http://grasshopperpebbles.com/jquery/actionscript-using-lightbox-with-flash/
I want to try load a private webpage in uiwebview.
When I try to open it from the native Safari app on my iPhone, everything works well.
But when I try to open in uiwebvie, the buttons on the webpage doesn't work.
Buttons are as follows
<a class="actionButtonWithoutImg" href="javascript:__doPostBack('','')">Edit</a>
Do you have any idea ?
I'm building a web application (based on Phonegap) optimized for iPhone.
I have to integrate a popup which will open our twitter page and shouldn't fit to entire screen (for a simple navigation problem..how do a user should go back at full screen??).
I've noticed that Safari Mobile opens correctly the new page but ignores my window.load width/height parameters.
This is the incriminated js code :
var twitterLink=$("#twitter a");
var url="http://mobile.twitter.com/test";
twitterLink.click(function(){
window.open(url,'name','(height=200),(width=150)');
return false;
});
I've just tried all other browsers on leopard and work!
My aim was embedding a Twitter Profile Page in the fastest way in a page of my app (which has a navigation bottom bar).
This morning I've tried with IFRAME , but with no luck...are not supported..
Then i've tried with the new Twitter intent but has the same problem as here in safari Mobile (ignoring parameters of popup)
Thanks a lot!!!
I think that's a known bug of Mobile Safari.
By my knowledge window.open accepts parameters without parentheses, so:
window.open(url,'name','height=200,width=150');
this should work.
as you all know that if we use flash object in web page in internet explorer
Internet Explorer displays a box around Flash content and show a tooltip telling the user to click to activate the content.
i am using fixit it work fine but problem is once page loaded completely.
this object load it again.
any other solution...?
Thanks
did u try
http://code.google.com/p/swfobject/
use it.
http://code.google.com/p/swfobject/
You need to embed the Flash movie using SWFobject or any other javascript method out there.