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?
I think I have figured out what I need to do. Now all I have to do is write up the html/java code.
Javascript
Very important distinction
Yea. So far I'm trying to figure out how to trigger the url "http://localhost:8080/Exec?password=admin&script=Forward()" with a javascript button, but I don't want it to open the link. I only want it to trigger the script send.
Trying to use the ARC http server movement panel, I got the buttons in, but I'm not sure what to set the "onclick=" to do. JavaScript isn't really my thing. Original code:
Chrissi, I believe your the website/html coder/manager correct? Can you give me any pointers?
Anyone else that might b able to help?
Thanks.
Hmmm... If you don't want to navigate there, just send a signal, I would use jQuery $.get()
Thanks. My internet is down so I'm not going to be doing much work today.
Ok so my internets back online. Trying to get the camera stream to display on the webpage. Any tips? I've tried 5 different websites and all there suggestions don't work.
url of camera:
As for the controls, I looked at the jQuery.get, But I've never worked with it. How would I use it?
The API for jquery is very well documented and the answer to your question is on there. I could repeat what the documentation says however either a) you haven't read the documentation or b) you don't understand the documentation, in either case (as I wouldn't be able to rewrite it any clearer) it would be pointless to repeat it.
To be honest and a little blunt you have missed a few steps. Learn about javascript and the functions available, learn about jquery, read the api documentation. There are plenty of places online which have free tutorials and guidance for javascript and any other mark up languages you may need to use. Spend time reading those, it will be quicker than wasting time chasing your tail while you don't understand what you are trying to use.
As for the camera, it depends on the camera. Different makes and models (and even versions) have different urls. If the url you have for the camera doesn't work then it isn't the correct url or, best case scenario, you have the incorrect username & password combination. Again, there are many places online where these urls are listed. EyeSpy have a list of known urls for different manufacturers etc.
I'm using the url of the ARC camera stream.
So I read up on jquery, and used the following script.
But I couldn't get it to work. It isn't pushing the url to ARC.