ID:149733
 
I'm trying to have a link in the browser call one of two verbs when clicked, passing the proper info to the verb. I was told that what I needed was to use Topic(), so off to the reference I went... This is what I came away with:

Under mob:
        Topic(href,href_list[])
switch(href_list["action"])
if("join")
src << "debug :P"
src.join(href_list["target"])
else
return..()


The link:
<a href='?src\ref[src];action=join;target=[CHAN.name]'>[CHAN.name]</a>


This, obviously, doesn't work. I don't get the debug message I stuck in the Topic() proc, and I don't get whisked away to another channel either... I wish the reference explained this a bit more clearly, explainging the little things about src, ref, etc... I mean, what the heck does
href='?src\ref[src];
mean???

~X
Read over Lummox Jr's minibrowser article on BYONDscape, it goes into detail about the Topic() proc(and other things).

Alathon
In response to Alathon
Yes, I'd remembered that after I posted. Thanx for the info, though. I have it working properly now.

~X :)

Oh, thanx to LummoxJR too!