Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uncaught exception: The target container must be visible #314

Open
chandrusuresh opened this issue Jun 16, 2016 · 5 comments
Open

uncaught exception: The target container must be visible #314

chandrusuresh opened this issue Jun 16, 2016 · 5 comments

Comments

@chandrusuresh
Copy link

I am trying to use jQuery to make a reference to an div id to plot. I am getting the:
uncaught exception: The target container must be visible

http://jsfiddle.net/kzdLmrsa/

@cesutherland
Copy link
Member

Here you go!

Doesn't look like jQuery was included in that page, and Flotr2 was pointing
to raw github content, which doesn't serve JS. I've updated the fiddle for
you!
http://jsfiddle.net/649agyk5/2/

-c

On Thu, Jun 16, 2016 at 7:00 AM, Chandrasekar Sureshkumar <
[email protected]> wrote:

I am trying to use jQuery to make a reference to an div id to plot. I am
getting the:
uncaught exception: The target container must be visible

http://jsfiddle.net/kzdLmrsa/


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#314, or mute the thread
https://github.com/notifications/unsubscribe/AAVQ9hrUVzOau_fvvFP9DwRSsw7ecdpwks5qMVcJgaJpZM4I3apJ
.

@chandrusuresh
Copy link
Author

does it work for you? It does not display the plot for me.

@cesutherland
Copy link
Member

My bad! I missed saving the proper link to the flotr2 script:

http://jsfiddle.net/649agyk5/3/

On Thu, Jun 16, 2016 at 12:41 PM, Chandrasekar Sureshkumar <
[email protected]> wrote:

does it work for you? It does not display the plot for me.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#314 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAVQ9irsq7M2czS53ziKYImXp4OtvA5Kks5qMabhgaJpZM4I3apJ
.

@chandrusuresh
Copy link
Author

Thx. But I would like to find out how to use jQuery calls to make it work. Specifically, looking at the last line, can you jquery the element by calling ($("#example")) instead of GetElemenyById()?

@jamesfraser
Copy link

@chandrusuresh The function needs a DOM element - you can get jquery to return this by using $("#example")[0] or $("#example").get(0), as per this jquery documentation

See the updated example: http://jsfiddle.net/649agyk5/5/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants