most urgent answer wanted

Hello,

i want to enable and disable user from html page. actually i want to execute api command from html. i want to enable or disable user with api command from html file in mikrotik. I don’t want to host file on other host. i want to place file in routeros and want to enable and disable or want to execute api commands from html page.

can you please tell us how can i do this.

waiting for answer

waiting for answer…

can you please tell us how can i do this.

You cannot do that at all.

Hello fewi,
thanks for answering. can you please tell me in short can we execute api command or any command to disable user in mikrotik routeros. if not in html then in which format.

You can either use the API from an external server, or you can run commands via Winbox or the command line.

fewi, actually we don’t want to use an external server. We can run commands from winbox but i want to design this thing on website. If we can add user from webbox then i am sure we can do this.

can we do this with javascripts?

in here our ip is dynamic we can’t redirect or execute command from the online server. this is main problem so we want to use files in mikrotik routeros.

i hope you understand our problem now.

There is no JavaScript API library. You would have to build one yourself.

ok. and any solution of above problem according to you.

No. I don’t think what you’re trying to do can be done at all.

Have you considered just using webfig with skins? http://forum.mikrotik.com/t/webfig-skins-tutorial/47486/1

Or using a virtual machine hosted on the router as an external server?