Problems giving focus to an iframe on smart tv - iframe

I am developing an application with sdk 3.1 - html/javascript/scenes.
i have an iframe with external content, but I can not move the tv's remote control focus to iframe (html).
is possible to do this or the API does not permit give the focus to an Iframe?

I asked directly in the developer forum and corresta answer is that you can not.
I quote:
helpinghand2400#
Hi,
Smart TV supports iFrames partially (We can only load the page ,
can't navigate it). So, you may be able to show the website in an
iFrame but you'll not be able to use most of the functionality
Thank you very much anyway.

Did you try manually set focus on that iframe? myiframe.focus() and than try to move with remote inside it?
Btw, as far as I experienced in previous applications almost in all cases you need to make your own focus handling.

Do not use iframe on your Samsung Smart Tv App. It will be immediately rejected by Samsung testers. Their excuse is that iframes have serious problems on many devices.
There is no real solution for your question. Even Samsung is rejecting apps using iframe content. They have rejected one of my applications because of iframe.

Related

Integrating the Skype Web Control into your own website

I'm recently trying to integrate the Microsoft Skype (Skype Web Control) into my own website. (See demo here)
It's quite simple actually, use the 'Web Control Generator' you will get the code, and then put them into a pure HTML file, it's done! Just like this:
<span class="skype-button bubble" data-contact-id="my-skype-id"></span>
<script src="https://swc.cdn.skype.com/sdk/v1/sdk.min.js"></script>
It's very simple! you clicked on the 'Bule Bubble' on the bottom right corner of the screen, Skype window popups up, you sign in with your Skype account and then you're good to go!
Chat is ok, you can send messages, even files(didn't try it)! But every time I click on the Video call button which I marked on the attached image, the error message popup up!
It spent me days, asking for Skype support team, googling around and got nothing, PLEASE, any ideas, suggestions will be greatly appreciated!
UPDATE:
My testing environment already install a Skype application [Skype 12.1807.264.0]
The testing browser is Chrome [Version 64.0.3282.186 (Official Build) (64-bit)]
UPDATE:
I already put an SSL Certificate (https://) on my testing environment, doesn't work either.
All calls must be facilitated through HTTPS. This is a security guideline that needs to be enforced for using Skype Web Control. As told Here https://github.com/Microsoft/BotBuilder/issues/4044

hide windows taskbar on page load

is it possible to hide windows taskbar during page load of an aspx page?
No. There used to be such option in IE, but as it was abused by malware (e.g. it hid the real taskbar and pretended there was a virus on the computer, then scared the user into downloading the real virus), it was removed.
In general, the code inside the browser has no business messing with anything outside the browser, for security reasons.
If you have control over the clients' computers (e.g. for an internal application that will be used from specific computers) and you know which browser(s) will be used, you could write a browser plugin (or an extension, in case of Firefox/Chrome/Opera) and install it on those computers - these have a much higher privileges of access to the rest of the OS, almost like normal processes.
No it is not possible without using some proprietary plugin inside the browser.

ASP.NET website not working properly in mobile

I have created a simple app with a page having a server side form, three fields and a button that submits and performs two operations - 1) adds the form fields to the database table 2) sends an email. Now everything works fine on the web browser on my machine but when I access the app through my mobile, the page does not seem to work. the UI and all are set but the button click functionality doesnt seem to be working and also the label which is set after a successful submit is already visible and showing the "thank you" message. Am i doing something wrong here?
I have checked the app on Nokia Smartphone browser, android phone, and iphone simulator.
1st i would try to access the site from a different computer or through a proxy. Just to make sure things work out well in different browsers. That may catch your bug. It may be working fine on your PC Locally, on a local web server, but may not be uploaded to the web.
Next, I would check to see if the devices you are using support Javascript. Chances are good that your script relies on it.
I strongly recommend you to use JQuery Mobile, it create Mobile friendly interface for your website. and for sure it work the same for each cell phone, but as Asp.net isnot easy to render for most of (old) phones, so that you're not able to use whatever you like.

Detecting Requests from Mobile Browsers in ASP.NET [duplicate]

This question already has answers here:
Mobile Device Detection in asp.net
(9 answers)
Closed 6 years ago.
I have an existing web site and I would like to create a mobile version of it that is more suitable. For instance, the main site uses drop-down menus and we all know those are quite the fail on mobile devices.
I would like to redirect to my mobile version (it will be a subdomain of the current site) if I detect a request from a mobile browser. So when they Google something and come to my site, they will automatically see the mobile version (just like Wikipedia).
Does ASP.NET provide an easy way of doing this? If not, how can I do it?
You can use the IsMobileDevice property somewhere in the Request.Browser. You need some decent browser definitions though. I use these excellent set of browser definitions: Ocean's place browser definitions.
They are really in depth and the best I've seen. I think he is currently working on .NET4 ones too.
I think the best solution is WURFL. It is more up date device description repository and it is free. The only inconvenience is .net api is GPL.
Keep it simple...
Heres the JS for the same...
Hope it helps someone..
var useragent = navigator.userAgent;
var isMobile = !!useragent.match(/iPhone|Android|Blackberry|Sony|Nokia|Motorola|Samsung/i),
isWebBrowser = !!useragent.match(/Mozilla/i);
// Redirect the call accordingly.
if(isWebBrowser && !isMobile)
//call to web portal
alert(" You seem to me... calling from Web Browser")
else if(isMobile)
//call to mobile apps
alert(" Call seems to be from Mobile device...")
else
{
// jus kiddin...
alert(" Unable to detect the device..... Please report to admin...")
}
There is a project on codeplex that you can use : Mobile Device Browser File
Project Description
The Mobile Browser Definition File
contains definitions for individual
mobile devices and browsers. At run
time, ASP.NET uses the information in
the request header to determine what
type of device/browser has made the
request.
This project provides a data file that
when used with ASP.NET will detect the
incoming mobile device and present you
as the web developer with a set of 67
capabilities or properties describing
the requesting device. These
capabilities range from screen size to
cookie support and provide all the
information you need to adaptively
render content for mobile phones and
devices.
What is the Mobile Device Browser Definition File?
The Mobile Device Browser Definition
File contains capability definitions
for individual mobile devices and
browsers. At run time, ASP.NET uses
this .browser file, along with the
information in the HTTP request
header, to determine what type of
device/browser has made the request
and what the capabilities of that
device are. This information is
exposed to the developer through the
Request.Browser property and allows
them to tailor the presentation of
their web page to suit the
capabilities of the target device.
There's an article on CodeProject which provides such function.

How can I load a remote document into an IFRAME in Internet Explorer? (IE6, IE7, IE8)

I posted a question the other day about why IE8 would not allow me to embed a page using the OBJECT tag. Per that discussion, and per my other research, I decided to just go with an IFRAME as it was not clear that the third-party application actually needed to be in an OBJECT.
Now here I am, a day later, finding out that IE8 has the same cross domain issue with IFRAME that it does with OBJECT. Is there any way around this? Why can I not find any discussion about this being an issue?
It has been awhile since I have had ot use an IFRAME for anything but I am pretty certain that this used to be really easy to do. Am I missing something, or am I really stuck going back to early AJAX days of having to build a local PHP proxy script to proxy my request to the remote server?
Take a look at EasyXDM. It's a library which wraps cross-browser quirks and provides an easy-to-use API for communicating in client script between different domains using the best available mechanism for that browser. Caveat: you need to have control over both domains in order to make it work (where "control" means you can place static files on both of them).

Resources