HTML5 embedded in Silverlight Application - html

I am quite new to silverlight and I am seeking advise on embedding external html pages inside silverlight applications.
Can the contents of an external html page be integrated inside a silverlight application ?
How about features like SVG support or Socket.IO which exist in modern browsers ? If the external page is using HTML5 features, can silverlight render/process it correctly ?
Thanks,

There is no native support for rendering HTML pages in Silverlight. You can however access and manipulate DOM elements from within Silverlight. This allows you to place HTML elemnts on top of a silverlight application and by appropriately adjusting the size and position of these elements you can create the illusion of embedded HTML in simple applications.

Related

In webbrowser control detect video url on iframe

in my webbrower control i navigate to a site with video inside. In a Windows phone 8.1 silverlight it is possibile capture the video source (MP4) of an iframe WITH Javascript?
Enable Scripting in your BrowserControl: https://msdn.microsoft.com/en-us/library/windows/apps/microsoft.phone.controls.webbrowser.isscriptenabled(v=vs.105).aspx
Inject your custom JavaScript to alter / read the DOM of the website containing the iframe: https://msdn.microsoft.com/en-us/library/windows/apps/ff402855(v=vs.105).aspx
you find great samples on each step, regarding your needs

html code to make Blackberry sing ring or vibrate

I know that Blackberry has added new API's on OS5-6 that allow HTML5 code to access native features & widgets. Is it possible to make blackberry beep, ring, vibrate or sing (play mp3) to alert user of an event through an HTML page.
There is a java class called net.rim.device.api.system.Alert that might be accessible, but I don't know how to reach it with html/js.
Are you creating an app with embedded browser wrapped in native shell? Then you can access almost all native features (the one which are exposed) using javascript extensions.
If it's purely a web app or webworks application, you should be able to find all native features that can be accessed from the browser at
BlackBerry® WebWorks™ API Reference
You still will be using Javascript Extensions.

Does Sencha Touch, or any other HTML5 javascript framework, allow access to a mobile phone's media library for uploading video to a server?

I am looking at building an app that can take a video from a person's media library on their mobile phone and upload it to my servers. As far as I can tell, I'd have to build an application for each type of mobile device I want to include. But if new HTML5 protocols let me upload video files through the browser (and can handle the file size), this would be a preferred method.
Web apps don't have access to the media library on a phone. Use phonegap to get access to the users photos - http://docs.phonegap.com/phonegap_media_capture_capture.md.html
Considering you are using iOS and running the WebApp in iOS' MobileSafari, you have NO access to any system related components, libraries or anything (so no Photos, Videos etc).
And Safari itself does not support file upload. You can add the tag but it will always remain as if had disabled="disabled" attribute.
The only way to access these components is by using a Native code or, like Joel said, PhoneGap since it gives the html pages, access to Native API's through it's JS Framework.
For Android, i have no idea but probably not.

Why does WPF lack HTML support?

Why does WPF lack HTML support? I know there is the Frame. But that shouldn't even be considered a WPF control (not, at least, when it is rendering HTML). I know there is a hack with a floating window, but that's crap!
I just want to show a static HTML document in my WPF application, in a window with rounded corners and a drop shadow. I'm hitting a brick wall, and I'm incredibly frustrated!
HELP!
Can you just embed a web browser control in your WPF app? Your WPF app can then have the nice looking drop shadow around the WebBrowser control, and then WebBrowser control can host your static HTML.
http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/web-browser-control-in-wpf/
you're pretty limited with the functionality built in to WPF. WPF doesn't know how to render HTML on its own - it relies on the native Internet Explorer web browser activex control (aka Trident) to do this. activex controls are rendered in "child windows" on top of any other content in your wpf window. nothing you can really do about this.
the best alternative is probably to switch to a Google Chrome-based control which does not have such a limitation: http://wpfchromium4.codeplex.com/

Displaying a DHTML layer over a Silverlight UI

I have a MOSS 2007 publishing site which incorporates some Silverlight components on various pages. Beyond a few areas the rest of the site is SharePoint and ASPX (i.e. standard HTML/javascript).
I'm looking at incorporating a dynamic/dropdown menu to the main navigation. Unfortunately on a few of the pages the menu sits close to a Silverlight area and, when a menu is pulled down it falls "behind" the Silverlight block.
Is there something simple I'm not doing or is there a limitation that Silverlight always be on top of dynamic content displayed via the rest of the HTML DOM?
Any ideas?
-Kevin
In order for Silverlight to appear behind other HTML elements the silverlight plugin needs to run in windowless mode. You can configure that using a param on the object tag.
<param name="windowless" value="true" />
Note that is can degrade performance and is not recommended if you are displaying video or making heavy use of complex animations.
have you tried the CSS property: z-index?