DavidCramer / BaldrickJS

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

data-target-placement #3

Closed DavidCramer closed 11 years ago

DavidCramer commented 11 years ago

Need a setting to set the placement of the request response in the target.

possible extras:

rjmcguire commented 11 years ago

data-target-insert: options: before, after, replace.

DavidCramer commented 11 years ago

agreed- much better.

DavidCramer commented 11 years ago

although insert - before, does sound like its before the target, and not the targets content.

DavidCramer commented 11 years ago

perhaps, data-target-update

rjmcguire commented 11 years ago

I think it is clear that we will never put content outside of the target.

haha how about: data-target-placement="^" or "-" or "_"

On Fri, Apr 19, 2013 at 1:45 PM, David Cramer notifications@github.comwrote:

perhaps, data-target-update

— Reply to this email directly or view it on GitHubhttps://github.com/Desertsnowman/BaldrickJS/issues/3#issuecomment-16648762 .

DavidCramer commented 11 years ago

lol, no that would confuse people.

I think data-target-insert="[before|replace|after]"

On 4/19/13 1:51 PM, rjmcguire wrote:

I think it is clear that we will never put content outside of the target.

haha how about: data-target-placement="^" or "-" or "_"

On Fri, Apr 19, 2013 at 1:45 PM, David Cramer notifications@github.comwrote:

perhaps, data-target-update

— Reply to this email directly or view it on GitHubhttps://github.com/Desertsnowman/BaldrickJS/issues/3#issuecomment-16648762 .

— Reply to this email directly or view it on GitHub https://github.com/Desertsnowman/BaldrickJS/issues/3#issuecomment-16648979.

DavidCramer commented 11 years ago

added as data-target-insert="[ prepend | replace (default) | append ]"