obtain enrol action/popup

obtain enrol action/popup

by oriol sanchez -
Number of replies: 2

Hi i'm trying to emulate the action of the Enrol button , when you click it apears a PopUp window,

i have the ajax call

$.ajax({
        url: '/aulamoodle/enrol/manual/ajax.php?id=15&sesskey='+sesskey+'&action=searchusers&search=&page=0&enrolid=40',
          success:function (data){}

});

data is an object with the information of the users that are not included in the course in html ( data.response.users.id ( for example for the id )).

i need the call to show the popup,like the standard button

can somebody help me ?

 

if have some questions about tell me

 

THANKS FOR ALL

Average of ratings: -
In reply to oriol sanchez

Re: obtain enrol action/popup

by Andrew Lyons -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi Oriol,

What are you trying to achieve and why?

The existing enrolment interface is written using YUI not jQuery. I'm confused as to what you're trying to do though. Clicking the enrol button can be done  by sythesiging the click event on the enrol button with YUI. But the query you have above is the IO call to retrieve the data *used* in the enrol interface. It's a result of the interface, not the creator.

Andrew

 

In reply to Andrew Lyons

Re: obtain enrol action/popup

by oriol sanchez -

I'm making a custom toolbar to use some actions without the tree menu. 

one of the actions is Enrolle an user. I need how to launch the standard popup  with my button

 

ths 4 all :D