frankc
03-26-2009, 01:33 AM
I am attempting to obtain and parse returned data using AJAX. PHP is not available for use.
This is a bit unusual in that the values I need are obtained by querying a networked PTZ camera. A webpage/server exists within the camera as firmware with no way to add any file to the server. The data is obtained by querying the camera in this manner:
[icode]http://example.com/test-cgi/com/need.cgi?query=position[icode]
Typical results returned to the client are:
camera=1 pan=-88 tilt=8 zoom=2266 focus=514 iris=2259
There are actually three domains involved: One that holds the webpage (AJAX?) to be downloaded to the client. One in the camera firmware that holds the data. And the client.
I need to display the returned values within the querying webpage. I cannot figure out how to access the camera domain from the webpage obtained from a second domain such that I would then be in a position to parse the returned data.
The request needs to be "submitted" from within a function(), i.e. not from a user's press of a form button.
Any help would be appreciated (!!)
Thank you for your time,
Frank
This is a bit unusual in that the values I need are obtained by querying a networked PTZ camera. A webpage/server exists within the camera as firmware with no way to add any file to the server. The data is obtained by querying the camera in this manner:
[icode]http://example.com/test-cgi/com/need.cgi?query=position[icode]
Typical results returned to the client are:
camera=1 pan=-88 tilt=8 zoom=2266 focus=514 iris=2259
There are actually three domains involved: One that holds the webpage (AJAX?) to be downloaded to the client. One in the camera firmware that holds the data. And the client.
I need to display the returned values within the querying webpage. I cannot figure out how to access the camera domain from the webpage obtained from a second domain such that I would then be in a position to parse the returned data.
The request needs to be "submitted" from within a function(), i.e. not from a user's press of a form button.
Any help would be appreciated (!!)
Thank you for your time,
Frank