- Posts: 5
Postings
You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).
Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!
jquery returns error
- joelpr
-
Topic Author
- New Member
-
Less
More
IP: 70.45.67.214
13 years 2 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
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
- joelpr
-
Topic Author
- New Member
-
Less
More
- Posts: 5
IP: 70.45.67.214
13 years 2 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!!!
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!!!
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.181.228.28
13 years 2 months ago #2996
by admin
Olivier.
Replied by admin on topic Re: jquery returns error
Hello,
what is the content of your 'Enable Only Page' field?
what is the content of your 'Enable Only Page' field?
Olivier.
- joelpr
-
Topic Author
- New Member
-
Less
More
- Posts: 5
IP: 70.45.67.214
13 years 2 months ago #2997
by joelpr
Replied by joelpr on topic Re: jquery returns error
I have tried the following
Since my site is not on root
et al.
I discovered that everything works while I place a breakpoint on javascript code. So my js code is the following
thanks
Code:
/index.php?option=com_content&view=article&id=196&Itemid=239
Code:
/index.php*
Since my site is not on root
Code:
/folder/index.php?option=com_content&view=article&id=196&Itemid=239
I discovered that everything works while I place a breakpoint on javascript code. So my js code is the following
Code:
jQuery.ajax({
type: "get",
url: url,
data: params,
context: document.body,
}).done(function(data){
//console.log('done');
alert('done');
});
thanks
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.181.228.28
13 years 2 months ago #3001
by admin
Olivier.
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.
- joelpr
-
Topic Author
- New Member
-
Less
More
- Posts: 5
IP: 70.45.67.214
13 years 2 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
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
