\ref
doesn't seem to work.
ID:270832
Sep 23 2006, 5:52 am
|
|
How would I use locate() in Topic()?
|
In response to Justin B
|
|
Ops, didn't come out right. What I meant was, using locate() in the <a> part of Topic().
e.g.<br/> var/teleportloc = locate(href_list["teleport"]) |
In response to DivineO'peanut
|
|
world << "<a href=?action=teleportloc&teleportloc=\ref[locate(somewhere)]>click</a>" |
In response to Crashed
|
|
That doesn't work.
|
In response to DivineO'peanut
|
|
BUMP(tis me peanut!)
|
In response to FananaQ
|
|
BUMP(tis me peanut!)
|
In response to DivineO'peanut
|
|
You are looking for "teleport" and you have it stored as "teleportloc".
|
In response to Papoose
|
|
Whoops! Well, that was merely a typing mistake, it still occurs when the code is correct.
|
In response to DivineO'peanut
|
|
You need to post more of your code, including the whole Topic() proc, as well as where it is.
|
In response to Audeuro
|
|
Try this. I've tested it, and it works great.
var/list/telepoint_names = list() |
In response to DivineO'peanut
|
|
mob |
In response to DivineO'peanut
|
|
I do believe that your problem is that when a user clicks an URL like that, client/Topic is called as opposed to mob/Topic. To get it to call mob/Topic, you must send the src parameter.
mob |
Like that?