اشتراکها
مرجع کامل زبان #C تا نگارش 6
اشتراکها
معرفی QuickGrid برای Blazor
اشتراکها
وسط چین کردن در CSS
اشتراکها
فریم ورک bootmetro
My last post investigated ways to build a .NET Core desktop/console app with a web-rendered UI without bringing in the full weight of Electron. This seems to have interested a lot of people, so I decided to upgrade it to newer technologies and add cross-platform support.
The result is a little NuGet package called WebWindow that you can add to any .NET Core console app. It can open a native OS window (Windows/Mac/Linux) containing web-based UI, without your app having to bundle either Node or Chromium.
سلام
خسته نباشید
من توی سایتم از ajax استفاده کردم و برای حذف یه رکورد اول از کاربر تاییدیه گرفتم . اگه کاربر روی دکمهی بله کلیک کنه ، عملیات شروع میشه و رکورد حذف میشه .
آخر سر توی تابعی که نتیجه برمیگرده توش (handleServerResponse)، بر اساس نتیجهی برگشتی پیغام مناسبی بایدنمایش داده بشه. اما هیچ پیغامی نشون داده نمیشه
خیلی چیزا رو آزمایش کردم و آخر سر به این نتیجه رسیدم که چون دو تا پیغام میخواد پشت سر هم نمایش داده بشه ، این مشکل پیش میاد :(
حتی وقتی که پیغام تایید حذف رو برداشتم ، دیدم که پیغام دوم میاد !
واااقعا نمیدونم علتش چیه ! ممنون میشم کمکم کنید.
اینم قسمتی از کدمه :
خسته نباشید
من توی سایتم از ajax استفاده کردم و برای حذف یه رکورد اول از کاربر تاییدیه گرفتم . اگه کاربر روی دکمهی بله کلیک کنه ، عملیات شروع میشه و رکورد حذف میشه .
آخر سر توی تابعی که نتیجه برمیگرده توش (handleServerResponse)، بر اساس نتیجهی برگشتی پیغام مناسبی بایدنمایش داده بشه. اما هیچ پیغامی نشون داده نمیشه
خیلی چیزا رو آزمایش کردم و آخر سر به این نتیجه رسیدم که چون دو تا پیغام میخواد پشت سر هم نمایش داده بشه ، این مشکل پیش میاد :(
حتی وقتی که پیغام تایید حذف رو برداشتم ، دیدم که پیغام دوم میاد !
واااقعا نمیدونم علتش چیه ! ممنون میشم کمکم کنید.
اینم قسمتی از کدمه :
function deleteFile(location, filename)//حذف فیزیکی و منطقی فایل { $.prompt("آیا برای حذف فایل موجود اطمینان دارید ؟", { title: '<img src="Images/warning.png" />', buttons: { "بله": true, "خیر": false }, focus: 2, submit: function (e, v, m, f) { if (v == true) { var getdate = new Date(); //Used to prevent caching during ajax call if (xmlhttp) { $("p#vtip").fadeOut("slow").remove(); //محو شدن tooltip var id = document.getElementById("id").value; var i = '3'; params = "id=" + id + "&i=" + i + "&filename=" + filename + "&location=" + location; xmlhttp.open("POST", "FetchData/dbSearchDocument1.php", true); xmlhttp.onreadystatechange = handleServerResponse4; xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlhttp.send(params); } } else { } } }); } //----------------------------------------------------------------------- function handleServerResponse4() { if ((xmlhttp.readyState == 1) || (xmlhttp.readyState == 2) || (xmlhttp.readyState == 3))//loading { document.getElementById("content").innerHTML = "<img src='Images/bigloading.gif'/>"; } else if (xmlhttp.readyState == 4) //ready { if (xmlhttp.status == 200) { if (xmlhttp.responseText == 1) { $.prompt(". حذف فایل با موفقیت انجام شد ", { title: '<img src="Images/warning3.png" />', buttons: { "بستن": true } }); } else { $.prompt("! حذف فایل با خطا مواجه شده است", { title: '<img src="Images/warning2.png" />', buttons: { "بستن": true } }); } } else { alert("Error during AJAX call. Please try again"); } } } //-----------------------------------------------------------------------
اشتراکها