# |
Jun 12th 2018, 13:33 |
josbeir |
fetch() => XMLHttpRequest |
# |
Jun 12th 2018, 13:33 |
neon1024 |
No, not really, as you could use `fetch()` nowadays |
# |
Jun 12th 2018, 13:33 |
itmpls |
last time i looked there were a ton of inconsistencies, but that was ie7ish days |
# |
Jun 12th 2018, 13:32 |
itmpls |
is the XHR example really considering all the bugs? |
# |
Jun 12th 2018, 13:32 |
josbeir |
but yes :slightly_smiling_face: |
# |
Jun 12th 2018, 13:32 |
josbeir |
that thing is outdated ! |
# |
Jun 12th 2018, 13:31 |
neon1024 |
@admad @josbeir http://youmightnotneedjquery.com/ |
# |
Jun 12th 2018, 13:19 |
dereuromark |
rendering the redirect target is usually not too helpful in my experience |
# |
Jun 12th 2018, 13:19 |
dereuromark |
unless you prevent them (as my ajax plugin does) |
# |
Jun 12th 2018, 13:17 |
arnis |
lol, didnt know that redirects works also in ajax. Thanks :-D |
# |
Jun 12th 2018, 13:14 |
lorenzo |
arnis, redirect to the same page |
# |
Jun 12th 2018, 13:12 |
arnis |
any ideas how to clear this->request->getData() ? I want co clear my form after ajax submit. Earlier it was simple as this->request->data = []; |
# |
Jun 12th 2018, 13:10 |
arnis |
will try. |
# |
Jun 12th 2018, 12:22 |
admad |
arnis: don't need to. Can open just 1-2 issues/PR. |
# |
Jun 12th 2018, 12:19 |
logan_ |
arnis: thx it s exactly what i want i book cakes for you :) |
# |
Jun 12th 2018, 12:03 |
narendravaghela |
Sulthan: If you have a question, just ask it :slightly_smiling_face: |
# |
Jun 12th 2018, 12:01 |
arnis |
admad, no time to check everything out :< |
# |
Jun 12th 2018, 11:56 |
Sulthan |
how r u |
# |
Jun 12th 2018, 11:56 |
Sulthan |
HI |
# |
Jun 12th 2018, 11:51 |
josbeir |
good old days where mootools was the cake js lib of choice ;) |
# |
Jun 12th 2018, 11:46 |
josbeir |
just some 'niche' dom manipulations require a bit more code |
# |
Jun 12th 2018, 11:45 |
josbeir |
but its so easy to do most things these days jquery-less, we have fetch api, querySelector, querySelectorAll, all the things that made jquery great |
# |
Jun 12th 2018, 11:44 |
josbeir |
probably yes |
# |
Jun 12th 2018, 11:43 |
admad |
I say there are still enough use cases for it |
# |
Jun 12th 2018, 11:43 |
josbeir |
vanilla js covers much things these days by default |
# |
Jun 12th 2018, 11:43 |
josbeir |
nah of course not! but the high years of $ are over |
# |
Jun 12th 2018, 11:42 |
admad |
Now now... Don't you dare bad mouth jQuery :P |
# |
Jun 12th 2018, 11:42 |
josbeir |
100% agreed with front-end |
# |
Jun 12th 2018, 11:41 |
josbeir |
but for me the biggest problem is the extreme verbosity, maintainability long term and ... jquery :slightly_smiling_face: |
# |
Jun 12th 2018, 11:41 |
admad |
I would never use it for frontend |
# |
Jun 12th 2018, 11:41 |
josbeir |
yeah as i stated, its nice for productivity |
# |
Jun 12th 2018, 11:40 |
admad |
@josbeir I am not a fan of BS either, but it pretty convenient using it for backed/admin areas and picking up one of the multiple "skins" available for it |
# |
Jun 12th 2018, 11:37 |
admad |
arnis: so why haven't you opened issues/PRs for the foc/bootstrap plugin with the issues you have had with BS 4.1? |
# |
Jun 12th 2018, 11:21 |
arnis |
and {0} will be your first param (link in above case) |
# |
Jun 12th 2018, 11:21 |
arnis |
logan_: and in each translation you simply add "my translation {0} bla bla foo" |
# |
Jun 12th 2018, 11:19 |
arnis |
If I got you right. |
# |
Jun 12th 2018, 11:19 |
arnis |
and translate to each language as you want |
# |
Jun 12th 2018, 11:19 |
arnis |
logan_: I would do as following: __('LINK_TEXT {0}', [$this->Html->link('mylink')]); |
# |
Jun 12th 2018, 10:38 |
logan_ |
arnis: something like that https://pastebin.com/ekm9SBTn i will logout but my bot is here you can talk |
# |
Jun 12th 2018, 10:29 |
arnis |
logan_: show an example of what you want. |
# |
Jun 12th 2018, 10:23 |
logan_ |
Hello how can i translate string with link inside the language will change words order. how cake i18n manage it ? |