ID:272295
 
I want to create a popup window that from which the client will type his wanted name but i dont know how to do it?
can someone explain it to me...thanks ahead
http://www.w3schools.com/HTML/

Read that HTML tutorial.
In response to Howey
.<, I get the feeling he wants to know how to put HTML in alert boxes. I don't think you can put HTML in alert boxes, but their are alternatives. I suggest just using a library.
Look up the browse() and atom/Topic() procs, or just use input()
In response to Nickr5
Nickr5 wrote:
Look up the browse() and atom/Topic() procs

be better off just using an interface window
In response to Falacy
Well I assumed he wanted an html window as the title of the topic is 'HTML'
In response to Nickr5
this is an example of what i meant example:

mob
proc
StartChar()
var/msg={"
Your name:<input type="text" name="firstname">
<br>
<input type="submit" value="Submit" />
"}


now what?? how do i get the information the client fills in???
In response to Biond_coder
Biond_coder wrote:
this is an example of what i meant example:

> mob
> proc
> StartChar()
> var/msg={"
> Your name:<input type="text" name="firstname">
> <br>
> <input type="submit" value="Submit" />
> "}

>

now what?? how do i get the information the client fills in???

You're not actually sending that HTML to the client via browse() yet, nor do you have it inside a <form> tag that will submit it for you. My suggestion would be to take a look at the browse() and client/Topic() procs in the reference, and lookup on the Web how to handle forms in HTML. Also, there's this article which will explain how to use HTML and forms, links, etc. in BYOND.

Once you've read all that, just make sure your form tag has action="byond://" and method="get". Also, you will of course need a hidden field that includes a command or something so client/Topic() knows what you're trying to do.

Lummox JR