Javascript error while selecting select option...

Hi developers,
I am new to javascript. Now i am developing Application form. In my form when i am selecting country in sleect box then automatically load states in states select box.
This is my code...
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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 sele()
                         var con = document.frm.country.value;
                         var ap = new Array("Andhrapradesh","Tamilnadu","Karnataka","Kerala","Goa","Delhi");     
                         ap.sort();
                         if(con == "1")
                                   for(int k =0;k<ap.length;k++)
                                             document.frm.state.options[k].text=ap[k];
</script>
</head>
<body>
<form action="regist.jsp" method="post" name="frm">
Country <select name="country" onchange="sele()">
                    <option>---Choose---</option>
                    <option value="1">India</option>
          </select>
State  <select name="state">
                    <option></option>
                    <option></option>
                    <option></option>
                    <option></option>
                    <option></option>     
                    <option></option>
        </select>          
</form>       
</body>
</html>with Regards
sure...:)-

Hi developers,
I got solutions for this. I do one mistake.
This the solution:
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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 sele()
                         var con = document.frm.country.value;
                         var ap = new Array("Andhrapradesh","Tamilnadu","Karnataka","Kerala","Goa","Delhi");     
                         ap.sort();
                         if(con == "1")
                                   for(var a = 0;a<ap.length;a++)
                                             document.frm.state.options[a].text=ap[a];
</script>
</head>
<body>
<form action="regist.jsp" method="post" name="frm">
Country <select name="country" onchange="sele()">
                    <option>---Choose---</option>
                    <option value="1">India</option>
          </select>
State  <select name="state">
                    <option></option>
                    <option></option>
                    <option></option>
                    <option></option>
                    <option></option>     
                    <option></option>
        </select>          
</form>       
</body>
</html>with Regards
sure...:)-

Similar Messages

  • Javascript Error while executing BEx querry from browser

    Hi Folks
    We have been getting a number of Javascript errors while executing BEx querries from the browser.
    The various errors that we have been getting are:
    'SAPBWItemCatalog' is undefined
    'SAPBWJSgdo' is null or not an object
    'SAPBWShortCutCatalog' is undefined
    We have already looked at SAP Note 783496 and validated the solution.
    Is there some specific settings that needs to be maintained for this?

    Hi Sandip,
    Just spent 2 hours chasing this one so I know how frustrating it is.
    Solution:-
    Check mime service in SICF - dafault_host/sap/bw/mime - if it's greyed out activate it.
    Regards
    Nev

  • Javascript errors while startingup ......

    i`m getting javascript errors while startingup the prog ...... i tried to delete the cash file and still the problem appearing .....
    its so many errors and i have to press only ok ....
    Set FSO=CreateObject("Scripting.FileSystemObject")
    i`m using dw cs6 windows7 64bit

    Hi Ravi,
    According to your description, my understanding is that you encountered the error "Object required" when you try to add attachment to list in SharePoint 2013.
    For your issue, you can refer to the blog:
    http://kiran-kakanur.blogspot.com/2010/02/how-to-resolve-object-required-error-in.html
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • JavaScript Error While Opening DW CS4

    After a recent Adobe update, I now recieve the below JavaScript error while opening Dreamweaver.  Note I am not opening up any files, just the application itself, which leaves me a bit perplexed with what to do.
    While executing onLoad in_onOpen.htm, the following Java Script error(s) occurred:
    in file "_onOpen";
    onOpen is not defined
    Any suggestions would be appreciated.  I did a quick search in the forum and couldn't find anything directly applicable.

    Actually, the solution is posted several times a week if not more.
    Troubleshooting JavaScript errors in Dreamweaver
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19105#dat
    Try #4 or #12 first.

  • Unterminated String constant javascript error while handling textarea in ja

    hi,
    my code is -->
    <textarea class = "ipfield" rows="2" cols="80" name = "ruleDesc" id = "ruleDesc" onchange="setIsEdited()"><c:out value="${ruleDesc}" escapeXml="false"/></textarea>
    on click of cancel it should be reseated to previously present in ModelAnd View(MAV) object
    code is document.getElementById('ruleDesc').value = '<c:out value="${ruleDesc}" escapeXml="false"/>';
    but m getting javascript error while setting tht one
    i view tht source in IE.
    that is because of
    it looks like ->
    document.getElementById('ruleDesc').value = 'this is the data from database
    ok ?'
    if there is \n in database it will go to next line because of that *'* after document.getElementById('ruleDesc').value is not completed
    can u please help me about that problem.
    thanx in advance.

    Actually seeing as we are talking javascript at this point, the correct escape would be to escape the \n character. ie produce it as the characters \ and n.
    I would recommend using [StringUtils.escapeJavascriptString|http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringEscapeUtils.html#escapeJavaScript(java.lang.String)] from the [apache commons|http://commons.apache.org/lang/]
    Cheers,
    evnafets

  • Javascript errors while adding attachment to list on ribbon sp 2013

    Hi All,
    Javascript errors while adding attachment to list sp 2013
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.3)
    Timestamp: Mon, 20 Oct 2014 09:49:13 UTC
    Message: Object required
    Line: 1
    Char: 122565
    Code: 0
    URI:
    https://server.com/_layouts/15/form.js?rev=PxBF2F2E04Ut1YUooXDAbg%3D%3D
    Screen become blank and nothing is dosplayed  when attach item is clicked for custom list
    Ravi

    Hi Ravi,
    According to your description, my understanding is that you encountered the error "Object required" when you try to add attachment to list in SharePoint 2013.
    For your issue, you can refer to the blog:
    http://kiran-kakanur.blogspot.com/2010/02/how-to-resolve-object-required-error-in.html
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • JavaScript Error while Loading

    Hi Guys,
    Anyone any helpo for this. When I start my version of
    Dreamweaver 8.0 I get the following error message:
    'javaScript error while loading LocalVariable.html:
    At line 31 of file "C:\Program Files\Macromedia\Dreamweaver
    8\Configuration\ServerBehaviors\ASP_Vbs\LocalVariable.html:"
    Type error dw.getDocumentDOM() has no properties
    I am using a trial version of DW8 on Vista Home Premium
    Many thanks

    Hi Guys,
    To advise, foundf the problem, it was a server extension I
    had added, removed it and solved the problem.
    Thanks

  • Getting javascript error while selecting the Recipients in OBIEE delivers.

    Hi All,
    I am working on OBIEE from quite a long time, but recently I came across a error while selecting the Recipients in Recipients list of OBIEE delivers.
    Making it more comprehensive, when I try to create an ibot , after entering all necessary information when I select Recipients in Recipients list and click on ok. I get a JavaScript error "null" is null or an object. The surprising thing is when i select cancel it works as ok.
    Any help will be highly appreciated
    Thanks,
    Jyoti
    Message was edited by:
    user616430

    I think you dont have a field named /BIC/XXXXXX in the table from which you are trying to fetch the data. Chech the spelling of the field name and table name.

  • Error while using selection option variable in the selection screen

    Hi All,
    I am facing an issue while using selection option variable in the selection screen for one of my reports.
    Scenario: For the field "Region From" we need to have wild card logic () in tes selection screen, for example if we put "BE" in the selection screen for the field Region From then the query should be executed only for those "Region From" values which begin from "BE".
    Approach: For the above requirement I have made a selection option variable for "Region From". This allows use wild card
    But when the report is executed we get the following error:
    "System error in program CL_RSR_REQUEST. Invalid filter on ETVRGNFR".
    (ETVRGNFR is technical name of the info object Region From)
    Though the report is executed it displays all the values for the field "Region From" irrespective of the selection given in the selection screen.
    Please give suggestions / alternate solutions to crack this issue.
    Thanks in advance
    Regards
    Priyanka.

    Hi,
    Try to use a variable of type Customer Exit and do the validation inside the exit to display according to your request.
    This is just my view, i am not sure if u are already using this or Char. Variable.
    Cheers.
    Ranga.

  • Table or view does not exists error while executing select statement

    Hi,
    I am new to Oracle. I am getting a error while executing the select statement if i give table name without double quotes.
    Ex: Select * from Customer;
    But working fine when the table name is enclosed within a double quotes.
    Ex: Select * from "Customer";
    Is there any way to execute the select statement without the double quotes?
    Actually I am using NHibernate objects for data access.
    Thanks,
    Sai

    Actually I am using NHibernate objects for data access.And probably that's the problem:
    SQL> select * from mytab;
             A
             1
    SQL> select * from mYtAb;
             A
             1
    SQL> select * from MYTAB;
             A
             1
    SQL>  select * from MYTAb;
             A
             1Oracle statements are case insensitive and doesn't require double quotes unless the object names are reserved words.
    As wrote by others if table is created using double quotes it's name bacomes case-sensitive... and this could be the problem...
    Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/02/05/gestione-degli-errori-in-sql-con-log-errors/]
    Edited by: Massimo Ruocchio on Feb 5, 2010 7:08 PM
    Added last comment..

  • Javascript error while creating trees

    Hi
    I had to create a tree of the structure
    customerA
    ->siteA
    ->equip1
    ->equip2
    ->siteB
    ->
    ->
    customerB
    ->siteB
    ->equip4
    ->equip4
    now i have created a view from three tables and the structure of the view is as follows
    equipmentid, equipmentname, customerid, customername, siteid,sitename
    i did try giving two queries
    1.select equip_id AS id,
    customer_name AS pid,
    customer_name AS name,
    null AS link,null AS a1,null as a2
    from TREE_VIEW
    union
    select equip_id as id,
    null AS pid ,
    site_name AS name,
    null AS link,
    null AS a1,
    null AS a2
    from TREE_VIEW
    union
    select 0 AS id,null AS pid,'CUstomers' AS name, null as link,null as a1,null as a2 from dual
    2.select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "#OWNER#"."TABLE_VIEW2"."CUSTOMER_NAME" as title,
    null as icon,
    "#OWNER#"."TABLE_VIEW2"."CUSTOMERID" as value,
    "#OWNER#"."TABLE_VIEW2"."CUSTOMERID" as tooltip,
    null as link
    from "#OWNER#"."TABLE_VIEW2" ,"CUSTOMER"
    start with "#OWNER#"."TABLE_VIEW2"."CUSTOMER_NAME" is null
    connect by prior "CUSTOMER"."CUSTOMERID"="#OWNER#"."TABLE_VIEW2"."CUSTOMERID"
    order siblings by "#OWNER#"."TABLE_VIEW2"."CUSTOMER_NAME"
    while giving both the queries iam getting the page to display without the tree and i views the source code
    and i found out that there was a javascript error
    <script type="text/javascript">
    *var l11216839203914159236Data = [*
    ORA-01403: no data found
    <div class="clear"></div></div></div></div>
    <div class="rc-bottom"><div class="rc-bottom-r"></div></div>
    </div> </td>
    <td class="tbl-sidebar"></td>
    </tr>
    </tbody>
    </table>
    </div><div id="footer"><div class="content">
    how to overcome this error and what might me the error for this error?

    Hi,
    Actually the data is not coming through query.Check the parent, value parameters properly.
    Thanks and Regards
    Maheswara

  • DW CS5.5: Javascript error while executing onLoad in Date_beforeSave.htm Not resolved for me!!!

    Hello,
    I'm having trouble when moving or renaming files. Linked files are automatically updated, but the following error message appears for each file: "While executing onLoad in Date_beforeSave.htm, a Javascript error occurred".
    I tried the solution found in a previous discussion (http://forums.adobe.com/message/757114#757114), that is to say: deleting the .dat file located in the "Applicaion dataAdobe\Dreamweaver CS5.1\Configuration" folder. But it doesn't work.
    I also tried by reinstalling the whole CS5.5 pack, but no result.
    I also had trouble while installing the CS5.5 Web Premium pack (on Windows XP Pro). Maybe the 2 problems are related?... As the installation was done, an error message appeared saying that some errors occured. Here is part of the error status:
    "- 0 fatal error(s), 14 error(s), 11 warning(s)
    WARNING: DW024: The payload: Adobe Photoshop CS5.1 Core {08EF22BC-43B2-4B4E-BA12-52B18F418F38} requires a UI parent with following specification:
                Family: Photoshop
                ProductName: Adobe Photoshop CS5.1 Core_x64
                This parent relationship is not satisfied, because this payload is not present in this session.
    WARNING: DW025: The payload with AdobeCode: {D8CCCF4C-C227-427C-B4BE-736657D2AB7E} has recommended dependency on:
                Family: Adobe Web Suite CS5.5
                ProductName: Adobe Media Encoder CS5.5 X64
                MinVersion: 0.0.0.0
                This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
                Removing this payload from the dependency list.
    ERROR: DW025: The payload with AdobeCode: {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
                Family: CoreTech
                ProductName: Adobe Player for Embedding x64 3.1
                MinVersion: 0.0.0.0
                This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
                Removing this dependency from list. Product may function improperly."
    Please, can anyone help?

    OK, I'll try to explain more clearly (excuse me if my English is imperfect, because I'm French).
    In fact, I'm facing 2 problems, which could be related or not.
    First, when I installed Creative Suite 5.5 some months ago, I received an error  at the end of the installation. You can download a copy of the report here: https://www.box.com/s/5m4k6xv68h00cpumwil9
    However, I could use the Adobe softwares without observable problem... until those last days...
    So, second and really annoying problem that I only detected those last days (maybe I didn't use the implied function before, but I'm not sure). When using DW, if I want to rename or to move some HTML files in a defined website, all the linked files will be automatically updated. As the automatic update is proceeding, I receive, for each updated file, the following error warning: "While executing onLoad in Date_beforeSave.htm, a Javascript error occurred". And I have to click "OK" to each warning in order the processus to go on. The result of the automatic update is uncertain: some files have been properly updated, some other not.
    As I already explained in my first post, I tried (unsuccessfully) to resolve by those two means:
    deleting ".dat" file in the "config" folder
    reinstalling CS5.5 (same error report received as when I first installed).
    I hope that I've been more clear that time and that you'll be able to help me! Thanks!

  • DWCC core JavaScript error: "while executing translateCustomControl in ExternalRenderers.htm..."

    Since upgrading to the October release, I have been getting this error dozens of times per day. It seems to happen when changing which window is in focus to another program, while in the middle of saving a file in DW. This is a JavaScript error WITHIN Dreamweaver's core code, it has nothing to do with any file that I am editing, it happens regardless of which file type I am working on and/or saving.
    Here's the error message: "while executing translateCustomControl in ExternalRenderers.htm, a JavaScript error occurred." It is not always the translateCustomControl function, but it is always from the ExternalRenderers.htm file.
    I'm running Dreamweaver CC 2014 on Windows 8.1
    Any help is appreciated... thanks!

    As I recall, this is a bug and someone has mentioned it before.
    If I were you I would send a bug report to:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&loc=en

  • "getting a javascript error while validating a JSP"

    Hi folks,
    Someone help me out with this problem.
    I am getting a javascript validation error when I am trying to validate a JSP.
    if(eval("document.frmAdminSowAssignValues.chkSowEmployee"+i).checked)
    If I try to load a JSP page on a browser, it is giving a javascript error as
    "'checked' is null or not a object".
    Thanks.

    Hi Manoj,
    Thanks for posting here.
    I suggest you to clear all cookies and restart your IE. Let us know the results.
    Also, I suggest you to try lauching Azure portal on a different browsers such as Firefox, Safari etc.
    Girish Prajwal

  • Sharepoint throw a javascript error while adding items to sharepoint list

    sharepoint throw javascript error when adding item to list
    error called:  this._registeredValidators[validatorIdx].Validate is not a function
    any help please

    Hi,
    If you want to validatelist column, there is out of the box way to accomplish this with SharePoint
    There's a great blog that covers how to validate Strict Text Formats:
    http://sharepointsolutions.com/sharepoint-help/blog/2011/12/how-to-validate-strict-text-formats-in-sharepoint-2010/
    In addition, we can use JavaScript to validate column. Please make sure you use the code correctly.
    More information:
    http://chrisstahl.wordpress.com/2011/02/06/validate-a-sharepoint-list-column-with-regular-expression/
    http://blog.tallan.com/2013/09/16/how-to-add-custom-validation-logic-to-validate-a-phone-field-in-sharepoint/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Getting javascript error while accessing URL iview

    Hi All,
    I have created a URL iview. There is a search functionality in this iview when we search any text then it is giving javascript error (Permission Denied).
    When we use the search functionality of that URL directly in the browser then it is working fine.
    Please Help.

    The URL that is being invoked may not like running inside an IFRAME. Not all URLs work correctly as iViews
    See what happens if you tell the iView to launch in a new window...

Maybe you are looking for

  • MacBook Pro 13" Hard Drive and other questions

    Hi there, I've just purchased a 13" MBP which I absolutely love but have a few questions about upgrading it. I want to swap out the hard drive for a larger capacity but just want to make sure I purchase one that will fit. I'll number the questions fo

  • Secondary cost element report to show the balance of cost elemnets in OKG4

    Hi I have assinged two CE ex: 934 and 935 in OKG4 and included in Cost component structruee (is it required or not?) created Production order and did GI and GR andf WIP. WIP posted against 934 and 935 that i can see from cost analysis. when i try to

  • Please fast reply

    I have ordered an iPhone 5 from apple uk using my aramex address because I live in oman so they have cancelled it I don't know why ,,,, what should I do know ? And what about my money they already took it ?

  • One Wireless Profile in ACCESS CONNECTIONS interferes with another?

    I have a profile on my T61 laptop for my secured home wireless connection. It's worked fine (now that I've figured out all the idiosyncracies of ACCESS CONNECTIONS) up to today. Last night, I connected to a Boingo wireless system at the airport, and

  • OIM 11g API - Getting process form attached to a process definition

    Hi, Is it possible to get the process form name which is attached to a resource object ( through process definition) through API ?.Thanks.