[jQuery] Re: Passing a PHP variable to jQuery

2009-06-01 Thread Mike C
Thanks for the replies! :D On Jun 1, 1:12 pm, Isaac Gonzalez wrote: > I personally would just use jQuery's .get() method. Then with your PHP   > pages you can use xml, json, or html snippets. I tend to use html   > snippets. > > i.e. > > HTML > View Bad   > Ass Page > > > JAVASCRIPT - > $('#Bad

[jQuery] Re: Passing a PHP variable to jQuery

2009-06-01 Thread Isaac Gonzalez
I personally would just use jQuery's .get() method. Then with your PHP pages you can use xml, json, or html snippets. I tend to use html snippets. i.e. HTML View Bad Ass Page JAVASCRIPT - $('#BadAssPage1').click(function(){ var pagelink = $('#BadAssPage1').attr('href');

[jQuery] Re: Passing a PHP variable to jQuery

2009-06-01 Thread GravyFace
On Mon, Jun 1, 2009 at 3:37 PM, Mike C wrote: > > So I'm going to be printing a list of items from a database, and with > each item there will be a link printed with it. Essentially, I want > something like Load, > except I want the link to use ajax. So in my scripts.js file I'll have > something