Template:PT3 JS ANY BROWSER: Difference between revisions
From Phidgets Support
(Created page with "<div class="phd-slide-deck" data-deck="PT3_JS_ANY_BROWSER"> <div class="phd-slide-deck-header"><h3>Language - JavaScript</h3></div> <div class="phd-slides"> <div class="phd-sl...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
<h2>Requirements</h2> | <h2>Requirements</h2> | ||
<p>First, | <p> | ||
First, install the <span>[https://www.phidgets.com/downloads/phidget22/libraries/any/Phidget22JavaScript.zip Phidgets JavaScript Library for Browsers]</span>. | |||
</p> | |||
<p> | |||
If you're on MacOS and plan on using any USB Phidgets that use the HID stack, you'll need to install the | |||
<span>[https://www.phidgets.com/docs/OS_-_macOS Phidget drivers for MacOS]</span>. You can check which stack your USB Phidgets use by checking the 'USB Stack' | |||
in the product specifications. If all of your Phidgets use the PHIDUSB stack or you're on Windows or Linux, you can skip installing the drivers since they're | |||
packaged with the Javascript libraries. | |||
</p> | |||
<br /> | |||
< | <h2>Version History</h2> | ||
<p> | <p><b>1.x.x</b> - Initial Release (unstable- highly recommend updating to 2.x.x or newer)</p> | ||
< | <p><b>2.x.x</b> - Fixed stability issues</p> | ||
< | <p><b>3.x.x</b> - Added WebUSB support for VINT devices</p> | ||
<p> | <p>Each release has potential breaking changes, so you should always revisit your code when updating to a new major release.</p> | ||
</p> | |||
</div> | </div> | ||
Line 132: | Line 140: | ||
<p> | <p> | ||
To write your own JavaScript code, we recommend that you download one of the examples to use as a starting point. You can also start from scratch in a new HTML | To write your own JavaScript code, we recommend that you download one of the examples to use as a starting point. You can also start from scratch in a new HTML | ||
file- all you need is a copy of <b>phidget22 | file- all you need is a copy of <b>phidget22.min.js</b> in the same folder. You can find a copy packaged with our examples, or you can download it | ||
<span>[https://www.phidgets.com/downloads/phidget22/libraries/any/Phidget22JavaScript.zip here]</span>. | |||
</p> | </p> | ||