QSlidePaginator
I have created a paginator that generates jquery like slider for page picking on data grids. It also has a text box, in which you can write down what page number you want to jump on. It is useful if you have 20+ pages on data grid's.
Problem is that I couldn't get qc.pA postback call with parametars I wanted, so I've done string replace to format it as I want it to be. Not the cleanest solution, but it works well in all browsers.
I would really like if someone could tell me is there any other way to get pc.pA call with action parametar as js variable (this.value, etc.), because QCubed adds quotes around it, and then treat it as a string.
Since code related to slider is quite similar to enzo's QSlide plugin, I have used his plugin as a template.

Very cool plugin! I love it!
Can you do me a favor and do a couple things:
1) Check in your source code into QCubed /plugins folder in the SVN (details here: http://examples.qcu.be/assets/_core/php/examples/plugins/packaging.php)
2) Modify your example text to be a tad more specific to the QSlidePaginator (i.e. explain in the wording what the purpose of the new paginator is, talk about its use of jQuery, say that it's particularly useful for datagrids with lots of pages)
Also, idea for you: instead of the plus and minus on the left and right of the slider, you might want to put the page numbers (i.e. 1 and 17, if 17 is the last page). This will make the slider a tad more usable.
Awesone plugin dugo
Congrats
enzo
No problem, I'll do it... I have no time today, but until tomorrow it will be done.
But I created a plugin so you could easily install it and help me to create more elegant way to call AJAX and server post back calls, before making a final version of plugin (;
OK makes sense :) Thank you!
I'm most certainly not the QCubed Javascript pro, but there are others over here who are :-). I'm hopeful they'll help!
I'm still interested in making this plugin clean (:
as I can see, problem is that QAjaxAction's method RenderScript returns
<?phpreturn sprintf("qc.pA('%s', '%s', '%s', '%s', '%s');",
$objControl->Form->FormId, $objControl->ControlId, get_class($this->objEvent), addslashes($objControl->ActionParameter), $strWaitIconControlId);
?>
where third parameter of qc.pA is under quotes (similar thing is with QServerAction). Since it uses addslashes, it's not possible to escape them. I suppose you are not interested in changing this code, so action parameter could be js varibale, and not explicitly string?
I have changed a few things (including example page), and posted update in my fist post. This should work now.
BTW, why isn't possible to attach file in reply?
dugokontov, may I ask you to please upload your code to the QCubed SVN under /plugins, where the rest of the plugins are?
When you are done, can you please add info about the plugin to the Plugin Directory, and let me know? I'll then install your plugin onto the Examples site so that everyone can play with it.
Plugin has been committed, and wiki edited. Please, recheck if I did everything right, but I think it is OK. Also, feel free to edit text on wiki and examples, since, I believe you have better presentation skills. (: