shindig-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kishor Kumar P <>
Subject Relative path issue
Date Fri, 29 Jul 2011 08:55:50 GMT
Dear All,

I am having a small JQuery based application which I expect the same to render inside gadget.

My gadget code is

<!DOCTYPE html>
                                <title>Jive based Spigit Application</title>
                                <link rel="stylesheet" href="css/gadgets.css">
                                <script type="text/javascript" src="gadgets/js/shindig-container:pubsub.js?c=1&debug=1"></script>
                                <script type="text/javascript">

                                var specUrl0 = 'http://' + + '/canvas.xml';

                                function init() {
                                                shindig.container.layoutManager = new shindig.FloatLeftLayoutManager('gadget-parent');
                                                var gadget = shindig.container.createGadget({specUrl:
                                                gadget.width =1100;

                                function renderGadgets() {
<body onLoad="init();renderGadgets();">
  <div id="gadget-parent" class="gadgets-gadget-parent"></div>

My canvas.xml is
<?xml version="1.0" encoding="UTF-8"?>

                <Require feature="opensocial-0.9"/>
    <Require feature="dynamic-height"/>
    <Require feature="settitle"/>
  <Content type="html" href="html/canvas.html"/>

This I made a bundle as a WAR where shindig libraries  also included.

I have a directory structure has CSS JS in different folders. When I access directly  everything
sound good but inside gadgets relative path say ../js,../css is not working properly.

Please help me in understanding what is the issue?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message