Community discussions

MikroTik App
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

most urgent answer wanted

Sat Jun 04, 2011 4:42 pm

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
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Re: most urgent answer wanted

Sat Jun 04, 2011 7:24 pm

waiting for answer...
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: most urgent answer wanted

Sat Jun 04, 2011 8:37 pm

can you please tell us how can i do this.
You cannot do that at all.
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Re: most urgent answer wanted

Sat Jun 04, 2011 8:48 pm

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.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: most urgent answer wanted

Sat Jun 04, 2011 8:52 pm

You can either use the API from an external server, or you can run commands via Winbox or the command line.
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Re: most urgent answer wanted

Sat Jun 04, 2011 10:38 pm

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.
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Re: most urgent answer wanted

Sat Jun 04, 2011 10:41 pm

can we do this with javascripts?
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Re: most urgent answer wanted

Sun Jun 05, 2011 8:24 am

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.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: most urgent answer wanted

Sun Jun 05, 2011 8:30 am

There is no JavaScript API library. You would have to build one yourself.
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Re: most urgent answer wanted

Sun Jun 05, 2011 8:31 am

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.
ok. and any solution of above problem according to you.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: most urgent answer wanted

Sun Jun 05, 2011 8:33 am

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/viewtopic.php?f=2&t=52184

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