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 8120399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:09:12+00:00 2026-06-06T05:09:12+00:00

In my SVG, which you can see on pastebin here , I draw two

  • 0

In my SVG, which you can see on pastebin here, I draw two identical shapes to use as sliders.
For the first, I pre-define the rectangle (and it’s fill), and then draw it with <use>. ID = “slider_1”.
For the other, I draw it straight out via <rect>. ID = “slider_2”.

When I feed slider_2 to my JavaScript, all is well.
When I implement on slider_1, the chrome console says I have an Uncaught ReferenceError: selectElement is not defined on line 87.

The slider functionality all still seems to work just fine, but since I’m trying to become more familiar with JS, I’d like to understand what the problem is, and why, and fix it.
There is no explicit call for a “selectElement” on that line, but that is the line of code targeted by the selector … beyond that, I’m at a loss 🙂

  • 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-06-06T05:09:13+00:00Added an answer on June 6, 2026 at 5:09 am

    You have a call to selectElement(evt) on line 44, but that function is never defined anywhere.

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

Sidebar

Related Questions

I'm in need for a good SVG editor which can produce valid xml according
Using SVG path, we can draw 99.99% of a circle and it shows up,
I want to compare two vector images (say SVG) and see how close they
Below is an excerpt from an .svg file (which is xml): <text xml:space=preserve style=font-size:14.19380379px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu
I have a php script (generator.php) which generates certain HTML/XML/SVG depending on various conditions.
I want to Embed SVG into XUL. I tried to use the this tutorial
I have a website which uses SVG for an interactive client side thingamabob. I
Summary: I want to see more detailed XML/SVG parsing error messages. I want to
I have a SVG create with Raphael 2.0 which look like this : <div
Can d3.js layout.force be used to (re)position non-svg elements like div's? If div's have

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.