@phpgeeks

Страница 7466 из 8430
V
21.05.2018
13:10:14
тебе это не в чат php, а в реактивность данных в js
я догадывался... но думал что php тоже умеет

Alexander
21.05.2018
13:10:26
php умеет в сервер, в клиент не

Google
Arthur
21.05.2018
13:10:36
в реактивность на стороне клиента - только js.

V
21.05.2018
13:10:48
php умеет в сервер, в клиент не
ну кстати да, почему-то об этом не вспомнил

спасибо!

Arthur
21.05.2018
13:12:45
можешь повесить это в форму с экшеном на саму себя. При нажатии Enter будет перезагрука страницы, при этом на сервер будут улетать данные из полей и на этом этапе можешь пыхой обрабатывать данные и выводить их в третьем поле. Типа реактивно))

Ivan
21.05.2018
13:25:00
если не указывать action форма сошлется на текущую страницу

Alexander
21.05.2018
13:25:31
ну кстати да, почему-то об этом не вспомнил
https://codepen.io/Alexxosipov/pen/yjZwPG Держи самый простой пример

V
21.05.2018
13:35:42
Alexander
21.05.2018
13:36:11
Только это

V
21.05.2018
13:40:46
J
21.05.2018
13:40:54
sorry any english speakers ?

Dmitriy
21.05.2018
13:41:12
yes, man

Alexander
21.05.2018
13:42:46
we cant write code without English, ofc we're

Dmitriy
21.05.2018
13:46:24
все слился парень

Google
Alexander
21.05.2018
13:46:36
хд

PowerAxis
21.05.2018
13:57:04
в шторме есть инструмент для работы с БД, он может показать какую-то таблицу с полями и можно сортировать туда-сюда по полям. есть ли возможность оботражать только выбранную запись(и) , типа отфильтровать по ID, ато мне конкретное знаечение нужно бы помониторить, а оно в середине спика и не оче удобно

release-tracker
21.05.2018
13:57:36
Вышла новая версия The Symfony PHP framework: v3.4.10

PowerAxis
21.05.2018
14:06:11
нашел, лупа над таблицей

спасибо, пацаны

Dead
21.05.2018
14:47:27
Есть возможность пройти практику в компании

Но нужно придумать идею

Есть идеи ?)

И там собственно над проектом придуманным работать

Alex
21.05.2018
14:53:40
Какая идея? Новая форма закрылок для Сушки? Или пиар-ход для продажи резиновых изделий?)

release-tracker
21.05.2018
14:57:35
Вышла новая версия The Symfony PHP framework: v4.0.10

Igor
21.05.2018
15:21:39
Внезапный вопрос... А расскажите много у кого есть scrum? Ну и тем более отдельный человек в роли Scrum Master'а? Прям вот с такой должностью оО

Богдан
21.05.2018
15:26:16
ктонибудь пробовал join сделать по полю типа "vachar_array" ?

Богдан
21.05.2018
15:45:16
какие люди))
ты во фронты перетёк же, чё ты тут збыл))))

Иван
21.05.2018
15:45:34
я везде, умею всё )

Богдан
21.05.2018
15:45:50
я везде, умею всё )
ну я тоже так думал, когда в лайте был))

Ну давай, я тут уже офишалли)

Иван
21.05.2018
15:47:11
))) могёшь

Богдан
21.05.2018
15:51:16
))) могёшь
у вас там тухляк полный?

Google
Dmitriy
21.05.2018
16:45:02
давно уже есть в компаниях scrum master

как отдельная должность

Panda
21.05.2018
16:46:37
заебывала дико, пиздец

Sergey
21.05.2018
16:46:57
давно уже есть в компаниях scrum master
И что ему делать целый день?

Panda
21.05.2018
16:47:00
и на не основной работе работаем по скраму

И что ему делать целый день?
карточки в трелло перетаскивать))0

Ivan
21.05.2018
16:47:29
Кто шарит в проектировании бд? есть вопрос)

Panda
21.05.2018
16:47:41
Mark
21.05.2018
16:47:46
....

Dmitriy
21.05.2018
16:48:02
И что ему делать целый день?
это уже надо спрашивать в спец чатах

Panda
21.05.2018
16:49:52
на самом деле, если у тебя компания человек на 200-300, то всегда найдется чем заняться

Sergey
21.05.2018
16:51:09
Ivan
21.05.2018
16:51:27
Как лучше поступить когда много manytomany, при запросе ожидается 4 и более связей. Пихать в varchar и делать искуственный json? Как поступить когда много справочников с *до 10 значений*

Panda
21.05.2018
16:51:31
это уже не скрам будет тогда, а как минимум лесс
да не, я иногда вижу поиск именно скрам мастеров

модно же...

но я не думаю что им много платят

Dead
21.05.2018
17:07:39
http://theory.phphtml.net/tasks/php/practice/prodvinutaya-praktika-php.html

Google
Dead
21.05.2018
17:16:07
Что из этого?

http://theory.phphtml.net/tasks/php/practice/diplomnye-proekty-na-php.html

Вот еще

Panda
21.05.2018
17:25:45
Admin
ERROR: S client not available

Panda
21.05.2018
17:25:57
Аля екаталог

Чтоб агрегировало

Барахолка аля авито

Dead
21.05.2018
17:26:44
Кст вот эта норм тема

Panda
21.05.2018
17:26:58
Все, начинай писать)

Удачи

Dead
21.05.2018
17:27:07
Спс за инфу )

J
21.05.2018
17:34:13


i want to click this addres, and replace that information with the above

do you know how i would do this?





but how do i replace information when its presented like that?

. i essentially want the user to click an address from the list, and basically have it replace the above infromation "18 pack wern..."

any ideas?

Google
Vespertilio
21.05.2018
17:52:21
any ideas?
you want to give the user the ability to replace his billing address with one from his address book?

J
21.05.2018
17:52:42
yeah exactly

eugene
21.05.2018
17:53:10
(;¬_¬)
21.05.2018
17:53:36
yeah exactly
Why you didn't use billing_address_id?

J
21.05.2018
17:58:31
well i just dont understand how im supposed to click on one of the addresses, and from that replace the information within the mainAdd class

Vespertilio
21.05.2018
17:59:32
well i just dont understand how im supposed to click on one of the addresses, and from that replace the information within the mainAdd class
there are 2 stages, you need to send ajax request to the server with new data and if success update your frontend address fields

вопрос на засыпку, если я переменную в кложур, анонимку передаю через use она по ссылке передается или копируется? $foo = "lorem ipsum"; some_func(.., function() use ($foo) {..});

J
21.05.2018
18:33:39
there are 2 stages, you need to send ajax request to the server with new data and if success update your frontend address fields
thanks for this! im a little stuck, i have the ajax, but how do i use this to change the front end of it ?

function changebill(id) { //var id = cat.value; var myid = id; $.ajax ({ method: 'post', url: 'changebill.php', data: { myid: myid, }, success: function(data) { } }); }

myid is the id of the address within the database

Vespertilio
21.05.2018
18:53:55
thanks for this! im a little stuck, i have the ajax, but how do i use this to change the front end of it ?
if you need just assign new data to the billing address fields on your frontend you need just place something like this in success section on yout jqery code: document.getElementById("filed-id1").innerText = "Some text"; document.getElementById("filed-id2").innerText = "some text 2"; document.getElementById("field-idN").innerText = "Some text 3"; BTW this is pure JS in example above. But i dont understand is you recive full responce with address (not only id) from your server in AJAX or not. If not - you need copy that data to fill your fileds from somewhere, you can just copy this data directly from HTML "address book" but this is way strange. Or you can store it in JS var/object etc and fill fields form it or you can get full response from your server in JSON. There is example from one of my site on pure JS: <p class="mb-3 text-muted " id="response"> Is blocked:<code id="blocked">No</code><br> Subnet range: <br> Start: <code id="start">10.0.0.0</code><br> End: <code id="end">10.0.0.255</code><br> Mask: <code id="mask">255.255.255.0</code><br> </p> <script> function fill(json) { console.log(json); if (json.is_blocked === "true") { document.getElementById("blocked").innerText = "YES"; document.getElementById("start").innerText = json.subnet.start; document.getElementById("end").innerText = json.subnet.end; document.getElementById("mask").innerText = json.subnet.mask; } else if (json.is_blocked === "false") { document.getElementById("blocked").innerText = "NO"; document.getElementById("start").innerText = ''; document.getElementById("end").innerText = ''; document.getElementById("mask").innerText = ''; } } function loadDoc() { let xhttp = new XMLHttpRequest(); let ip = document.getElementById("inputIP").value; xhttp.onreadystatechange = function() { if (this.readyState === 4 && this.status === 200) { // document.getElementById("response").innerHTML = // this.responseText; let responseArr = JSON.parse(this.responseText); fill(responseArr); // console.log(this.responseText); } }; xhttp.open("GET", "http://example.com:8081/" + ip, true); xhttp.send(); } </script>

Страница 7466 из 8430