Javascript is not working correctly in the jsp

Hello experts,
i have problem with javascript. Actually i am written a javascript function isInteger(s) for checking wether
the entered string is numberic or not. But its not wroking(can't display alert message). Means it not calling the function. If i try this javascript in different html page its work but in jsp pages its not calling the javascript function.
This jsp page require some settings or anything, then help me.
Edited by: andy_surya on May 4, 2009 11:04 AM

<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script language="javascript">
function isInteger(s)
    var i;
     s = s.toString();
     var o;
     o=s.length;
         for (i = 0; i < o; i++)
              var c = s.charAt(i);
                 if (isNaN(c))
                    alert("Given value is not a number.\n Remove It. \nAnd Try Again.");
                    return false;
         return true;
</script>
</head>
<body>
<input type="text" name="txtbx1" size="25" onkeyup="isInteger(this.value)" />
</body>
</html>

Similar Messages

  • My pc has a virus I just downloaded song from pc to kids ipods now both ipods are not working correctly could the virus be in the ipods,  if not why are both not working doing the same thing right after unplugging from pc.

    Can an ipod get a virus from a pc that has a virus.  After connecting two different ipods to my pc to download music they both are not working correctly, could the virus have transferred to the ipod,  if not why would both ipods not work and be doing the same thing?  When trying to click on a game it just stays on the main screen.

    - I have not heard of a virus that can cause problem with an iDvice that has not been jailbroken.
    - Try resetting the iPods. nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Do you hve problems with one game? The same game on both iPods?
    Other apps?

  • Iphoto 9.2.1 leopard scrapbook theme not working correctly. THe opening slide has 2 pictures; the bottom one can barely be seen and probably shouldn't be there. It works fine in LION "only 1 image" on opening slide.

    Hi.
    iphoto 9.2.1 on iMac Leopard "scrapbook theme" not working correctly.
    The opening slide has 2 pictures; the bottom one can barely be seen and probably shouldn't be there.
    It works fine in LION "only 1 image" on opening slide.
    All updated. Any suggestions
    Thanks in Advance

    Hi.
    iphoto 9.2.1 on iMac Leopard "scrapbook theme" not working correctly.
    The opening slide has 2 pictures; the bottom one can barely be seen and probably shouldn't be there.
    It works fine in LION "only 1 image" on opening slide.
    All updated. Any suggestions
    Thanks in Advance

  • Since updating my Iphone to ios 8, my hands free in the car (Radiosat) is not working correctly.  The phone pairs ok with car, and my phone is recognised but then it cuts off the radio and says that I'm in a call, I can't cancel the call or do anyth

    Since updating my Iphone to ios 8, my hands free in the car (Radiosat) is not working correctly.  The phone pairs ok with car, and my phone is recognised but then it cuts off the radio and says that I'm in a call, I can't cancel the call or do anything.  I have taken my car to my local dealer but they say the Radiosat is working ok?

    Hello there stidhambr15,
    I was researching the issue you are having and recommend a couple of things. First it might be a good idea to reset the device following iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting found here http://support.apple.com/kb/ht1430
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't quite get the device going again, I recommend restoring the device.
    iTunes: Restoring iOS software
    http://support.apple.com/kb/ht1414
    Might even be a good idea to turn off the phone, reseat the SIM card, and turn it back on.
    iPhone and iPad: How to remove the SIM card
    http://support.apple.com/kb/ht5163
    iPhone 4 (GSM model)
    iPhone 4S
    Cheers,
    Sterling

  • HT6114 my audio midi setup is not working correctly since the install of maverick os

    my audio midi setup is not working correctly since the install of maverick os

    The upgrade may have reset to default settings ..
    Check System Preferences > Sounds > Output
    Make sure the correct device is selected and the Mute box is not checked.

  • OC4J JSP Debugging not working for all the jsps

    Hi,
    Initially I was not able to debug jsps using Eclipse and OC4J. The jsp debugging started working once I made the below changes:
    1) global-web-application.xml is modified
    Changed the attribute development="true" in orion-web-app
    Added the below init param for the JspServlet
    <init-param>
    <param-name>debug</param-name>
    <param-value>class</param-value>
    </init-param>
    If the jsps are present in a sub directory under the webcontent none of the breakpoints are working. I am still be able to view the jsp pages on the browser.
    Tools: Oracle 10g Application Server Standalone version(10.1.3.5.0), JDK5, Windows XP, Eclipse Indigo
    Project Structure:
    Test (Eclipse Dynamic Web Project)
    -WebContent
    Sample.jsp ( Breakpoints are working)
    -subF (Folder)
    SubSample.jsp (Breakpoints are not working)
    -WEB-INF
    web.xml
    Debugging worked for http://localhost:8888/Test/Sample.jsp
    Debugging not working for http://localhost:8888/Test/subF/SubSample.jsp
    Any help is highly appreciated.
    Regards
    Danny

    This tells there is not enough main memory (not disk space) for the program to run.
    - You can look the dump in ST22, it will have suggestions on increasing the ROLLAREA??, you can forward that to Basis.
    - Most likely you will not have any more memory to assign so the above may not be feasible. Try to rework your query so it works with less data.

  • CSS / Javascript animation not working correctly

    I've been using WOW Slider/CSS Slider for slideshow animations in Muse. I've never had any problems, but have had to avoid the "Rotate" transition because once the HTML/code generated by either program is placed in Muse via "Insert HTML", the results, when viewed in a browser do not look as expected. Both create the rotation transition with a "spin" from the center of the image box. (If I view either of their generated HTML index files of the animation in a browser, they work correctly.)  However, once placed in Muse and then output as a page, the animation spins out as if it's "pinned" at the top left hand corner of the image. NOT NEARLY AS COOL! Does anyone have any idea what's going on? I'm not a coder, but it seems as if Muse is not handling the CSS/JS correctly for this specific animation. I have a file that I could .zip and send that would more clearly illustrate what I'm talking about, if that would help.

    Not getting any response to my question, so I thought I'd show some video screen shot samples of what I'm seeing. This first video shows the cssSlider HTML viewed "raw" in a browser. This is working correctly:
    This second video shows the HTML generated by cssSlider, BUT placed on a page in Muse, with the resultant HTML then viewed in a browser. Notice the difference? Any ideas why this is?

  • Customer Ext Variable is NOT working correctly in the Restricted Key Figure

    Hi all,
       I have created a variable ZVCBLMTH (Period from 01/1996 to Last Month) with reference to
        0CALMONTH  and it will be populated through  Customer Exit and it works fine.
        In the selection for 0CALMONTH, I gave the range as '05/2008' to '08/2008' and this new
        variable  passed the value of  range as '01/1996' to '04/2008' in RSRT.
        The properties of the variable are:
              Type of Variable -  Characteristic, Processing by - Customer Exit, Variable Represents - Interval
              and Variable is - Optional.
              No change in the result after changing the 'Variable is' from Optional to 'Mandatory'.
      This variable is used in Restricted Key Figure to calculate the number of matching records between
       01/1996 & 04/2008 and somehow it is not recognizing this variable and NOT passing the results correctly.
       But, there are records with 0CALMONTH between 01/1996 & 04/2008.   
       How could I test that which value is passed into the Restricted Key Figure for this variable, PLEASE ?
       Thanks in advance.
    Regards,
    Venkat.

    Hi Clemens Li
    I agreed on your point. When we define the Internal table the type for element EQUNR & QUMNR , we are referring the SAP data element for EQUNR, QMNUM field.
    Our doubt is even though we refer the standard data element, in the ALV display, it shows with leading zeros and also it creates problems in the filtering and in the filter window all values instead of unique nos.
    Hi Abhii
    I have given below the fieldcat coding.
    Friends, can you kindly clarify the above said problems. Since we use SAP ECC 6.0 any notes or patches apply is required. ( this is the basic functionality in ALV, that is my doubt).
        wls_fieldcat-col_pos   = wpv_pos.
        wls_fieldcat-fieldname = wpv_champ.
        wls_fieldcat-tabname   = wlc_tabname.
      wls_fieldcat-seltext_s = wls_fieldcat-seltext_m
        wls_fieldcat-seltext_l = wpv_libelle.
        wls_fieldcat-ddictxt   = 'L'.
        wls_fieldcat-no_out    = wv_no_out.
        APPEND wls_fieldcat TO gt_fieldcat.
    Kind regards,
    Jegathees P.

  • Scaling not work correctly in the internet explorer

    Hello every body, I very need your help. I make composition in Edge Animate with resolution 2300*1914 adjust the responsive scaling to both, after saving I look the composition in browsers. In the Chrome and Opera displaying is correct, but in IE and Firefox displays not correct, I fill the stage in red color, so when I open the composition, the filled stage take proportions 100% - width and height, but resolution 2300*1914 applies like transparent layer, and I have overflow horizontal and vertical.
    P.S. I need scaling in persentage because the composition is designed for all resolution

    Are you sure that Firefox isn't using the integrated PDF viewer (pdfjs)?
    Current Firefox versions have enabled a new build-in PDF Viewer and that viewer doesn't have all the features that the Adobe Reader has.
    You can change the action for Portable Document Format (PDF) from Preview in Firefox to use the Adobe Reader or set to Always Ask in "Firefox > Options > Applications".
    You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to disable the build-in PDF viewer and use the Adobe Reader instead.
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them

  • Sound does not work correctly all the time, on youtube.

    So I have been having this issue for a while now, and I have tried everything to fix it on my own.
    My issue is sometimes you-tube videos will play about 1-2 sec of sound then stop, the video will buff all the way out and I can watch it but no sound will come from it. Once it happens if I try to watch another video they will all have no sound, but if i start up itunes it will still play music, so it's not my PC.
    Once I close Firefox and reopen it 80% of the time it will play sound on the same video, the other 20% of times it will play 1-2secoinds of sound again and quit playing sound, if I restart fire fox again it will play just fine. Also I do not seem to get this issue with internet explore.
    Stuff I have done.
    Check for updates for my video/sound cards.
    Uninstalled/installed flash 3 times even downloads the Adobe Flash player uninstaller, then reinstalled flash again.
    Unchecked enable hardware acceleration, in the Adobe Flash setting.
    My setup
    Firefox 3.6.13
    Windows 7 64bit
    ATI HD radeon HD 4350 video card.
    I have my PC connected to my TV, sound/video is carried with a HDMI cable from my video card.

    Did you check the settings for Firefox in the Volume Mixer?
    See also:
    * [[No sound in Firefox]]
    * [[Video or audio does not play]]
    * http://kb.mozillazine.org/Video_or_audio_does_not_play
    You can also try to clear the Flash cookies and settings.
    Flash Website Storage Settings panel:
    * http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.html
    See also Flash Local storage settings:
    * http://www.macromedia.com/support/documentation/en/flashplayer/help/help02.html

  • Zoom function not working correctly in the playback options window.

    When selecting the start and stop timepoints for creating a text file in signal express I can't zoom in on selected areas. When I use the zoom function the trace just dissapears. 
    Could anyone help me with this?
    Cheers.

    Is this a LabVIEW or a signal express question?
    (You post in the LabVIEW forum but only mention signal express. There is a dedicated signalexpress forum. If this is a LabVIEW question, please explain in more detail.)
    LabVIEW Champion . Do more with less code and in less time .

  • Between dowloading issues and Java not working correctly, when the next version coming out? I'm a breath away from switching to IE

    I cannot use the Java pull down menus on USAA.com, and downloads cancel when I close Firefox and cannot be resumed. What happened to the old downloader? I have to use IE in order to use USAA.com (primary banking). I tried updating Java, I tried a reinstall on firefox, clearing my cache, everything. No dice. If a new version doesn't come out soon I'm switching to IE... I've been loyal for 10 years.

    To get the old downloader back follow the directions below.
    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''', to continue to the about:config page.
    # Filter '''browser.download.useToolkitIT'''.
    # Double click and '''make sure it says true.'''
    # You now have the classic downloader back! Yay!
    Any issues or confused?
    * http://kb.mozillazine.org/About:config

  • Spry menu formatting not working correctly in DW CS6

    Hello,
    I've installed  a spry menu but the formatting is not working correctly.
    The hover colour works correctly but the selected menu item  colour does not change. Only the home menu tab remains coloured.
    Please can anyone suggest what might be wrong?
    Thank you.
    Robbieg

    Ah. OK. I've found the problem. On the every page  I've got a class=current attribute to the <a> tag for the  home menu item.
    Now, since this menu code is in a template as part of the top part of every page, it means that this is also included on all the other pages of the site. How do I get this attribute  to be different on each page that uses the template?
    Thank you.
    Robbieg

  • Installed new trackpad...not working correctly

    Hi,
    I just installed a new trackpad and it is not working correctly.  The tap to click is not working and it takes extra pressure to even move the tracking arrow.  Any ideas?

    I have an Apple Magic Trackpad I purchased November 2013.  Since upgrading to 10.9 (Maverick) my trackpad will just stop.  My current workaround: turn my Magic Mouse back on (I set it aside in favor of the trackpad), and my trackpad comes back to life.  I turn off the mouse, and the trackpad continues ... for now.
    Strange, and I have no other answers for you.

  • ITunes Store Pages not working correctly

    Since a few days ago iTunes Store (on full page) is not working correctly. The "pictures at the top" do NOT rotate any more (usually every 10 seconds or so before) often with blanks too. Also when clicking on an Lp information the box appears but Blank too. I have tried all the usual methods - permissions and disc checks etc. If I use small page (not full) it seems to work OK. The problem began after Safari 5 arrived. Anyone else having iTunes problems like this? (Similiarly the Dictionary Application with Wikipedia is not working correctly - but thats another issue!). Any answers out there??
    Message was edited by: Dave Jelfs

    This issue has now been completely resolved with the introduction of iTunes 9.2 Everything up and running again - thank you Apple! (Still an issue with Dictionary app/Wikipedia not functioning correctly, this has not been resolved)

Maybe you are looking for

  • Oracle 10gR2 on Mac OS/x 10.5.6 - dbconsole not working after installation

    Hi All, Anyone able to get dbconsole up and running after the installaton using DHCP? I followed the Quick Install guide linked on the OTN Mac Page: http://www.pythian.com/news/1937/quick-install-guide-for-oracle-10g-release-2-on-mac-os-x-leopard-int

  • What is the BEST External Hard Drive for Mac Books?

    What do you recommend? First Hand Experience?

  • Spry accordion default panel

    I want to set pages of a website so certain panels are already open as the default tab when a visitor selects the page. I have pasted this text after the existing script at the end of my document: <script type="text/javascript"> var acc8 = new Spry.W

  • Transparent Fill for Dropdown Box

    I've made a javascript to change the fill color of a drop down box depending on what is selected. Everything is working as expected except that I can't find how to fill it with a transparent/no fill color. I've found very discouraging info about bein

  • Update portlet.xml(for JSR 168 portlets) at runtime

    Is there a way to update the portlet.xml dynamically? That is, add an instance of the portlet using <portlet> tag at runtime to the portlet.xml. Does the portlet container need to be bounced back so that the updates are picked up? Got to know that th