Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. problems setting jquery dialog left and top position

problems setting jquery dialog left and top position

Scheduled Pinned Locked Moved Java
javascripthelp
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CrafterIt
    wrote on last edited by
    #1

    Hi! i'm having problems setting the position of the dialog (Left and Top) after i have created it. i have tried this, but it's not working.

    $('#dialog').dialog('widget').position().left = 200;

    i have tried different solutions i have found but they didn't work either. could someone help i want to move the dialog to left and top cordinates i have stored i 2 variables thanks.

    C 1 Reply Last reply
    0
    • C CrafterIt

      Hi! i'm having problems setting the position of the dialog (Left and Top) after i have created it. i have tried this, but it's not working.

      $('#dialog').dialog('widget').position().left = 200;

      i have tried different solutions i have found but they didn't work either. could someone help i want to move the dialog to left and top cordinates i have stored i 2 variables thanks.

      C Offline
      C Offline
      CrafterIt
      wrote on last edited by
      #2

      found it it should be

      $('#dialog').dialog({ position: [x,y])}

      edit: you also need to convert to x,y variable to int with parseInt(x)

      modified on Tuesday, March 1, 2011 8:40 AM

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups