On Feb 15, 2:16 am, Brice Burgess <[EMAIL PROTECTED]> wrote:
> I've updated jqModal to revision 6. Changes include;
<snip>
> + Fixed ajax "attribute selector". This allows the for dynamic
> definition of remote content. e.g.;
>
> <ul>
> <li><a href="ajax/page1.html" class="remote">Page1</a></li>
> <li><a href="ajax/page2.html" class="remote">Page2</a></li>
> <li><a href="ajax/page3.html" class="remote">Page3</a></li>
> </ul>
>
> $('#ex5a').jqm({trigger: '.remote', ajax: '@href'});
>
> A demonstration is given in example 5.
<snip>
Now Ok. But, previous content presists for a while and no loader
image for the other links. IMHO, the modal dialog's div order should
be changed.
I see the @title I have proposed is implemented in different
manner. IIRC, previously itself similar @title, @name was working.
But, I was talking about unobtrusive modal dialog whose Title (title
of the modal dialog) should be controlled with the title attribute.
So, I was actually proposing:
ajax: '@href',
title: '@title' // title of the dialog could be injected via <a
title="foo">...
Some more proposes:
1. Provision for prefetch. And again the attribute could be injected
with say <a href="foo.php" class="remote prefetch".. and...
prefetch: true/false,
2. Caching too? Like:
<a href="foo.php" class="remote prefetch cache".. and...
cache: true/false,
I'm not sure about the hash array; quick glance shows that you may
wanted to add cache?--but doesn't work actually.
3. Helper function $.jqm()-- so that alert() could be redirected to
$.jqm() easily
4. (2) will also solve the need for the reverse syntax--currently we
need to give the trigger selector as a property; often I need to do
something like:
$("a.remote, a.foo, a.foo2, input#sumbit").click(function() {
//show modal dialog with the $(this) attribute or so...
});
BTW, I have also noticed the close button is sometimes quirky.
Ref/Previous discussion: <news:
[EMAIL PROTECTED]> ( http://
groups.google.com/group/jquery-discuss/msg/05b9d00b02d6fda6 )
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/