Runing server into a frame...

David8 years ago

Hi Anton,

I'm trying to run the server into set of frames

Index.html looks as this:

<frameset rows="60,*" frameborder="NO" border="1" framespacing="0">
  <frame src="barra.html" name="topFrame" scrolling="NO" noresize>
  <frame src="main.html" name="mainFrame">
</frameset>

topFrame has a form that fires the traccar server into the mainFrame
This is the code:

<form name="form1" action="http://neoespecialista.ddns.net:8082/?locale=es" target="mainFrame">

When i run the program in any browser, frameset are ok, but when i press the button of the form, Traccar server is partially loaded, and never goes active.

Any ideas ?

Thanks in advance,
David

Anton Tananaev8 years ago

I would recommend to check browser developer console to see what happens.

David8 years ago

Thanks Anton,

After change:

<meta http-equiv="Content-Type" content="text/html;charset=utf-8">

All works fine.

Another question:

Asuming i'm not java programmer, and only know a bit of javascript:

I need to center the map according the user position. Are available any service into the main program that allow do this?

if not, If i try to do this using javascript (using a button from the top frame), is possible inject the code to the map to move it?

Any idea?

Infinitely grateful,
David

shinjimasao8 years ago

hello everyone.
Now I hope to use traccar server.
But I have some issues.
First I add the device in admin account.
But I can't delete the device information.
Why?

shinjimasao8 years ago

Hello Anton.
I hope to use Traccar App.
But I meet some issues.
Can you help me?

Anton Tananaev8 years ago

@David, it has to be done using JavaScript. Java has nothing to do with map.

@shinjimasao, your question is not relevant to the topic.