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

  • Home
  • SEARCH
  • 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 7546551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:13:41+00:00 2026-05-30T09:13:41+00:00

I am using Jquery .keyup and .val to grab what I type into a

  • 0

I am using Jquery .keyup and .val to grab what I type into a form input. Then I place the value in a variable. After I draw a circle to some paper I created with raphael. I am wanting to modify a path based apon the variable I created with the form input. Right now I can put numeric inputs into the input field and a different circle size is drawn. What I want to do is change a point on a path var path = paper.path("M 250 250 l 0 -50 l -10 0 l 0 50 z" ); with the value of what is being typed so it looks like this var path = paper.path("M 200 250 l 0 -50 l -10 0 l 0 value z" );

So the first var path should change one of it’s points when you type 100 into the input field to 100. Right now it does nothing.

What I am attempting to do eventually is have a progress bar that changes size based on what is being typed into three different input fields. If there is another approach you would, I am totally open.

http://jsfiddle.net/anderskitson/XPwrj/1/

var paper = new Raphael(document.getElementById('canvas_container'), 500, 500);
  $("input").keyup(function () {
        var value = $(this).val();

        //var paper = Raphael(10, 50, 320, 200);
          var circle = paper.circle(50, 40, value);
          var path = paper.path("M 200 250 l 0 -50 l -10 0 l 0 value  z"  );
          var path = paper.path("M 250 250 l 0 -50 l -10 0 l 0 50  z"  );
          /*path.animate({  
            path: "M 250 250 l 0 -100 l -10 0 l 0 100  z"  
        }, 5000, 'elastic');*/

      }).keyup();
  • 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-30T09:13:42+00:00Added an answer on May 30, 2026 at 9:13 am

    Your code is using “value” as a part of the string, not a variable.
    Change your path code to

    var path = paper.path("M 200 250 l 0 -50 l -10 0 l 0 "+value+"  z"  );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Jquery to grab the input value as numbers are typed in
Is it possible using jQuery, or any other language, to make an input's value
I am using the following jQuery functionality to count words in real time: $(input[type='text']:not(:disabled)).each(function(){
I'm building a calculator, and am using the following: jQuery(function($) { $('#Quantity').keyup(function() { console.log($(this).val());
Using jQuery, what's the best way to find the next form element on the
I'm not using any jQuery plugin to validate the form, just plain jQuery. My
I have an ajax script executed using jquery when an input text field is
I'm using a placeholder span in my input fields. Using jQuery, I show/hide the
I'm using jQuery on this site, which has form inputs. I'd like one particular
I am using the latest and greatest jQuery. I have a form with three

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.