Java Script behaviour in different browsers

On an entry form(MD) on the javascript handler onClick for
Insert button I have the following piece of Javascript:
if (document.forms(0).item(12).value==0)
var y=window.alert('No project selected');
So I am checking the value of a number field and if is zero , a
warning is shown.
The form is working properly on IE5 or 5.5 but not on some
Nescape browsers versions(4.6 and up).
Can anybody show me what is wrong and how can be corrected.
Thanks
Lawrence

If your item type is a combox box, you'll need to write your
JavaScript like this:
if (this.options[this.selectedIndex].value == 0)
alert('put message here');
You can also write it in pl/sql as:
htp.p('<SCRIPT LANGUAGE="JavaScript">
if (this.options[this.selectedIndex].value == 0)
alert('put message here');
</SCRIPT>');
Fran

Similar Messages

  • I can not get Firefox to play music backgrounds on pages in browsers it works in IE and other browsers but not firefox, what HTML or Jave script do I need too use to make them work?

    I'm having a problem with firefox playing background music on some sites, it works with IE and other browsers but not with fire fox, what html or java script do I need to add to the pages so that they play the music?
    I develop my pages in Front Page and I know that the music only works in IE, so if someone can tell me how to correct this problem as it is important as I use fire fox as my main browser.
    I thank you in advance

    If a website uses BGSOUND then it will only work in IE.
    BGSOUND is not compatible with other browsers like Firefox.
    * http://kb.mozillazine.org/Background_music_does_not_play

  • Need flash player 8 and java script enabled to play videos on ipad, need help please.

    need flash player 8 and java script enabled on my ipad in order to view videos.  please help.

    iPads do not directly support Flash.
    You can look for Flash Browsers in the App store for some options to try. Support is not 100%, but maybe one may work for you.  Browsers like Puffin, Skyfire, Photon etc...
    IPads do fully support JavaScript.  Just make sure its turned on under Settings->Safari->Advanced->JavaScript.
    If you require Java, which is completely different to JavaScript, again there are some browsers in the App store that support it.  Search for "Java browsers" in the store.

  • Running Web Dynpro Applications in Different Browsers

    Hi,
    I runned an Web Dynpro Application in different browsers(Opera, Firefox and Internet Explorer). The problem is that in Firefox is running fine, but in Internet Explorer some controls are missing and in Opera I got an Error Page that say the following:
    An error has occurred:
    "Failed to process the request."
    Please contact your system administrator.
    This page was created by SAP NetWeaver. All rights reserved.
    Web Dynpro client:
    Nokia Series 80 Client
    Web Dynpro client capabilities:
    User agent: Opera/9.25 (Windows NT 6.0; U; en), client type: op6, client type profile: op6, ActiveX: disabled, Cookies: enabled, Frames: enabled, Java applets: disabled, JavaScript: enabled, Tables: enabled, VB Script: enabled
    Accessibility mode: false
    Web Dynpro runtime:
    Vendor: SAP, build ID: 7.0013.20070717142021.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:13:14[UTC], changelist=455669, host=pwdfm101), build date: Wed Nov 14 08:48:35 GMT-03:00 2007
    Web Dynpro code generators of DC agile.com/pmg_bonefish~webdynpro:
    SapDictionaryGenerationCore: 7.0013.20061002105236.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:57:42[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro: 7.0013.20070703112649.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:00:50[UTC], changelist=454024, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore: 7.0013.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:45:23[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates: 7.0013.20070717142021.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:15:27[UTC], changelist=455669, host=pwdfm101)
    SapWebDynproGenerationCTemplates: 7.0013.20070717142021.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:15:27[UTC], changelist=455669, host=pwdfm101)
    SapGenerationFrameworkCore: 7.0013.20060719095755.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:44:42[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer: 7.0013.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:04:26[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary: 7.0013.20060719095619.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:54:53[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon: 7.0013.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:45:30[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCore: 7.0013.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:04:37[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates: 7.0013.20061002105236.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:57:50[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    Web Dynpro code generators of DC sap.com/tcwddispwda: No information available!
    Web Dynpro code generators of DC sap.com/cafUIptn~common:
    SapDictionaryGenerationCore: 7.0013.20061002105236.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:26:06[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro: 7.0013.20070703112649.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:28:49[UTC], changelist=454024, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore: 7.0013.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:14:35[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates: 7.0013.20070717142021.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:42:07[UTC], changelist=455669, host=pwdfm101)
    SapWebDynproGenerationCTemplates: 7.0013.20070717142021.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:42:07[UTC], changelist=455669, host=pwdfm101)
    SapGenerationFrameworkCore: 7.0013.20060719095755.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:13:54[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer: 7.0013.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:32:11[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary: 7.0013.20060719095619.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:23:29[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon: 7.0013.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:14:42[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCore: 7.0013.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:32:21[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates: 7.0013.20061002105236.0000 (release=645_VAL_REL, buildtime=2007-08-07:13:26:13[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    Web Dynpro code generators of DC sap.com/tcwdcorecomp: No information available!
    J2EE Engine:
    7.00   patchlevel 109044.44
    Java VM:
    Java HotSpot(TM) Server VM, version: 1.4.2_09-b05, vendor: Sun Microsystems Inc.
    Operating system:
    Windows 2003, version: 5.2, architecture: x86
    I don´t know is the problem I have in both browsers Internet Explorer and Opera are from the browser or from the layout I´m using in Web Dynpro.
    regards

    Hi Aida,
    For getting an information of the Web Browsers supported by SAP NetWeaver, check out the following link:
    [http://service.sap.com/pam|http://service.sap.com/pam]
    To access the Product Availability Matrix (PAM), you will need a sUser Login Name.
    For Reference,
    http://help.sap.com/saphelp_nw04s/helpdata/en/79/23c7410400c717e10000000a155106/frameset.htm
    Regards,
    Alka.

  • Java Script has been blocked, and says missing plugin.

    I have downloaded a bunch of internet browsers to try and fix the issue but the Java has been enabled on all of them and none of them are allowing Java Script 6 or 7 to work.
    is there soemthing i can do to rectify this problem. or has Java been blocked

    Java and JavaScript are, despite the similar name, two different things. Which has been "blocked", Java or JavaScript? JavaScript is not a plugin in most browser, so I'm guessing you really mean Java. If so, have you downloaded and installed Java from Oracle?

  • Need to enable java script to login to email

    Cannot login to email error message java script needs to be enabled; in prefernces java script is enabled but still can't login to email

    Your question is confusing. JavaScript is a web technology built into browsers; it does not need to be downloaded. Java ( not script) is a different technology which is downloaded from the Oracle website. Neither of them has anything to do with Adobe.
    Can you post exactly what you're downloading, where it's from, what install steps you take, and what messages, if any, you see?
    Thanks
    Matt

  • JAVA SCRIPT PROBLEM IN UNIX

    When we run JAVA SCRIPT in window, the GUI display comes out difference from running under UNIX. For example the check boxes show check when running under WINDOW but not in UNIX. Can anyone tell me how to resolve this problem? Thanks in advance for the information.

    The browsers are generally optimized for specific platform, hence the different look-and-feel. But I find it hard to believe that checkboxes would show up checked on unix but not on Windows. The only thing I can suggest is to examine the HTML file and see if there is the CHECKED keyword being used where you are not expecting.
    V.V.

  • How do I enable java-script OS X.6.8?

    Yahoo says I need to enable java-script in order to get into my in box.  What are the steps OS X.6.8>
    Why the sudden problem?

    What application are you trying to enable JavaScript in? If it is Safari (your web browser) go to the Safari menu > Preferences > Security > make sure the Enable JavaScript checkbox is checked.
    Note that on older versions of Safari the exact location of the JavaScript preference may be different. Look around in preferences.
    Other browsers such as FireFox or Chrome may have the same preference, you will need to search for where to enable it.
    Best of luck.

  • I am still having problems accessing java script sites.  Anyone else having this problem?

    I am still having problems accessing java script sites.  Anyone else having this problem?

    Javascript can be left on, but Java (which is something very different) should generally be turned off.
    Apple barred Java from running on Macs, leaving companies that rely on Java plug-ins out in the cold.
    Apple blocked Java 7 Update 11 by adding it to the banned list in XProtect.
    This was the second time in two weeks that Apple has blocked Oracle's code from running on Macs. This time Java is blocked through Apple's XProtect anti-malware feature.
    Java has come under fire as the means by which hackers have been able to gain control of computers. In April 2012 more than 600,000 Macs were reported to have been infected with a Flashback Trojan horse that was being installed on people's computers with the help of Java exploits. Then in August Macs were again at risk due to a flaw in Java, this time around, there was good news for Mac users: Thanks to changes Apple has made, most of us were safe from the threat.
    Unwilling to leave its customers open to potential threats Apple decided it's safer to block Java entirely.
    Macs running OS X Snow Leopard and beyond are affected.
    UPDATE for those running Lion or Mountain Lion:
    Oracle on Friday February 1 released a new version reportedly addressing vulnerabilities seen with the last build.
    Apple disabled Java 7 through the OS X XProtect anti-malware system, requiring users to have at least version "1.7.0_10-b19" installed on their Macs. The release dated February 1 carries the designation "1.7.0_13-b20," meeting Apple's requirements.
    Oracle "strongly recommends" applying the CPU fixes as soon as possible, saying that the latest Critical Patch Update contains 50 new security fixes across all Jave SE products.
    Update foror Snow Leopard users:
    Apple have issued update 12 for Java for OS 10.6:
    http://support.apple.com/kb/DL1573
    Note:  On systems that have not already installed Java for Mac OS X 10.6 update 9 or later, this update will configure web browsers to not automatically run Java applets. Java applets may be re-enabled by clicking the region labeled "Inactive plug-in" on a web page. If no applets have been run for an extended period of time, the Java web plug-in will deactivate.

  • Java script-IPAD2

    I bought and IPad to use for some online classes I am taking but I can not view documents through java script. Is there anything I can do?

    BobTheFisherman wrote:
    Tgara wrote:
    Nope.  iPad does not support Flash or Java script.  You'll need a laptop.
    Javascript is not Java. Two different languages. Javascript is supported in the browser, not the OS. Javascript works with iPad browsers.
    I meant JavaSandskrit.

  • Java Script: I am in need of it for research items

    I am always needing to download updated versions of java script, it seems.  It also seems that this is a backdoor way to infect a computer with a virus.  I conduct a lot of research on my computer and articles run on java.  I recently upgraded my mac's operating system and java script also needs to be upgraded (so I am prompted to update it).  But, I recently read that hackers will prompt you into thinking you need to update a java script so that it can infect your computer.  How do I trust a java script update prompt?  I updated to OS X Yosemite, is it true that Java Script has been disabled by this operating software system?  If so, is it best to visit oracle to update java?  Should I delete all previous versions of java first and then visit oracle and then update?  Please advise on how to proceed.  Many thanks in advance.

    That's different. You have software on your Mac that requires Java to function. This is completely independent of your web browser, so has nothing to do with that. There's various software like that. Some being Adobe's apps, X-Rite's ColorPort app, ROES software for ordering photo prints from your digital files, and others.
    All it's telling you is an app you want to run is missing the Java runtime software it needs on your Mac. There are a couple of ways to do this.
    1) Download and install Java 6 SE for Mac. Version 6 was the last version Apple produced before turning over all future Java development to Oracle. This will typically fix the error.
    2) You can also install Java 8 from Oracle. If you do go this route, pay very close attention to the installer. It wants to install adware along with Java. Make sure to turn the check box off to prevent that. This alone won't fix the issue since the apps are looking for version 6 of Java. Once Java 8 is installed, open the System Preferences and click on the Java icon. Click on the Security tab of the dialogue that appears and turn off the top check box. This will prevent Java from working in your web browsers, which will stop any such exploits via the web from running.
    Now that you've disabled Java 8 for the web, time to get Java 8 working for apps looking for version 6. Open the Terminal app in the /Applications/Utilities/ folder and enter the two lines below in Terminal, pressing return after each one. To make sure you don't type something wrong, copy/paste the lines from here one at at time into the Terminal window. If you've never used the sudo command before, it will give you a generic warning about using the command. Then enter your admin password to allow the command to complete.
    sudo mkdir -p /System/Library/Java/JavaVirtualMachines/1.6.0.jdk
    sudo mkdir -p /System/Library/Java/Support/Deploy.bundle
    There's no need to follow all of these steps for number 2 if you have no need for Java 8. I need it for ROES software, but I also need version 6 for ColorPort. By following these longer steps, I only need to install version 8. The Terminal lines trick ColorPort into using version 8 as 6. That way, I don't have to install both 6 and 8.

  • Need flash player 8  and java script

    why i try to open a videos from mac tube why is it showing i need a flash player 8+ and java script .

    iPads do not directly support Flash.
    You can look for Flash Browsers in the App store for some options to try. Support is not 100%, but maybe one may work for you.  Browsers like Puffin, Skyfire, Photon etc...
    IPads do fully support JavaScript.  Just make sure its turned on under Settings->Safari->Advanced->JavaScript.
    If you require Java, which is completely different to JavaScript, again there are some browsers in the App store that support it.  Search for "Java browsers" in the store.

  • I'm note a firefox geek, but ever since my friend told me to install NoScript I can not access my msn and hotmail page. It tells me that Java Script is required, what ever that is. What do I do next. Do I uninstall the No Script. Thanks Ed

    I'm note a firefox geek, but ever since my friend told me to install NoScript I can not access my msn and hotmail page. It tells me that Java Script is required, what ever that is. What do I do next. Do I uninstall the No Script. Thanks Ed edit
    Details

    You are on Windows 2000, you do not have a "Firefox" button, and should consider yourself to be fortunate in that you still have menus and don't have to do anything to get the menus back instead of the "Firefox" button. (The same applies to Windows XP users).
    Use the "File" menu to get to Import. You are not on Windows 7 or Vista, and don't have to put up with the nonsense added for Aero.
    If you want the "Firefox" button you can get it with View -> toolbars -> (uncheck) Menu Bar. The menu bar and the "Firefox" button were supposed to be mutually exclusive (which is impossible in some cases without being incompatible).
    Once you are using the "Firefox" button ...
    Use the "Alt" key to view the menu bar (temporarily) containing File, Edit, View, History, Bookmarks, Tools, and Help. On Windows 7 and Vista, the menu bar was hidden by default in Firefox 4 and above. These menu items are more or less available under the "Firefox" button which has the most used of the built-in Firefox menu items available in a different format.
    To get back to having menus again. "Firefox" button -> Options (second column) -> (check) Menu Bar
    You can make '''Firefox 7.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface

  • Internet explorer allows me to open certain information/tabs which are somehow connected to java script but Firefox won't. This just started happening a few days agoyet my javca script is enabled. what is the problem/fix. I'm a novice with computers

    I am not sophisticated at understanding computer language. What I know is that 3 things have happened in the last 2 weeks.
    1.My yahoo account which I go to from Mozilla firefox 4.0.1 now requires me to click on a link that says it disables updates. Then my homepage seems to be ok/normal except:
    2.One of the email links tries to open a site called Ok Cupid and that site is really distorted and unreadable
    3. another website www.texastrails.org has a tab called 'docs' which can be reached from "member portal". There should be documents in Word and adobe reader on the left side of the screen which can be opened normally. These do not exist now and the texas trails webmaster says it has to do with Java Script. (it does open in Internet Explorer)
    Why would these two sites open in IE but not firefox?
    Note that I went to "My Computer" and found I have environment 5.0 Java6 update 24 and J2SE Runtime environment 5.0update 6 on different lines. I have no clue what these mean:-)
    I also click on Firefox "tools" and see that java is checked/enabled.

    This is not an answer. I have the same problem, what gives? None of the "solutions" have worked. The only thing left I haven't tried is resetting my IP an disabling my routers firewall, which is dangerous. Guess I might just keep on using IE instead, sure it's annoying, but hey it works.

  • Data transfer B/W parent windonw and child window with out java script

    hi ,
    i am using h:outputLink Tag to open child window , i am unable to pass parent window text box value to child window with out java script , Here i am using two different backing beans for parent and child windows . Plz help me .

    Hi -- I pass details between pages regularly. The following has worked for me:
    ApplicationFactory factory = (ApplicationFactory) FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
    ValueBinding binding = factory.getApplication().createValueBinding("#{beanName}");
    BeanName beanProperty = (BeanName) binding.getValue(FacesContext.getCurrentInstance());
    ... then set the you can set the values. Can't recall if I need to use SaveStates for the items. Probably if you use request scope beans.

Maybe you are looking for

  • Deploying problem with remout OC4J (10.1.2)

    Hello! I have a problem with PDK-Java Portlet deployng. I'm relatively new in this field. I use Jdeveloper 10g (10.1.2). I have read in the Jdeveloper help how to deploy portlet on remout Application Server. I start the following comand in server's c

  • Lacie Rugged Harddrive on OSX 10.4

    Is it possible to mount a lacie rugged drive on a powerbook g4 running OSX 10.4? It's not showing up in disk utility, but everything mounts fine on my imac running 10.7

  • Diagnostic Pack and System monitoring plug-in for host.

    Is it correct to say that the ´Operating System Monitoring´ feature of the Oracle DB Diagnostic Pack discards the need of installing a System Monitoring Plug-in for Host in those servers where I have both Oracle DB and Diagnostic Pack for Oracle DB a

  • Adding an image background

    I have problems adding an image (pattern) on my form. Can anyone give me some advice.

  • 30EA1 - Report Toolbar Disappears

    When I change the connection being used by a report, the report toolbar disappears (Pin, Refresh, Refresh Frequency, Connection). The only way to get it back seem to be to close the report and reopen it.