ID:161371
 
Is this how i link up a verb to a browser using HTML????

Also how do i get more pages in my browser???(

Pls dont do it for me tell me how to do i'd like to learn this not copy it)

<a href="?action=command;command=Refresh_Icon()">-Refresh Icon</a>

You need to use the Topic procedure for this.
It isn't just handled magically, you have to MAKE it call the verb.

I don't know what you mean by putting more pages in your browser though so...
Chrislee123 wrote:
Is this how i link up a verb to a browser using HTML????

No, that alone will not do. You need to override the Topic() procedure. Search around for help with this and also read the reference's documentation about it. There are also some Dream Makers (http://www.byond.com/developer/) articles on this.
In response to Keeth (#1)
Hmm so u guys dont know how to link a verb to a browser???
In response to Chrislee123 (#3)
We both just told you how you'd do it.
Overwrite client/Topic()'s action and make it execute the verb you give it.

There is no built-in function that'll just execute the verbs when you put the link parameters in a certain formation.
You have to use Topic() and create your own method of doing it.

Look in the reference.
You can also look for Topic related libraries, or posts in here pertaining to it.

I also suggest looking up hascall() and call()() in the reference.
In response to Keeth (#4)
Hmm your saying all this but u aint making sence so i cant just use a link i have to overide topic() but what the hell is topic() and how do i overide it?
In response to Chrislee123 (#5)
<a href='?action=reboot'>Reboot</a>


client
Topic(href,list/href_list)
world << "Calling Topic() for [src]."
world << "href: [href]"
world << "href_list: [list2params(href_list)]"
switch(href_list["action"])
if ("reboot")
world.Reboot()


It passes everything past the ? to client/Topic's first argument. (it's treated like a parameter)
Then it uses params2list to convert the parameters into a list, and passes the list to client/Topic's second argument.
In response to Keeth (#6)
Oh i get it ty lol took a while... xD well thanks for bearing with me and thansk for all the help u have given im sure lots of ppl will now be able to use that and they will thank u as well.
Chrislee123 wrote:
Is this how i link up a verb to a browser using HTML????

Also how do i get more pages in my browser???(

Pls dont do it for me tell me how to do i'd like to learn this not copy it)

<a href="?action=command;command=Refresh_Icon()">-Refresh Icon</a>
>

I strongly suggest you read the post I made for you a while back: [link]. The articles concisely explain how you can go about doing what you're asking.