| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
customizing orders_list with colors | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
Re: customizing orders_list with colors
I doubt you can find any documentation on the "core.microhandlers.add" function in Internet - this is a new piece of code that exists in X-Cart 5 only.
As for the source code - there is a lot of *.js files using the "core.microhandlers.add" function in the skins/admin/en/ and skins/default/en/ directories.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#12
|
|||||||||
|
|||||||||
Re: customizing orders_list with colors
Quote:
yes and I can pick up some of the details from that, but I was hoping someone had gotten around do doing a write up on how to properly use this function, for the wiki and for module authors... as near as I can tell from looking at the console via the browser developer tools, I want my script to fire *after* 'list.model.table.initialize' mediator's event, in specific (which fires off after page load, post-search, and post-paginate) but I cannot tell by looking at the code, how to ensure my code fires in the correct order with the other scripts on the page using this
__________________
-- Scott Godin |
|||||||||
#13
|
|||||||||
|
|||||||||
Re: customizing orders_list with colors
Hello Scott,
Did you try to use the microhandlers function? I believe it does exactly what you need - it looks for the specified jQuery selector after every page load / ajax reload and triggers the given JavaScript function over the found element. Just make sure that you load your .js file with your code through getJSFiles() method of the PHP class that handles the widget that you need.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#14
|
|||||||||
|
|||||||||
Re: customizing orders_list with colors
Quote:
if I'm reading things aright from the debugging console, the widget is TableItemsList, but since this is event-based programming, how do I determine WHEN my script fires for that widget, when I need it to fire AFTER certain other events have occurred? how do I specify that ? Just for the purpose of experimentation, how do I ensure that a script only fires immediately after 'list.model.table.initialize' mediator's event? My point is, 'trying to use the microhandlers function' without more than cursory knowledge of its usage, is not likely to produce useful results, since i have no current knowledge of how to determine exactly where in the chain of events mine will fire.
__________________
-- Scott Godin |
|||||||||
|
|||
X-Cart forums © 2001-2020
|