jquery ck editor get current clicked id, so i will find parent div id

function load_web_page_content(user_website_informations_id,web_page_id) { $.ajax({ url: “/AdminPanel/website/load_web_design_page”, type: “POST”, data:{“user_website_informations_id”:user_website_informations_id,”web_page_id”:web_page_id}, success: function (e) { // console.log(e); // window.history.pushState(“Website Sayfası”, “Halid”, “/Admin/website/index”); $(“.panel-flat div.panel-body .card”).html(e); ck_load(); } }); function ck_load(){ var text_elements=$(“div#text_editor”); text_elements.each(function(){ var ck= CKEDITOR.inline( this ); ck.on( “instanceReady”, function( ev ) { var editor = ev.editor; editor.setReadOnly( false ); var data = ev.editor.getData(); alert(“Sending: “…

Httppostedfilebase always returns null when posted with jquery ajax

I am developing an mvc application and want to upload file into server. At the controller when event fires the fileupload is null.And also the model.fileupload has the path. Actually am submitting my form using ajax post method. cshtml code…. <form id=”frmRegistrationDetails” method=”post” enctype=”multipart/form-data”> <table> <tr> <td> <label>Upload File</label><input type=”file” id=”fileupload” name=”fileupload” /> </td> </tr>…

How to resize an image while dragging a cursor using jQuery (Draggable & Resizable)

I want to recreate the draggable event of the image in this site https://alpine-groupemichel.com/alpine-a110 . I managed to drag the cursor but i don’t know how to resize the image following the offset().left of the cursor. <section id=”wide-description” class=”third”> <div class=”container-fluid”> <div class=”row”> <div class=”-wide-image relative”> <div class=”slide-img relative”> <img src=”https://alpine-groupemichel.com/sites/default/files/c7de023e669081e77b86f9854f99672101ecfe5f.jpeg” alt=”NOUVELLE ALPINE A110″ class=”img-responsive”>…

How to resize an image while dragging a cursor using jQuery (Draggable & Resizable)

I want to recreate the draggable event of the image in this site https://alpine-groupemichel.com/alpine-a110 . I managed to drag the cursor but i don’t know how to resize the image following the offset().left of the cursor. <section id=”wide-description” class=”third”> <div class=”container-fluid”> <div class=”row”> <div class=”-wide-image relative”> <div class=”slide-img relative”> <img src=”https://alpine-groupemichel.com/sites/default/files/c7de023e669081e77b86f9854f99672101ecfe5f.jpeg” alt=”NOUVELLE ALPINE A110″ class=”img-responsive”>…

Yii2 302 Redirect jQuery AJAX request, redirecting entire page

I have an action: public function actionAjaxLoadBasketSmall() { $this->enableCsrfValidation = false; return $this->renderPartial(‘@app/views/basket/_small’); } Some JavaScript function loadBasketSmall() { $.ajax({ method: “POST”, url: “/basket/ajax-load-basket-small”, dataType: “html”, beforeSend: function () { $(‘#basketSmall’).addClass(‘loading’); }, complete: function (data) { $(“#basketSmall”).replaceWith(data.responseText); } }); } Called from this function for example: function handleProductTileButton(e) { e.preventDefault(); var input = $(this); $(‘#basketSmall’).addClass(‘loading’);…