jQuery-Validation-Engine icon indicating copy to clipboard operation
jQuery-Validation-Engine copied to clipboard

"inline" message prompts

Open co-operation opened this issue 14 years ago • 9 comments

Did anyone had the requirement to do show the messages inline - that means no prompt box with an absolute position (sorry Cedric, I hope you will not kill me for that suggestion)? The current absolute position is great and much more difficult to implement than an inline solution. I used the absolute position in different project within the last years, currently I'm over a responsive page targeting mobile devices and there is no place to go for the prompt-boxes, either you can not see them on small screens, or they cover some important information. Display them inline and shift the following content down seems the only solution at the moment...

co-operation avatar Sep 02 '12 01:09 co-operation

well you can modify that in the css, they are now injected directly (after or before, not sure ) the input, maybe a nice idea would be adding css classes for themes

posabsolute avatar Sep 03 '12 14:09 posabsolute

right... did not saw your pull request lol will have a look

posabsolute avatar Sep 03 '12 14:09 posabsolute

The pull request is another issue.

But theming via css sounds great and is not to hard to implement. I could prepare some code and make a pull request if you like. #67 should be fixed, so that a dissable of the arrow works, hide it via css (display:none) would be a workaround, but not a clean solution...

co-operation avatar Sep 03 '12 14:09 co-operation

have 2 default themes would be really nice (current and inline) heh, if you would fix #67 that would be great, not sure it will be as easy as you think...

posabsolute avatar Sep 10 '12 18:09 posabsolute

This would be really useful, unfortunately it seems not possible purely with CSS. The main problem is that the message is injected to the first radio / checkbox of a group. There needs to be an option that allows the injection of the message after the last radio or checkbox.

jhadenfeldt avatar Sep 20 '12 15:09 jhadenfeldt

I see, not sure if this is going to be problematic with the positionning but yeah, it should be inserted after to follow the convention anyway

posabsolute avatar Sep 20 '12 19:09 posabsolute

Configurable would be the best I think. I'm a little buisy at the moment but if not already done within the next weeks I'll take care of that.

co-operation avatar Sep 20 '12 19:09 co-operation

inline has been added recently by a contributor

posabsolute avatar Nov 15 '12 12:11 posabsolute

@posabsolute : Can I know how to make use of this inline validation message displaying ??

som123 avatar Jan 23 '13 07:01 som123