Hi, fellow DNNers
I promise, I've spent a few hours trying to solve this riddle on my own before posting here, but everything I've found and tried through Google hasn't quite matched the situation I'm experiencing. (I know, everyone says that, right?)
I've got a pie chart that was done up in Google Charts on a static HTML page, and we're trying to insert it into a DNN page. it's basically an externally linked JavaScript library that creates SVG output in response to user defined data structures that are done via inline JavaScript.
(At first, I did have an issue with DNN stripping out my JavaScript, but after some Google searching I figured out the whole Text vs. HTML editor issue. So I managed to get that part figured at least.)
Here's the peculiar bit-- it acts as though none of my JavaScript is present, but I can see the Google chart script link and my inline JavaScript when I use "Inspect Element" in my browser. It definitely isn't being removed or filtered out. It looks like the script tags and their contents are getting minified into single lines, but that shouldn't present any issue because I've got terminating semicolons in place.
When I check the console for errors, I'm seeing this message:
Uncaught SyntaxError: Unexpected end of input Default.aspx:699
Uncaught SyntaxError: Unexpected token < Default.aspx:699
Line 699 isn't one of my JavaScript lines, though. It appears to be this:
<span><span onclick=" return dnnModal.show('http://hvtechnologies.com/TestsTrack/tabid/389/ctl/Edit/mid/1132/Default.aspx?popUp=true',/*showReturn*/true,550,950,true,'');"><input type="image" name="dnn$ctr1132$dnnACTIONBUTTON1$ctl00$ctl00$ctl00" title="Edit Content" src="/images/edit.gif" alt="Edit Content"> <a title="Edit Content" class="CommandButton" href=" __doPostBack('dnn$ctr1132$dnnACTIONBUTTON1$ctl00$ctl00$ctl01','')">Edit Content</a></span> </span>
It's almost like my JavaScript has an extra/invalid opening bracket, but I've copied and pasted the whole HTML output into my editor to check it with color-coding syntax, and nothing seems to be triggering it there.
Is there some quirk to getting Google Charts' JavaScript to work with DNN that I'm not aware of?
Or maybe the HTML module isn't the right tool for the job?