When does the orientationchange event trigger in relation to window rotation completion? Is there a way to fire an event before the operating system initiates the integrated window rotation? Edit: For example, can elements be faded out before the rotation ...
I am currently facing a particular issue <a href="" class="so" title="Schuko"></a> <a href="" class="so" title="French CEE17"></a> $('a.so').live("click", function () { var filter = $(this).attr("title"); ...
Currently, I am in search of a Javascript (preferably based on jQuery) Ajax image viewer with a zoom feature that is compatible with PHP. The closest match to what I require is a script called "thinDoc" which I found to be very impressive: thinDoc To se ...
During my development process, I always keep the developer tools open on one or more of my tabs. However, I noticed that when I switch to a tab where the developer tools were not previously open, a resize event is triggered. Strangely, this event causes el ...
I am considering developing an online "Slides viewer/Editor" using HTML5 slides with Html5 and Jquery. I want to ensure that this is feasible and will be compatible on mobile devices. While there are many Slides Viewers available, none of them have editi ...
When creating a chart with 4 series, I noticed that three of them are displayed as stacked bar charts while the fourth appears as a line. I initially assumed that the order in which I passed the series to the $.jqPlot function didn't matter. I thought ...
I have set up AngularJs and jQuery using RequireJs within a nodeJs framework. This is my main.js setup require.config({ paths: { angular: 'vendor/angular.min', bootstrap: 'vendor/twitter/bootstrap', jqu ...
Exploring the possibility of incorporating an open source widget to showcase images on a webpage, specifically leveraging angular.js. After conducting a search query on Google for "Angular.js photo carousel" or "angular.js photo viewer," I discovered only ...
How can I make DOM-element a visible when DOM-element b is visible, and hidden when b is hidden using jQuery? I'm seeking a solution to achieve this effect. Is there a way to accomplish this with jQuery? Thank you in advance! To clarify my question ...
I am seeking a way to access data from the Liferay portal using its JSON API through JavaScript client by making AJAX calls. After some research, I was able to find the address for the API : http://127.0.0.1:8080/tunnel-web/secure/json There is also a S ...
Currently utilizing Swipe JS to generate a full-screen image gallery and aiming to incorporate the functionality of clicking on the left or right edge to navigate between the previous and next slides. An attempt was made to create absolutely positioned a ...
When working in my Controller, I am retrieving data from a $resource object that is stored in a caching service. $scope.data = myService.query(); //myService caches the response. Within the same controller, I am setting up the configuration for a chart ( ...
I could use some assistance. I am struggling with working a plugin with a DOM element that is loaded after $(document).ready function has been called. Here is an example: $('.menu_confirm').confirmOn('click', function (e, confirmed) { ...
When passing a file, why does the `parseJSON` function fail? The file is stored in variable a and then I attempt to parse it using `parseJSON`. var a = "/android/contents/img/uploads/img_2A0.png"; var result = jQuery.parseJSON(a); The error being displa ...
I'm encountering a strange issue with containers that have overflow:hidden and when the page URL includes an id. The content gets pushed up and becomes invisible. This problem arises when I apply padding and negative margin at the bottom to create equ ...
Is there a way to retrieve the class name of an anchor tag and automatically click it? See below for the code: <div id="testing"> <a class="download_now link_btn" href="#">Download Now<i></i></a> </div> ...
I am looking for a way to create a menu where the drop-down items overlay the rest of the menu when the screen width is small. Here is my current code: nav{ line-height:100%; opacity:.9; }nav ul{ background: #999; padding: 0px; border-radius: 20px; ...
I am currently working on the TodoMVC tutorial for Ember and I have hit a roadblock. Specifically, I have defined 2 controllers. Here is my todos.js file: import Ember from "ember"; export default Ember.ArrayController.extend({ actions:{ crea ...
This is a snippet from my code: $.get('https://dl.dropboxusercontent.com/u/75734877/data.csv', function (data) { var lines = data.split('\n'); $.each(lines, function (lineNo, line) { var items = line.split(',& ...
Currently, I am utilizing jQuery to load gapi for my application's functionality in order to allow users to log out using their Google+ account. Although I have loaded jQuery in the head section of my index.html file, it appears that it is not being r ...
I've been trying to save an image on my local website, but most of the code examples I find are for C# and Java, which I am struggling to convert to JavaScript. Many of the examples I come across use libraries like Point and IO that are not available ...
This is the complete HTML code for the Tab section. <tab heading="Meta Data" id="heading_meta-data"> <div id="meta-data" class="row"> <div class="col-md-3 col-xs-3"> ...
Currently, I am going through an angular-meteor tutorial that can be found here I seem to be facing some issues with my code. Here's what I have: angular.module('socially').controller('PartyDetailsCtrl', function($scope, $statePa ...
Looking at a sorted array like this: var arr = [ "aasd","march","mazz" ,"xav" ]; If I'm searching for the first occurrence of a letter that starts with "m", how can I achieve it without iterating through the entire array? ...
Here is the code I am working with: <div class="footer-menu"> <span> <i class="fa fa-angle-right fa-md" aria-hidden="true"></i>World </span> <span> <i class="fa fa-angle-right fa-md ...
Why do I need to use the Upload service with ng-file-upload in this specific way? Upload.upload({ url: '/postMyFormHere', data: { fileToUpload: model.file, someField1: model.field1, someField2: model.field2, ...
I'm new to Angular and struggling to display my form. I used to generate the form. Page Link: Any assistance would be appreciated! Index.html <!DOCTYPE html> .... // (This section is too long for paraphrasing) My HTML <div clas ...
For my web application, I am utilizing PHP and MySql. When inserting a string into Mysql, it is formatted as a JavaScript Array ["0","1","2","3","4","5","6"] After retrieving the value from the database, it is saved in a PHP Variable $dow I am now looki ...
I am working with an array object and need to dynamically create a table where each tablerow (tr) pulls values from the array object. After creating the table, I want to store it in a variable so that I can pass it to a rest call, triggering an email with ...
I am attempting to create a function that will read the text from a text area, convert it into a string, and display it somewhere on the page. I'm expecting it to show up within the paragraph with the id "biljeske", but currently nothing is being disp ...
Is there a way to run a JavaScript file inside a Docker container automatically every day at midnight? Here is the script for running at midnight, called midnight.sh #!/bin/bash docker exec -it hash_app bash node midnight.js The Docker exec command fu ...
Looking to find digits but not when they are part of words (using JavaScript). The examples that should yield a match: 1 1,2 1.5-4 (matches 1.5 & 4 separately) (1+3) (matches 1 & 3 separately) =1; The following examples should NOT produce a matc ...
In my JavaScript project, I am utilizing three.js and attempting to determine if a vector remains within a designated area as shown below: var THRESHOLD = 10; if (!is_in_rect(camera.position - forward * THRESHOLD)) // do something where camera.positi ...
Trying to iterate through specific elements in React to render a portion of an array for each view. The rendering of the array should start from ArrayIndexStart and end at ArrayIndexEnd. Here is the current implementation: const ObjectArray = [ {" ...
Greetings, I am facing an issue while trying to compile my Android app using gulp with the command: gulp --prod -p android. The problem arises when comparing the file size of the generated APK between myself and a colleague. When my colleague compiles, the ...
I need to convert a date format from 19 Oct 2017 to 20171019. Is there a way to do this quickly? I am using FlatPickr in VueJs. Here is the code snippet for reference: import flatPickr from 'vue-flatpickr-component'; import 'flatpickr/dist/ ...
I need assistance with setting up pagination in my Gatsby blog. Within my pages/index.js file, I have stored the posts along with their respective chunks (4 posts per page) and the current page number: this.state = { allPosts: props.data.allMarkdownRema ...
I am dealing with an array of clubs var clubs =[{ team: {name: "fcb barca", rank: 4}, team: {name: "man utd", rank: 16}, team: {name: "man city", rank: 36}, team: {name: "fcb liverpool", rank: 57} }]; The task at hand is to separate this ...
I am working on a project that involves using Node.js for the backend and AngularJS for the frontend. I need to be able to open Office files (.doc, .ppt, etc.) directly on my webpage. These files are stored on an Amazon S3 server. I am looking to implemen ...
Experimented with the following approach: if (field == 'age') { if (this.sortedAge) { this.fltUsers.sort(function (a, b) { if (b.totalHours > a.totalHours) { return 1; } }); this ...
I currently utilize express and socket.io for my project. The node server is up and running on 127.0.0.1:3000, and I have successfully established a connection. var socket = io.connect('http://127.0.0.1:3000', {query: 'id=' + user.id} ...
I have been working on a website where all pages feature a header and a navbar located just below it. As the user scrolls down the page, I want the navbar to stick to the top of the screen once it reaches that position. However, on one specific page, I am ...
Currently facing a small issue with the aspect ratio difference between my desktop and mobile versions. Here is the desktop version: https://i.sstatic.net/dCyqQ.png And this is the mobile version: https://i.sstatic.net/PHas1.jpg Clearly, there is a notic ...
There is a function in my code that uses ajax to return JSON data: function fetchTagData(fileName) { $.ajax({ type: "GET", dataType: "json", url: "/tags/find-tag/"+fileName.tag, success: function(data){ con ...
Is there a feature that enables users to highlight and copy text from within a view? If not, is there a method to identify all "Text" type elements and extract the text they contain? <View> <Text>Text1</Text> <Text>Text2</Text& ...
I am encountering an issue while attempting to display the array output of a GraphQL query using React-Table. The error message I receive is 'Cannot read property 'forEach' of undefined'. Despite searching for similar questions on this ...
I have a query that I need help with: Could you possibly assist me in identifying the issue within this code snippet and explaining why it is not functioning properly? const fetch = require('node-fetch'); const fetchProm = (() => { retur ...
I am looking to add an input field that users can unlock if necessary. My idea is to have a button visually connected to the input field, either placed inside or outside of it. To achieve this, I have utilized the Vuetify Text Field's append-outer-i ...
I need to determine which routes to hide based on a condition that evaluates to true or false. I have a collection of routes, such as: - Products - Clients For instance, if a user logs in but does not have the permission to edit products, then the updated ...
I'm looking for assistance with sorting an array by month and year to display on a chart in the correct order. Array1: ['Mar19','Apr18','Jun18','Jul18','May18','Jan19'....]; Desired Output: ...
I'm currently experimenting with a simple JavaScript code in Visual Studio Code, but I seem to be having issues with the callback function not getting triggered. My main focus is on understanding the functionality of setTimeout() in JavaScript. I hav ...
My HTML page has the following controller setup: ... <div data-controller="parent"> <div data-target="parent.myDiv"> <div data-controller="child"> <span data-target="child.mySp ...
In order to create a real-time chat using websockets, I want to show the time of a message posted in this format: "% sec/min/hour/day now". After conducting some research, I came across two functions that I have modified : // Get the TimeStamp va ...
Trying to figure out how to click a button multiple times based on the number of elements found with a specific classname. If there are 3 elements found, the button should be clicked 3 times. The current approach: (Update at the bottom) The total count ...
While trying to complete this assignment, I initially attempted to search for JavaScript code that would work. Unfortunately, my first submission resulted in messing up the bootstrap code provided by the professors. They specifically requested us to use Ja ...
Recently, I encountered an endpoint function that looks like this: import AppConfig from "../config/app-config"; const create = (baseURL = AppConfig.apiUrl) => { const api = apisauce.create({ baseURL, headers: { "Cache-Control": "no-ca ...
I'm struggling to set up my HTML page with the basic scene because nothing is appearing. I can't seem to locate the required three.js file that I'm supposed to include in my js folder for referencing it as mentioned in the documentation (lin ...
My Image Gallery Slider has a feature that uses ScrollIntoView() for its thumbnails, but whenever I scroll up or down the page and a new thumbnail is selected, it brings the entire page back to the location of that thumbnail. Is there a way to turn off t ...
Currently, I'm in the process of developing a multilingual website using Hugo with the support of a multilingual theme called Ananke. For this project, I have added content in two different languages and configured the necessary settings in the config ...
Is there a way to preview a doc file before uploading it? I can successfully view pdf, png, and jpg files in an iframe using their base64 data. But for Doc, Docx, PPTX, and XLSX files, I am unable to display them in the iframe. <input type="file&qu ...
I'm looking to convert a dictionary into a list of dictionaries using JavaScript. Can someone help me with that? var dict = { "apple" : 10, "banana" : 20, "orange" : 30 } var data = [ {"apple" : 10}, {"ban ...
<v-file-input accept="image/*" label="File input" v-model="chosenFile" ></v-file-input> I'm working with Vue.js. How can I access the content of the files? var reader = new FileReader(); var img = ...
Currently, I am working on developing a backend API using Express with the support of @awaitjs/express. I'm encountering some challenges when it comes to dealing with 'double nested' endpoints. For example: // Within src/routes/routes.ts w ...
While experimenting with creating a basic text carousel, I encountered a puzzling issue that has me stumped. The structure of the carousel is straightforward. It consists of a wrapper and the actual text to be cycled through. Unfortunately, the problem a ...
I am currently working on filtering a list of names using regular expressions (regex). The data is stored in the following format: [ { "firstName": "Jhon", "lastName": "Doe", }, ... ] Users have the option t ...
When utilizing Smart Query for redirection, how can we redirect to a 400 page? While working with Vue Apollo, I attempted the following: apollo: { queryName: { prefetch: true, query: wrongQuery, error(e ...
I am trying to load the user's email from Auth0 and store it in a constant. However, I am getting an arrow. I cannot identify the error. Can anyone help me find a solution? const userEmailInfo = async () => { auth0Client = await auth.createClien ...
Is there a way to incorporate a dynamic route or path using the Express package? The challenge is that the path is an ID passed by the client and we have no control over it. const express = require('express'); const dynamicPath = express(); dyn ...
Is it possible to access the arguments of a closure from within the closure? function outerFunction (param1, param2) { // Returns [param1, param2, [param1, param2]] return function innerFunction () { return [param1, param2, arguments] } } // [1, ...
Trying to figure out how to create custom scroll up and down buttons for a Bootstrap 4 modal without the scrollbar that was hidden with CSS. I want to provide an easy scrolling option especially for those who might find using the mouse confusing. Is there ...
Every time I attempt to send a message over the IPFS network, I encounter the following error message: TypeError: Cannot read properties of undefined (reading 'publish'). This error crops up at line number node.pubsub.publish(topic, msg, (err) = ...
I'm an MySQL beginner. Should we use commit or beginTransaction in SELECT statements? Let's say the query looks like this db.query("SELECT * FROM my_table") In this scenario, do we need to use commit or beginTransaction? db.query(&quo ...
Within my project folder, I have a package.json file located at the root directory. This JSON file contains separate client and server folders. In the main package.json file, I have defined the following scripts: "scripts": { "server&quo ...
Adding a few numbers might seem like an easy task, but I've been unable to do so without using an explicit button. // Using useState to handle state changes const [ totalCount, setTotalCount ] = useState(0) // Function to add numbers of differ ...
I am new to React and decided to implement some functionalities to enhance my understanding of the framework. Currently, I am working on a search feature that displays results in a table format. Each row in the table has a delete option, which triggers a p ...