-
October 1st, 2008, 07:43 AM
#1
CreateEngine - path - issues in chrome
lsPage.createEngine("TutorialDemo", "LS/");
this works fine in firefox3. but doesn't work in chrome. it says that unable to find the engine - bind
(demo application is working fine on chrome. this happens for my application only)
what is actually meant by path in createEngine?
i'm using all the lightstreamer related javascript related stuffs in a separate js. (not inlined) it loads both lspushpage.js and commons.js correctly. then why cant it find this path?
-
October 2nd, 2008, 10:41 AM
#2
The createEngine function specifies, as the second parameter, the base URL of the Lightstreamer Web Client Library resources (i.e. the URL of the directory containing the Library resources), in absolute or relative form.
Sicne you put the createEngine call in an external JS, I suspect Chrome is interpreting your relative path in a different way than Firefox. You could try with an absolute path.
-
October 2nd, 2008, 12:02 PM
#3
We have tried to replicate the issue, but haven't found any difference for Chrome.
In our test, we simply included the js file from a <script> block.
Please let us know if using an absolute path in "createEngine" causes any change.
-
October 8th, 2008, 01:25 PM
#4
i tried it. still no change. it cant find it.
(I tried saving ls files in wamp server and giving entire path too)
-
October 9th, 2008, 08:47 AM
#5
There are various possible reasons for not getting the engine.
For instance, the engine page may be loaded correctly, but then may not be accessible because of a document.domain problem.
May you please check if the request for the "lsengine.html" page hits your web server?
Can you see the demos on Lightstreamer website correctly on Chrome?
-
October 9th, 2008, 02:23 PM
#6
Can you see the demos on Lightstreamer website correctly on Chrome?
yes they are working.
May you please check if the request for the "lsengine.html" page hits your web server?
I'l let you know
(FYI : i'm using velocity)
-
October 10th, 2008, 11:09 AM
#7
I have realized that you started from the tutorial demo.
Note that the tutorial demo is based on Lightstreamer Server itself as the Web Server. If you now use an external Web Server, then the domain setting becomes important and has to be set properly.
An improper setting of the domain may also lead to browser-dependent issues.
Assuming you are using LS 3.4.8 (in the current 3.5 version the tutorial has been replaced) you can find instructions about the full deployment associated to the demos in DOCS-SDKs/sdk_client_web/examples. See StockListDemo/README.TXT, for instance.
Note: in LS 3.5 the same instructions are reached in a different way and are in
pages\demos\HOW_TO_DEPLOY_ON_YOUR_WEB_SERVER.TXT
Similar Threads
-
By tsezuu in forum Client SDKs
Replies: 2
Last Post: November 24th, 2011, 03:09 AM
-
By mnenchev in forum Client SDKs
Replies: 1
Last Post: November 9th, 2011, 09:02 AM
-
By Alessandro in forum Client SDKs
Replies: 0
Last Post: September 13th, 2010, 05:15 PM
-
By mohamida in forum Client SDKs
Replies: 10
Last Post: August 18th, 2010, 12:50 PM
-
By georgeeapen in forum Client SDKs
Replies: 1
Last Post: May 25th, 2009, 09:21 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:21 AM.
Bookmarks