Welcome, Guest
Username: Password: Remember me

TOPIC: Contact Form in Advert view

Contact Form in Advert view 1 year 2 months ago #5862

Hi there,

I'm trying to reach something but I'm not able to it yet.

In Advert view, when PopUp too conctat seller I need to meake this:

If Message isnt in blank, then when send close popup and A message should appear with success.

So far, I have in JomClassifieds.js, in line 222 this:
$jomClassifieds(".send").on('click', function( ev ) {
	var msg =  $jomClassifieds("#message").val();
	if(msg) {
		$jomClassifieds(".jomcl-popup-"+modal_id).hide();	
		$jomClassifieds(".jomcl-popup-overlay , .jomcl-popup-"+modal_id).removeClass('active');
		alert ('Success');
	}else {
		alert ('Missing Message');
	}
});

All works fine, with alert message and closes pop up, but I always get 2 alert messages, with the right alert message but always two. Or two success or two missing.

In chrome debugger, I get:

Uncaught TypeError: Cannot set property 'innerHTML' of nullxmlhttp.onreadystatechange @ jomClassifieds.js:94

Can anyone help me on this?

Thanks!
The administrator has disabled public write access.

Contact Form in Advert view 1 year 2 months ago #5865

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2756
  • Thank you received: 291
  • Karma: 40
Dear Customer,

Kindly send your site URL, Joomla admin access and FTP details to This email address is being protected from spambots. You need JavaScript enabled to view it. . So that we can check and update you.

Thanks.
The administrator has disabled public write access.
Time to create page: 0.189 seconds