Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file jquery returns error

More
10 years 8 months ago #2988 by joelpr
Re: How to use ajax with this? was created by joelpr
Hi, Sorry to bump this old thread but I have the same issue. I managed to make ajax work but then after celebrating and having a drink I made some changes on the Enable Only Pages field and now it does not work. I reverted the changes I made but still no luck.

I think that ajax is working OK because beforeSend, Error and Complete functions are working but I get an error on jquery.min.js line 21 instead the success message.

I am using joomla 1.5 and jquery 1.6

Thanks, great plugin

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #2991 by joelpr
Replied by joelpr on topic jquery returns error
Hi, I am working with only one ajax call on my site and I think it is working but the jquery.min.js seems to be returning an error and I don't now how to fix it.

The funny thing is that I managed to work it out but after some time and one change on Enable Only Page fields and bam it does not work anymore.

Please can you help a desperate noob

THANKS!!!

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #2996 by admin
Replied by admin on topic Re: jquery returns error
Hello,
what is the content of your 'Enable Only Page' field?

Olivier.

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #2997 by joelpr
Replied by joelpr on topic Re: jquery returns error
I have tried the following
/index.php?option=com_content&view=article&id=196&Itemid=239
/index.php*

Since my site is not on root
/folder/index.php?option=com_content&view=article&id=196&Itemid=239
et al.

I discovered that everything works while I place a breakpoint on javascript code. So my js code is the following
jQuery.ajax({
		type: "get",
	       
	    	url: url,
	    	data: params,
	    	context: document.body,
		
		}).done(function(data){
			//console.log('done');
			alert('done');
		});

thanks

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #3001 by admin
Replied by admin on topic Re: jquery returns error
Can you tell me what you are trying to do with the 'enable in pages' field? Do you need the plugin to work only for a specific article? When is your javascript call triggered? In an article? In a module? Thanks for letting me know.

Olivier.

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #3003 by joelpr
Replied by joelpr on topic Re: jquery returns error
Hi,

I need to login to another site inside the same domain and user credentials (not joomla). So I made a js code to take the username and password fields from Joomla's login and send them via Ajax to the other page so it authenticates and the user can use the other page. What I am trying to put on the Enable Only Pages field are the pages where I have Joomla Login

as for now it only works with firefox

Please Log in or Create an account to join the conversation.