JSP & Java Script problem.

Hi,
A oldPage.jsp page contains select list box with options coming from oracle database, after selecting any one option (eg as 3rd option) a next button is pressed which leads to newPage.jsp with same select box.
The problem is as follows
When the newPage.jsp is loaded we want the selected list box initialized to the value selected from the oldpage.jsp . Currently the default first option is displayed on newPage.jsp.

Add the "selected" HTML element attribute to the option that was selected from oldPage.jsp

Similar Messages

  • How to create two level dynamic list using JSP , Java Script and Oracle

    I am new in JSP. And i am facing problem in creating two level dynamic list using JSP ,Java Script where the listdata will come from Oracle 10g express edition database. Is there any easy way in JSP that is available on in ASP.NET.
    Plz response with details.

    1) Learn JDBC API [http://java.sun.com/docs/books/tutorial/jdbc/index.html].
    2) Create DAO class which contains JDBC code and do all SQL queries and returns or takes ID's or DTO objects.
    3) Learn Servlet API [http://java.sun.com/javaee/5/docs/tutorial/doc/].
    4) Create Servlet class which calls the DAO class, gets the list of DTO's as result, puts it as a request attribute and forwards the request to a JSP page.
    5) Learn JSP and JSTL [http://java.sun.com/javaee/5/docs/tutorial/doc/]. Also learn HTML if you even don't know it.
    6) Create JSP page which uses the JSTL c:forEach tag to access the list of DTO's and iterate over it and prints a HTML list out.
    You don't need Javascript for this.

  • OS X Lion - JAVA SCRIPT PROBLEM

    I recently updated from Snow Leopard to OS X Lion. Now I seem to have a JAVA Script problem. Where do I start fixing this issue. I have checked updates etc etc but it seems to be updated. However, when I login to my web site backend, I have a problem. Any advice please?

    Would you please write some more details? explain the problem and what web site backend you use. Thanks.

  • Java script problem in JSP called thru servlet

    when jsp page is displayed thru a servlet in following way the java scripts built in that JSP page are not working.
    ServletContext sc = getServletContext();
         RequestDispatcher rd = sc.getRequestDispatcher(url);
         rd.include(req, res);
    how can i enable these java scripts?

    Most probably you have something like this:
    <script language="JavaScript1.2" src="menu.js"></script>
    The bit that is probably causing the problem is the src attribute.
    Its a common issue when using the request dispatcher
    You request "/servlets/myServlet"
    it forwards to "/jsp/myJSP"
    You try and access a resource using a relative URL.
    however, the browser knows nothing about the forward being done - it thinks that the URL is /servlets/myServlet, when you want it to be /jsp/myJSP.jsp
    So if you access menu.js it will look in /servlets/menu.js instead of /jsp/menu.js (example only)
    to fix
    1 - Don't use relative links. Ie use /scripts/menu.js to import the script
    2 - use a <base> tag <base href="http://www.mywebsite.com/jsp/> This tells a web page where to resolve relative references from.
    Hope this helps,
    evnafets

  • Adobe Dreamweaver CS5.5 - Windows 7 - Java Script Problem

    I am having trouble with Anchor.htm.
    When I try to insert an anchor in the text (Insert > Named Anchor> I get this error message:
    "While executing insertObject in Anchor.htm a Java Script error occurred."
    I recently downloaded both the 32- and 64-bit Java Script applications when I received a message that the existing version of Java Script was out-of-date. Anchor.htm worked before I installed the update.
    The files I downloaded and installed are:
    jre-7u9-windows-i586.exe
    jre-7u9-windows-x64.exe
    Please can anyone help me with this problem?

    From Dreamweaver FAQ
    http://forums.adobe.com/thread/429114
    "If Dreamweaver is acting erratically, or if you see a message saying "the following JavaScript error(s) occurred",  it's usually a sign of a corrupt cache file. The first thing to try should always be to delete the file cache. If that doesn't work, delete your personal Configuration folder. Full instructions are in Deleting a corrupted cache file.
    http://forums.adobe.com/thread/494811"
    Nancy O.

  • Sreaming at the top of my lungs for HELP with Java Script problem!

    Hello,
    I have this strange problem that no one seems to know why or how to fix it.Whenever I encounter a web site that has java scripting for anything pop ups or redirects to url's anything that says java script when I mouse over the link my browsers do nothing.That is for explorer 6.0 beta netscape 4.7 and netscape version 6.I have tried in another forum some suggestions but nothing changed even though I am told nothing is wrong with the java scripting.I used to be able to click java script's with all of these browsers but no longer.That was a few months ago.Now to try something new I tried to see if a new browser would work.I now have the latest version of Opera.It did work but using Opera on some sites limits what I can do so it doesn't solve my problem.Then I tried the Sun JavaHot browser it also worked but limits what I can do on some site's.I have Windows 98 & updated most of my dll's etc & my java is version 2 1.3.1.My java script is enabled in Explorer & netscape's & the security is at a minimum level.Please help me figure out why these other browsers work but the other's do not.I want to edit a web site of mine but I can't because of this problem.I am very frustrated by this and need as detailed help as I can get.Anything of a suggestion would be very much appreciated.But I am also not an expert on the working's of a computer so bear with me.
    Brian

    Hi,
    Well I am thinking that if anyone could know something about Java script it would be java developers.But anyways I had the previous version of explorer 5.0 & the java didn't work in it either.Now how weird is this,I opened netscape 4.7 today & the java scripts are suddenly working.This has me scratching my head wondering if my computer is possesed by some force beyond my capability to know...????Weird as it seems though the explorer still will not respond to a java script.
    Brian

  • Java script problem when trying to sign in to Ovi ...

    Hi Folks
    I am running XP SP3, with IE7.  I have had problems due to installing ie8 then removing it and going back to IE7.  I have had to reset all sorts of bits.  Anyway. I still can't sign in to the music store, or register my PC for comes with music.  I installed a debugger to see what was going on.  This is my current stage of the problem..... 
    When I sign in, I only get a white panel.  The debugger highlights this section of the java script: __doPostBack('ctl00$C$btnEContinue','')  
    Can someone tell me why this fails, and how I can fix it?
    many thanks.

    I also have the same problem. I've tried all fixes listed in other forums and nothing works. Running windows Vista 32 bit. Any working solutions yet? Tried every solution listed for the cmd prompt. Turned off antivirus and spyware. Rebooting about 100 times. Nothing works.

  • Java script problem

    Hai all,
    i had a problem regarding java script,i had a time shedule page in which there is a start time and end time for each day,means monday,tuesday......
    the problem is when i select monday it shows '0000' in start up but when i de select means change to 'no it will not rest the value to '0000',how can i do this my code is PROBLEM WHEN ONCE SELECTED YES AFTER FIRDAY I WANT TO CHANGE THE TIME OR RESET THE TIME OF SUNDAY TO 'NO' THEN THE DEFAULT VALUE ie "0000" WILL NOT ENTER THE DATA BASE BUT THE ENTERED VALUE HOW WILL I CORRECT IT OR I HAD TO USE AJAX FOR REPOPULATE THE TEXT BOX WITH "0000".and how can i popup a calender insted of this.
    <%@ page language="java" pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
    <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html:html lang="true">
    <head>
    <%String path=request.getContextPath();
    String basepath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;%>
    <title>BLUE LAW</title>
         <meta http-equiv="pragma" content="no-cache">
         <meta http-equiv="cache-control" content="no-cache">
         <meta http-equiv="expires" content="0">
         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
         <meta http-equiv="description" content="This is my page">
    <script type="text/javascript">
    function display(val, id1,id2)
         if(val=="Y")
         document.getElementById(id1).style.display="block";
         document.getElementById(id1).style.visibility="visible";
         document.getElementById(id2).style.display="block";
         document.getElementById(id2).style.visibility="visible";
         else
         document.getElementById(id1).style.display="none";
         document.getElementById(id1).style.visibility="hidden";
         document.getElementById(id2).style.display="none";
         document.getElementById(id2).style.visibility="hidden";
         function newWindow(url) {
         popupWindow = window.open(url,'popUpWindow','height=300,width=250,left=50,top=50,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=yes');
         var timeout = 500;
    var closetimer          = 0;
    var ddmenuitem = 0;
    // open hidden layer
    function mopen(id)
         // cancel close timer
         mcancelclosetime();
         // close old layer
         if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
         // get new layer and show it
         ddmenuitem = document.getElementById(id);
         ddmenuitem.style.visibility = 'visible';
    // close showed layer
    function mclose()
         if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
    // go close timer
    function mclosetime()
         closetimer = window.setTimeout(mclose, timeout);
    // cancel close timer
    function mcancelclosetime()
         if(closetimer)
              window.clearTimeout(closetimer);
              closetimer = null;
    // close layer when click-out
    document.onclick = mclose;
    </script>
         <style type="text/css">
    <!--
    body {
         background-color: #e1f2f8;
    .style1 {     font-family: Verdana, Arial, Helvetica, sans-serif;
         font-size: 12px;
    .style5 {color: #EEF0EC}
    -->
    </style>
    <link href="<%=basepath%>/style/style.css" rel="stylesheet" type="text/css">
         <link rel="stylesheet" type="text/css" href="<%=basepath%>/css/default.css">
    </head>
    <body topmargin="0">
    <html:errors/>
    <html:form method="get" action="addblue.do" onsubmit="return validateTYUY(this);">
    <input type="hidden" name="action" value="Add"/>
    <table width="891" border="1" align="center" cellpadding="4" cellspacing="0" >
    <tr >
    <th colspan="4" ><b><strong>Enter TIME Details</strong></b></th>
    </tr>
    <tr >
    <td width="421" class="Label" align="right"> Number</td>
    <td width="448" ><html:text styleClass="Textfield" property="ABCnumber" size="2" maxlength="2" ></html:text><br></td>
    </tr>
    <tr>
    <td> <table>
    <tr >
    <td class="Label" ></td>
    <td width="62" ></td>
    <td class="Label" ></td>
    <td width="68" ></td>
    </tr>
    <tr >
    <td class="Label" width="152"> Restrict on Sundays</td>
    <td style="background-color: rgb(255, 255, 255);"><html:select property="sundayrest" styleClass="Textfield" onchange="display(this.value, 'sunday','sunday1')" >
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option>
    <html:option value="N">NO</html:option> </html:select></td>
    <td class="Label" ></td>
    <td ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="sunday" >
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);"> Sundays Start Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="sundaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="133" class="Label" style="background-color: rgb(255, 255, 255);">Sundays Start Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="sundayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="sunday1" >
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);">Sundays Start Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="sundaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Sundays End Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="sundayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    <td> <table>
    <tr >
    <td width="160" class="Label" >Restrict on Mondays</td>
    <td width="59" style="background-color: rgb(255, 255, 255);"><html:select property="mondayrest" styleClass="Textfield" onchange="display(this.value, 'monday','monday1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td class="Label" ></td>
    <td width="70" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="monday">
    <td class="Label" style="background-color: rgb(255, 255, 255);">Monday End Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="mondayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="148" class="Label" style="background-color: rgb(255, 255, 255);">Monday Start Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="mondaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr id="monday1" style="visibility: hidden;display:none;" >
    <td class="Label" style="background-color: rgb(255, 255, 255);">Monday End Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="mondayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Monday Start Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="mondaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td> <table>
    <tr>
    <td class="Label" width="152">Restrict on Tuesdays</td>
    <td width="62" style="background-color: rgb(255, 255, 255);"><html:select property="tuesdayrest" styleClass="Textfield" onchange="display(this.value, 'tue','tue1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td class="Label" ></td>
    <td width="70" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="tue">
    <td width="138" class="Label" style="background-color: rgb(255, 255, 255);">Tuesday Start Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="tuesdaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="131" class="Label" style="background-color: rgb(255, 255, 255);">Tuesday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="tuesdayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="tue1">
    <td width="138" class="Label" style="background-color: rgb(255, 255, 255);">Tuesday Start Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="tuesdaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Tuesday End Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="tuesdayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    <td> <table>
    <tr>
    <td width="160" class="Label" >Restrict On Wednesdays</td>
    <td width="58" style="background-color: rgb(255, 255, 255);"><html:select property="wednesdayrest" styleClass="Textfield" onchange="display(this.value, 'wed','wed1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td class="Label" ></td>
    <td width="68" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="wed">
    <td class="Label" style="background-color: rgb(255, 255, 255);">Wednesday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="wednesdayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="149" class="Label" style="background-color: rgb(255, 255, 255);"> Wednesday Start Time1</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="wednesdaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="wed1">
    <td class="Label" style="background-color: rgb(255, 255, 255);">Wednesday End Time2:</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="wednesdayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Wednesday Start Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="wednesdaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><table>
    <tr >
    <td class="Label" width="150">Restrict On Thursdays</td>
    <td width="61" style="background-color: rgb(255, 255, 255);"><html:select property="thursdayrest" styleClass="Textfield" onchange="display(this.value, 'thu','thu1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td ></td>
    <td ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="thu" >
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);">Thursday Start Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="thursdaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="132" class="Label" style="background-color: rgb(255, 255, 255);">Thursday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="thursdayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="thu1">
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);">Thursday Start Time2</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="thursdaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Thursday End Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="thursdayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    <td> <table>
    <tr >
    <td class="Label" width="170">Restrict On Fridays</td>
    <td width="57" style="background-color: rgb(255, 255, 255);"><html:select property="fridayrest" styleClass="Textfield" onchange="display(this.value, 'fri','fri1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option>
    <html:option value="N">NO</html:option> </html:select></td>
    <td width="150" class="Label" > </td>
    <td width="66" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="fri">
    <td class="Label" style="background-color: rgb(255, 255, 255);">Friday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="fridayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Friday Start Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="fridaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="fri1" >
    <td width="153" class="Label" style="background-color: rgb(255, 255, 255);">Friday End Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="fridayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="150" class="Label" style="background-color: rgb(255, 255, 255);">Friday Start Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="fridaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td> <table>
    <tr >
    <td width="162" class="Label" > Restrict On Saturdays</td>
    <td width="61" style="background-color: rgb(255, 255, 255);"><html:select property="saturdayrest" styleClass="Textfield" onchange="display(this.value, 'sat','sat1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td width="132" class="Label" ></td>
    <td width="66" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="sat">
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);"> Saturday Start Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="saturdaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="132" class="Label" style="background-color: rgb(255, 255, 255);">Saturday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="saturdayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="sat1">
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);"> Saturday Start Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="saturdaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="132" class="Label" style="background-color: rgb(255, 255, 255);">Saturday End Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="saturdayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td><td> </td>
    </tr>
    <tr>
    <td height="27" colspan="4" align="center"><html:submit value="Save"></html:submit>
    <html:reset value="Cancel" onclick="window.close();"></html:reset></td>
    </tr>
    </table>
    <html:javascript formName="ert"/>
    </html:form>
    </body>
    </html:html>

    [some javascript forum...|http://www.webdeveloper.com/forum/forumdisplay.php?forumid=3&s]

  • What're the differences between JSP, Java Script, and Java Applet?

    I am confused by the concepts: JSP (Java Server Page), Java Script, and Java Applet? What are their main differences?

    I don't know about differences, but one of their main similarities is that each of them has a page in Wikipedia.
    JSP
    JavaScript
    [Java applet|http://en.wikipedia.org/wiki/Java_applet]
    There. That should give you enough information.

  • Visual Web JSF and Java Script problem

    Hi i am using Visual Web JSF for development in my project. AJAX to update data from server when users enters data in one text box its an chat application. i am getting data from server but unable to update my <webuijsf:textarea> component with the new data on my chat page ... I am facing another problem in java script that it is not accepting relational operators (< . >) in JSF Application.... i am attaching some code here for reference...result =http.responseText.split(","); /// this is the response text from AJAX based call
    var obj=document.getElementById('form1:chatter_box'); /// this text area is to be updated...
    var txt=document.createTextNode(http.responseText);
    ///document.getElementById('form1:chatter_box').innerHTML = txt;
    for(i=0;i < size;i++){
    var txt1=document.createTextNode(result);
    obj.appendChild(txt1);

    Try changing onclick to onClick and try...
    regards
    shanu

  • 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.

  • Java script problems

    wasn't supposed to. I don't have the original template.

    What is not working? All I see is DW stock javascript, no
    java whatsiever
    Mick
    destind4film wrote:
    > I have been completely revamping my website using
    Dreamweaver (originally
    > designed in iWeb) and had recently gotten a friend to
    help me put in some java
    > script on the "Order" page. The page works perfectly in
    IE07 and in Firefox,
    > but for some reason the Java does not work at all in
    Safari or on any of my
    > MACs. The site is being hosted on the .MAC servers so
    naturally my friend
    > (anti-MAC user) says that my problem is the .mac or my
    Apple cmputers and not
    > the Java script.
    >
    > I really need to make sure all of my pages work for
    everyone who would go to
    > my site regardless of what OS they have or what browser
    they are using.
    >
    > The page in question is currently located at:
    >
    http://homepage.mac.com/dvdflashbacks/New_DVD_FB_Site/Order.html
    >
    > And in case anyone is curious as to what the original
    site looked like before
    > my redesign, the url is :
    >
    http://www.dvdflashbacks.com
    >
    > If anyone knows Java really well and can take a look at
    the code, maybe
    > something will jump out that is causing my problems.
    >
    > Thanks!
    >

  • Rollover Java Script Problem

    I just upgaded to a new Windows 8 system and also upgraded from old Macromedia Dreamweaver 8 to CS6.
    On my old system, when I inserted an image object / rollover image, the code that was written inserted BORDER="0".
    That made it so when viewed in a browser, the image was not bordered with hyperlink blue/purple.
    My new system does not put the Border="0" in the code and thus I get a border of the rollover image in hyperlink colors.
    I've tried changing the CSS for links, etc. and it does not have any effect on rollovers.
    How do I get the java script writer to add that after the image size in the source code the dialog box creates???
    Your help is much appreciated!

    Thanks Ben,
    Thanks for your help with the ‘LISTINGS’ page on my website (link below).
    Setting up CCS for no border for tag “a img” (link images) got the effect I need without changing the other image types on the page that have their own formatting.
    However, years ago, using a 6 inch thick dreamweaver book, I was able somehow to save a variable BORDER=”0” in some way that changed the Java Script to automatically insert that when using the top menu, to insert image object / rollover image. Do know of a way to change the behavior attribute for rollover (image swap / image restore)???
    I know there’s a way. Do you know how to do it?
    GORDON HUNT
    REALTOR
    CHAPMAN RICHARDS & ASSOC.
    801-486-7075
    <http://www.gordonhuntrealestate.com/> GordonHuntRealEstate.com
    P.S. The Finest Compliment I Can Receive Is Your Referral!

  • Java script problem; please help !

    Hi,
    I am selecting value from drop down.As soon as I am selecting the value I am displaying the value in one
    text area. This text area is having already some text.Iam appending the value from drop down to this text area.
    The problem is when I do first time it is fine,but second time when I select value from drop down to
    display in text area. this value is getting appended with the first value.
    I do'nt want the first value.What I want is when second time I select the value from drop down.The
    first selected value get replaced by second value.
    This is the script I am using.
    function emailAdd(item) {
    document.mailForm.to.value =
    item.options[item.selectedIndex].value;
    document.mailForm.content.value ="Email Address:" +
    document.mailForm.to.value
    + '\n' + document.mailForm.content.value
    }Please help me and it would be GREAT that if someone can send me an updated code. Thanks and have a wonderful week-end !!!!
    -sangita

    First and foremost: "JavaScript".equals("Java") not "JavaScript".startsWith("Java")
    That aside, you need to keep the original value...
    var orig = '';
    function emailAdd(item) {
       if(orig == '') {
          orig = document.mailForm.content.value;
       document.mailForm.to.value = item.options[item.selectedIndex].value;
       document.mailForm.content.value =orig + '\n' + document.mailForm.content.value;
    }

  • Java script problems preventing log in to certain web sites

    Java problems preventing log-in to certain web sites when using Safari or Chrome browsers

    I am unable to log into certain websites uaing Safari, Google Chrome and FIrefox.
    Safari just gives me a red exclamation mark.
    Google Chrome does the same thing.
    Firefox at least gives me this error message:
    "Your browser does not have the Sun Java system component installed or it is incorrectly installed. In order to run the platform, please download and install the latest version by clicking  here."
    So i click on the link and it takes me here:
    http://www.java.com/en/
    which is a download site for the latest version of Java. When i click on the download button i get taken to this website:
    http://www.java.com/en/download/apple_manual.jsp?locale=en
    which basically says that "Apple supplies their own version of Java". There is a link to the Apple store and instructions on how to get the latest software updates for your operating system (mine is OS X 10.6.8 - Snow Leopard).
    I have the latest version of all updates, there is nothing for me to update!!
    So i search the Apple store support area for the latest version of Java and download that (Java For Mac OS X 10.6 Update 8). Turns out i already have this version on my Mac. Still doesnt work!!!
    Am not impressed. I read somewhere that Apple is always behind in its Java updates and if a website you are trying to access has a later version, well, to bad for you. If that is the case that is very poor form for a company with record Billion dollar profits. This experience has put me off purchasing further Macs.

Maybe you are looking for

  • Sql statment is VERY slow

    Hi all I am facing a very big problem in my database. when I execute the below select statement, it takes to much time to finish. The value of cust_no is equal to 10. SELECT fname, lname, pcode FROM cust WHERE id = :cust_no; And I execute the same st

  • Ora-01031 insufficient privileges in oracle

    Hi All, I have a case where in i have upgraded my oracle 10.2.0.2 to 10.2.0.4 in solaris env. After upgrade i am able to start and use the system but when i schedule a job in DB13 for ex update statis. it is giving an error ora-01031 insufficient pri

  • Parse a Date to String

    Hi i would use this to parse String to Date : public Date parseFromString(String dateString){       try {           java.text.SimpleDateFormat formatter               = new java.text.SimpleDateFormat("dd/MM/yy");           return formatter.parse(date

  • Authorization Variable not prefilling on RRI jump

    Hi, I have an Authorization Variable which prefills according to the users authorized values - this works fine in all instance EXCEPT when I jump from another query. Has anyone seen this before? Anybody know why? What is the function which prefills t

  • Forms and SAP BI Launch pad

    Hi All, I apologize in advance if this is the wrong place, but this crosses 2 paths. PDf Forms and SAP BI Launch Pad I have a PDF Form created in Adobe LiveCycle and I wanted to add it to the CMC so users of the Launch Pad could all have access in on