Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

124
Vistas
Dragging Ellipse over an image, storing and retrieving position values

Good morning I am trying to store/retrieve a draggable ellipse over an image. Here is the code snippet: https://codepen.io/lbrettsinclair/pen/RwMPwVO

Let's say I retrieve from the db the 2 values for top and left for 106 and 202, the ellipse is not set at the proper location. Whenever I drag the ellipse and move it , my 2 input are updated with what I think are the proper values.

<div>
<input type="text" asp-for="@Model.Player_Injury.Injury_PosX" id="postop" class="form-control" value=106>
<input type="text" asp-for="@Model.Player_Injury.Injury_PosY" id="posleft" class="form-control" value=202>
</div>

could you please help me find what's wrong with either the sets of the top/left or the storing or the javascript provided.

Thank you

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda