Frequently asked questions

Archive filtered by Web Development

To remove filter keyword, click on it's name above.

 

M30Q: How can ABOX42 help us to launch the Smart STB directly into our application?

A: ABOX42 will assist you in the following way to get your application running right after the booting process:

- You will have provide access for us via port forwarding on PORT 22
- We log onto your box via SSH
- We change the start URL for your Smart STB
- ...and you're good to go


Note: In case you perform a reset of the Smart STB, the settings will be changed back to default.

Best practice: Use a redirect server so you can change the URL on your side without needing our assistance.

Filter: M30 Smart STB

M30Q: I am trying to request a URL on our server using an ajax function (XMLHttpRequestObject), but all I get is an error. Why ?

A: You can only create requests to the server where the javascript for the ajax request is located. In order to create requests to a different domain, use CURL, which you can then call by your ajax function in order to retrieve the content which is located on a different server:



(replace the ajax function through your own)

Filter: ABOX42 Showcases M30

M30Q: The gridJS library is very large – what are the functions that I am going to need to use ?

A: You do not need to use the library to its full extent. These are the functions which are mainly used:

init – you must call this, and in the callback handler mostly calls to “gridJS.element” are made (and calls for selection)

element – make one call for every <ul> element you want to create a grid on

use – select a different <ul> element

sel – select a different <li> element

navigate – use this from your handleKeyCode function to forward cursor up, down, left and right presses to the grid

Filter: ABOX42 Showcases M30

M30Q: What is the difference between gridJS.use and gridJS.sel ?

A: "gridJS.use" is for selecting different elements (<ul> items). You can call "gridJS.use" with the id of the <ul> element, or use "gridJS.use(0)" to select the first element, "gridJSu.use(1)" to select the second etc., whereby the order is the order in which  the elements got initialized. Whereas "gridJS.use" is used for the <ul> elements, you can call "gridJS.sel" to change the selection of the <li> elements, which are contained inside the currently selected <ul> element. For example, to select the second <li> element simply call gridJS.sel(1); (and to select the first <ul> element with the id “navigation” use gridJS.forceSel(“navigation”, 0);

Filter: ABOX42 Showcases M30

M30Q: How does the Network error page application work?

When redirecting to a different page, there is the possibility that a 404 error occurs. In Chapter XXVII we show you how the application works which handles such use cases.

Filter: ABOX42 Showcases M30 Web Server runtime

M30Q: How can I disable the back button?

A: In case you want to disable the back button or any other button, you will have to interrupt the default event with the JavaScript method "event.PreventDefault()" which is widely used.

Filter: JS-API M30 Web Browser runtime

M30Q: How can ABOX42 help us to launch the Smart STB directly into our application?

A: ABOX42 will assist you in the following way to get your application running right after the booting process:

- You will have provide access for us via port forwarding on PORT 22
- We log onto your box via SSH
- We change the start URL for your Smart STB
- ...and you're good to go


Note: In case you perform a reset of the Smart STB, the settings will be changed back to default.

Best practice: Use a redirect server so you can change the URL on your side without needing our assistance.

Filter: M30 Smart STB

M30Q: Is it possible to change the behavior of the Home button?

A: In case you want to disable the home button or any other button, you will have to interrupt the default event with the JavaScript method "event.PreventDefault()" which is widely used. If you want to change the behavior, you will have to query the home button and according to the query execute another action.

Filter: JS-API M30

M30Q: How can I setup and use a Charles HTTP Proxy?

A: In Chapter 38 we show you how to set up and use a Charles HTTP Proxy in details. This is very helpful when debugging, for example. Please visit the Developer IDE and see the summary page for further details.

Filter: M30 Smart STB summary