[jQuery] Re: Noob question: How to access a PHP variable and append it to the html?

2007-11-30 Thread Gordon
Your best approach would be to write a PHP script that serves data in XML or JSON format and then invoke the script from a $.ajax call in jQuery. Then you process the data you get back and insert it into your document as appropriate. Sorry for being vague, but without more information that's

[jQuery] Re: Noob question: How to access a PHP variable and append it to the html?

2007-11-30 Thread Giovanni Battista Lenoci
There are a lot of way to take data via ajax. I always use this one: Client side: data = param1=fooparam2=bar $.ajax({ type: POST, url: ajax.php, data: data, dataType: json, success: function(data_result) { FillResult(data_result) } // on success the

[jQuery] Re: Noob question: How to access a PHP variable and append it to the html?

2007-11-30 Thread Wizzud
On Nov 30, 5:55 am, Action [EMAIL PROTECTED] wrote: On Nov 29, 8:02 pm, Wizzud [EMAIL PROTECTED] wrote: For example ... ? Sorry, maybe that was a bit too cryptic. Can you provide an example of your PHP data? Can you provide examples of the before/after affected HTML? Can you provide _any_

[jQuery] Re: Noob question: How to access a PHP variable and append it to the html?

2007-11-29 Thread Wizzud
For example ... ? On Nov 29, 9:34 pm, Action [EMAIL PROTECTED] wrote: I have a PHP array of data I want to be able to append to the html using jquery and ajax. I want to be able to add different elements of the array to different parts of the page. How can I go about doing this?

[jQuery] Re: Noob question: How to access a PHP variable and append it to the html?

2007-11-29 Thread Action
On Nov 29, 8:02 pm, Wizzud [EMAIL PROTECTED] wrote: For example ... ? On Nov 29, 9:34 pm, Action [EMAIL PROTECTED] wrote: I have a PHP array of data I want to be able to append to the html using jquery and ajax. I want to be able to add different elements of the array to different

[jQuery] Re: Noob question: How to access a PHP variable and append it to the html?

2007-11-29 Thread bingo
hi you can do it this way $document({ $(div#mydiv).html(No of Users: + ?php echo $users; ?); }) On Nov 30, 12:55 am, Action [EMAIL PROTECTED] wrote: On Nov 29, 8:02 pm, Wizzud [EMAIL PROTECTED] wrote: For example ... ? On Nov 29, 9:34 pm, Action [EMAIL PROTECTED] wrote: I