You're already doing it.

What is your doubt, actually?



On Wed, Nov 7, 2012 at 7:39 AM, Ali Alroomi <aro...@gardeniatelco.com> wrote:
> hello  plz i need help i need t write web2py code into javascript ike the
> following my code plz any help with the this:
>
>
> $.fn.fancybox = function(options) {
>         $(this).data('fancybox', $.extend({}, options));
>
>         $(this).unbind('click.fb').bind('click.fb', function(e) {
>             e.preventDefault();
>
>             if (busy) return;
>
>             busy = true;
>
>             $(this).blur();
>
>             selectedArray    = [];
>             selectedIndex    = 0;
>             {{for i in db().select(db.Project.ALL):}}
>             var rel = $(this).attr('rel') || '';
>             var message = {{=i.CategoryID}};
>             var url = "?pro=" + escape(message);
>
>             if (!rel || rel == '' || rel === 'nofollow') {
>                 selectedArray.push(this);
>
>             } else {
>                 selectedArray    = $("a[rel=" + rel + "], area[rel=" + rel +
> "]");
>                 selectedIndex    = selectedArray.index( this );
>                 /*window.open(url, "_self");*/
>                 history.replaceState({}, "Title", url);
>
>
>             }
>
>
>
>
>
>
>             fancybox_start();
>
>             return false;
>         });
>
>         return this;
>     };
>
> --
>
>
>

-- 



Reply via email to