Reply by "kar...@yahoo.com [rabbit-semi]"●October 27, 20172017-10-27
Hi, Dear Tom:
In addition, Internet Explorer does not have access to
window.location.origin, already fixed this as listed below, but I do not know
how to integrate the HTML.
Reply by "kar...@yahoo.com [rabbit-semi]"●October 27, 20172017-10-27
Dear Tom,
That's the right solution, thanks for you and Phil D help :)
It's almost possible to work as follows, just connect to the web camera
that page address less : sign, as it is http//218.161.47.233:1234, a little bit
strange to me ..
Reply by "Phi...@gmail.com [rabbit-semi]"●October 26, 20172017-10-26
here is s a function i just tested.
function load_my_page(port_number){
location.href="http://"+window.origin+":"+port_number
}
On 26 October 2017 at 09:04, k...@yahoo.com [rabbit-semi] <
r...> wrote:
> Hi,Dear Tom:
>
> Yes, my IP-CAM on another port of the same IP.
>
> In the Java Script, use of window.location.href (in addition to href, also
> tried assign, host, hostname, origin or replace ..), but it still failed as
> http://219.162.48.234/:1234 , that's unable to enter the camera page.
> Is there any other way? thanks :)
>
> Kara_liao
>
Reply by "kar...@yahoo.com [rabbit-semi]"●October 26, 20172017-10-26
Hi,Dear Tom:
Yes, my IP-CAM on another port of the same IP.
In the Java Script, use of window.location.href (in addition to href, also
tried assign, host, hostname, origin or replace ..), but it still failed as
http://219.162.48.234/:1234 , that's unable to enter the camera page.
Is there any other way? thanks :)
Kara_liao
Reply by "kar...@yahoo.com [rabbit-semi]"●October 26, 20172017-10-26
Hi, Phil:
About the location:1234 that the Java Script, assuming localhost is IP
222.222.222.222, the implementation of the following JS results are
http://222.222.222.222http://222.222.222.222/:1234, due to the site address has
added a / symbol, so can not enter the camera page, do not know is there a way
to fix? Thanks !!
javascript h2>
Reply by "Phi...@gmail.com [rabbit-semi]"●October 23, 20172017-10-23
you could use javascript to insert the host name you used to access the
device. if you are already connected remotely. Otherwise you may need to
resolve the external ip address and then insert this variable into the page.
window.location.href=window.location+":1234"
Phil
On 23 October 2017 at 18:23, Tom Collins t...@tomlogic.com [rabbit-semi] <
r...> wrote:
> What if you just use “/“ as the HREF in
the anchor tag? Or is the IP-CAM
> on another port of the same IP?
>
> You can use ifconfig() to retrieve the IP address of the Rabbit’s
Ethernet
> interface, and embed that in a dynamic HTML page, but the first solution
> should be easier/simpler.
>
> -Tom
> On Oct 23, 2017, at 12:50 AM, k...@yahoo.com [rabbit-semi] <
> r...> wrote:
>
> Hi, I would like to RCM37xxx device connect to the camera page through the
> web page as follows HTML syntax:
>
> Go to the IP-CAM page But browser is
only shown http://localhost:1234/, not
> http://218.161.47.233:1234/
> However, this localhost name must apply to any one of the real IP, my
> IP-CAM address is http://218.161.47.233:1234/, if I take RCM37xxx device
> to another location with not the same as IP, for example -
> http://219.162.48.234:1234/
> How can i ?
Reply by "Tom...@tomlogic.com [rabbit-semi]"●October 23, 20172017-10-23
What if you just use “/“ as the HREF in the anchor tag? Or is the
IP-CAM on another port of the same IP?
You can use ifconfig() to retrieve the IP address of the Rabbit’s Ethernet
interface, and embed that in a dynamic HTML page, but the first solution should
be easier/simpler.
-Tom > On Oct 23, 2017, at 12:50 AM, k...@yahoo.com
[rabbit-semi] wrote:
>
> Hi, I would like to RCM37xxx device connect to the camera page through the web
page as follows HTML syntax:
>
> Go to the IP-CAM
page But browser is only shown http://localhost:1234/
, not http://218.161.47.233:1234/
However, this localhost name must apply to any one
of the real IP, my IP-CAM address is http://218.161.47.233:1234/
, if I take RCM37xxx device to another location
with not the same as IP, for example - http://219.162.48.234:1234/
How can i ?
>
Reply by "kar...@yahoo.com [rabbit-semi]"●October 23, 20172017-10-23
Hi, I would like to RCM37xxx device connect to the camera page through the web
page as follows HTML syntax: Go to the IP-CAM page