Thread: mbarcode
View Single Post
Posts: 78 | Thanked: 32 times | Joined on May 2008
#502
Hi guys.

First of all, thank you for your devotion for developing an useful app for all of us!

I'm currently embarking on a project, where I use the output string of mBarcode as a parameter for my webapp. And by webapp, I mean just a local html file.

So far, I have done this by adding my own custom provider. (GREAT function btw!)

I would like to further integrate mBarcode in my webapp though. I have an idea, but I'm not at all sure, that it can be done.

I'm thinking this:

Launching a script from the press on a button in my local html file.

The script will launch mBarcode and give it focus.

mBarcode scans a barcode as usual.

The script recieves the outputted string and opens up a browserwindow using the url "/barcode/index.html?<recieved_string>" This shouldn't require user-action.

I've been looking at the plugin-toturial at http://vcs.maemo.org/svn/maemo-barco...ugins/TUTORIAL , but I would prefer the script-way, as it seems a bit more in-range for me. Mostly due to my newbness.

I'm not sure whether or not the browser can even launch a script though. Can it, or is there a security-violation in the process?

I'm also VERY uncertain as to what the script must contain to be succesful. I can see, that when I launch mBarcode from xterm and scan a barcode, the outputted string is apparing in xterm alongside general runtime info. Is there a way to snatch it from there?

It seems that @lamle on page 24 was trying to do something roughly like this. At the time, it didn't seem easy to implement mBarcode into other apps. In the earlier posts in this thread, there also seemed to be focus on giving other applications access to mBarcode. I'm not sure how the status is on these things as of now though.

So, that's the story.

I'm hugely grateful for any guidance on all of this. I'm pretty much on a blank page trying to make the webapp-mBarcode a one-click experience.

I'm very aware that using html as a program interface is a bit newbish. It does make for some great compatibility across devices though! And it's the only way I'm able to design layouts at the moment

Thanks in advance y'all!