How do you post to REST service from SB1 app?

I have created a simple SB1 app that scans a barcode. I need to post the scanned barcode to a REST service as a POST request. I have tried using jQuery, XMLHttpRequest object and nothing seems to work at this time because of the cross-site post limitation.

 

What are the workarounds? I cannot use jsonp because I need to do a POST. I have also tried CORS but that does not POST either.

 

1. Is HTML the only way to create apps for the SmartBadge1?

2. How do I overcome the cross-site POST issue?

 

Any help highly appreciated

 

Thanks In Advance