[jQuery] Re: Dynamic Links

2009-07-17 Thread brian
On Fri, Jul 17, 2009 at 3:34 AM, Pradeep Chandrasekaran wrote: > > Hi Brian, > > This returns the id perfectly, but how to overlay for each id?? That depends on the overlay code. There are many ways to do that. If you have a function for positioning the overlay and loading the content of some div

[jQuery] Re: Dynamic Links

2009-07-17 Thread Pradeep Chandrasekaran
Hi mnaveed, Am also looking for the same solution. If you have overcome with this problem, pl. let me know the solution. Thanks, Pradeep On Jul 12, 9:46 pm, mnaveed wrote: > Hi, > I am new to JQuery, can anyone help how to generate dynamic links. I > have a loop which generate some links and f

[jQuery] Re: Dynamic Links

2009-07-17 Thread Pradeep Chandrasekaran
Hi Brian, This returns the id perfectly, but how to overlay for each id?? On Jul 13, 8:16 pm, brian wrote: > That looks like a mix of PHP & javascript. Try this: > > for($x = 0; $x < $items.length; $x++) > { > ?> >         Get > data > > ?> > > JS: > > $(function() > { >         $('a.Whatev

[jQuery] Re: Dynamic Links

2009-07-13 Thread brian
That looks like a mix of PHP & javascript. Try this: Get data JS: $(function() { $('a.Whatever').click(function() { alert($(this).attr('rel')); }) }); On Mon, Jul 13, 2009 at 4:54 AM, mnaveed wrote: > > sorry I did not clear my point, here is what

[jQuery] Re: Dynamic Links

2009-07-13 Thread mnaveed
sorry I did not clear my point, here is what i want to do, I am running a PHP for loop, which generates a table. In the table, I have a column in which links are generated with an onclick event and the item id is set as parameter, so it looks like this, for(x = 0; x Get data echo($str); this i

[jQuery] Re: Dynamic Links

2009-07-12 Thread brian
On Sun, Jul 12, 2009 at 12:46 PM, mnaveed wrote: > > Hi, > I am new to JQuery, can anyone help how to generate dynamic links. I > have a loop which generate some links and for each, an onclick event > is attached, calling a javascript method with some arguments. some > thing like this, > > for(x =