A small issue with the HTML key

Share RGraph:   Share or Like RGraph on Facebook!

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Zsolt on 27th July 2017
Hi Richard,

I'm trying not to be pain in the a*, but I found another issue.
When I'm using more than one chart on a page with html keys the table get the same id "rgraph_key".
I know I can refer to the table with the outer div, and it don't cause any problem, but as the html specification says the id has to be unique
and I cannot create a page w/o html errors in this case.

Regards,
Zsolt

Posted by Richard on 27th July 2017
Hi there,

That's a bug I guess - I'll fix that up. In the mean-time you might be able to get hold of the table by using jQuery or similar. EG if both the chart and key are in a DIV with an ID of foo you could do something like this:

$('div#foo table')


Richard
Posted by Richard on 27th July 2017
Hi there,

Ok it's fixed now and will be a part of 4.63. The new IDs for the table tag that the HTML key sits in will look like this:

rgraph_key_f1953341-ff1e-4d94-a1aa-70fb1167fdb3

And the HTML key DOM object is returned by the HTML key function.



Richard

Add a reply




« Back to message list