Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6965519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:04:18+00:00 2026-05-27T16:04:18+00:00

I recently embarked on a highly interactive html5 application using d3.js and svg. Though

  • 0

I recently embarked on a highly interactive html5 application using d3.js and svg.

Though currently running entirely in the browser, I’ve taken care to separate code used to generate the svg structures from that manipulating them.

To protect at least the svg generation logic (by far the greater effort), I’m toying with the idea of it’s server-side generation using node.js, somehow “clipping” the resulting DOM or SVG structure, passing this to the browser and effectively “grafting” it onto (respectively) the local DOM or a prepared html div. The goals:

  1. none of the original “svg-generating” javascript would be transferred
  2. any resulting structure should ultimately be addressable using d3’s select() or selectAll() calls

I have no node.js and only vague html5 DOM knowledge. My questions:

  • Is transfer of part of a raw DOM or SVG structure to the browser feasible, and how?
  • If both possible, which would you recommend
  • Are there specific security issues I should be aware of

I realise this is a potentially complex issue, welcome partial answers and relevant leads (books, tuturials, examples).

Though I searched intensively before posting this question, I missed
Accessing a DOM object defined in an external SVG file. Looks promising, but given the size and complexity of the structures I need to transfer, I’d welcome further comment.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:04:19+00:00Added an answer on May 27, 2026 at 4:04 pm
    1. Is transfer of part of a raw DOM or SVG structure to the browser feasible, and how?

      Yes, it is possible. Simply transfer any particular sub-node/tree of the SVG as its own XML document.

    2. If both possible, which would you recommend

      HTTP communication is all strings, so you can’t pass ‘DOM’ objects over the network. All you can pass are the serialized versions (the raw SVG XML).

    3. Are there specific security issues I should be aware of

      None that I can think of. This seems like standard server-side generation of content. What sort of issues were you thinking about? You’re not going to execute raw code sent in the HTTP request on your server, are you?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently embarked upon the grand voyage of Wordpress theming and I've been reading
Recently I ran into this error in my web application: java.lang.OutOfMemoryError: PermGen space It's
Recently I'm doing some work on RTMP streaming, that is using Flowplayer to integrate
recently I started using storyboard and I've the following situation: I want to set
I have recently (in the last week) embarked on an experiment wherein I attempt
Recently I was trying to determine the time needed to calculate a waveform using
Recently, I like using CSS-Table Layouts more and more. When I had another issue
Recently, the book on threading for Winforms application (Concurrent programming on Windows by Joe
Recently I've faced such problem. I'm working on the application, in which logging is
Recently I'm using IBM Websphere Server for some estimates. Include: - WebSphere AS Community

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.