Open struts2-jquery dialog when a textfield is focused

I'm using the struts2-jquery plugin. I have a < sj:dialog > that contains a textfield. I want that textfield to launch another dialog box when focused. This new dialog box should also be rendered as an < sj:dialog > tag. What's the best solution for this task?


May be you can try to use a <sj:textfield> and its onFocusTopics attribute to fire the focus event, so that the <sj:dialog> with the same topic in its openTopics would then open.

BTW you could not use .dialog() because struts2jquery uses requirejs to retrieve the required js library at runtime only if these's existing sj components on your page.

You can overcome it by including a dummy <sj:dialog> in your page, setting it's display style to none.

Need Your Help

How to change "It's" to "It is" (without apostrophe) using str_replace?

replace preg-replace str-replace apostrophe apostrophe-cms

I want to replace from Facebook's relationships string "It's complicated" to other text.

Example webpage plays sound

html5 audio

I'm trying to create a very simple webpage for a native language course. What I want is very simple: I have text that when it's clicked will play the equivalent sound file. However I'm a newbie on ...