web-tiki web-tiki - 1 year ago 123
Javascript Question

Joomla Ajax loading for contact form component

I am trying to implement ajax loading for the joomla 3.2.1 default contact form component.

I set a menu link to the contact form in the backend.

This is the HTML output :

<nav id="menu2">
<div class="moduletable">
<ul class="nav menu">
<li class="item-138"><a href="/contact">Contact</a>

and I have this div at the bottom of the page :

<section id="contact_form">

I implemented this Jquery code :

$('.item-138 a').click(function () {
return false;

The contact form loads well and my template override works. but how can I prevent loading the
content that comes with it?

tag, default scripts (mootools jquery...) and default css (

Can I do that with a template override? Is it even possibler?

Answer Source

Well there is this value that you attach to the get request.


so your request looks like


also you may want to make a copy of your view.html.php and rename it view.raw.php

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download