Member Avatar

Does anyone know of an automated tool that will convert a lot of jQuery code to native javascript? I think the bulky jQuery library is really slowing down my site but manually converting all my code seems very daunting. Ideally there would be something that was so flawless I could continue coding with jQuery and it would deploy my code as native JS. Hey, a girl can dream, right?

Member Avatar
0
211
Member Avatar

In terms of performance, which is the best jQuery CDN to use? The one at cdnjs.cloudflare.com, googleapis.com, jsDelivr, code.jquery.com, etc?

Member Avatar
0
408
Member Avatar

i want to know how to create qr cde in php

Member Avatar
0
45
Member Avatar

Hi, I'm having trouble using the $(this) identifier in JQuery. I'm using the qtip plugin, and I want to send an ajax request, which can be done with the plugin. I'm trying to pass the id of the element to the script but it's not seeming to work - the script doesn't pick up any value (I know it works because I passed a fixed integer and it worked) Here's my script: [code] <script> $(document).ready(function(){ $('div.portal_entry.smalldetails').qtip({ content: { url: '/Scripts/ajax/portal_qtip.php', data: { id: $(this).attr('id') }, method: 'get' } }); }); </script> [/code] And the HTML: [code] <div class="portal_entry smalldetails" id="b63"> …

Member Avatar
0
9,064
Member Avatar

Hi all,` The below code is giving me problems. <?php $ddaa = $pdo->query("SELECT id, stockname, stockno, producer FROM storemaster order by stockname");; while ($data = $ddaa->fetch(PDO::FETCH_ASSOC)) { echo '<option value="'.$data['stockno'].'" data-producer="'.$data['producer'].'"> '.$data['stockname'].'</option>'; } ?> This is the script: <script> $('#stockname').on('change',function(){ if($(this).val() !=0){ $('#stockno').val($(this).val()); $('#producer').val($(this).attr('data-producer')); } }); </script> All I wanted from this code is when I click a stockname from the dropdown list, The stockno and producer textbox should be fetched. But now only the stockno is fetched and the producer is null. Please help out. Thank you. Emeka

0
26
Member Avatar

Hello, I wanted to make a unique UI for My website, which should be look like https://www.beyoung.in/ This website. provide me a valuable suggestion.

Member Avatar
-1
46
Member Avatar

Hi everyone, I am currently building a wordpress site related to the photo which will be used to carry out many social projects. It's been months that I block on one subject, I am looking desperately for a person who would have the kindness and the skills to bring me help. My problem: RGPD compliance third-party cookies The situation is as follows, I have installed Google Tag Manager, it is functional, I am trying to configure it to "block" all third-party cookies on my site, while the user gives his consent to use these third-party cookies. When he clicks on …

0
76
Member Avatar

I need to refresh my div tag (galleryadv) after ajax post submits to prepare for the next submit. But after submit successfully and refresh, my customized selection tag always changes to the default selection tag. would need some help to resolve my customized selection tag background color, it changes back to the default color instead of black whenever the div refreshes, would appreciate some advice on this, thanks. ![image3.png](https://static.daniweb.com/attachments/4/a2523a0dd7cc71509d2eb0eff51cca0e.png) ![image2.png](https://static.daniweb.com/attachments/4/6091ec3a3f10a9b55b83c39d8701138c.png) index.php <script> function uploadadv(){ var catadv = document.getElementById("catadv").value; var typeadv = document.getElementById("typeadv").value; var countryadv = document.getElementById("countryadv").value; var myData = 'catadv='+catadv+ '&typeadv='+typeadv+ '&countryadv='+ countryadv; jQuery.ajax({ type: "POST", // HTTP method POST …

Member Avatar
0
46
Member Avatar

I have set up for users online but some users showing always online . can you help anyone this my code ![zzz.png](https://static.daniweb.com/attachments/4/810ade1e5592a68b47aee955adb8de8f.png) <?php if ($Row->logged_in == '0') { if ($Row->last_login != '0000-00-00 00:00:00') { ?>Last Login : <?php echo date('d M Y ,H:i A', strtotime($Row->last_login)); } else { echo "<span class='mlm'>Not Online</span>".' <i class="fa fa-circle" aria-hidden="true" style="color:#ddd"></i>'; } } else { echo "<span class='mlm'>Online Now</span>".' <i class="fa fa-circle" aria-hidden="true" style="color:#0eaf02"></i>'; } ?>

Member Avatar
0
93
Member Avatar

Hi, first of all let me thank anyone willing to help out with this. Jquery / Ajax update Span or Div by ID without refreshing page <?php } $select = $DatabaseCo->dbLink->query("select sh_id from shortlist where to_id='" . $Row->matri_id . "' and from_id='" . $user_id . "'"); if (mysqli_num_rows($select) == 0) { ?> <a class="bis-cursor <?php if (isset($_SESSION['user_id'])) { echo "addToshort-link"; } ?>" id="<?php echo $Row->matri_id; ?>" title="Add to Shortlist"> <h6 class="mlm text-black-1 pb-2">Add to Shortlist</h6></a> <?php } else { ?> <a class="bis-cursor f5 <?php if (isset($_SESSION['user_id'])) { echo "addToblock-link"; } ?>" id="<?php echo $Row->matri_id; ?>" title="Remove From Shortlist"> <h6 class="mlm …

Member Avatar
0
113
Member Avatar

Greetings to everyone, I am working as a freelance web developer, i have more than 4 years experience in osclass scripts. I am working in the osclass scripts for the past 4 years and have created nearly 67 sites in osclass, and have created many plugins, cuztomized themes, plugin cuztomizations according to the clients need. I saw many of the post was unanswered here regarding the osclass scripts, so i make this new topic those who are wandering for a good programmer for their osclass script, reply me here if you need my support, thanks.

Member Avatar
1
264
Member Avatar

I have being passing across this word above without knowing the meaning, please someone should come up with an answer.

Member Avatar
0
13
Member Avatar

I have a html form and a validation php file for the form, every thing works when a user submits the form, but there are certain aspect of the function that i want the user to get in real time, such as if field A value is (yam) then unset field B That's part of my function but it only works when the user submits the form, but i want to call it using ajax so that the php function is executed via an ajax call.

Member Avatar
0
82
Member Avatar

please help me. below chart.js works very well but here show all date data from database but i want only last fifteen days data to show. How can i show last 15 days sale reports. i am attach code below. thanks ![chart_edit_result.PNG](/attachments/large/4/3b3130d6f7da66a0d9ff733730021645.PNG) I an developed an chart.js for my daily sale table from sql . every think works good but chart show all data but i need last 15 days data as well. what can i do now. <?php /* Database connection settings */ $host = 'localhost'; $user = 'root'; $pass = ''; $db = 'store'; $mysqli = new mysqli($host,$user,$pass,$db) …

Member Avatar
0
232
Member Avatar

How to create a synchronized Online/Offline data application with php/mysql

Member Avatar
0
42
Member Avatar

How to add meeting host/meeting controler How to allow meeting host to set another person as host How to add signing with account https://jitsi.org/jitsi-meet/

Member Avatar
0
19
Member Avatar

## I am deleting item from cart through Jquery ajax,but it is not removing. It is returning "System.String[]". ## [WebMethod(EnableSession = true)] public string ClearItem(string Img) { try { if (Session["Items"] != null) { string[] session_item_arr = Session["Items"].ToString().Split('|'); for (int i = 0; i < session_item_arr.Length; i++) { string[] key_arr = session_item_arr[i].Split(','); foreach (string item in key_arr) { if (item == Img) { session_item_arr = session_item_arr.Where(val => val != session_item_arr[i]).ToArray(); } } bool item_inedx = Array.Exists(session_item_arr, x => x == session_item_arr[i]); if (item_inedx) { Session["Items"] = session_item_arr[i]; } else { Session["Items"] = session_item_arr; } } } } catch (Exception ex) …

Member Avatar
1
55
Member Avatar

Hi, could you please let me know what should I learn first about programing? I mean, may be I need to learn HTML, C++, Java, read a specific book, I don't know where to start and hope you can show me the way, please!! I would really appreciate it

Member Avatar
0
134
Member Avatar

Ref.: Total from Dynamic text box I would need the result which is: id="sum" as a number to put it into a database. K Rgds from Spain Manfred

Member Avatar
0
17
Member Avatar

hi guys i have one issue with apache mod_ssl, not showing on directory i have installed via cmd "dnf install mod_ssl" and i get -> Operation aborted. :( also ssl configuartion is missing from /etc/httpd/conf.d/ssl.conf i have tried to reinstall procedure but without success what is the issue :(

0
3
Member Avatar

I need to improve my English communication skill, but I am very boring to use language learning tools/methods, but instead of this I would like remote working on some real PHP/JavaScript/Node.js/DevOps project (where I feel strong) and as a side effect would be practicing English communication. I have max 10 hours per week available for this. The client and team members should be patient with my weaker English. Can you recommend something to me? (e.g. where to get such a project or something else) Thank you!

Member Avatar
0
66
Member Avatar

hi there how can i browse virtual host created on webmin without useing domain? i know that in cpanel works like this : http://server-ip-address/~cpanel-name/

Member Avatar
0
17
Member Avatar

I have 5 items listed within a 200x200 box, and would like for the details of the clicked item to appear as either an overlay that spans only that box or as a div that completely replaces the original 5 options. Kinda like an accordion menu, but with the nav menu items completely disappearing rather than just moving out of the way. To return to the original layout, I'd like a simple [x] as the close button. I've searched everywhere for a tutorial, so I'm guessing maybe it's either not possible or a really bad idea. If the latter, let …

Member Avatar
0
423
Member Avatar

my system is savings account system, in which i tried to redirect to another php page with the same user id that i want to manage his/her account yet , when i deposit all of the users have the same fk, here is my code, hope you help me with this, thank you in advance. this is the query part; <?php session_start(); include "connect.php"; $id = $_POST['index']; $sql = "SELECT * FROM `client_accounts` as ca,`ct_trans` as ct WHERE `ca`.`client_id` = `ct`.`ct_client_id` AND `ct`.`ct_client_id` = '$index';"; $query = $db->query($sql); $arr; $msg = []; if($query-> num_rows > 0){ while ($row = $query->fetch_assoc()){ …

Member Avatar
0
195
Member Avatar

How can I use jQuery's [.stop()](https://api.jquery.com/stop/) to stop *all* animations and not just for one specific selector. In my use case, I don't know the element being animated. Does this function bubble? Can I do something like `$(document).stop(true, false);` ??

Member Avatar
0
461
Member Avatar

How can I add href link inside the eventRender and redirect another page with id? function calender(data) { if (0 !== $("#m_calendar").length) { spinner.hide(); var e = moment().startOf("day"); e.format("YYYY-MM"), e.clone().subtract(1, "day").format("YYYY-MM-DD"), e.format("YYYY-MM-DD"), e.clone().add(1, "day").format("YYYY-MM-DD"), $("#m_calendar").fullCalendar({ header: { left: "prev,next today", center: "title", right: "month,agendaWeek,agendaDay,listWeek" } , editable: !0, eventLimit: !0, navLinks: !0, backgroundColor: !1, events: data, eventRender: function (e, t) { t.hasClass("fc-day-grid-event") ? (t.data("content", e.description), t.data("placement", "top"), mApp.initPopover(t)) : t.hasClass("fc-time-grid-event") ? t.find(".fc-title").append('<div class="fc-description">' + e.description + "</div>") : 0 !== t.find(".fc-list-item-title").lenght && t.find(".fc-list-item-title").append('<div class="fc-description">' + e.description + "</div>") } }); } }

1
52
Member Avatar

my Controller function public function editDoctor($id) { $doctor = $this->doctorsRepository->getDoctorById($id); return view('doctor.edit', compact(['doctor'])); } This is my modal form <!-- Edit Doctor modal --> <div class="custom-modal"> <div class="modal fade" id="editDoctorPopup" role="dialog" aria-labelledby="editDoctorPopupLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="editDoctorPopupLabel">Edit Doctor</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="alert alert-danger" id="errorAlert" style="display:none;"></div> <div class="alert alert-success" id="successAlert" style="display:none;"></div> <form id="edit-doctor-form"> <input type="hidden" id="doctor_id" name="doctor_id" value="{{ $doctor->doctor_id }}"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="doctor-list">Doctor Initials</label> <input type='text' class="form-control" id="doc_initials" name="doc_initials" value=""/> <span style="font-size:11px;">Max. 2 characters</span> </div> </div> <div class="col-md-6"> <div class="form-group"> <label …

Member Avatar
0
124
Member Avatar

onkeypress event in javascript not showing the unicode(hindi/remingtongail) character it is only alerting 'r' on pressing a key. i am using hindi indic input 3 toolbar to type in laptop. my javascript code is function validate(){ var string=event.key; c = string.charCodeAt(1); var xyx=String.fromCharCode(c); alert(xyx); } My html text area code is <textarea onkeydown="validate()"></text area>

Member Avatar
0
571
Member Avatar

Hi everybody, Im developing one html and i need to display submenu how can i change the id aria-hidden true to false and vice versa when i click the button? Thank you <div class="wprw9j-0 hFDMkC" id="navbar-subnav-menu" aria-hidden="true"> <div class="dgf6n9-0 dAiGqK"> <ul class="dgf6n9-2 csTLEY"> <li class="dgf6n9-1 izNbxb"><a class="sc-5f33yf-1 sc-12r7gm-2 fOFqvA sc-5f33yf-2 NHJnw" href="home.html"><span class="sc-5f33yf-0 hLgzcu"><img src="assets/logos/home-w.svg" alt="Home" height="24" class="sc-12r7gm-0 fjqWqA hfbp74-0 iwdxVb" /><img src="assets/logos/home.svg" alt="Home" height="24" class="sc-12r7gm-0 fjqWqA hfbp74-0 iwdxVb" /></span></a></li> <li class="dgf6n9-1 izNbxb"><a class="sc-5f33yf-1 sc-12r7gm-2 fOFqvA sc-5f33yf-2 NHJnw" href="about.html"><span class="sc-5f33yf-0 hLgzcu"><img src="assets/logos/w9_ghost-b1bab2947b.svg" alt="About" height="24" class="sc-12r7gm-0 fjqWqA hfbp74-0 iwdxVb" /><img src="assets/logos/about.svg" alt="About" height="24" class="sc-12r7gm-0 fjqWqA hfbp74-0 iwdxVb" /></span></a></li> <li class="dgf6n9-1 izNbxb"><a …

Member Avatar
0
158
Member Avatar

How do you take into account SEO, maintainability, UX, performance, and security when you’re building a web application?

Member Avatar
0
92

The End.