Open DavidCramer opened 10 years ago
Thinking of remove jQuery dependance
If you're still working on this, it would be cool to be able to remotely load templates.
Hey. Totally am. And you can remotely load templates using data-template-url="url"
It also preloads templates on page load.
Ok wicked awesome.
I’m playing around with your code library right now, expanding on it where I can. I’ll happily share it back with you if it’s any improvement :)
P.
On Mar 7, 2016, at 11:56 AM, David Cramer notifications@github.com wrote:
Hey. Totally am. And you can remotely load templates using data-template-url="url"
It also preloads templates on page load.
— Reply to this email directly or view it on GitHub https://github.com/Desertsnowman/BaldrickJS/issues/15#issuecomment-193343760.
Please do! This was my first exploration with javascript so there is a lot of hackery. Any help would be much appreciated.
Do you have callback hooks in your code? I want to trigger some stuff on completion — if not, I’ll start building that.
P.
On Mar 7, 2016, at 12:31 PM, David Cramer notifications@github.com wrote:
Please do! This was my first exploration with javascript so there is a lot of hackery. Any help would be much appreciated.
— Reply to this email directly or view it on GitHub https://github.com/Desertsnowman/BaldrickJS/issues/15#issuecomment-193361377.
data-callback="callbackfunction" is called regardless of success or fail. It's passed the result, element, event. Replaces data-target attribute.
data-success="function" is called on success after target is applied.
Personally this library works pretty well and covers a lot of my needs. Which is why I haven't updated it in a while.
However I think much had changed in the web world. And would like to redo it.
Alright cool. I can’t seem to get the data-success to trigger another function. I’ll keep tinkering.
P.
On Mar 7, 2016, at 1:50 PM, David Cramer notifications@github.com wrote:
data-callback="callbackfunction" is called regardless of success or fail. It's passed the result, element, event. Replaces data-target attribute.
data-success="function" is called on success after target is applied.
— Reply to this email directly or view it on GitHub https://github.com/Desertsnowman/BaldrickJS/issues/15#issuecomment-193391392.
Been a while since I actively used it. So well also check in the morning.
Need ideas on making the next update.