D
Deno

help

Is there a way to copy an element and place it somewhere else?

Llakshya08307/17/2023
Stack Overflow
Is there a way to copy an element and place it somewhere else in fr...
I have been wondering if there is any easy way to copy an element and then place the copied element somewhere else like under the original element by using deno fresh. Here's what I have tried: The...
TTheYuriG7/17/2023
what's the use case? you would be messing the vdom that fresh needs. why not use state and hide in one place and show in another?
Mmarvinh.7/17/2023
I don't think there is something ready made for that as it's a bit of a very niche use case. That said it should work like in any other framework. P.S.: I wouldn't trust ChatGPT with Fresh stuff. The code it returned for fresh uses exports from Fresh that don't exist
Llakshya08307/18/2023
To make a website where in everyone can share their code.
TTheYuriG7/18/2023
not the website purpose, the purpose of moving the element i'm trying to understand how a state can't fit this need
Llakshya08307/18/2023
Not to move a element to copy a element
TTheYuriG7/18/2023
just copying to clipboard to paste later? you don't want to move a dom node?
Llakshya08307/18/2023
No I want to copy a dom node And Place it somewhere else in the website itself
NNeTT7/18/2023
what does this have to do with this
Llakshya08307/20/2023
Yes

Looking for more? Join the community!

Recommended Posts
not sure why this code is erroring```typescript for (const number of genNumbers()) { const result = await fetchPages(number); if (Why doesn't POST response from serveTls support streaming chunks from a ReadableStream?We can POST a ReadableStream to a serveTls server, however when we respond with a ReadableStream theWhen I use npm: node: specifiers how can I specify the version?We know in Deno we can do `import { Client, Pool } from "https://deno.land/x/pg@v0.6.1/mod.ts";` I wFakeTime seems to break async testsI am attempting to use FakeTime similarly to in the Faking time example of https://deno.land/manual@How to serve HTTPS with the Deno.serve() APII used to start a dev server with TLS like so ```const server = Deno.listenTls({ port: 7000, trCustom console.log formatting for a class/objectIs there a way to change the way an object/class is printed in the console? For example, instead ofIs there a way to write to a file by replacing bytes?Like "I am a looong file" > write('Test') > 'Test a looong file'std/http/server: URI too long —how to avoid loading those?Using https://deno.land/std@0.194.0/http/server.ts, is there a way to reject long URIs before they aWorker: TS2304 [ERROR]: Cannot find name 'postMessage'When type-checking a worker script that uses the global `postMessage()` method, `deno check` gives aHow to recover from worker death? It terminates my main program…In the error message handler, I replace the dead worker with a new one, but it kills my program eithIs there anyone using kv with pentagon ORM and Zod ?I've tried using pentagon for Deno kv in a Fresh project, and it seems like it's not working.Prefix Kv keys with a base partCurrently I add `base()` to all keys: ``` kv.set([base(), "foo"], value) ``` Instead of manually adCaching old versionsWhy is deno caching old versions even tho the version is specifieddeno check: Module '"internal:///missing_dependency.d.ts"' has no exported member...The sequence of events: - Upgraded to Deno 1.35.0 - ran `deno check` on my code - got an error like cargo compile size 160MWhen using `cargo install deno` the result is 160M, if there's info on shrinking this somewhere pleaDeno type enforcementHey, I have a question about the type checking. ```ts function logging(message : number) { consoDNS Records and Denoso I am confused I'm building an application that uses Steam's web API and am looking at why the resFresh pattern helpCould anyone possibly help guide me to understand the 'freshest' pattern for the following, please? Deno seems to assume wrong return type (Puppeteer)With the following code, I get an type error which I do not expect: ```ts const element: ElementHanCreating my first Deno moduleHave never published to NPM or Denoland before, so I'm having some problems figuring shit out. I'm g