RPTools.net

Discussion and Support

Skip to content

It is currently Thu Jun 22, 2017 5:21 pm 






Reply to topic  [ 2 posts ] 

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Dragon
 
Joined: Wed Aug 29, 2007 12:18 am
Posts: 756
 Post subject: Default behavior of dialog() and <input>
PostPosted: Sun Apr 26, 2009 2:19 am 
I've been reading Introduction to Dialogs and Frames.

I'm switching from using Wiki: input() to using Wiki: dialog(), and I'm missing some behaviors that input() had. Maybe someone who knows more about HTML can help me get them back, and if not, consider them feature requests. =P

1. With input(), when you tab or click on a textbox, all of the text is automatically highlighted. With HTML <input type="text">, the cursor is placed where you click and nothing is highlighted. I like auto-highlight more.

2. With input(), the focus automatically starts on the first textbox. With <input> forms, I can't seem to get that to happen, even if I set a tabindex (which doesn't seem to do anything in MapTool dialogs).

3. With input(), if I open a window and immediately press enter, it is executed. With the dialog, pressing enter does nothing until I focus on a textbox (it doesn't even do anything if I focus on the submit button). This probably has something to do with #2.

(edit)
4. With input(), a cancel button appears next to the OK button. Unfortunately I cannot get <button> to work with the form, and I don't like the default placement of the "Close" button (it's impossible to make it in-line with the Submit button), so I turn it off with input="1".

_________________
My D&D 4e Campaign FrameworkMy Shadowrun 4e Campaign Framework
RPGA#: 5223846427 — Skype: Veggiesama — Fear the ferret.


Top
 Profile  
 
User avatar  Offline
Cave Troll
 
Joined: Sun Jan 05, 2014 9:28 am
Posts: 32
 Post subject: Re: Default behavior of dialog() and <input>
PostPosted: Sat Apr 22, 2017 8:10 am 
Hello everyone!

I am having the exact same problem, and it is annoying.

You cannot adapt the "input()" method to the mood of the game (backgroundcolor and the likes), hence i would like to use "dialog()".
But using "input()" you get quick responsive dialogues, while using "dialog()" i cannot set the curser to the most commonly changed field, so that you usually (like with "input()") would just have to type a number and hit enter.

Since the original Post is old, is there a solution now?

If not, i would like to ask for the html code of autofocus="autofocus" and tabindex="" to be implemented.

With kind regards,
Clyde.


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 2 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 2 guests





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman