Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Using cWindowShow popup

9 years 8 months ago
  • realtec's Avatar
    Topic Author
  • realtec
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Licenses:
JomSocial Expired

Hello Support

I am very new to JomSocial but I am trying to add a popup to a page using the below routine from your documentation.

var ajaxCall = 'jax.call("community", "events,ajaxGetLoction")';
cWindowShow(ajaxCall, '', 450, 300);

in the file c:\xampp\htdocs\test\components\com_community\controllers\events.php the routine below is working to generate the correct html.
public function ajaxGetLoction()
{
	if (!COwnerHelper::isRegisteredUser()) {
		return $this->ajaxBlockUnregister();
	}

	$objResponse = new JAXResponse ();

	if(empty($notiHtml)){
		$notiHtml .= '<div class=" col-md-1">';
		$notiHtml .= '	SHOW SOMETHING...';
		$notiHtml .= '</div>';
	}

	$objResponse->addAssign('cwin_logo', 'innerHTML', 'LOCATION');
	$objResponse->addScriptCall('cWindowAddContent', $notiHtml);

	$objResponse->sendResponse();
}


however, the JavaScript file http://localhost/test/plugins/system/azrul.system/pc_includes/ajax_1.5.pack.js receives an invalid string and throws an error .
//make sure that the result text is a valid value
try {
	if(text !== undefined && text !== null){
		if(text.length > 0){
			text = text.substr(responseLength, text.length-responseLength);
			eval( text );
			responseLength = xmlhttp.responseText.length;
			lastResponseLength = text.length
			if(lastResponse != text) {
				jax.processResponse(text);
			}
			lastResponse = text;
			//console.log('TEXT:' + text);
		}
	}
}catch (e) {
	//sometimes the response is chunked, this not a valid string to be eval()'ed.
	//lets just ignore this
}

After $objResponse->sendResponse() is called, where should I look first to find the html output sent by the php routine? How can I best troubleshoot and resolve this issue?

Thanks
realtec


Note: no online support needed.

9 years 8 months ago
Licenses:

Hi.

To post request like this you need to have access to Developers Forum... and hold JomSocial Developer subscription.
As on Support Forum we don't support development requests.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
9 years 8 months ago
  • realtec's Avatar
    Topic Author
  • realtec
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Licenses:
JomSocial Expired

To post request like this you need to have access to Developers Forum... and hold JomSocial Developer subscription.
As on Support Forum we don't support development requests.


Hello and thanks:
What is the "Developers Forum" and how does one purchase a subscription?

9 years 8 months ago
Licenses:

Hi.

Take a look here: www.jomsocial.com/products/products/4-di...social-developer/215

"Developer forum" is a hidden forum section that could be accessed only by user that holds JomSocial Developer subscription.
On that forum our developers are advising in Jomsocial advanced development.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW