Javascript browser detecttion with FF4

Hi,
The following code works fine across all browsers except for FF4 ( worked in FF3).
What can I do now to fix the javsscript code below???
//Browser detections and OS
//Browser raw
function BrowserRaw()
var browser=navigator.appName;
var version=navigator.appVersion;
var r = browser +' '+ version;
return r;
//http://www.quirksmode.org/js/detect.html
var BrowserDetect = {
init: function () {
this.browser = this.searchString(this.dataBrowser) || "unknown1";
this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "-1";
this.OS = this.searchString(this.dataOS) || "unknown2";
searchString: function (data) {
for (var i=0;i<data.length;i++)
var dataString = data[i].string;
var dataProp = data[i].prop;
this.versionSearchString = data[i].versionSearch || data[i].identity;
if (dataString)
if (dataString.indexOf(data[i].subString) != -1)
{return data[i].identity;}
else
{return 'unknown3';}
else if (dataProp)
{return data[i].identity;}
else
{return 'unknown4';}
searchVersion: function (dataString) {
var index = dataString.indexOf(this.versionSearchString);
if (index !== -1)
{return parseFloat(dataString.substring(index+this.versionSearchString.length+1));}
else
{return 'unknown5';}
dataBrowser: [
string: navigator.userAgent,
subString: "Chrome",
identity: "Chrome"
{ string: navigator.userAgent,
subString: "OmniWeb",
versionSearch: "OmniWeb/",
identity: "OmniWeb"
string: navigator.vendor,
subString: "Apple",
identity: "Safari",
versionSearch: "Version"
prop: window.opera,
identity: "Opera"
string: navigator.vendor,
subString: "iCab",
identity: "iCab"
string: navigator.vendor,
subString: "KDE",
identity: "Konqueror"
string: navigator.userAgent,
subString: "Firefox",
identity: "Firefox"
string: navigator.vendor,
subString: "Camino",
identity: "Camino"
{ // for newer Netscapes (6+)
string: navigator.userAgent,
subString: "Netscape",
identity: "Netscape"
string: navigator.userAgent,
subString: "MSIE",
identity: "Explorer",
versionSearch: "MSIE"
string: navigator.userAgent,
subString: "Gecko",
identity: "Mozilla",
versionSearch: "rv"
{ // for older Netscapes (4-)
string: navigator.userAgent,
subString: "Mozilla",
identity: "Netscape",
versionSearch: "Mozilla"
dataOS : [
string: navigator.platform,
subString: "Win",
identity: "Windows"
string: navigator.platform,
subString: "Mac",
identity: "Mac"
string: navigator.userAgent,
subString: "iPhone",
identity: "iPhone/iPod"
string: navigator.platform,
subString: "Linux",
identity: "Linux"
BrowserDetect.init();

You can use [Google Web Toolkit|http://code.google.com/webtoolkit/overview.html].
It helps to write any Client-side JavaScript application on Java. And, of course, CSS and XML (for XPath) support is present.
You don't need Java Applet if you aren't accessing any hard devices on the client mashine.
So, if your XPath is on the Server GWT is your choice.
Edited by: MrSeeker on 23.06.2008 11:10
Edited by: MrSeeker on 23.06.2008 11:12

Similar Messages

  • Webmail no longer works with FF4. Message"you have undefined new mail in your inbox " but won't open

    webmail no longer works with FF4. Message"you have undefined new mail in your inbox " but won't open

    webmail no longer works with FF4. Message"you have undefined new mail in your inbox " but won't open

  • Robo form 6.10.2 no longer works with FF4, It shows that the plugin is installed.

    I just installed FireFox 4 RC1. Robo Form worked great with FF 3.6 A button that says RoboForm tool bar is on browser. When you press the button all it does is open another browser window with the same page that you are on.
    Has anyone else had this problem? Any Ideas?

    Siber Systems has chosen not to support V6 under Firefox 4. They want you to buy the program again even if they told you you'd get upgrades for life when purchasing Roboform Pro. There is a workaround posted on the internet.
    actually there is a workaround. all credits to swmyp from ru -board
    1. Numbered list item Install Roboform 7.2.7
    2. Numbered list item Copy folder "c:\Program Files\Siber Systems\AI RoboForm\Firefox\"
    3. Numbered list item Install Roboform 6.10.2 -dont untick option to install adapter for firefox
    4. Numbered list item Replace "c:\Program Files\Siber Systems\AI RoboForm\Firefox\" with your copy from 7.2.7 version
    now u should have working 6.10.2 roboform with latest adapter from 7.2.7
    If toolbar didnt appear right away after restart, remove Roboform toolbar extention from add-ons.

  • Is a Mac Power PC (not Intel) on OSX 10.5.8 compatible with FF4?

    I have a Mac Power PC G5 (i.e. pre Intel) and I am using OSX 10.5.8. My current Firefox is 3.6.24 and they tell I should upgrade, I guess to FF 4, but tech. spec. recommends Mac Intel. Is a Power PC compatible with FF4? Thanks

    No, Firefox 3.6.x. is the last version of Firefox from Mozilla for PPC Mac's.
    For older Macs that aren't supported in Firefox 4+ versions, try TenFourFox for PowerPC's running Mac 10.4.11 & 10.5.8 . <br />
    http://www.floodgap.com/software/tenfourfox/
    http://tenfourfox.blogspot.com/

  • Thumbnail links should have black surrounds till accessed. No surrounds with FF4.

    One web site I visit has thumbnail photos as links to other web pages. Said thumbnails, until accessed, have a black line around them which disappears after the link has been used. This is extremely handy for keeping track of things. All was fine with many versions of FF3 and Vista. With FF4 in that computer, these surrounds no longer show whether the link has been accessed or not.

    Hi Arun,
    I have checked the name of the collaboration room using the Collaboration Administration and searched for the room and then checked the name of the room.
    And then, through KM Admin, root--> rooms --> and then checked the name of the corresponding folder. Both the names are same. Still, we have the issue.
    Any other thoughts?
    Regards,
    Raghava

  • Why not i can use an archor in-page when i open page with ff4.0.1?

    as title.
    I can not use an archor in-page when i open page with ff4.0.1.

    Sounds like you want the New Tab Homage extension.
    https://addons.mozilla.org/en-US/firefox/addon/777/
    For more info about extensions, see [[Using extensions with Firefox]]

  • The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the

    When i tried to login in inbrowserediting.adobe.com i see that:
    The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user.
    What does it mean? What is problem?

    Hi,
    I have just created my First website using Muse and Its all been uploaded to my FTP server but i cant access the in browser editing which was the whole reason why i re-done the website for my client using muse
    its saying the following
    "The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user. server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user."
    Yet i Can access my website fine "www.calmwood.com.au"
    My ftp server responds to either the IP Address or the DNS Address www.calmwood.com.au
    so i am not understanding how it thinks its different. when its fully referenced
    any help would be appreciated.
    thanks

  • Browsing directory with RAW files

    Is there any way to browse directory with RAW files? I can use dcraw, ufraw or rawstudio to work on single file, but how to find the file I want in directory with more than 100 RAWs?

    I use rawtherapee for most of my photo editing needs.  (Not that I have an especially high skill level.)  It provides, among other things, a browser interface for moving through your files.  It looks like AUR still has version 2.3 -- I suggest the beta instead, which is available for x86_64 or x86 right from www.rawtherapee.com -- IME it's been very stable, and it contains many, many bugfixes and interface/workflow improvements over the current "release" version.
    I haven't broadly sampled a bunch of different apps, but I've been very happy with it.
    No installation is required, just extract to the directory of your choice and execute "rt" to run it.
    To get it working on Arch, I did have to do this step first, as noted in the comments in AUR:
    As root run "gtk-update-icon-cache -f /usr/share/icons/THEME" for the Icon-THEME you are using and rawtherapee starts nicely.
    If you try running it without first doing that, and it fails to start up, check to see whether you need to kill the "rt" process before trying again. 
    I've been using it since 2.3 was first released (IIRC) and have used it under Ubuntu and openSUSE successfully, in addition to Arch, both x86 and x86_64.
    Last edited by arch_nemesis (2009-01-13 20:30:34)

  • I can't access folders in my e-mail client with FF4 or FF5

    My e-mail client is eircom.net. Up to Firefox v4 I neevr had a problem using this service. The service also works fine in IE. However, with FF4 and, now, FF5 it is impossible to access folders within the e-mail database. This means that, if I have e-mails showing in the Spam folder or more than 20 previously unseen in my inbox I am unable to access them except by using IE. This is disappointing, to say the least!

    Hi TeriO58!
    Here is an article for you that can help you troubleshoot this issue with your email account on your iOS device:
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • Opening a browser window with Java

    Is there a way I can open a Browser Window (with a specific html document) from Java? Thanks.

    Use Runtime.exec(cmd) with the following command:
    Under Windows 9x:
       command.com /C" start "urltofile.html"Under other Windows:
       cmd.exe /C [start] "urltofile.html"  (start is needed when url begins with 'http://")

  • Detect Safari browser close with the iPad 3

    Detect browser close with the iPad 3
    We have a web site being used on the iPad 3 through Safari.
    Our web site is used in a public setting and multiple users login to use it at different times. We have a questions about user account security.
    When a signed in user clicks the home button on the iPad , which minimize Safari and returns them to the home screen, can the user be signed out of our web site? We don’t want someone else to come and open the Safari browser and have access to the previous user's account information. Is there a client-side event that is triggered that we can handle so we can log the user out of the site?

    Is the iPad shared by everyone at this public setting?
    There is currently no way to handle different users on the iPad (or any iOS device).
    They are designed as single user devices.
    If your company is eligible for an Enterprise account, then you could write an app that could handle clearing user credentials but not in the current "normal" environment.

  • Strange browser behavior with bookmarks

    Has anyone else noticed strange and/or inconsistent behavior when navigating through projects that contain pages with boomkarks such as
    Bookmark
    <a name="Bookmark"></a>
    (OHJ 4.1.17 and 4.2.2)
    I notice that when I click on a bookmark that takes me further down on a page, I can't use the Back button to return to my previous location. Often the Back button takes me to the previous topic instead of taking me back to the top of the page!
    I was playing around with the Oracle Help Guide and noticed that somehow they have got their bookmarks working properly...but then actually after playing around with it I'm noticing that the behavior is very very inconsistent. For some topics the bookmarks seem to work well (sometimes), other pages not at all. Most pages it seems hit or miss. I'm stumped!

    Actually Ryan didn't give a full answer here. The issue with bookmarks is that the ICE Browser that OHJ uses to display the author's HTML pages doesn't notify OHJ when the user clicks on an link to an anchor in the same page.
    Therefore, OHJ had no way of knowing to update it's back/forward functionality. In older versions of ICE,
    used with older versions of OHJ 4.1.x the ICE Browser
    does notify OHJ when the link is of the form:
    Link to Anchor
    So, often authors producing content for OHJ used this as a workaround and always included the file name in the link (even though it is not necessary to link to an anchor in the same file). This workaround doesn't appear to work with the new ICE Browser used with OHJ 4.2.x.
    Oracle maintains a modified version of the ICEBrowser and I will look into making use of Oracle modifications to fix this problem permanently.

  • BROWSER HANGING WITH LOADING JAVA APPLET

    HI
    WHEN I RUN THE FORM ON THE EXTERNAL
    BROWSER.(USING OPTION RUN A FORM ON THE WEB).
    FILLING IN ALL THE DETAILS.
    BROWSER HANGS WITH MESSAGE LOADING JAVA APPLET.
    TEST.FMX IS IN THE FORMS60 PATH.
    I NEED HELP THANKS
    DEEPAK.
    null

    Try using the java console to get more info on what is hapenning.
    If you have using Jinitator its on the jinitator control panel.

  • How can I browse movies with Closed Captioning?

    I want to be able to browse movies with CC, and can't find a way to quickly do this. I used to with the Powersearch feature, but I can't find it within the new iTunes. It makes looking for movies a very long and frustrating experience, since not having closed captioning is not an option for me.

    OK i replied with the idea of repurposing ``genres because that would give you what you want. I do not think there is any way else in iTunes 11.0.1 
    So if you created a Closed Caption Genre and assigned it to all your closed caption films, when you browse Genre and select Closed Caotion then all those films appear in the roight and you can browse to your heart's content.
    Or if you require more granular control the Genre field can have mahy entries sepasrated with a comma
    eg CC, Comedy or you could go CC Comedy.
    I do not know of another way of doing this maybe someone else can help.
    Did you used to be able to do this in earlier versions of iTunes

  • Android File browser/picker with previews

    Dear Adobe Community,
    Does anyone have any suggestions on how to add a file browser interface with preview icons of images, videos, and/or file type icons on Android using Adobe Air? The closest I've found is a native extension from Freshplanet called AirImagePicker, but it seems to have a bug or such that makes it crash after a file is selected (esp. a non-image type file). If the extension worked as advertised, it would be a shoe-in solution for what I am trying to do. I am hopeful the collective Adobe developer community can point me in the right direction.  (Again, the key being able to visually see preview of the file I am picking, not just a list of filenames, which I can do now).
    thank you for any suggestions,
    Alex

    Jari,
    After stoping and starting Apache it still does not let the android native browser recognize and download the .apk file from the database. I did notice the mimetype changed in the database row uploaded from application/x-zip-compressed to application/octet-stream after start/stop Apache.
    The last thing we can see on the android browser after the user clicks to download is if flashes by quickly trying to reference ourserver.address/pls/apex_util.get_blob?s=1529869703592527&a=348&c=51564030540477032&p=9&k1=63&k2=&ck=BF8169C3C24A2EE7047306EABEAFCB1C&rt=CR
    I do not know if the bug noted is causing issues or not. I do not get any error uploading the .apk file into apex if that is where the error occurs?
    Any thoughts on what is happening?
    Thank you,
    Mark

Maybe you are looking for