nageshit2011 Posted November 6, 2014 Posted November 6, 2014 Hi All,I have implemented the Jasper Sever Dashboard using visualize.js, its working in local with floowing URLShttp://127.0.0.1:8080/kpi-server/client/visualize.jshttp://<hostname>:8080/kpi-server/client/visualize.js ex:myserver.comBut it is not working with the IP address instead of hostname. And one more thing is currently we are using Jasper Server & our application in same domain, so I dont want to hard code the IP adress in JSP. If it is hard coded, again I have to take care when we are moving patch from one server to other.Current/Working Implementation: (jasperserver war file name : kpi-server(5.6 version))<head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <!-- Provide the URL to visualize.js --><script src="http://myserver.com:8080/kpi-server/client/visualize.js?logLevel=debug"></script> <script type="text/javascript">visualize({auth: {organization:"organizations",name : "superuser",password: "superuser"}},function(v){var report = v.report({resource: "/public/Samples/Reports/AccountList",container: "#container"});});</script> </head><body><!-- Provide a container for the report --><div id="container"></div></body>Expected Implementation: (jasperserver war file name : kpi-server(5.6 version))<head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <!-- Provide the URL to visualize.js --><script src="/kpi-server/client/visualize.js?logLevel=debug"></script> <!-- Since both are in same domain --> <script type="text/javascript">visualize({auth: {organization:"organizations",name : "superuser",password: "superuser"}},function(v){var report = v.report({resource: "/public/Samples/Reports/AccountList",container: "#container"});});</script> </head><body><!-- Provide a container for the report --><div id="container"></div> </body> Note: I have seen easyXDM documentation also, since visualize.js intergation done with easyXDM. It is working with IP address in same domain & different domain also.Kindly suggest me, if I have done wrong.Regards,VV Nagesh Bodapati.
mikchester Posted March 11, 2015 Posted March 11, 2015 You need URI in this case (instead of URL). Try changing the script source to:<script src="kpi-server/client/visualize.js?logLevel=debug"></script> [/code]
mikchester Posted March 11, 2015 Posted March 11, 2015 The question is more about HTML and Hyperlink referencing. You may prefer changing the question tags to suit the same.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now