I like the sound of this idea if it can be made to work :)
Do you have an example of what you're talking about David?
Luke
DavidIcreate wrote:
>
> Klaus Hartl schreef:
>> David Duymelinck schrieb:
>>
>>> Klaus Hartl schreef:
>>>
>>>> * Automatic type detection depending on type of element, respectively
>>>> on
>>>> type of link:
>>>> image: href is an image
>>>> content: href is a hash
>>>> ajax: href is internal and not image
>>>> iframe: href is external and not image
>>>> confirm: element is form
>>>>
>>>>
>>> Is it possible to bind the confirm to the button and not to the form,
>>> that way there can be different confirms for a form. I'm thinking about
>>> a datagrid with two delete buttons, one to delete a row and one to
>>> delete all the data.
>>>
>>
>> Thats not really possible, because you can always submit a form by
>> hitting enter. Besides that it won't degrade graceful, e.g. I'd consider
>> that obtrusive - a button (type button) without JS is useless.
>>
>> Can't you just use two forms?
>>
> The way i use the buttons in php is by coding different behavior
> according with the button names so they are not useless without JS but
> because of the greater loss of data deleting the datagrid i style the
> confirm box more in your face then the delete row confirm. so i was
> thinking something in the line of
>
> $('#form').thickbox({confirms: ['#deletedate': '#confirmdeletedata',
> 'button.deleterow': '#confrimdeleterow']});
>
> it is just something i was wondering about when i saw the demo i don't
> know if it's a useful extension of the code for others. Another use may
> be a submit and a reset button.
--
View this message in context:
http://www.nabble.com/ANNOUNCE%3A-Thickbox-Reloaded-alpha-tf3293077.html#a9179110
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/