Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Slide extension not working for me.

phpMyEdit General     Slide extension not working for me.
Odoslať novú tému   Odpovedať na tému    
 
wfajber     Založený: 06.07.2006   Príspevky: 3  
Príspevok Zaslal: 2006-07-08 19:40
Návrat hore  Odpovedať s citátom     

I have been trying to use the slide extension, but when I can't navigate Prev, or Next, (or any of the buttons for that matter).

My first question is does it work for everyone else or is it broken? I did get the latest from CVS.

I have been trying hard to see where I could go wrong, and I have added many var_dumps and echos. I notice that in the phpMyEdit-slide class, the variable navop does not seem to be set, but it is set when you are not using the extension. Maybe this is a clue.

 
wfajber     Založený: 06.07.2006   Príspevky: 3  
Príspevok Zaslal: 2006-07-14 19:41
Návrat hore  Odpovedať s citátom     

After staring at the slide extension code for a long time, I could not figure out how the variables that defined the options were being populated. The slide extension looked great, but it would not move prev or next and it appeared to me that the variables

[ext][prev]
[ext][next]

were not getting set on the button operation.

I have rewritten some of that code, and it works now. There was a comment

// TODO: classify this table and cells

where I suspect the parent function was improved, but the slide extension class hadn't caught up.
I have not programmed seriously for 10 years, so my code is quite, ahem, hacky. I will clean it and post it after the weekend.

For interest, the original extension overrode function display_record_buttons()

I got rid of that but overrode
function display_button(),
function form_end() , hack - uggh
var $default_buttons

as well as adding a few variables and hacking execute().

I only mention it because I was so pleased how smoothly the override worked in the end .

 
wfajber     Založený: 06.07.2006   Príspevky: 3  
Príspevok Zaslal: 2006-07-14 20:06
Návrat hore  Odpovedať s citátom     

I was also able to use the slide extension to extend the -mce-cal extension, so I can edit with pop-up calendars.

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov