Jump to content

Recommended Posts

If you look at this code it gets the left coordinate of the div tag - http://jsfiddle.net/JuPA4/ which is pretty much what I need.

 

I am using a program on the Mac called Hype, it is like flash but all HTML 5, my demonstration is here - http://snooker-magazine.co.uk/phpfreaks/black.html

 

(I have asked on the Hype forums and have had no answer for 3 days now)

 

The black dot element is within a div tag called #black for some reason the code posted above does not work with the hype file! I know I can interact with it and I have added a demonstration to the page click Hide / Show to interact with the dot.

 

I am not the best with Javascript so if anybody has any ideas then the help would be appreciated.

 

There is a zip file in the parent folder with all the files if anybody needs them.

 

The end result of this is that the coordinates for both left and top are updated to a text input so I can place them into a database.

Edited by ferret147

Your console error is:

Uncaught TypeError: Cannot read property 'left' of undefined

No JS guru here either, but I'm guessing we'd need to figure out why "position" is undefined at this point.

Edited by dalecosp
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.