hi guys i have an issue on ajax. where ajax can't work to take the data of second rows. This's code in model function getdtbarang($barcode = FALSE) { if ($barcode === FALSE) { $query = $this->db1->get(&a ...
For my Vue.js app built with the webpack template and vuetify, I am starting by importing the vuetify css in my App.vue. <style> @import '../node_modules/vuetify/dist/vuetify.min.css' </style> I'm wondering if this is the c ...
Greetings all, I'm currently delving into mobile development and seeking to expand my knowledge of the Node.js runtime. As part of my learning process, I have a simple client-side "app" written in JavaScript that I am attempting to integrate with a No ...
After making an ajax call and retrieving select options in json format, I implemented the code below to display these new options in place of the existing ones: success: function (data){ var $select = $('#dettaglio'); $select.html(' ...
I have an azure website with a URL like: . In my server.js file, I have the following code: var restify = require('restify'); function respond(req, res, next) { res.send('hello ' + req.params.name); next(); } var server = restify ...
My code is below: PizzaStore.html: <!DOCTYPE html> <html ng-app="PizzaApp"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Delicious pizza for all!</title> ...
I find myself in a situation where I am not well-versed in HTML, Javascript, and CSS. Here is the scenario: <div class="table"> <table class="display-table"> <thead> <tr> ...
In the latest version of Nextjs (11.1.0), there seems to be an issue where code changes in the `node_modules` directory are not being watched, unlike in the previous version (10.2.1). While working on a project with Nextjs 11.1.0, I have tried explicitly ...
Trying to combine SASS with antd and CRA has been a bit of a challenge for me. Despite following various tutorials, most of them seem outdated and result in errors. Fortunately, I stumbled upon an article that actually works smoothly link However, I can& ...
Here's a Flask application that showcases a list of objects. from flask import * app = Flask(__name__) class Entry: def __init__(self, name, surname): self.name = name self.surname = surname entries = [] entries.append(Entr ...
My current project involves sending a Json response to an Ajax function within my webpage. The structure of the Json response is as follows: {"one": 21, "two": 10, "three": 19, "four": 100} With this setup in place, I am now in the process of developing ...
Here is a look at how my view appears: <body ng-controller="AdminCtrl"> <img ng-repeat="pic in pics" ng-src="{{pic}}" /> <form ng-submit="postPic()"> <input id="photos" type="file" accept="image/*" multiple/> <button> ...
Currently, I am developing an angular application that utilizes textAngular along with rangy-core and rangy-selectionsaverestore. However, I am encountering some errors specifically on the latest version of Internet Explorer: Module 'WrappedSelection ...
I'm looking for a way to efficiently send multiple files, including an entire directory, so that I can access them in another JavaScript file called from an HTML file. const app = require("express")(); const http = require("http"). ...
I have the following sets of strings: 14/04/22 10:45:20 12.08N 87.65W 15.0 2.9ML Frente a Corinto 14/04/21 11:05:34 12.10N 87.70W 140.0 3.5MC Cerca de Masachapa 14/04/22 09:00:09 12.35N 86.44W 12.4 1.3ML Cerca del volcan Momotombo 14/04/21 23:33:37 1 ...
Utilizing the simple-git package, I have implemented the following function: import simpleGit from 'simple-git'; /** * The function returns the ticket Id if present in the branch name * @returns ticket Id */ export const getTicketIdFromBranch ...
Below is the Laravel form I have, and I need to extract the text in a way that retains its original format: <style type="text/css" media="screen"> #editor { position: absolute; top: 150px; right: 150px; bottom: 15 ...
My application is designed to allow a user to select a Person, and then Vue makes an API call for that user's posts. Each post has its own set of comments sourced from here. You can view the codepen here Here is my HTML structure: <script src="h ...
Working on my Ionic 3 project, I have encountered an issue with the ion-item click listener. The scenario is that I am adding text over a canvas and then attempting to change the style of the text (such as font-family, font-size, bold, and italic). The UI ...
I have been developing a blogging application using Express, EJS, and MongoDB. Feel free to check out the GitHub repository for more details. One of the features I've implemented is a simple pager for the posts within the application. Within the pos ...
When working with JSON data, I encountered a problem where leaving some keys unfilled resulted in incorrect results. I want to find a way to skip these keys if they are not filled. I have shared my code for both the backend and frontend below. Backend La ...
I am currently working on a user data collection project that involves filling out multiple forms. Each form has its own dedicated HTML page for personal details, educational details, and more. After entering personal details and clicking next, the data ...
I created a table where clicking on a td converts it into an input field with both name and value. The input fields are successfully generated, but they do not get submitted along with the form. In my HTML/PHP : <tr> <f ...
Help needed with the vuedraggable component. I have three columns (photo attached) and I would like to be able to drag BoardUserCard between the columns. Upon dropping the card, I want to send a PUT request to the database to change the "lead_status_id" as ...
I'm struggling with finding a solution to this issue, as I am unsure of how to proceed. The problem I am facing is that when I click on an item, the router-view changes correctly, but the menu remains open. I would like it to close after a click. ...
Imagine you have a website page saved as example.html, and also a printable file named example.pdf. Is there a way to prompt the browser to open and print example.pdf instead of example.html when users attempt to print? If this isn't achievable, how ...
I need to retrieve equipment data from pouchdb/couchbase that has users assigned to them. Each piece of equipment has an _id and a checkedOutBy field with the user._id as its value. The employee object contains the user's name. How can I retrieve the ...
Once the image is uploaded using the API, it should return a response. However, I am not receiving any response through the API even after uploading the image. if (pic.type === "image/jpeg" || pic.type === "image/png") { const da ...
I'm in the process of creating my initial application with React and have opted to integrate Redux into it. Since incorporating Redux, it appears that setting a component state to a basic global JavaScript object would be a simpler approach. I unders ...
I have integrated VueJS into a single page using the CDN, which prevents me from utilizing bootstrap-vue. The functionality to display and hide a modal based on the value of the showModal data is currently working. However, the gray overlay surrounding th ...
I am encountering an issue with writing jQuery inside an AngularJS function. I can't seem to figure out why it's not working properly. HTML <div> <span ng-repeat="image in post.postImages" ng-if="$index <= 3" ng-init="image.showD ...
After successfully installing node.js, I proceeded to type the command 'npm init' in the command prompt and then installed discord.js. However, upon installation of discord.js, a 'node_modules' folder was not added inside the project, w ...
In my attempt to implement a search using the YouTube Data API, I have come up with the following code. The setup involves an express generated stack with jade. #player script. // 2. This code loads the IFrame Player API code asynchronously. ...
I am facing an issue with my dgrid where I want to style cells by underlining the text when the checkboxes are selected for the row. My initial approach was to add a CSS class to the item once the checkbox is checked for the row. However, this method did ...
I found a way to copy files using this page https://developers.google.com/drive/v2/reference/files/copy. However, it only works when I request permission , allowing me to modify any file in their drive, which is not ideal. My goal is simply to copy a publ ...
Exploring the proper way to utilize middlewares in a growing Node.js web project using Express and Connect. While there are middlewares that handle requests globally, there are often specific tasks such as processing incoming data that are only relevant t ...
How can I efficiently filter an array of objects by a specific value that could be located in any property? Consider the following object: var x = [ { name: "one", swp: "two" }, { name: "two", swp: "three" ...
Within this code snippet, I am iterating through each "player_visualizer" element and aiming to generate a new P5 instance for each element. By using console.log(context) inside the loop, I can retrieve the context of the specific element, which is exactl ...
I have encountered a strange issue with one of my components. The component fetches a list of objects from a service in the ngOInit(). The problem I am facing seems to occur randomly, where sometimes it takes a considerable amount of time to display this l ...
The official bluebird promises page suggests that when using node.js, there may not be a need to manually write promises. Recently, while working on a new project, I noticed that my code heavily relies on promises. For instance, I have a databaseConnector ...
Whenever I click "Book Now!" button, I face a major issue in capturing the values of these inputs and linking them to the object named "book". However, no matter where I define the object in my JavaScript code, it simply does not function properly. The obj ...
I am working on adding multiple polylines to my map. However, after some logic processing, I need to loop through the map.entities collection to retrieve all the polylines that I have added. var polylineN = new Microsoft.Maps.Polyline(loc); map.entities.p ...
Is there a way to calculate the 2D representation of an object's rotation (yaw) in a 3D scene using built-in methods in THREE.js? While I currently have this functionality working with the help of the solution provided at How to derive "standard ...
Encountering a problem with the bcryptjs library when managing passwords in my application. Registering users works smoothly, but logging in using the same password is causing errors. Despite double-checking the accuracy of the password, it still fails to ...
In my attempt to send notifications using ASP.NET, I encountered an issue. When an admin logs in and clicks on "add message", the intention is for this message to be sent to a user. Upon the user logging in, a pop-up notification should appear. I have tr ...
I am working on a React Native application and experimenting with creating styled text elements. I wanted to have different styles for each word in a sentence, so I nested Text components with different styles inside one another. For example: <T ...
My challenge involves handling multiple AJAX calls in a simple manner. To solve this, I crafted the following method: function handleAjaxCalls(url) { $.ajax({ type: "GET", contentType: "application/json; charset=utf-8", url: url, data: " ...
It's not possible to achieve this using pure css because nth-of-type only selects based on an element's parent relationship (w3schools). Therefore, I am seeking a jquery alternative that can be applied across multiple lists. HTML: <div class ...
I'm currently utilizing Angular 6.x and I am looking to link a submit button that is located outside of the form in the DOM. Essentially, I want to achieve something similar structurally to this: <button type='submit' form='myform&a ...
I have come across a collection that has the following structure: [ { "project":"example1", "stores":[ { "id":"10" "name":"aa", ...
I'm new to the development world and currently working on a recipe search application that generates a list of recipes based on user-input ingredients. I've decided to dive into Angular to streamline my code and improve its organization. After s ...
After setting up a Yahoo store through their Merchant Service, I was impressed by their user-friendly store catalog. This led me to use the service for another business I own as well. However, I encountered some issues when trying to call the Yahoo Catalog ...
I've decided to dive into learning CSS, HTML, and JavaScript by building a dashboard from scratch instead of taking the easier route of purchasing a pre-made Bootstrap dashboard UI. However, I've run into an issue that's proving challenging ...
I am faced with a scenario where I have two dropdowns, each designed to filter specific keys of an object. The key feature here is that the dropdown selections should not depend on each other; in other words, filtering can occur independently based on the ...
After including an Angular service in my project, I encountered a problem where it neither gives an error nor gets called. I am unsure of the issue, especially since the second object is being called successfully. Below is the code for the controller: va ...
I have inputted 15 characters in the 'item_detail' field of data.html, but I only want to save 10 characters in the 'itemdetail' element in the XML file item.xml. How can I achieve this? data.html---- <form> <p>Id:&l ...
While working on a Vue app, I implemented a paste listener for a textarea to trigger validation code whenever a user pastes data into the field. However, despite being able to see the pasted data in the console under event -> target -> value, I am un ...
I am facing an issue with using Clear in my index.js. The code doesn't seem to be working as expected, particularly when it tries to extend the class Clear by Moderation to access the Moderation method. Error Message: class Clear extends Moderation ...
Currently, I am in the process of creating a mobile web app using javascript and backbone. In my HTML page, there is a text box set up like this: <input type="text" id="searchquery" name="name" value="Alien"/> Strangely, I am unable to input any v ...
I'm dealing with a situation where my database has an object containing an array that keeps accumulating duplicate objects due to the unreliable nature of the Instagram API. To address this issue, I am working on a routine to clean up this array by re ...
I recently used this guide to integrate the dataTables module into my Django project. However, I'm struggling with how to actually display the table on my mytable.html page. models.py: from django.db import models class SomeData(models.Model): ...
I'm currently working on a sidebar menu that involves a lot of javascript. The challenge I am facing is with the submenu items within some of the menu items. When I click on a menu item, its submenu opens using jQuery slideToggle, but when I click on ...
Consider the array below: ["cat", "dog", "cat", "rabbit", "cat", "lion"] I am looking to transform this array into an object array that shows the frequency of each element, for example: [ { name: cat, count: 3 }, { name: dog, count: 1 }, { name: rabb ...
After querying an API with Ajax, I found that I couldn't access the results outside of the ajax constructs. Every time I try to use the xx variable, it says xx is undefined. The main issue here is how can I make use of the xx variable outside of the ...
I have a HighCharts bar chart that is updated with data from an ajax call as shown below. var updateChart = function() { $.ajax({ url: "/theurl/theid", type: "Get", success: function(data) { ...
Here is the code snippet where I am attempting to display a black tick inside a circle: <mat-icon [ngStyle]="{ color: selectedColor === color.checkedCircleColor ? color.checkedCircleColor : color.innerCircleColor}" >{{ sele ...
I'm facing an issue where multiple Android devices are connected to the same WiFi network but there is no internet connection. I need to sync data between these devices without requiring internet access. Is it possible to synchronize data on a local n ...
I am facing a situation where I need to adjust the position of .select2-dropdown .select2-dropdown--below by setting left: 0 and witdth: 100%(relative to the window). Despite adding a top property, I am unable to make the other adjustments. I have updated ...
Is it possible to programmatically trigger the v-dialog component from a specific value in the Vuex store using a dialog box component? ...
https://i.sstatic.net/0yQS3.png https://i.sstatic.net/4tltn.png https://i.sstatic.net/2hwGH.png https://i.sstatic.net/3iaDf.png https://i.sstatic.net/aphGY.png Html <!doctype html> <html lang="en"> <head> <meta charset=&q ...
In my JSON response, the structure is as follows: { data: [ { attributes:[ { type: 'size', value: '10' }, { type: 'colour', value: 'red' ...
I'm struggling to write a program that can search an array containing only numbers to determine if there are any string elements present. The array in question is comprised of the arguments passed to a function. Can anyone lend a hand with this? I&apo ...
Once I establish a connection to my database, I can retrieve documents from a collection. However, the challenge lies in understanding how to properly return and utilize this data within a route. var findDocuments = (db, callback) => { var collection ...
fetchData.php <?php $info = $_POST; if (isset($_POST['idws'])) { $retrieveData = new retrieveData(); $data = $retrieveData->getRecord($_POST['idws']); print_r($data); ...
Hey there, I'm new to working with JQuery and I want to learn how to remove specific span classes from an HTML file. Let me give you an example: <p>Tatur mo commod ut ulluptataqui dolut accum, aut vendis simin rehenia que volestio eseria volo e ...