Skip to main content

All Questions

Tagged with
0 votes
1 answer
88 views

nextjs "Error: Unsupported Server Component type: undefined"

My code is like below 'use client'; import { UserGroupIcon, HomeIcon, DocumentDuplicateIcon, } from '@heroicons/react/24/outline'; import Link from 'next/link'; import { usePathname } from '...
Kundera's user avatar
  • 155
0 votes
0 answers
34 views

Trying to figure out how to keep a heartbeat interval open from javascript to discord on a website to read messages?

I'm new to javascript development and I'm testing something where it can read messages on a certain discord server. The code I have now works for like 3 seconds when the website opens. I'm not sure ...
TheEmeraldEnd's user avatar
0 votes
0 answers
77 views

Docx.js: Use patchDocument on client side

I'm trying to fill a word template with data from JSON, and found this amazing library (Docx js), it's documentation says that works on server side and client side, until the most examples shows ...
Joseph Aguilar's user avatar
0 votes
0 answers
47 views

Handling of user-provided API keys in a client-side app (no server). Secure?

I'd like to create a simple JavaScript app that asks a user for their API key from a third-party service and makes it easier to use the service with a better GUI. There will be no server-side code on ...
Anton Zemlyansky's user avatar
0 votes
1 answer
39 views

PDF encryption image color corruption: should i encrypt hexa string inside an array value?

Here is my obj 17 encrypted, the ColorSpace value is the same as before encryption, so should i encrypt the hexa value inside the array value ? 17 0 obj << /Length 5696 /Subtype /Image /Width ...
Mustapha BOUFARA's user avatar
0 votes
0 answers
43 views

how can i enable the next button if one or more checked boxes are selected and disable if none are selected in ServiceNow

i am working on a ServiceNow custom widget in which i am getting all the data from backed in an array. i want that if user doesn't checked any checked boxes the next button should be disabled. if user ...
DIY Makers's user avatar
0 votes
1 answer
42 views

Webpack over CDN import to vue js The requested module 'url' does not provide an export named 'default'

Hope you're doing well. I'm currently working on a JavaScript module that I plan to load via a Content Delivery Network (CDN) using the URL https://x.com/my-script.js. However, I've hit a snag despite ...
Sabri Mahmoud's user avatar
2 votes
1 answer
254 views

docx.js: How to use document patcher on client side

I'm trying to generate docx file using the docx javascript library but only on the client side. The generation of new documents works like charm, but I would like to patch a document using the patcher....
rcheetah's user avatar
0 votes
3 answers
87 views

How to save a two dimensional array in a json file using javascript?

I would like to save a two dimensional array consisting of one column of indicators (string) and one column of values (integer our double) in a file that has JSON format. It somehow works but not the ...
Wolfram Scharnhorst's user avatar
0 votes
1 answer
86 views

My pdf encryption code encrypt stream but not string, what kind of string should i encrypt and in what encoding?

I tested this code to test by text fields: PDFWriter.prototype.encrypt = function (ref, obj, pdfSecurity) { let encryptedData; const encryptFn = pdfSecurity.getEncryptFn( ref.objectNumber, ...
Mustapha BOUFARA's user avatar
0 votes
0 answers
51 views

How to play with different voices in mespeak.js

I am currently working on mespeak.js I want to use a client side library that helps me convert text to speech without using any installed voices. mespeak.js helps to work on this problem but has very ...
Vatsal Rathod's user avatar
1 vote
2 answers
1k views

Handling simple hydration mismatch after fetch in Nuxt 3

I am making a simpe "email confirm" page. It gets confirm key from URL, sends a POST request to API which returns true or nothing. If key is correct the API removes it from database and ...
CMTV's user avatar
  • 2,719
4 votes
2 answers
187 views

Is it safe to use the `Function` constructor to validate JavaScript syntax?

I would like to verify (client-side) that the user has entered valid JavaScript code. Pulling in a Javascript parser (e.g. Acorn or Esprima) is a relatively heavy dependency. However (if CSP is not ...
cloudfeet's user avatar
  • 12.7k
0 votes
0 answers
208 views

How to use server functions during initial render in Next.js 13?

I was trying to create a dummy blog project to better comprehend Next 13 when I hit a block trying to crate a paginator. Currently I have a posts directory that runs on the server and uses a component ...
Eugène-René's user avatar
1 vote
0 answers
691 views

Decoding euconsent-v2 cookie client side

I and my team are deploying a new web analytics solution to a client's web site. The analytics tool is deployed via a tag manager and analytics tracking is executed client side. The client's using the ...
Alberto De Caro's user avatar

15 30 50 per page
1
2 3 4 5
77