Embed webpage in libgdx - libgdx

My teammate is writing a form, she could use Libgdx input but prefers to write an html form.
Is there a way to write php/html or jsp form and embed it libgdx? or use ifram or similar to display it? And when the user submits, he gets redirected to Gamescreen

So far away, it's not possible. The only thing that you can do is to make a link to an URL. But it will opened in the device default browser.
For more infos: https://github.com/libgdx/libgdx/wiki/Networking -> Gdx.net.openURI(String URI)

Related

How to read barcode from camera using coldfusion?

I need to create a bootstrap web page that will allow the user to read a barcode from the camera.
I am using Coldfusion but I can't seem to find any resource to help read the barcode from the camera.
Ideally the user clicks a button to open the camera and read the barcode then submit it to an API.
If you are using CF for a web app, then you will have to add code to your web page to get permission to use the camera. Here is some information on that:
https://developers.google.com/web/fundamentals/media/capturing-images/
or this:
How to access a mobile's camera from a web app?
Then you store the image in a form Input and submit it back to CF. Use the CfUpload to put the picture into a local file. After the image is received, use a library like Zxing to decode the image https://github.com/zxing/zxing
Does that help?

Is it possible load a cshtml file in an iframe on non-cshtml page?

I'm working on an outlook 365 app for the web client of outlook. In outlook, you can define a button above the email that opens a panel when clicked. This panel is basically and iframe. The issue is, I need to point that frame at a cshtml file, which you can't do unless the page the iframe is on is also a cshtml file from what I understand.
My question is though, is there a way to load a cshtml file in an iframe on a page that is just a regular, plain html file? If the answer is no, as I suspect it is, is there a different way of doing this or is there a way to get around this?
I've searched high and low on google to try and even find an answer and there is nothing.
You can call the cshtml view through the asp.net routing
<iframe src="/controller/Action"></iframe>
if you want to be able to call views without calling actions
you need to override HandleUnknownAction
https://stackoverflow.com/a/8372820/1551411

How to Communicate between Qt and a HTML page in QTWidget Application

I am trying to find a way to connect a button in HTML to an action in my C++/Qt application. I loaded a HTML file in QT app using QTextBrowser object. If I click a button in this HTML file, the Qt application should respond. I also might want to implement it vice versa: so that an action in the Qt application would cause a response in the HTML page. Please suggest a suitable solution.
My sample code is :
QWebView view;
view.setStyleSheet(
"background-color:rgb(150,147,88); padding: 7px ; color:rgb(255,255,255)");
view.load(QUrl("test.html"));
view.show();
is there any mechanism like signal/slot ??
There are a few ways to do this, as your sample is working with QWebView rather than QTextBrowser, I'll assume your working with the QWebView.
For page to application QWebView::linkClicked(const QUrl& url) signal is fired when a link is clicked, and QWebView::load(const QUrl& url) will change the page.
If you are creating a JavaScript application, have a look at the QtWebKit Bridge documentation. This allows two way communication with JavaScript running on a page.

stop/cancel file upload in html?

If i have a file upload and i click on something to cancel it, how do i stop the upload? I tried doing $('form').remove() and it appears to continue uploading. Maybe i should put it in an iframe and destroy the iframe? then i need to figure out how to reload it hmm.
Are there any known cross platform ways?
-edit- btw this must be done in pure html and js, no flash or silverlight.
Use Flash to upload the file, then you have a lot more control to include a progress bar and allow the client to cancel.
Here's a commonly used JS wrapper, but I don't know if this specific one has a cancel api:
http://code.google.com/p/swfupload/

HTML input type = file in Adobe AIR does not present file browser

So the good old HTML file uploader tag only presents a browse button (without associated text input) when rendered in a HTML based Adobe AIR application. Upon clicking the browse button, nothing seems to happen. I would expect a popup window so I can select a file. I've seen examples of people using Javascript to call the AIR runtime to get a file and upload it, but I was wondering if anyone knew a complete HTML/Javascript way of doing this with AIR.
thanks
Actually, this does work. I somehow managed to stop this from working, probably through a combination of cloning that part of the DOM elsewhere.