Simplezoom and co: different behavior depending on editing from server (localhost) or from client :-(

Hi,

actually working with emoncms 8.3.5 on my "W7-home-server"

I made a "simplezoom"-visualisation in a dashboard.

Its working fine, if I open the dashboard with a browser on the computer, where wamp is installed. Opening the dashboard with a browser on a different Computer via my intranet, all other widgets are displayed, but not the simplezoom-widget.

--> firefox is not able to make a connection to localhost.

Sounds like it is looking on the wrong machine. Looking with <"inspect item"> (right mousebutton and Q on the firefox), I see, that there is a codeline, that has "localhost" instead of the IP-adress of the emoncms-server.

I appended a screenshot.

EDIT:
Changing online in the console the text "localhost" to "192.168.1.2" (that's the IP-adesss of my server), the simplezoom is displayed.

EDIT 2:
Tried 2 different PCs. Always the same problem.

brutzler's picture

Re: Simplezoom and co: different behavior depending on editing from server (localhost) or from client :-(

Hi,

spent 5 hours on that "problem", and have new infos:

I have seen, that the "src="http://......." is stored in the dashboard table in the mysql database.

And now the funny thing:

1.) editing the dashboard from a browser on my server (where wamp and emoncms is running)->

<div kwhd="46" power="42" id="30" class="simplezoom" style="position: absolute; margin: 0px; top: 40px; left: 40px; width: 400px; height: 580px;"><iframe style="width:400px; height:580px;" scrolling="no" marginheight="0" marginwidth="0" src="http://localhost/emoncms/vis/simplezoom?embed=1&amp;power=42&amp;kwhd=46" frameborder="0"></iframe></div>

2.) editing the dashboard from a browser on a network-client ->

<div kwhd="46" power="42" id="30" class="simplezoom" style="position: absolute; margin: 0px; top: 40px; left: 40px; width: 400px; height: 580px;"><iframe style="width:400px; height:580px;" scrolling="no" marginheight="0" marginwidth="0" src="http://192.168.1.2/emoncms/vis/simplezoom?embed=1&amp;power=42&amp;kwhd=46" frameborder="0"></iframe></div>

After figured out this, it is obviously, why the visualisation was only running on the server.

==> Is there something wrong on my server, or can anybody else confirm this issue???

And this means, you cannot import/export this dashboards on different servers??

EDIT:

My "mistake" was, that i opended emoncms on the server with "localhost/emoncms" For the future I will strictly use the IP-adress and take distance from "localhost"

Olivier's picture

Re: Simplezoom and co: different behavior depending on editing from server (localhost) or from client :-(

If you want it to work on a local host or on a other computer you can edit your dashboard and remove http://ip and let only the /emoncms/...

Paul Reed's picture

Re: Simplezoom and co: different behavior depending on editing from server (localhost) or from client :-(

This has been flagged up before, and is due to emoncms using absolute url's instead of relative url's.

Paul

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.