migrating v3 to v4 &task=extra

gemlog 14 Feb, 2012
Wow! Is v4 ever different! Holy mac.

I've spent the day reading back through this forum to about June of 2011. I can see why Bob is tired. Clearly, I didn't read each one, but I was reading it pretty much all day after doing my logs, so I've read and bookmarked a lot of them.

After poking around a little the other day I was quite confused as to how the new wizards interacted with custom as there is a warning all the time for each choice. I first chose 'custom', but that seemed to preclude using the wizard at all (it doesn't, but only for the html), so I went down the wrong path of wizard-advanced and then found anything I changed in the custom code got over-written ;-) So, I've chosen to begin migrating by copy/pasting my old V3 html and hope everything else will be do-able from that 'custom' beginning?

$form->data vs. the v3 jrequest method is a quite important thing I learned from today's reading.

http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=2&t=40810 seems to discuss what I need to do next, but I installed the Gebetsanliegen form from the attachment and I can not see where the server-side php is from the ajax discussed is at all. I'm pretty lost at this point.

Where do I put all the code I wrote for task=extra from v3 into v4 and how do I call it?

For e.g. in v3 I had, in part:

    function fetchmp(pcode) {
        var url = window.location + '&task=extra&extraid=2&format=raw';
        var mp_scrape_v = pcode;
        var el_mp_email = document.getElementById('mp_email');
        var jSonRequest2 = new Json.Remote(url, {onComplete: function(mp_scrape){
            var el_mp_info = document.getElementById('mp_info');
            el_mp_info.innerHTML = mp_scrape.mpinfo;
            var fname = document.getElementById('mp_fullname');
            fname.innerHTML = mp_scrape.fullname;
            ... <snip>


Where can I put the php I was calling with extraid=2 above and how do I call it?
Max_admin 14 Feb, 2012
Just put it inside a "Custom code" action inside a "new event" (add a new event at the bottom of the "Events" area.

Then you can access the extra code using "&event=WHATEVER"🙂

Do you have any other issues ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gemlog 14 Feb, 2012
Thanks! You guys always reply so quickly.

> Do you have any other issues ?

I'm a bear of very little brain -- I'm sure I'll come up with something ;-)
In the mean time I have lots to play with. Thanks again max.
GreyHead 14 Feb, 2012
Hi gemlog,

Just in case you haven't spotted it the syntax for a Json call has changed in MooTools 1.3 so you may need to tweak that part of the code.

Bob
gemlog 14 Feb, 2012
Thanks Bob, I'm still reading my logs and haven't gone there again yet this morning, so good timing. I think I captured a bookmark on that yesterday and I'll be sure to look.

Regards, Paul

p.s. It's pretty great that you guys are 9 hours ahead of me. I go to bed with a question and nearly always wake up to an answer! :-)
This topic is locked and no more replies can be posted.