Loader not found in Jquery Dialog
Permalink
Hello all,
I have a page 'profil' in my dashboard for edit all my members.
For example, members have credits, and i have an attribute "credit".
For show credits in my single page, is simple,
I get attribute with object UserInfo.
But, for edit credits, i want create Jquery Dialog with a form.
In this page, i want show "You have ... credits",
I open a jquery dialog with my memberID with "GET", but in my page : "edit_credits", the class Loader not found and i can't call a new Object UserInfo :s
This page "edit_credits" is a simple php in my folder "elements",
please help me :)
Thank you !
I have a page 'profil' in my dashboard for edit all my members.
For example, members have credits, and i have an attribute "credit".
For show credits in my single page, is simple,
I get attribute with object UserInfo.
But, for edit credits, i want create Jquery Dialog with a form.
In this page, i want show "You have ... credits",
I open a jquery dialog with my memberID with "GET", but in my page : "edit_credits", the class Loader not found and i can't call a new Object UserInfo :s
This page "edit_credits" is a simple php in my folder "elements",
please help me :)
Thank you !
It sounds as if you could be calling your dialog php directly, so it is just a php file and not provided with a concrete5 environment.
The topics to read up on in the howtos and documentation are 'tools' and 'actions'. These both provide ways for an ajax loaded dialog to interact with the concrete5 environment. For security, you should also read up on the validation helper.
Also have a look at the 'ajax lessons' howto and associated addon (free). Its getting a bit dated now, though the principles still apply.
The topics to read up on in the howtos and documentation are 'tools' and 'actions'. These both provide ways for an ajax loaded dialog to interact with the concrete5 environment. For security, you should also read up on the validation helper.
Also have a look at the 'ajax lessons' howto and associated addon (free). Its getting a bit dated now, though the principles still apply.
Thanks you JohntheFish,
My solution is not good ? I don't understand exactly 'actions' and 'tools', how to use for example with my little subject ?
Sorry for my bad english, i'm french, but i do the best i can :)
My solution is not good ? I don't understand exactly 'actions' and 'tools', how to use for example with my little subject ?
Sorry for my bad english, i'm french, but i do the best i can :)
i move edit_credits.php in tools folder, and for my url href in my jquery Dialog, i add /index.php after baseUrl.
Result :
Thank you anyway and good day :)