baoankhang / protobuf-js

Automatically exported from code.google.com/p/protobuf-js
0 stars 0 forks source link

Not able to run the example code given in the pakage in both firefox and chrome #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. I downloaded the zip file and unzipped it.
2. ran the index.html inside the folder protobuf-js-0.0.0.
3. clicked on the decode buttom.
4. the console showed this error:
- firefox i see this error:  NS_ERROR_DOM_BAD_URI: Access to restricted URI 
denied     protobuf.js:13:0
-in chrome i see 2 errors:
1 right after loading the paage : Uncaught SyntaxError: Unexpected token [ 
protobuf.js:27 
2. after clicking the decode button i see another one : Uncaught 
ReferenceError: Protobuf is not defined index.html

What is the expected output? What do you see instead?
it should have decoded the data sample.bin in the folder data and the decoded 
value should  have come in the textarea.
It doesnt do that and rather shows the above mentioned errors in the console. 

What version of the product are you using? On what operating system?
I am using windows 7.

Please provide any additional information below.

Original issue reported on code.google.com by bhatia.a...@gmail.com on 20 May 2015 at 8:06