Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

documentation on core.microhandlers.*

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 01-14-2016, 01:16 PM
  Scott Godin's Avatar 
Scott Godin Scott Godin is offline
 

Advanced Member
  
Join Date: Aug 2014
Location: /diagonally parked in a parallel universe/
Posts: 68
 

Default documentation on core.microhandlers.*

so it's been a while since XC 5 debuted and I would be interested to know whether there has been any new and detailed documentation made available on this feature so that we can start learning how to use it properly.
__________________
--
Scott Godin
Reply With Quote
  #2  
Old 01-19-2016, 10:58 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: documentation on core.microhandlers.*

There is no documentation on the function, but the usage is pretty simple:
Code:
core.microhandlers.add( 'Your unique handler name', 'jQuery selector', function (event) { // Your function goes there } );

Use it in your .js files loaded through the getJSFiles() method.

Every time X-Cart 5 loads a page or inserts an AJAX result into the page it looks through added jQuery selectors and runs handler functions configured for matching microhandlers.
__________________
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
Reply With Quote
  #3  
Old 01-19-2016, 12:19 PM
  Scott Godin's Avatar 
Scott Godin Scott Godin is offline
 

Advanced Member
  
Join Date: Aug 2014
Location: /diagonally parked in a parallel universe/
Posts: 68
 

Default Re: documentation on core.microhandlers.*

well here's hoping we get some writeups of real-world example usages and ways to leverage this, soon, because while I understand and am familiar with every word you used, I understood about half of what you meant when you put them in that order, in such a way that I can immediately turn around and start using it intelligently.
__________________
--
Scott Godin
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:10 PM.

   

 
X-Cart forums © 2001-2020