Bug 563888 - Paho mqtt javascript file not opening on my pc
Summary: Paho mqtt javascript file not opening on my pc
Status: NEW
Alias: None
Product: Paho
Classification: IoT
Component: MQTT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ian Craggs CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-03 09:35 EDT by Pi Raj CLA
Modified: 2021-01-06 22:56 EST (History)
4 users (show)

See Also:


Attachments
screenshot of error (86.93 KB, image/jpeg)
2020-06-03 09:35 EDT, Pi Raj CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pi Raj CLA 2020-06-03 09:35:21 EDT
Created attachment 283130 [details]
screenshot of error

Sir/Mam,
First of all, I am sorry for posting my javascript problem in Java section.I actually couldn't find where to post for javascript issues.So, I posted here.
I had downloaded paho mqtt javascript file.After downloading the file,when I tried to open the paho mqtt(javascript) folder,it was showing an alet box error

Line :116
Char: 3
Error: Expected identifier,string or number
Code: 800A0404
Source: Microsoft JScript compilation error


I had downloaded whole file from your official website and from github too,
but it's not opening in my pc.I am attaching one screenshot of the error.
Please help me fix this error.
Thank you.
Comment 1 Stephan Herrmann CLA 2020-06-03 17:22:13 EDT
Apparently, this is not an IDE problem, right?

Moving to paho to check if they can help.
Comment 2 Charlie Crotel CLA 2021-01-06 22:56:13 EST
Hi,
Javascript was not really equal to Microsoft JScript. And there was not the right way to run *.js as you description and screenshot.

More detail, please read nodejs.org. As that was the better way to play your javascript code on desktop. In simple way, you should download bbedit or vs-code. both  had virtual browser even terminal to test your javascript code.

Or you can download "play.js" or "Code" app to test your code on iPhone/iPad if you just want doing light-weight simple testing.

had fun~