DavidCramer / BaldrickJS

A Simple, Tiny Ajax Framework.
baldrickjs.caldera.co.za
MIT License
21 stars 5 forks source link

V2.4 #15

Open DavidCramer opened 10 years ago

DavidCramer commented 10 years ago

Need ideas on making the next update.

DavidCramer commented 10 years ago

Thinking of remove jQuery dependance

kleurvision commented 8 years ago

If you're still working on this, it would be cool to be able to remotely load templates.

DavidCramer commented 8 years ago

Hey. Totally am. And you can remotely load templates using data-template-url="url"

It also preloads templates on page load.

kleurvision commented 8 years ago

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.

DavidCramer commented 8 years ago

Please do! This was my first exploration with javascript so there is a lot of hackery. Any help would be much appreciated.

kleurvision commented 8 years ago

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.

DavidCramer commented 8 years ago

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.

DavidCramer commented 8 years ago

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.

kleurvision commented 8 years ago

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.

DavidCramer commented 8 years ago

Been a while since I actively used it. So well also check in the morning.