-
June 25th, 2008, 05:18 AM
#1
Hi Dario,
I fixed my error ("up_down" field), but it still has error when you first page loaded -->
http://www.gls.com.vn:8080/priceonline/test.htm
Here my directory :
C:\Lightstreamer\pages\priceonline\test.htm
C:\Lightstreamer\pages\priceonline\js\prototype.js
C:\Lightstreamer\pages\priceonline\js\scriptaculou s.js
C:\Lightstreamer\pages\priceonline\js\controls.js
C:\Lightstreamer\pages\priceonline\js\slider.js
and my slider can't show.
-
June 26th, 2008, 08:28 AM
#2
Please consult a HTML expert.
I suppose that setting width=100% on the first column of a table and width=30 on the second column prevents the second column from being shown.
In your case, the first column of the outmost table contains an inner table with all the cells, while the second column contains the slider. I see that the HTML code that declares the slider is grayed in Firebug.
-
June 30th, 2008, 04:33 AM
#3
Hi Dario,
i know u aren't html expert (maybe), but i only going to http://app.lightstreamer.com/GridDemo and save as *.html file, just modified js script code (didn't modified html code).
Here my modified --> http://www.gls.com.vn:8080/priceonline/test2.htm , but it didn't show slider bar. I don't know why in HTML code that declares the slider is grayed in Firebug.
I hate to bother u but i'm a newbie in developer. I apologize about this.
Here my error, when you first page load.
-----------
-
June 30th, 2008, 08:48 AM
#4
Hello,
please, try to enable firebug and check if there are javascript errors.
have configured correctly the domain settings? (if you grab our html the page is configured with the "lightstreamer.com" domain)
-
June 30th, 2008, 11:01 AM
#5
Hi Mone,
I have enabled firebug and there aren't js errors.
Here my configured in html page, i removed "lightstreamer.com" domain :
--------------
var lsPage = new PushPage();
var debugAlerts = true;
var remoteAlerts = false;
var pushHost = null;
//for test
lsPage.context.setDomain(null);
lsPage.context.setDebugAlertsOnClientError(debugAl erts);
lsPage.context.setRemoteAlertsOnClientError(remote Alerts);
lsPage.onEngineCreation = function(lsEngine)
{
lsEngine.context.setDebugAlertsOnClientError(debug Alerts);
lsEngine.context.setRemoteAlertsOnClientError(remo teAlerts);
lsEngine.connection.setLSHost(pushHost);
lsEngine.connection.setLSPort(null);
lsEngine.connection.setAdapterName("HOSE");
lsEngine.policy.setMaxBandwidth(30);
lsEngine.policy.setIdleTimeout(30000);
lsEngine.policy.setPollingInterval(1000);
lsEngine.changeStatus("STREAMING");
}
lsPage.bind();
lsPage.createEngine("SLEngine","ls/");
----
And here my Firebug screen :
-
June 30th, 2008, 11:16 AM
#6
from the last image it seems that Lightstreamer is pushing, isn't it?
about the slider, did you change our slider's code?
maybe the problem is that you didn't get the css styles ( http://app.lightstreamer.com/GridDemo/css/table.css ) and/or the handle image ( http://app.lightstreamer.com/GridDemo/images/handle.png ).
-
July 1st, 2008, 07:42 AM
#7
Hi Mone,
Thank u. You right. My problem is that didn't get the css styles and have "handle.png" image. Now I fixed --> http://www.gls.com.vn:8080/priceonline/test.htm
and by the way, i have 156 items and i want to show 30 items per pages.Here my changed :
-------
var maxVisible = 30;
var values = new Array();
for (var x = 1; x <= 156; x += 1) {
values[values.length] = x;
}
new Control.Slider('handleFakeScrollbar','fakeScrollba r',{axis:'vertical',sliderValue:1,values:values,st ep:1,increment:1,range:$R(1,156),
onSlide:function(v){
updateWInd(v);
},
onChange:function(v){
updateWInd(v);
}});
------
Is it correct? When u holding the slider bar to scroll-down or scroll-up, in Firefox it loading data faster than IE (i'm using IE7). I don't know why.
And it still has 100% CPU when you first load the page.
Similar Threads
-
By genkijo in forum Client SDKs
Replies: 1
Last Post: July 20th, 2010, 09:20 AM
-
By cbrogliato in forum Client SDKs
Replies: 6
Last Post: May 8th, 2010, 09:14 PM
-
By hofmanna in forum Client SDKs
Replies: 3
Last Post: January 21st, 2010, 12:25 PM
-
By tuongkha in forum Client SDKs
Replies: 9
Last Post: July 9th, 2008, 09:27 AM
-
By bayu in forum Client SDKs
Replies: 1
Last Post: December 17th, 2007, 10:14 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 08:11 PM.
Bookmarks