Cross platform development woes

Is there a way to find out which browser the end user is using? I have some code which works in Netscape, but not IE. I can change the code to work for IE, but then it doesn't work for Netscape. I want to use an if statement to make it work for both, ie.
if (somegreatmethod.equals(Netscape)){
//Netscape code here
}else{
//IE code here
}any help would be appreciated.

i think to do this you should do the detection using JavaScript on the client or on the server using the HTTP headers and then write out a parameter for the applet that will tell you this information... like what browser it is.

Similar Messages

  • Cross platform development issue (32-bit and 64-bit)

    We are developing an application which runs as a windows service on a Windows 2008 64-bit server; the service runs under the SYSTEM account. The development environment is Visual Studio 2008 using .NET 2.0, on Windows XP 32-bit.
    The application runs queries against a remote Oracle 11g database. We have installed "ODAC for Oracle Clients version 11.1.06.21" on the development system and Oracle Client 11.1.0.7.0 from "11107_w2k8_x64_production_client" on the Server installing only the default selection from Oracle Windows Interfaces 11.1.0.7.0. The DLL deployed by our application is Oracle.DataAccess.dll version 2.111.6.20. The installed DLL on the Windows 2008 server is in D:\app\Administrator\product\11.1.0\client_1\ODP.NET\bin\2.x and is Oracle.DataAccess.dll version 2.111.7.0. There is only one Oracle Home on the Windows 2008 server.
    Our windows service throws the following exception when run on the server:
    Oracle.DataAccess.Client.OracleException The provider is not compatible with the version of Oracle client at Oracle.DataAccess.Client.OracleInit.Initialize()
    at Oracle.DataAccess.Client.OracleConnection..cctor()
    We also have a desktop based test program which is built in the same environment and with the same libraries. This application connects to the Oracle server and can run queries with no problems.

    Hi,
    A process hang can be caused by many different things.
    1. What type of application are you deploying? Is this hosted (IIS ASP.NET) or client/server (Winform/console application)
    2. Are you able to determine exactly how far the application gets when it appears to hang? Or do you observe this at process startup?
    2A. Do you have any sort of application logging that can be turned on to determine where the application is hanging?
    3. Are there any entries being written to the event viewer log that provide any additional information for that process around that time?
    4. If the process starts up or this is hosted, you may consider taking an ADPLUS hang dump of the application process/worker process when it is considered hung. Inspecting the state of the threads may provide some clues.
    Jenny

  • Cross-Platform Development for Android and Windows PC

    Hi,
    Im trying to build a native Android app and port it over to windows.  Is there a way to build the Android App to minimize the recoding in Windows?  
    Has anyone used CodeNameOne or Xamarin and, if so, what was your experience? Are there better alternatives or approaches?
    In case it makes a difference, is it better to build an app in Android and port to Windows (desktop) or build in Windows and port into Android?
    Thanks,
    Soroush

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    As far as I know, Visual Studio does not support Android development. I suggest you should consulting your issue on Android forums for better support.
    For CodeNameOne and Xamarin, they are third-party tools, please consult on the forums/community provided by their authors.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Recommendations for cross-platform software development?

    I'm considering developing a new shareware product and I'd like for it to be able to run on both OS X and Windows, and Linux too if that ends up not requiring too much more effort.
    I've been a Java programmer for many years now, making Java in some ways a very obvious solution. But I've never been all that pleased with the look and the performance of Java Swing GUIs. Swing isn't all that bad for some uses, but it can be clumsy in many ways (like Mac open/save file dialogs), doesn't always get the look-and-feel of a particular platform quite right, misses many platform-specific features one might want to access -- in short, Java-based apps seldom manage to have the fit-and-finish of off-the-shelf, shrink-wrapped commercial software.
    I could stick with Java and try out the SWT toolkit (it's better at getting native look-and-feel, and native performance) for building a GUI, but from what I've read SWT has its limitation as well, and besides, because of the nature of the product I have in mind -- something dealing with audio and music -- a lot of the open source code I'd like to incorporate into my product is written in C or C++, and I might need to do some low-level driver work too. Trying to bridge all of that into a Java app with lots of JNI work doesn't seem like the best route to take.
    I could learn C# and use Mono to make my stuff work for OS X, but, although I've never worked with C# and whatever standard GUI libraries one would typically use with C#, I suspect that it will work best for Windows and be kind of iffy for Mac use.
    All this said, I'm fairly certain that, after many years away from it, the best thing for me to do is get back into using C++ for this project.
    From my cursory preliminary research, the best looking C++ cross-platform development library I've seen so far is Qt from Trolltech. It's also very expensive from the viewpoint of a start-up operation -- a few thousand dollars, even with a 65% discount given to small start-ups.
    There's the totally free, open-source wxWidgets, but it sounds like wxWidgets' Mac support isn't the greatest, and it sounds like it's noticeably buggier than Qt. Maybe it would still be good enough for my uses, but I don't know that yet -- which is one reason I'm writing this post, hoping others have had some experience with it.
    Anyone know any other C++ cross platform toolkits for general GUI application development? One article I read said:
    If your needs are a free cross-platform environment, then wxWidgets is your best and only solution. However, for under $100, you can find a cross-platform environment with a much better Macintosh user experience than wxWidgets.
    I can't seem to find any of these better-than-wxWidgets, under-$100 solutions, however. Suggestions, anyone?
    Quad G5 + 15" MBP   Mac OS X (10.4.6)  

    Hi--
    I think, from looking at that page he must be talking about the CPLAT framwork. It's kind of hard to figure out from that page, but he's got another page with information on CPLAT here.
    It looks like it's $50 for the license. You can also look at the official CPLAT site for more info. I've never used it, though, so I can't really say whether it's any good or not. But there is a trial version available...
    charlie

  • Recommended way to unit test mobile cross platform C++ in Visual Studio 2015

    Hello,
    I'm playing with the new Visual Studio 2015 to check its capabilities for cross platform development using C++ as coding language. I've seen several videos in Channel9 about this feature but I don't remember hearing in any of these a word about how
    to unit test such projects from Visual Studio 2015. Is there some recommended way to create unit tests for such projects?
    I'm not sure I can use Visual Studio test projects for C++ to test the android library or the Windows Phone 8.1. If I add a new platform ARM to a test project of those, I cannot select in the platform toolset combo the values that I have for my libraries
    (Clang 3.4 and Windows 8.1 respectively). So it seems that such test projects are not addressed for cross platform c++ in VS2015.
    I also have tried to make a second cross platform library project to contain the tests, adding there the Catch.h file from catch framework or adding the files from Google Test framework. My idea was to link each cross platform test library with their corresponding
    "production code" libraries. In both cases (catch and gtest) I have problems when trying to compile the test framework files (not sure if it is not possible or just my fault being new at C++ for mobile platforms).
    Has anyone succeeded unit testing the cross platform c++ code in VS2015? How?
    Thanks in advance,
    Jorge.

    Hi Jorge,
    Thanks you for posting in MSDN forum.
    Based on your issue, since VS2015 Preview is previews for the next major release of Visual Studio, currently we forums don’t provide support for VS2015 Preview. So the product team would accept the suggestions or feedbacks for the VS2015 now.
    So you can submit the feedback/suggestions to Microsoft Connect feedback portal:
    http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx, Microsoft engineers will evaluate them seriously. Thanks for your understanding.
    After you submit the feedback, you can post the link here which will be beneficial for other members with the similar issue. And I will help you to vote it.
    Thank you for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Buddiy API cross platform woes

    Hi,
    We are producing a cross platform CD-ROM and need to launch
    PDFs. We have purchased Buddy API and have the Windows version
    working fine. When we publish the Mac version it refuses to launch
    Acrobat, even though I can see the api being included during the
    publish process.
    I have installed the cross platform 'flattened' versions of
    the api into the relevant directories and indeed the Mac does NOT
    error saying it can't see the api.
    So it must be down to my code I think, here it is - any
    advise is very welcome - thanks. The PDF's are all kept inside the
    'MEDIA' folder btw.
    on mouseUp me
    tDelimiter = the last char of the moviePath
    tFile = _movie.path & "MEDIA" & tDelimiter &
    "Recovery.pdf"
    OK = baOpenFile(tFile, "normal")
    end
    P.

    The baOpenFile command has a built in method of telling you
    what the
    problem is. It will return an error code when it runs. As a
    test,
    adjust your code like this, then try it on the Mac:
    on mouseUp me
    tDelimiter = the last char of the moviePath
    tFile = _movie.path & "MEDIA" & tDelimiter &
    "Recovery.pdf"
    OK = baOpenFile(tFile, "normal")
    alert string(OK)
    end
    That alert will be a number. Check out the help file for
    BuddyAPI, on
    the baOpenFile page and it will tell you what all the numbers
    mean.
    My guess is that it will be "file not found" or something
    similar, and
    if that is the case, make sure that the media folder is
    visible to the
    Mac operating system. Making x-plat CDs is a tricky procedure
    and often
    a folder will only appear on one partition and not the other.
    If that
    is the case, then re-master the CD and make sure that the
    appropriate
    folders are available to both partitions.

  • Cross-platform baOpenFile

    I have an application with hundreds of small movies so i need to put them into a folder (called dswmedia) and an .exe and macintosh app to launch the application, outside the folder.
    I'm using MX2004 and working on a PC XP2 to develop my app.
    I have been trying to use baOpenFile to go from the .exe or .osx to a .dcr inside the dswmedia folder.
    It works easily on the PC, but when I try on the Mac I get the error message "The application Projector quit unexpectedly."
    I have checked every line of code and am sure the error doesn't happen until it comes to the line baOpenFile. I've checked the path on the Mac and it is correct.
    I have tried opening another projector instead of the .dcr file, but it still quits unexpectedly. I have also tried a pdf document but it quit.
    Can someone please tell me what I have to do to get it to work on the Mac?
    any suggestion will be very welcome.
    Carmel

    thanks so much Sean ... such a simple answer!
    now it is almost working!!!, but it has a different problem, related to the cross-platform path for external script,
    for some reason, when I open my app on the mac it is looking for the external script linked to the first movie, and is asking for it using a pc path.
    so I will open a new discussion.

  • Installing the cross-platform version of jmf

    I downloaded and exploded the cross-platform version of jmf on a windows nt box. I set my classpath to point to jmf.jar(per the setup instructions). I have a simple application that basically launches the movie viewer, but using this version of jmf doesn't allow me to view mpg's or avi's (these are the only file types I've tried). Installing the Windows version of jmf works fine, but am interested in getting the cross-platform to work the same way. Is this possible? Thanks,
    chris

    alelinuxbsd wrote:
    This reference gnome 2.26 development for slack 12.2 said gnome 2.26 is planned to be released 18 march.
    So I think that perhaps it is better to wait two weeks to be the package is ready and stable.
    I can wait that long, thanks!

  • Cross platform, multiple versions, multiple architectures.

    I am fairly new to Illustrator plugin development.  I played around with the ADM on the Windows side and got that working.  Then realized we needed to build a plugin to run on Mac.  And although the SDK says you can target multiple platforms in the PiPL, it never really worked right.
    Now I'm working on Mac with Xcode.  I'm running CS5.  Some of the machines I'm developing for are running CS4.  I've tried building the samples from the CS5 SDK and they work on my machine great.  When I build the CS4 SDK samples the tester can't load the plugin. (LiveDropShadow).  Do you think it is the version of Xcode?  I targeted the right OS version... made sure of that.
    So next question.. can I build/deploy the same Flex UI in CS4 and CS5?  Any tips/suggestions?
    thanks,
    Will

    You can absoultely hit both CS4 & CS5, Mac & PC -- we do! Hell, we used to hit CS3, CS4 and CS5
    Your problem with CS5 & CS4 is probably that you're using a suite version that is only available in CS5. When Adobe updates a suite, they still make the old version available, but the headers will always use the version that shipped with their Illustrator by default (makes sense). So, for example, the Art Suite might be version 14 in CS4 and 15 in CS5. If you use the CS5 headers, kArtSuiteVersion is 15, but 15 doesn't exist in CS4.
    Its easy to see if that's the problem -- add a message if AcquireSuite fails and have it print out the suite & version that failed. If that's the case, you'll just need to look at the CS4 SDK and figure out what version it shipped with (likely one less than you requested!). If you're not using anything added in the CS5 version, just switch the types & version requested to the CS4 one and after a recompile, you should be fine. Of course, this may repeat for several suites It might be faster to look at what suites you're requesting and then just check each one. A fast way is to look in the legacy folder -- if theres an AI140*.h version of your suite, that means it was updated in CS5, and you'll run into this problem.
    As for the ADM, well, we had the same experience. That's why we switched to Qt. There are undoubtedly other cross-platform toolkits you could use, but that one will work (albeit with some work). The next version of Illustrator won't even have the ADM in it, so its definitely wise to avoid the ADM at this point.
    I'm not too familliar with Flex, but I believe you can hit CS4 & CS5 with the same UI. I'm not the one to answer that unfortunately, as we don't use Flex. There's another thread from the last week that discussed the finer points of 3rd party vs Flash UI that you might find useful. It should be one or two down from this one in the thread list.
    Good luck!

  • Is InDesign SDK (CS4) cross platform

    Hi
    I am newbie to Adobe SDK and had a quick question.
    I remember reading in some documentation that Adobe SDK CS4 is "almost" cross platform. I am wondering if anyone here has experience with both windows and mac development to mention if that is the case or if there is some big differences. Also  I am wondering if to use InDesign SDK on Mac would I need to use objective C or would C++ work fine. Is using the SDK on Mac as simple as simplying copying the C++ files from windows and doing minor tweaks to them to compile?
    thanks
    Sam

    Hi
    Your source is the same for Windows and MAC
    The only difference is the compiler.
    Meaning if you are using source control, you can check out the same source om both Windows and Mac
    When dealing with files and Strings there are functions that only exist on Windows and some only on MAC
    But it's pretty straight forward....
    Of cource you have to download the SDK for both platforms

  • Cross-platform installs or upgrades

    If I understand the license agreement correctly (and correct
    me if I'm wrong), I'm able to install my copy of DW (and the rest
    of the Suite) on both my PC and on my laptop, provided I don't use
    them both at the same time. That's also provided that both my PC
    and my laptop are on the same platform. I have a Windows PC and a
    Mac laptop, so I'm out of luck. It seems a little unfair, and I
    know there must be some kind of anti-piracy thing that they don't
    allow this, but is there any consideration for changing this so us
    legitimate users can do cross-platform installs without having to
    purchase a second copy of the suite?

    easthollow wrote:
    > I have a
    > Windows PC and a Mac laptop, so I'm out of luck. It
    seems a little unfair, and
    > I know there must be some kind of anti-piracy thing that
    they don't allow this,
    > but is there any consideration for changing this so us
    legitimate users can do
    > cross-platform installs without having to purchase a
    second copy of the suite?
    Your understanding of the licence agreement is correct. The
    question of
    a dual platform licence is raised in this forum on a regular
    basis
    because many indpendent developers are in the same situation.
    However,
    the answer is no - the licence is for one operating system
    only.
    At the moment, the Studio 8 CD-ROM contains both Mac and
    Windows
    versions, but I suspect that this may not always be the case.
    Adobe
    software is sold on separate disks.
    I raised the question of dual licensing with an Adobe
    executive at Adobe
    Live in London a few months ago. He was sympathetic to the
    problems of
    an individual developer, but from the business point of view
    the
    situation was clear. It costs twice as much to create
    programs for both
    Windows and OS X, so if you want to use it on both systems,
    you must
    contribute towards both sets of development costs.
    If you need to run the Windows version on your Mac, you can
    always use
    Virtual PC or one of the dual boot methods.
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • FlexBuilder 3 cross-platform pricing

    Although I welcome the new pricing model for FlexBuilder 2
    ($249) I would like to see a cross-platform version for OS-X,
    Windows and Linux (including Design Mode :-) at the same price. As
    a freelancer and Java developer I often switch OS according to the
    need of the customer and I am would be very reluctant to buy 3 OS
    versions of FlexBuilder or running an extra VM just for
    FlexBuilder. All of my current Java software is cross-platform
    (i.e. the serial is the same): IntelliJ IDEA, JFormDesigner, Oxygen
    XML Editor, SmartCVS, SmartSVN - the list is endless. In fact -
    FlexBuilder would be the only product that does not support this.
    What do you think?
    Thanks,
    Peter

    To follow up even further, the license for Flex Builder 3
    will be multi-platform so that you can work in different
    environments.
    Matt
    Adobe

  • Cross platform CS on PC to CS3 on Mac does not work like video says

    Your video on cross platform workflow states that you can import older Premier CS files on a PC into CS3 on a Mac. I tried this and get the message, "this project was saved in a aversion prior to Adobe Premiere Pro CS3 and cannot be opened on a Mac. Please refer to the User Guide for import options." I guess I have to assume then that the video, www.adobe.com/go/vid0236, is wrong about this? Can someone please explain how I can salvage the work I did 3 years ago on Premiere Pro 1 on a PC when I am now exclusively working on the Mac in CS3?
    Thank you.

    Ty,
    This has come up a few times and the solution is to find a PC CS3 user, who will Open the Project and then Save it in CS3-CS4 for you. I does mean that you'll have to befriend a PC-person, but who knows, maybe you can reciprocate later on. In each previous instance, this workflow, PC to PC to Mac worked perfectly. Note: the same holds for Encore Projects, and there is some PC to PC incompatibilities between very early versions and later versions. I had to Open and Save an Enocre 1.0 Project in CS2, so a CS4 (only) user could then Open in CS4. This stuff happens, and the skip in Mac porting can play a role in it. If I had CS3 on my PC's, I'd do it for you, but CS2 will not hlep you.
    I believe that P 6.5 was the last previous version ported for the Mac, until CS3.
    Good luck,
    Hunt

  • Need Help in Cross Platform Migration

    Hi Gurus,
    can you please tell me best way to do Corss Platform Migration with minimum down time and we are planning to do from AIX TO HP-UX.
    oracle version is 10g
    and can we do the data sync using streems if it is can you give the steps to configure streems in cross platform.
    Thanks in advance.

    High Availability Customer Case Studies, Presentations, Profiles, Analyst Reports, and Press Releases
    [http://www.oracle.com/technology/deploy/availability/htdocs/HA_CaseStudies.html?_template=/ocom/print]
    Check under Transportable Tablespace at the bottom
    [Multi Terabyte Database Migration|http://www.oracle.com/technology/deploy/availability/pdf/TheHartfordProfile_XTTS.pdf]
    HTH
    Anantha

  • External Hard Drive won't appear on PC (want cross platform)

    I have an external USB Hard Drive. I formatted it using the Disk Utility, OS Format and Journaling. Did a small partition in case I needed a system boot drive. Now my sis needed to backup her laptop (Dell laptop), but the drive won't appear in My Computer, it recognizes there is a USB device on the lower task bar, but no drive anywhere.
    Do I have to reformat? what steps do I need to make this USB drive cross-platform friendly?
    Paul

    Hi, Paul.
    You may not want to reformat the drive as FAT-32 since there is a limit on the size of the partition, the maximum file size, and other issues, especially if her Dell's drive is formatted as NTFS (FAT-32 does not support NTFS extended attributes). FAT-32 is unsuitable for backing-up Mac OS X volumes as it cannot preserve the extended attributes (permissions, etc.) employed by Mac OS X.
    It's really best if you each have your own external hard drive for backup, as part of implementing a comprehensive Backup and Recovery solution, such as I use and detail in my "Backup and Recovery" FAQ. You also don't want one person inadvertently writing over another person's backups, which could happen if one is not careful. Furthermore, it is often easiest for recovery.
    How one handles backup in cross-platform environments is tricky and depends on the native formats employed by the different computers involved, and whether backup will be performed over a network or by directly connecting backup drives to the computers one is backing up.
    To enable her Dell to use the Mac-formatted drive, install Mediafour's MacDrive for Windows on the PC. MacDrive for Windows is probably the state-of-the-art application for enabling you to use Mac-formatted disks and hard drives on Windows-based PCs.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

Maybe you are looking for

  • FI-TV Postings (PRRW) impact on payroll reports

    Dear All, We are at a seriously challenged after adopting PRRW posting process for travel expenses. Here is what the situation is.... Initially our UK client always had payroll posting processed for travel related amounts / wage types. Lately, after

  • I cant create new events in iCal on my Mac or display them

    Since a few days ago after upgrading to Lion when I want to create a new event it dosent show up in my calender. All the old events is shown and when I create an event for example on my iPhone and sync with iCal on my Mac I can see the new event. I c

  • How to set sap directories for FTP via TCode:AL11?

    Hi, all I want transfer data from a FTP server to BW. With TCode AL11 I setup SAP directory for FTP, format as following: Z_MYDIR         ftp://user:[email protected] ftp://10.5.1.21 is the main directory in my FTP server. but when I double click the

  • Having trouble syncing digital booklet to iPhone.

    I purchased an album and managed to get the digital booklet on iTunes. I'm having trouble getting it onto my iPhone now. I've tried to sync it so many times but it just doesn't appear in the iBooks app on my iPhone. I'm unsure of how to get it on my

  • Suppress Export Option Using Crystal Reports Web Report Viewer (viewrpt.cwr

    We have an existing Crystal Report that is being displayed using the Crystal Enterprise Web Viewer (viewrpt.cwr) in a call like this: http://<servername>:8080/CrystalReports/viewrpt.cwr?id=<an id value>etc. When the report is displayed, the toolbar h