PDA

View Full Version : Help with Feed Viewer :: noob



no0b
26 Nov 2011, 5:58 AM
Hi all,

I want to create a dashboard based on the source code of the FeedViewer example (from the example section). I created an index .html (with all my config file in the header page - I use php &mysql) identically with the "FeedViewer" source page, I downloaded all JS/CSS files and added them on my htdocs folders but nothing happens - my index page is a... blank page.

I verified all link (JS`s and CSS`s) and all seems to be ok.
Thanks in advance.





<?php
include "config.php";
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Feed Viewer</title>


<link rel="stylesheet" type="text/css" href="<? echo $cfg['fullPath'].'extjs/resources/css/ext-all.css';?>" />
<link rel="stylesheet" type="text/css" href="<? echo $cfg['fullPath'].'initPortal/feed-viewer.css';?>" />

<style type="text/css">
.x-menu-item img.preview-right, .preview-right {
background-image: url(images/preview-right.gif);
}
.x-menu-item img.preview-bottom, .preview-bottom {
background-image: url(images/preview-bottom.gif);
}
.x-menu-item img.preview-hide, .preview-hide {
background-image: url(images/preview-hide.gif);
}


#reading-menu .x-menu-item-checked {
border: 1px dotted #a3bae9 !important;
background: #DFE8F6;
padding: 0;
margin: 0;
}
</style>

<script type="text/javascript" src="<? echo $cfg['fullPath'].'initPortal/bootstrap.js';?>"></script>
<script type="text/javascript" src="<? echo $cfg['fullPath'].'initPortal/FeedPost.js';?>"></script>
<script type="text/javascript" src="<? echo $cfg['fullPath'].'initPortal/FeedDetail.js';?>"></script>
<script type="text/javascript" src="<? echo $cfg['fullPath'].'initPortal/FeedGrid.js';?>"></script>
<script type="text/javascript" src="<? echo $cfg['fullPath'].'initPortal/FeedInfo.js';?>"></script>
<script type="text/javascript" src="<? echo $cfg['fullPath'].'initPortal/FeedPanel.js';?>"></script>
<script type="text/javascript" src="<? echo $cfg['fullPath'].'initPortal/FeedViewer.js';?>"></script>
<script type="text/javascript" src="<? echo $cfg['fullPath'].'initPortal/FeedWindow.js';?>"></script>
<script type="text/javascript">
Ext.Loader.setConfig({enabled: true});
Ext.Loader.setPath('Ext.ux', '../ux/');
Ext.require([
'Ext.grid.*',
'Ext.data.*',
'Ext.util.*',
'Ext.Action',
'Ext.tab.*',
'Ext.button.*',
'Ext.form.*',
'Ext.layout.container.Card',
'Ext.layout.container.Border',
'Ext.ux.PreviewPlugin'
]);
Ext.onReady(function(){
var app = new FeedViewer.App();
});
</script>
</head>
<body>
</body>
</html>

no0b
26 Nov 2011, 7:28 AM
The problem was here: Ext.Loader.setPath('Ext.ux', 'extjs/examples/ux');
and also added this line (path = path + "../extjs/";) in boostrap.js file before this line: document.write('<script type="text/javascript" src="' + path + 'ext-all' + ((isDevelopment) ? '-debug' : '') + '.js"></script>');
Thread closed!