223
Views
3
Comments
Solved
[Event System] Triggering events after the screen is loaded
Question
event-system
Web icon
Forge asset by Leonardo Fernandes

Hi,

I need to trigger some event client side. I tried to use the method suggested in the documentation:

<jQueryObject>.lfs().trigger(<event name>);

but it only reports an error: Object doesn't support property or method 'lfs'

I presume that the name is "LFS" (but lower case, of course).

What can I do wrong?

Finally it is to be triggered just after the screen is loaded ( $(document).ready(function()….) but when I try to do it using just a button the result is the same.

Regards

Tomasz


2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Tomasz, the latest version of Event System is under restructuring and doesn't support client side events yet.

However, I left all of the code from the previous version, under Deprecated folders. If you reference the EventHandler web block from the Deprecated folder, you should still be able to use client side events. Your javascript code seems correct.

2018-10-17 18-00-19
Carlos Gonçalves

Can you try put the javascript code inside a javascript webblock in the end of the screen to see it's effect

you can find javascript wb in the webpaters or just use an expression that start with "<script>"+yourcode+"</script>" dont forget to use escape content.

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Tomasz, the latest version of Event System is under restructuring and doesn't support client side events yet.

However, I left all of the code from the previous version, under Deprecated folders. If you reference the EventHandler web block from the Deprecated folder, you should still be able to use client side events. Your javascript code seems correct.

UserImage.jpg
Tomasz M Lipinski

Hi Leonardo,

OK, this makes sense. Now I don't need this feature for my production solution - it was just a test of possibilities. I hope you will be quicker than me:-)

Thanks and regards

Tomasz

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.