
- Main
- Catalog
- Computer science
- Advertising on the Telegram channel «Dasturlash hayoti️️ ️»
Advertising on the Telegram channel «Dasturlash hayoti️️ ️»
✓ Dasturchilar va dasturlash hayotini yoritib boradigan loyiha!
Channel statistics
#JavaScript #API #RealProject #webdev #dasturlash_hayoti
Xabarlarni ro‘yxat qilib chiqarish + avtomatik yangilanish
Bu bosqichda:
- har bir xabar alohida chiqadi
- sahifa refreshsiz yangilanadi
- real chatlarga yana yaqinlashamiz
<!-- Xabar yozish -->
<input type="text" id="message" placeholder="Xabar yozing">
<button onclick="sendMessage()">Yuborish</button>
<!-- Chat ro'yxati -->
<ul id="chat"></ul>
ul — xabarlar ro‘yxat bo‘lib chiqishi uchun<script>
function sendMessage() {
// Inputni chaqiramiz
let input = document.getElementById("message");
// Inputdagi qiymat
let msg = input.value;
// Bo‘sh xabar yuborilmasligi uchun
if (msg === "") return;
// Serverga xabar yuborish
fetch("https://jsonplaceholder.typicode.com/posts", {
method: "POST",
body: JSON.stringify({ text: msg }),
headers: {
"Content-type": "application/json"
}
})
.then(res => res.json())
.then(data => {
// Xabarni chat ro‘yxatiga qo‘shamiz
addMessage(data.text);
// Inputni tozalaymiz
input.value = "";
});
}
</script>
<script>
function addMessage(text) {
// Chat ro‘yxatini chaqiramiz
let chat = document.getElementById("chat");
// Yangi xabar uchun <li> yaratamiz
let li = document.createElement("li");
// Xabar matnini joylaymiz
li.innerText = text;
// Xabarni chatga qo‘shamiz
chat.appendChild(li);
}
</script>
Endi:
- har bir xabar pastga qo‘shilib boradi
- eski xabarlar yo‘qolmaydi
Telegram, kommentlar, chatlar — barchasi shu mantiqda ishlaydi.
Enter bosilganda yuborish + real-time’ga yana yaqinlashtiramiz
#JavaScript #API #RealProject #webdev #dasturlash_hayoti
Keyingi darsda:
Ya’ni:
Post JavaScript + API asosida, to‘liq real loyiha ko‘rinishida bo‘ladi.
👉 O‘tkazib yubormang!
Bu yerda maqsad — xabar yuborish va serverdan kelgan javobni sahifada ko‘rsatish.
(Haqiqiy chatlar ham aynan shu mantiqda ishlaydi)
<!-- Foydalanuvchi xabar yozadigan input -->
<input type="text" id="message" placeholder="Xabar yozing">
<!-- Tugma bosilganda sendMessage() funksiyasi ishlaydi -->
<button onclick="sendMessage()">Yuborish</button>
<!-- Xabar chiqadigan joy -->
<p id="chat"></p>
👉 Input — xabar yozish uchun
👉 Tugma — yuborish uchun
<script>
function sendMessage() {
// Input ichidagi yozilgan xabarni olamiz
let input = document.getElementById("message");
// Inputdagi matnni alohida o‘zgaruvchiga saqlaymiz
let msg = input.value;
// Serverga xabar yuboramiz
fetch("https://jsonplaceholder.typicode.com/posts", {
// POST — ma’lumot yuborish usuli
method: "POST",
// Yuborilayotgan xabarni JSON formatga o‘giramiz
body: JSON.stringify({
text: msg
}),
// Serverga JSON yuborayotganimizni aytamiz
headers: {
"Content-type": "application/json"
}
})
// Serverdan kelgan javobni JSON holatga o‘tkazamiz
.then(res => res.json())
// Javob kelgach, ekranga chiqaramiz
.then(data => {
showMessage(data.text);
// XABAR YUBORILGANDAN KEYIN INPUTNI TOZALAYMIZ
input.value = "";
});
}
</script>
<script>
function showMessage(text) {
// <p id="chat"> ichiga matn joylaymiz
document.getElementById("chat").innerText =
"Xabar yuborildi: " + text;
}
</script>
👉 Sahifa yangilanmadi
👉 Xabar darhol ko‘rindi
JavaScript + API = jonli, tez va real web ilova
#JavaScript #API #RealProject #webdev #dasturlash_hayoti
Diqqat, JavaScript o‘rganuvchilar!
Keyingi post:
Ya’ni:
Shunaqa amaliy post kerakmi?
👍 Ha, JS + API bilan
🔥 Yo'q, shart emas
Qiziqish bo‘lsa — bosqichma-bosqich tushuntirib chiqaramiz
#JavaScript #API #webdev #2post #boshlovchilar
JavaScript serverdan ma’lumot olib kelish va uni sahifada ko‘rsatish uchun ishlatiladi. Sahifani yangilamasdan ham ma’lumot keladi.
<button onclick="getData()">Ma’lumotni yuklash</button>
<p id="result"></p>
<script>
function getData() {
fetch("https://jsonplaceholder.typicode.com/posts/1")
.then(res => res.json())
.then(data => {
document.getElementById("result").innerText = data.title;
});
}
</script>
Real-time yangilanish nimaga o‘xshaydi?
👉 Bularning barchasi JavaScript + API orqali ishlaydi.
Ma’lumotni sahifada dinamik ko‘rsatish
Serverdan kelgan ma’lumot:
JavaScript:
JavaScript + API bo‘lmasa:
JavaScript + API bilan esa:
#JavaScript #frontend #webdev #boshlovchilar
JavaScript saytni jonlantiradi. Foydalanuvchi biror ish qilsa — JavaScript javob qaytaradi.
<button onclick="salom()">Bos</button>
<script>
function salom() {
alert("Salom! Tugma bosildi 😊");
}
</script>
<input type="text" id="email" placeholder="Email">
<button onclick="tekshir()">Yuborish</button>
<script>
function tekshir() {
let email = document.getElementById("email").value;
if (email === "") {
alert("Emailni kiriting!");
}
}
</script>
👉 Email bo‘sh bo‘lsa → ogohlantirish chiqadi
<button onclick="och()">Batafsil</button>
<p id="text" style="display:none;">Qo‘shimcha ma’lumot</p>
<script>
function och() {
document.getElementById("text").style.display = "block";
}
</script>
👉 Tugma bosildi → yashirin matn ochildi
JavaScript bo‘lmasa:
JavaScript bilan esa:
➡️ Keyingi post: JavaScript + API (serverdan ma’lumot olish)
Keyingi postlarda sizga
👇 Shu postlarni kutyapsizmi?
👍 Ha, men kutyapman!
😁 Yo‘q, lekin qiziqaman
#JavaScript #webdev #poll #dasturlash_hayoti
#Laravel #backend #webdev #dasturlash_hayoti
Laravel nima uchun qulay?
Laravel — backend’ni tez va tartibli qilish uchun yaratilgan framework.
Quyida nega ko‘pchilik Laravel’ni tanlashini oddiy tilda tushuntiramiz 👇
📌 Kod aralashib ketmaydi, tushunish oson bo‘ladi.
📌 Noldan yozishga hojat yo‘q — vaqt tejaladi.
📌 Xavfsizlik Laravel’da avtomatik ko‘p joyda bor.
📌 Bir necha oy o‘tsa ham kodni tushunish mumkin.
📌 Kam vaqt — katta natija.
Laravel:
#Laravel #itmemes #dasturlash_hayoti
“Laravel oson ekan”
“Controller qaysi papkada edi?”
“Bu route qayerdan ishlayapti o‘zi?”
25 KUNLIK JavaScript marafoni: React, Vue yoki Angular’ga tayyor bo‘ling!
Kuzatib boring 👉 @jonibek_turapov
Reviews channel
Catalog of Telegram Channels for Native Placements
Advertising on the Telegram channel «Dasturlash hayoti️️ ️» is a Telegram channel in the category «Интернет технологии», offering effective formats for placing advertising posts on TG. The channel has 13.0K subscribers and provides quality content. The advertising posts on the channel help brands attract audience attention and increase reach. The channel's rating is 5.3, with 0 reviews and an average score of 0.0.
You can launch an advertising campaign through the Telega.in service, choosing a convenient format for placement. The Platform provides transparent cooperation conditions and offers detailed analytics. The placement cost is 32.26 ₽, and with 0 completed requests, the channel has established itself as a reliable partner for advertising on Telegram. Place integrations today and attract new clients!
You will be able to add channels from the catalog to the cart again.
Комментарий