All Questions
47
questions
0
votes
0
answers
14
views
Calling Wordpress PHP route within an IFrame
I want an add to cart functionality within an iFrame that is built on my local drive (localhost3000). There exists a route in the wordpress site that hosts it, but I am not sure how to bypass COORS ...
0
votes
0
answers
29
views
jQuery not loaded for direct page hit, but is when navigating to the same page
I have a NextJS app that has a page which has a sub-component on it that utilizes the isPropagationStopped method from jQuery from within my index.js.
index.js is loaded from an external source, ...
0
votes
0
answers
99
views
Document is undefined using jQuery in nextjs 14
I'm working on a project, the project was a WordPress template and it's converted to Nextjs application.
They used jQuery and gsap for animations. The problem is I got 500 error for document in ...
1
vote
0
answers
64
views
NextJS CSR Build Error with jQuery - Cannot read properties of undefined (reading 'document')
I am developing a React application with client-side rendering (CSR), and I am using jQuery along with Evo Calendar for a custom calendar component. The application works fine, but during the build ...
0
votes
0
answers
51
views
I Linked local jquery files in my next js 14 project in layout.js, some time it worked but some time it gave me errors like jquery not define
When I load project, I get errors like this:
jQuery not defined
Unhandled Runtime Error
TypeError: a is not a function
And when I refresh page multiple time some time it worked and some time start ...
0
votes
1
answer
41
views
JavaScript React Slider can't hide the next arrow button when no images on screen
I am showing n number of images inside a div depends on screen size. Currently, I am hiding the previous button when the currentIndex != 0 but can't hide the next button when I don't have any images ...
0
votes
0
answers
84
views
Migrate jquery project to nextjs, and remove modularisation for each file
Right now, we have 2 programs running to power one web application. There is a nextjs application which handles about 20% of the application's logic, and a django application serving a jquery-based ...
0
votes
0
answers
30
views
Next.js _ styles not applying to jQuery append element
import styles from './xyz.module.css'
import $ from 'jquery'
export default function abc () {
const input = '<input type="text" className={styles.input}/>'
const addInput = () => ...
1
vote
1
answer
22
views
How get text just from one element which is next dynamicly jquery
I have a problem with this code. I tried so much codes before but everytime happends like a one code everytime I append new button with the same every element texts or in another way nothing works for ...
-1
votes
2
answers
87
views
React array map to list fails without error warning
I have searched through all answers on Stack Overflow for a solution to my problem. I am just stuck because there isn't any error message in the console. I believe there is a bug which I cannot ...
1
vote
0
answers
224
views
How to initialize jQuery library in Next.js?
I know jQuery is aganst React principles, as it does direct DOM manipulations. But I need to use Revolution Slider library, and I found this the only way to do.
I would implement this tutorial:
http://...
0
votes
0
answers
58
views
How can I get rid of the text field when using jQuery.terminal with Next JS?
I am trying to use jquery.terminal within a Next.js app.
This is my terminal component:
import React, { useEffect } from 'react';
import $ from 'jquery';
import 'jquery.terminal';
...
0
votes
2
answers
73
views
How to append "disable" attribute in button using React
I am working on Reactjs/nextjs, And i want to append/remove "disable" attribute,how can i do this ? Here is my current code
const handleSubmit = (e) => {
e.preventDefault();
//...
1
vote
1
answer
281
views
How to check valid email address in Reactjs
I am working with React js and I am using next js, I am trying to handle "Axios response" in nextjs but I am getting "[object Object]" as a response, How can I get a response and ...
0
votes
1
answer
99
views
How to use javascript/jquery in Reactjs
I am working in Reactjs and i am using nextjs framework,Right now i am trying to use following code in index.js so i can display data (day month day etc),How can i do this ? Here is my code
<script&...