Link to home
Start Free TrialLog in
Avatar of iscivanomar
iscivanomarFlag for United States of America

asked on

Can I use Ajax with Joomla 1.5.15?

I am planing to use Joomla to make web pages for some of my friends and I want to know if I can use Ajax with Joomla.

Thank you.
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Hello iscivanomar,

Why not? But you will need to build your own module.

Regards.
Avatar of iscivanomar

ASKER

I was just ready about Joomla yesterday and I decide to take a look of it.

I have XAMPP and Joomla install now and today I will like to create my first web page.

Could you send me an example of how to integrate Ajax in Joomla.

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
And getusers.php :

(replace localhost, mysql_user, mysql_password and database_name of course with your own values)
<?PHP 
        $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); 
        if(!$link) die('Could not connect: ' . mysql_error()); 
        if(!mysql_select_db('database_name'))die('Could not select database: ' . mysql_error()); 
 
        $result = mysql_query("SELECT id, username FROM jos_users);
 
        if(!$result) die('Could not query:' . mysql_error()); 
        echo json_encode(mysql_result($result)); 
        mysql_close($link); 
?>

Open in new window

Perfect, this is what I need to get started.

Have a good night.
Thanks for the points!