Asked
— Edited
Hey guys. Little project I want to look into.
As I mentioned in this thread, I want to make a webpage/custom web server layout and run the ez-b through this. I have html background, so designing the webpage should be no problem, but I know little of getting ARC stuff into that page. I tried setting up the http server but it wouldn't work. So, who's up for helping me try this?
Cool! I'm glad it's working out for you. I'd like to see it when it's done
I haven't done much with the ARC web interface stuff yet, been so busy with other stuff. I need something to get me to play with it!
By the way, the "local version" is the same file that you'd run on the web server - only you'd place it in the web root of the local server and go to http://localhost:someport/mypage.html to see it
So no changes really, it's just a difference in how you're opening/running/viewing the file.
It appears I'm having the problem you metioned with the Java script, Chrissi. Do I put the script after the </body> Tag or at the bottom of the body?
Right before the </body> tag!
Alpha release to try to figure out the Bugs.
1.Camera not working. 2. script trigger buttons not triggering 3. Help me clean it up! It is freaking messy!
Instructions: 1.Download folder. Unzip it(extract items out) 2. open the MTR.ezb project file and start the http server. Start camera too. 3. Open the index.html file in the downloaded file. Set your camera url in the camera java script(labeled)(same as ip as the main server) 4.Configure anything else in the script that is mentioned 5. Java/html people help me try and figure out the listed problems. Betabugrelease.zip Yes I know it says BETA^ Thanks for any help I receive! Tech
Here's the jquery script which needs to be added( it wasn't working):
Update: Camera source code was fixed. Still not sure why the script buttons don't work.
After reading up on the earlier posts, I noticed that I Chrissi said
so that means adding the script trigger scripts listed should be fine at the top, but it doesn't work!URLs were checked, there fine. its gotta be the code!
Code for script 1-9(identical jquery):
You need to escape your quotation marks that are nested.
eg.
It's not working because the quotation mark in front of Script Manager is ending the string, and you're ending up with invalid Javascript.
Press F12 in your browser and you'll see the Javascript console. You can see errors there.
Also, if you use an editor with syntax highlighting like Visual Studio, Sublime Text, Notepad++, etc... you will see small mistakes like this.
I don't think putting information that needs to have quotation marks and spaces in the URL is a very good idea. You should see if you are able to post things to the page instead of putting it in the URL.
If you really need to do it like this... try running the URL through encodeURIComponent() first, and use single-quotes around the URL in $.get().