Welcome, Guest
Username: Password: Remember me

TOPIC: Contact Form in Advert view

Contact Form in Advert view 4 years 3 weeks 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 4 years 3 weeks ago #5865

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 3010
  • Thank you received: 350
  • Karma: 46
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.128 seconds

Contact us

  No.2/A, Venkateshwara Nagar,
1st Main Road, 100 Feet Road, SBM Towers, Velachery,Chennai - 600 042,India.
 admin@jomclassifieds.com
 skype.jomclassifieds
 
 
Copyright © 2013-2019 Jomclassifieds.com. All rights reserved. The Joomla! name, and logo are used under a limited license granted in the United States and other countries.