Go Back   OpenLaszlo Developers Forums > Non-programming help and discussions > General Help

General Help Questions and information about non-programming things involving OpenLaszlo

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-05-2006, 05:46 AM
Oleg Oleg is offline
Community Member
 
Join Date: Sep 2006
Location: Odessa, Ukraine
Posts: 10
Oleg is on a distinguished road
Exclamation Opera identification problem

Hi!

I have Opera which is set up to identify itself as MSIE. When I try to load the automatically generated html for OpenLaszo app deployment, Opera complains about the "VBFlashVer" variable, which is undefined. I found the following code in lps/includes/embed.js:
Code:
function detectFlash() {
    var actualVersion = 0;
    var isIE  = navigator.appVersion.indexOf("MSIE") != -1;    // true if we're on ie
...
    } else { // isIE
        var vbver =  eval('VBFlashVer');
I added the following check:
Code:
function detectFlash() {
    var actualVersion = 0;
    var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) &&
                (typeof(VBFlashVer) != "undefined");    // true if we're on ie
...
    } else { // isIE
        var vbver =  eval('VBFlashVer');
and now it works fine.
Reply With Quote
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LzBrowser.loadJS() doesn't work right in Opera cameron General OpenLaszlo Programming 0 06-23-2006 03:12 PM
Chinese problem of Laszlo littleprince General OpenLaszlo Programming 1 02-28-2006 11:01 PM
Someone with good ideas for this problem? dimitar71 OpenLaszlo Installation help 5 02-23-2006 01:59 PM
Problem with object inheritance and arrays jasonb General Help 0 04-19-2005 07:04 AM
Opera 7.54 compatible? d~l OpenLaszlo Installation help 2 12-07-2004 12:42 AM


All times are GMT -8. The time now is 07:00 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.