I made good use of the metadata talk, I selected the script option of
embedding parameters.

But I wasn't really ready to start adding <script> tags before each <a
href> that I wanted to script...

so I went up the ancestor tree and look for the previous script tags,
then one gets extended into the next.

It seems to work pretty well.


$("a.url").click(function(){
        var obj = {url:this.href};
        $(this).parents().add(this).prev('[EMAIL PROTECTED]/json]')
                .each(function(){
                        eval('var data = ' + $(this).text());
                        jQuery.extend(obj, data);
                });
        div(obj); // do something
        return false;
});


it's on my play page http://cigar.dynalias.org/ under the images menu item.

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to