Foren

AJAX calls degraded performance in Liferay 6.1.1

thumbnail
Sambuddha Das, geändert vor 9 Jahren.

AJAX calls degraded performance in Liferay 6.1.1

New Member Beiträge: 12 Beitrittsdatum: 11.07.14 Neueste Beiträge
I am trying to make jQuery AJAX calls in Liferay 6.1.1. Sometimes, during the trigger of the AJAX calls, the IE browser hangs giving a message "<IP> not responding".

I never faced this problem in 6.0 version.

All the AJAX calls are async calls
thumbnail
Olaf Kock, geändert vor 9 Jahren.

RE: AJAX calls degraded performance in Liferay 6.1.1

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
...and your question is?

Please give some steps to reproduce, e.g. a simple JS script, if necessary a simple backend (unless you access Liferay's JSON API). You can't expect a solution if you describe your problem as "something doesn't work".
thumbnail
Sambuddha Das, geändert vor 9 Jahren.

RE: AJAX calls degraded performance in Liferay 6.1.1

New Member Beiträge: 12 Beitrittsdatum: 11.07.14 Neueste Beiträge
Hi Kock

Sorry for the delay.

Please find the jQuery Code I am using for Ajax call

	Liferay.on('populate-coi-config', function(events){
        var $portletResourceURL = Liferay.PortletURL.createResourceURL();
		$portletResourceURL.setPortletId("configure_WAR_Testing");
		$portletResourceURL.setParameter('type', 'viewCredentialAssociatedToConfiguration');
		$portletResourceURL.setParameter('configurationName', events.configurationName.trim());
		
		$.ajax({
			async: true,
			type: "POST",
			url: $portletResourceURL.toString(),
			dataType: 'json',
			progressName: 5000,
			success: function(data){
				/* do Something */
		  }
		});
	});


My question is why the browser hangs during the initiation of a Ajax call? The portlet that are making this calls are added in private pages of a user. I am using Liferay 6.1.1
thumbnail
Sambuddha Das, geändert vor 9 Jahren.

RE: AJAX calls degraded performance in Liferay 6.1.1

New Member Beiträge: 12 Beitrittsdatum: 11.07.14 Neueste Beiträge
Hi

Any update?