OnClick

Another question concerning OnClick event.. i have my form
now setup to
disable and enable drop downs based on a radio button..
If they select Yes the Drop down is enabled, and they select
from the list..
But what i want is that if they have selected yes, and made a
selection from
the drop down, but then realized that they needed to select
No, which
disables the drop down again.. can i force the drop down to
reset itself to
my default value/ selection instead of what they selected?
Does that make any sense?
ex.
Yes Drop Down
Friend
Relative
But they change to
No Drop Down
Friend ( is still selected, but now greyed out..
I just dont want to have someone make this change and submit
Friend when
they meant to select No

(_seb_) wrote:
> Daniel wrote:
>> I found this to use and having some issues
>>
>> onclick="disableField3();reset();"
>>
>> This reset(); actually works in resetting the drop
down back to the
>> default.. but the radio button for the word NO will
not display the
>> dot in the middle,
>> You can click on the radio button and it disables
the drop down and
>> resets back to default, but the little black dot
does not display in
>> the radio button...
>>
>>
>>
>>
>> "Daniel" <[email protected]> wrote in message
>> news:[email protected]...
>>> Another question concerning OnClick event.. i
have my form now setup
>>> to disable and enable drop downs based on a
radio button..
>>>
>>> If they select Yes the Drop down is enabled, and
they select from the
>>> list.. But what i want is that if they have
selected yes, and made a
>>> selection from the drop down, but then realized
that they needed to
>>> select No, which disables the drop down again..
can i force the drop
>>> down to reset itself to my default value/
selection instead of what
>>> they selected?
>>>
>>> Does that make any sense?
>>>
>>>
>>> ex.
>>> Yes Drop Down
>>> Friend
>>> Relative
>>>
>>> But they change to
>>>
>>> No Drop Down
>>> Friend ( is still selected, but now greyed out..
>>>
>>> I just dont want to have someone make this
change and submit Friend
>>> when they meant to select No
>>>
>>>
>>
>>
>
> radio button for YES:
> <input...
>
onClick="javascript:document.GetElementById("dropDownMenu").disabled
=
> false">
>
> where "dropDownMenu" is the id you give to your
drop-down menu, i.e.
>
> <input type="... " id="dropDownMenu">
>
> radio button for NO:
> <input...
>
onClick="javascript:document.GetElementById("dropDownMenu").disabled
=
> true">
>
OOPS!
Replace the double-quotes with single quotes around
dropDownMenu.
so it should be:
onClick="javascript:document.GetElementById('dropDownMenu').disabled
= true"
seb ( [email protected])
http://webtrans1.com | high-end web
design
An Ingenious WebSite Builder:
http://sitelander.com

Similar Messages

  • Unable to capture onClick event of htmlb:image in a controller

    Hi,
    I am trying to capture onClick event of an htmlb:image (which is present in my view) in DO_HANDLE_EVENT method of my controller.
    Surprisingly, when I click the image, page does refreshes. But the event in not captured in do_handle_event method. Control never reaches that method. Whereas if I put onClick event of a button, it is easily captured in do_handle_event method.
    Ex. code in my view is:
    <%@page language="abap"%>
    <%@extension name="bsp" prefix="bsp" %>
    <%@extension name="htmlb" prefix="htmlb"%>
        <htmlb:image id      = "searchimg"
                     src     = "consvalue.jpg"
                     onClick = "search"  />
        <htmlb:button id="searchbutton" onClick="search"
                                     text="Event Test"/>
    Now, the button event is captured, but not the image event.
    Any idea why this might be happening?
    Regards,
    Kaushal

    Hi Kaushal,
    are image and button enclosed by <htmlb:form> ?
    Please post your of do_handle_event, where you look for the event.
    Regards,
    Sebastian

  • Playing swf file by onclick in html web page

    First time poster so please forgive any protocol lapses.  I'm trying to play an  AS3 swf embedded in my web page by an onclick javascript function in my page.  Have tried many different ways, including the ExternalInterface class but no luck. Any help or suggestions would be appreciated.  I have a feeling that I'm overlooking something very basic.
    javascript :
    function playCorrectMovie() {
              var getSwfObj = swfobject.getObjectById("FlashID2");
              if(getSwfObj)
                        getSwfObj.play();
    <script type="text/javascript">
    swfobject.registerObject("FlashID");
    swfobject.registerObject("FlashID2");
    </script>
    html:
    <div id="answer1" class="answer_box">
      <ul>
        <li><a href="#" id="gifted" onclick="MM_effectShake('answer1'); return false;">gifted musicians who trace their genealogy back to Monteverdi.</a></li>
        <li><a href="#" id="wealthy" onclick="MM_effectShake('answer1'); return false;">successful entrepreneurs (the folks who brought us the original Bazooka bubble Gum.</a></li>
        <li><a href="#" id="slackers" onclick="playCorrectMovie();" >slackers, swindlers and ne'er do wells.</a></li>
      </ul>
    </div>
    flash:
    <div id="popupswf">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="200" id="FlashID2" title="Your answer was correct!">
        <param name="movie" value="correct.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <param name="play" value="false" />
        <param name="swfversion" value="6.0.65.0" />
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="scripts/expressInstall.swf" />
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="correct.swf" width="300" height="200">
          <!--<![endif]-->
          <param name="quality" value="high" />
          <param name="wmode" value="transparent" />
          <param name="play" value="false" />
          <param name="swfversion" value="6.0.65.0" />
          <param name="expressinstall" value="scripts/expressInstall.swf" />
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </div>

    No need to be sorry...  one other thing... the url to the swf uses the "public_html" directory as a lead-in.
    <param name="movie" value="public_html/our nations.swf" />
    The public_html directory of a web site is typically where a web site's content is placed as the base for a web site on a host server.  Unless you have a directory named public_html within what is probably already the public_html folder, then you do not want to specify that.  It is more probably supposed to be...
    <param name="movie" value="our nations.swf" />
    If you look at the various images that are specified in the html code, they do not specify that directory.  So if the swf is in the same folder as them, you do not want to be specifying the public_html part of that address.

  • How do i grab datalist ID and add it to button onclick to update that item

    Hi, I have pulled over some data from my sql server 2012 in VB C# DataList view. I would like to add a custom button to each item that will allow me to delete an item from the database and also update a database column onclick. EG: Update the paid (bit)
    column to 1 when the paid button is clicked. Here is what i have so far as i am new at this:
    my aspx page:
    <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    </asp:Content>
    <asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:DataList ID="dlActiveBills" runat="server" DataSourceID="SqlDataSource1">
    <ItemTemplate>
    Amount:
    <asp:Label ID="AmountLabel" runat="server" Text='<%# Eval("Amount") %>' />
    <br />
    DateReg:
    <asp:Label ID="DateRegLabel" runat="server" Text='<%# Eval("DateReg") %>' />
    <br />
    Deadline:
    <asp:Label ID="DeadlineLabel" runat="server" Text='<%# Eval("Deadline") %>' />
    <br />
    Notes:
    <asp:Label ID="NotesLabel" runat="server" Text='<%# Eval("Notes") %>' />
    <br />
    Name:
    <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' />
    <br />
    <br />
    <asp:Button id="btnPaid" runat="server" Text="Paid" Commandname="update" />
    </ItemTemplate>
    </asp:DataList>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ProjectConnectionString %>" SelectCommand="SELECT
    d.Amount,
    d.DateReg,
    d.Deadline,
    d.Notes,
    r.Name
    FROM
    Details d
    LEFT JOIN
    ReminderTypes r
    ON
    d.ReminderTypesId = r.ReminderTypesId
    WHERE
    d.Paid = 0"></asp:SqlDataSource>
    </asp:Content>
    my aspx.cs page
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Data;
    using System.Data.SqlClient;
    public partial class active_bills : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
    protected void MainContent_dlActiveBills_btnPaid_0_Click(object sender, EventArgs e)
    string dbConnection ="Data Source=somthing;Initial Catalog=somthing;Integrated Security=true;";
    SqlConnection sqlConnection;
    sqlConnection = new SqlConnection(dbConnection);
    sqlConnection.Open();
    SqlCommand cmd = new SqlCommand();
    cmd.Connection = sqlConnection;
    cmd.CommandText = "UPDATE Details SET Paid = 1 WHERE DetailsId = ?";
    cmd.ExecuteNonQuery();
    sqlConnection.Close();
    This doesn't work but can it be done in this way somehow?

    Hi irishwestman,
    Thank you for posting in MSDN forum.
    Since this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help
    System, and Visual Studio Editor.
    Based on your issue, it is related to the ASP.NET, so I suggest you can post this issue directly to the ASP.NET forum:http://forums.asp.net/
    you will get better support.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Skillbuilders Modal plugin onclick attribute gets removed

    Hi,
    Apex 4.2.0.00.27, IE8, Firefox 17.0
    I am trying to use the Skillbuilders Modal plugin with a classic report. I followed the instructions and in the link column put the following in the link attributes:
    onclick="return false;" class="edit-link"
    When I click the classic report 'edit' link the new page opens full size instead of in a modal window (it works correctly from a separate button). Examination of the page in Firebug suggests that the 'onclick="return false;" attribute is being removed.
    Page Source excerpt:
    &lt;tr class=&quot;highlight-row&quot;&gt;&lt;td headers=&quot;ID&quot; class=&quot;data&quot;&gt;&lt;a href=&quot;f?p=1:52015:15766172029982::NO::P52015_ID:1&quot; onclick=&quot;return false;&quot; class=&quot;edit-link&quot;&gt;&lt;img src=&quot;/icas/edit.gif&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/td&gt;&lt;td headers=&quot;ADO_ASA_ID&quot; class=&quot;data&quot;&gt;1&lt;/td&gt;&lt;td headers=&quot;EXT_BOD_ID&quot; class=&quot;data&quot;&gt;1&lt;/td&gt;&lt;td headers=&quot;DATE_CREATED&quot; class=&quot;data&quot;&gt;29-May-2013&lt;/td&gt;&lt;td headers=&quot;USER_CREATED&quot; class=&quot;data&quot;&gt;SC&lt;/td&gt;&lt;td headers=&quot;EMPLOYEE_ID&quot; class=&quot;data&quot;&gt;1&lt;/td&gt;&lt;td headers=&quot;DISCUSSION&quot; class=&quot;data&quot;&gt;test&lt;/td&gt;&lt;td headers=&quot;CONTACT_DATE&quot; class=&quot;data&quot;&gt;29-May-2013&lt;/td&gt;&lt;/tr&gt;
    Firebug excerpt:
    &lt;a class=&quot;edit-link&quot; href=&quot;f?p=1:52015:15766172029982::NO::P52015_ID:1&quot;&gt;
    I tried create do a simple version to upload, but as is always the way, that one worked fine.
    Can anyone suggest why the onclick="return false" bit might be getting dropped?
    Thanks,
    Nick.

    Further info - the page in question has a Form and a Report region. The modal window opens correctly if I remove the page process for updating the form (the standard 'Process Row...'). Setting a condition of 'Never' has no effect, the mere prescence of this page process is enough to break it.
    Does anyone know if Apex 5.0 will have a simpler Modal functionality, or will it be based on this plugin? In other words, should I persevere with it or wait for the new version.
    Apologies for the useless code extract above - it looked fine when I posted this on the old forum but the new 'improved' one can't seem to cope with it.
    Nick.

  • ShowHide onclick not working in Firefox nor Safari

    I have a real estate site that's been up for a while.  The floor plans showHide is now not working in Firefox nor Safari (still works in IE).  I would swear that it previously was working (6 months ago?).
    I'm sure I have a coding error someplace -- or have upgrades in the browsers disallowed the showHide script?  I'd rather not have to completely rewrite the page if I don't have to, so a quick fix would be preferable to having to rewrite the entire page.
    The page is a simple 3-layer:  the default visible layer is a plain site plan.  Imagemap showHide on mouseover create a mouse-over effect on each of the units; that mouseover aspect works properly in all browsers (it's showing and hiding any of 4 images depending on where the mouse is on the page).  What is not working is the onClick hot spot on each of the highlight images; the blank a=href"" comes up rather than the onClick... desitination.  Make sense?
    I tried both using the onClick within an <a> tag and on the image iteself (no <a> tag).  Neither works (except, again, in IE).
    I'm still on CS3; perhaps that's the issue?  I've been surfing to see if my script is outdated but unable to find anything useful, so thought I'd try this forum.  In my header, this is the FUNCTION that Dreamweaver put in.  Is v9.0 current?
    function MM_showHideLayers() { //v9.0
      var i,p,v,obj,args=MM_showHideLayers.arguments;
      for (i=0; i<(args.length-2); i+=3)
      with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
        if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
        obj.visibility=v; }
    The live page is at http://sweetzerterrace.com/fp/index.html
    CSS page is at http://sweetzerterrace.com/sweetzer.css
    Here is the full body code; I have bolded the relevant sections.  Pretty straightforward stuff, so I'm confused as to why it ceased to work.
    Help much appreciated!
    <body class="sweetzer" onload="MM_preloadImages('../i_sweetzer/nav_gallery_on.png','../i_sweetzer/nav_features_o n.png','../i_sweetzer/nav_fp_on.png','../i_sweetzer/nav_location_on.png','../i_sweetzer/na v_brochures_on.png','../i_sweetzer/nav_agent_on.png')">
    <div id="container">
    <div id="absolute">
      <div id="address"><img src="../i_sweetzer/address.png" alt="125 S. Sweetzer, Los Angeles/90049" width="950" height="114" /></div>
      <div id="navigation"><a href="../galleries/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ImgNavGallery','','../i_sweetzer/nav_gallery_on.png',1)"><img src="../i_sweetzer/nav_gallery.png" alt="photo galleries" name="ImgNavGallery" width="275" height="31" border="0" id="ImgNavGallery" /></a><a href="../features/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ImgNavFeat','','../i_sweetzer/nav_features_on.png',1)"><img src="../i_sweetzer/nav_features.png" alt="features" name="ImgNavFeat" width="105" height="31" border="0" id="ImgNavFeat" /></a><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ImgNavFPs','','../i_sweetzer/nav_fp_on.png',1)"><img src="../i_sweetzer/nav_fp.png" alt="floor plans" name="ImgNavFPs" width="129" height="31" border="0" id="ImgNavFPs" /></a><a href="../location/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ImgNavLocation','','../i_sweetzer/nav_location_on.png',1)"><im g src="../i_sweetzer/nav_location.png" alt="the location" name="ImgNavLocation" width="141" height="31" border="0" id="ImgNavLocation" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ImgNavBroch','','../i_sweetzer/nav_brochures_on.png',1)"><img src="../i_sweetzer/nav_brochures.png" alt="brochures" name="ImgNavBroch" width="126" height="31" border="0" id="ImgNavBroch" /></a><a href="../agent/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ImgNavAgent','','../i_sweetzer/nav_agent_on.png',1)"><img src="../i_sweetzer/nav_agent.png" alt="the agent" name="ImgNavAgent" width="174" height="31" border="0" id="ImgNavAgent" /></a>
      <!--end div NAVIGATION --></div>
    <div id="sweetzer"><img src="../i_sweetzer/sweetzer.png" alt="Sweetzer Terrace Condominiums" width="50" height="504" /></div>
    <div id="swtMovie">
        <div id="sitePlan"><img src="fpi/sitep.png" alt="site plan" width="900" height="504" border="0" usemap="#SitePlanRolls" />
    <map name="SitePlanRolls" id="SitePlanRolls">
      <area shape="rect" coords="100,95,349,387" href="#" alt="hover03's" onmouseover="MM_showHideLayers('sitePlan','','hide','hover03','','show','hover02','','hid e','hover01','','hide')" />
      <area shape="rect" coords="379,99,797,226" href="#" alt="hover02's" onmouseover="MM_showHideLayers('sitePlan','','hide','hover03','','hide','hover02','','sho w','hover01','','hide')" />
      <area shape="rect" coords="352,253,814,380" href="#" alt="hover01's" onmouseover="MM_showHideLayers('sitePlan','','hide','hover03','','hide','hover02','','hid e','hover01','','show')" />
    </map></div>
      <div id="hover03"><a href="#" onClick="MM_showHideLayers('hover03','','hide','fp03','','show')"><img src="fpi/site_03hover.png" alt="units 03 - click to view floor plan" width="900" height="504" border="0" usemap="#SitePlanRolls" />
    <map name="SitePlanRolls" id="SitePlanRolls">
      <area shape="rect" coords="100,95,349,387" href="#" alt="hover03's" onmouseover="MM_showHideLayers('sitePlan','','hide','hover03','','show','hover02','','hid e','hover01','','hide')" />
      <area shape="rect" coords="379,99,797,226" href="#" alt="hover02's" onmouseover="MM_showHideLayers('sitePlan','','hide','hover03','','hide','hover02','','sho w','hover01','','hide')" />
      <area shape="rect" coords="352,253,814,380" href="#" alt="hover01's" onmouseover="MM_showHideLayers('sitePlan','','hide','hover03','','hide','hover02','','hid e','hover01','','show')" />
    </map></a></div>
      <div id="fp03"><img src="fpi/fp03.png" alt="floor plan 03" width="900" height="504" border="0" onclick="MM_showHideLayers('fp03','','hide','sitePlan','','show')" /></div>
      <div id="hover02"><a href="#" onclick="MM_showHideLayers('hover02','','hide','fp02','','show')"><img src="fpi/site_02hover.png" alt="click to show floor plan 02" width="900" height="504" border="0" usemap="#SitePlanRolls" />
    <map name="SitePlanRolls" id="SitePlanRolls">
      <area shape="rect" coords="100,95,349,387" href="#" alt="hover03's" onmouseover="MM_showHideLayers('sitePlan','','hide','hover03','','show','hover02','','hid e','hover01','','hide')" />
      <area shape="rect" coords="379,99,797,226" href="#" alt="hover02's" onmouseover="MM_showHideLayers('sitePlan','','hide','hover03','','hide','hover02','','sho w','hover01','','hide')" />
      <area shape="rect" coords="352,253,814,380" href="#" alt="hover01's" onmouseover="MM_showHideLayers('sitePlan','','hide','hover03','','hide','hover02','','hid e','hover01','','show')" />
    </map></a></div>
      <div id="fp02"><img src="fpi/fp02.png" alt="floor plan 02" width="900" height="504" border="0" onclick="MM_showHideLayers('fp02','','hide','sitePlan','','show')" /></a></div>
      <div id="hover01"><a href="#" onclick="MM_showHideLayers('hover01','','hide','fp01','','show')"><img src="fpi/site_01hover.png" alt="click to show floor plan 01" width="900" height="504" border="0" usemap="#SitePlanRolls" />
    <map name="SitePlanRolls" id="SitePlanRolls">
      <area shape="rect" coords="100,95,349,387" href="#" alt="hover03's" onmouseover="MM_showHideLayers('sitePlan','','hide','hover03','','show','hover02','','hid e','hover01','','hide')" />
      <area shape="rect" coords="379,99,797,226" href="#" alt="hover02's" onmouseover="MM_showHideLayers('sitePlan','','hide','hover03','','hide','hover02','','sho w','hover01','','hide')" />
      <area shape="rect" coords="352,253,814,380" href="#" alt="hover01's" onmouseover="MM_showHideLayers('sitePlan','','hide','hover03','','hide','hover02','','hid e','hover01','','show')" />
    </map></a></div>
      <div id="fp01"><img src="fpi/fp01.png" alt="floor plan 01" width="900" height="504" border="0" onclick="MM_showHideLayers('fp01','','hide','sitePlan','','show')"  /></div>
      <!--end swtMovie (floor plans) --></div>
    <div id="footer">
    <p><a href="../agent">Represented by Mina Barin<br />
    <span class="small">DRE-CA # 01065894</span><br />
    310.246.0212</a><br /><br />
    <span class="small"><a href="../disclaimers">DISCLAIMERS</a><br />
    © COPYRIGHTED MATERIALS; ALL RIGHTS RESERVED<br />
    <a href="http://pixel-relish.com/" target="_blank">SITE BY PIXEL-RELISH.COM</a></span></p>
    <!--end FOOTER --></div>
    <!--end ABSOLUTE --></div> 
    <!--end CONTAINER --></div>
    </body>

    This is a very unusual attempt.  You have both an anchor tag wrapping the image, AND hotspots on the image.  I'm not surprised you are finding a conflict between those two.
    <div id="hover03"><a href="#" onClick="MM_showHideLayers('hover03','','hide','fp03','','show')"><img src="fpi/site_03hover.png" alt="units 03 - click to view floor plan" width="900" height="504" border="0" usemap="#SitePlanRolls" />
    <map name="SitePlanRolls" id="SitePlanRolls">
      <area shape="rect" coords="100,95,349,387" href="#" alt="hover03's" onmouseover="MM_showHideLayers('sitePlan','','hide','hover03','','sho w','hover02','','hide','hover01','','hide')" />
    What is it you are hoping this will do?

  • How to create a trigger 'onclick' on one image to change another image with swap?

    I need some help with behavior 'onclick'. 
    I have a webpage which has a plat of several home lots.  Next to the plat is a map of the general location of the town.  What I want to do is this...
    When the user "clicks" on a particular lot, the map picture will be swapped out for a picture of the view from that lot.
    When the user "clicks" again on the view of the lot, the image will swap back to the map of the town location.
    I have already done the map imaging for each of the lots. I have tried using the behaviors panel but when I choose "onclick" set my images and then test,
    it always defaults to "mouseover".  I don't want 'mouseover', I want click.
    Here is my code so far.   Oh, I am using Dreamweaver CS6
    Thank you so much for any information.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
    <!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
    <!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
    <!--[if gt IE 8]><!-->
    <!--<![endif]--><head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>toronto_creek_estates</title>
    <!-- TemplateEndEditable -->
    <link href="../../boilerplate.css" rel="stylesheet" type="text/css">
    <link href="../../styles.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    body {
              background-color: #F9F8F6;
    background-image: url(file:///C|/Users/Kim/Documents/Kim's_New_PQH_website/Assets/Images/background_texture _blue159.jpg);
    </style>
    <link href="../../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    a:hover {
              color: #009900;
    </style>
    <link href="../../homedetails.css" rel="stylesheet" type="text/css">
    <!--
    To learn more about the conditional comments around the html tags at the top of the file:
    paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
    Do the following if you're using your customized build of modernizr (http://www.modernizr.com/):
    * insert the link to your js here
    * remove the link below to the html5shiv
    * add the "no-js" class to the html tags at the top
    * you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build
    -->
    <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="../../respond.min.js" type="text/javascript"></script>
    <script src="../../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
      </head>
        <div class="gridContainer clearfix">
      <div id="LayoutDiv1"><img src="../Images/newbannernewlogo.jpg" alt="NewbannerNewLogo"></div>
      <div id="Navigation">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li>
            <div><a href="#">Home</a> </div>
          </li>
          <li>
            <div><a href="#"> Home Plans</a></div>
          </li>
          <li>
            <div><a href="#">New Homes / Lots</a> </div>
          </li>
          <li>
            <div><a href="#">Gallery</a> </div>
          </li>
          <li>
            <div><a href="#">Financing</a> </div>
          </li>
          <li>
            <div><a href="#">About Us</a> </div>
          </li>
          <li>
            <div><a href="#">Contact Us</a> </div>
          </li>
        </ul>
      </div>
    <div id="tcepicturebanner"><img src="../Images/toronto_creek/toronto creek thin header2.jpg" alt="tcepicbanner"></div>
    <div id="tcebanner">Toronto    Creek Estates</div>
    <div id="tce_description">Surrounded by the peaceful majestic mountains of the great southwest resides a community like no other, Toronto Creek Estates.   At an elevation of over 4,500'  above sea level   and situated just northwest of downtown Alpine, Texas,  the climate, views, peaceful surroundings and lifestyle are like no other in the great state of Texas.<br>
      <br>
      Toronto Creek Estates was designed and developed with a mission to provide affordable quality homes within  a quality community all nestled in a quiet country setting yet close to all the local conveniences.  Some of the many great amenities offered include:
      </div>
      <div id="amenitiescol1">
      <p>Spacious Lots</p>
      <p>Paved Streets</p>
    </div>
    <div id="amenitiescol2">
      <p>City Water &amp; Sewer</p>
      <p>Underground Utilities</p>
    </div>
    <div id="amenitiescol3">
      <p>Beautiful Mountain Views</p>
      <p>Covenants To Preserve Consistency</p>
    </div>
    <div id="tceplat"><img src="../Images/toronto_creek/kim new plat_final.jpg" alt="tceplat" usemap="#TCEplate" border="0">
      <map name="TCEplate">
        <area shape="poly" coords="710,143,714,214,620,218,627,186" href="../Images/toronto_creek/Lot13.jpg" alt="lot_13_view">
        <area shape="poly" coords="613,218,612,257,710,259,712,214" href="../Images/toronto_creek/Lot14.jpg" alt="lot_14_view">
        <area shape="poly" coords="611,306" href="#">
        <area shape="poly" coords="713,305,709,347,612,347,613,306" href="../Images/toronto_creek/Lot16.jpg" alt="lot_16_view">
        <area shape="poly" coords="711,349,612,349,611,366,621,373,625,392,710,393" href="../Images/toronto_creek/Lot17.jpg">
        <area shape="poly" coords="625,393,709,394,710,484,617,410,621,404" href="../Images/toronto_creek/Lot18.jpg" alt="lot_18_view">
        <area shape="poly" coords="712,260,712,260,614,261,613,304,661,305,700,305,710,304" href="#" alt="model15map">
        <area shape="poly" coords="292,94,337,94,340,189,290,189" href="#" alt="lot6map">
        <area shape="poly" coords="484,98,532,108,533,189,487,188" href="#" alt="lot10map">
      </map>
    </div>
    <div id="alpineintexasmap"><img src="../Images/toronto_creek/alpinetxmap.jpg" alt="alpinemapsm" name="alpinetxmap" width="327" height="263" id="alpinetxmap"></div>
    <div id="LayoutDiv2"><iframe width="290" height="240" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps/ms?msa=0&msid=210296110747849097579.0004d85c733f09892697e&ie= UTF8&t=m&ll=30.361026,-103.670425&spn=0.044436,0.051498&z=13&output=embed"></iframe><br />
      <small>Click to view <a href="https://maps.google.com/maps/ms?msa=0&msid=210296110747849097579.0004d85c733f09892697e&ie= UTF8&t=m&ll=30.361026,-103.670425&spn=0.044436,0.051498&z=13&source=embed" style="color:#0000FF;text-align:left">Toronto Creek Estates, Alpine, Texas</a> in a larger map with directions.</small></div>
    <div id="BottomNav">
        <div>
          <div>Home  |  Our Homes  |  Neighborhoods  |  Gallery  |  Financing  |  About Us  |  Contact Us </div>
        </div>
      </div>
      <div id="PriceAvail">
        <div>
          <div>Pricing and Availability are subject to change without notice</div>
        </div>
      </div>
      <div id="Footer">
        <div>
          <div>Copyright &copy; 2013 PreferredQualityHomes.com, pqualityhomes.com, pqhhomes.com, &amp; Preferred Quality Homes, L.L.C. All rights reserved. Last updated 10/31/12</div>
        </div>
      </div>
    </div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

    I am too new I guess, because your link was not helpful at all.  Maybe by looking at this you can help.  With this code, I have a picture that swaps with pic of lot6 on mouseover and returns to orig. pic on mouseout.  I have created a hotspot for each lot using image maps.  I would like to have this happen.  Mouseover lot6 hotspot to have images swap as they do here with this code.
    Thanks for any help you can give.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
    <!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
    <!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
    <!--[if gt IE 8]><!-->
    <!--<![endif]--><head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>toronto_creek_estates</title>
    <!-- TemplateEndEditable -->
    <link href="../../boilerplate.css" rel="stylesheet" type="text/css">
    <link href="../../styles.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    body {
              background-color: #F9F8F6;
    background-image: url(file:///C|/Users/Kim/Documents/Kim's_New_PQH_website/Assets/Images/background_texture _blue159.jpg);
    </style>
    <link href="../../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    a:hover {
              color: #009900;
    </style>
    <link href="../../homedetails.css" rel="stylesheet" type="text/css">
    <!--
    To learn more about the conditional comments around the html tags at the top of the file:
    paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
    Do the following if you're using your customized build of modernizr (http://www.modernizr.com/):
    * insert the link to your js here
    * remove the link below to the html5shiv
    * add the "no-js" class to the html tags at the top
    * you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build
    -->
    <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="../../respond.min.js" type="text/javascript"></script>
    <script src="../../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    </head>
    <body onLoad="MM_preloadImages('../Images/toronto_creek/Lot6.jpg')"><div class="gridContainer clearfix">
      <div id="LayoutDiv1"><img src="../Images/newbannernewlogo.jpg" alt="NewbannerNewLogo"></div>
      <div id="Navigation">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li>
            <div><a href="#">Home</a> </div>
          </li>
          <li>
            <div><a href="#"> Home Plans</a></div>
          </li>
          <li>
            <div><a href="#">New Homes / Lots</a> </div>
          </li>
          <li>
            <div><a href="#">Gallery</a> </div>
          </li>
          <li>
            <div><a href="#">Financing</a> </div>
          </li>
          <li>
            <div><a href="#">About Us</a> </div>
          </li>
          <li>
            <div><a href="#">Contact Us</a> </div>
          </li>
        </ul>
      </div>
    <div id="tcepicturebanner"><img src="../Images/toronto_creek/toronto creek thin header2.jpg" alt="tcepicbanner"></div>
    <div id="tcebanner">Toronto    Creek Estates</div>
    <div id="tce_description">Surrounded by the peaceful majestic mountains of the great southwest resides a community like no other, Toronto Creek Estates.   At an elevation of over 4,500'  above sea level   and situated just northwest of downtown Alpine, Texas,  the climate, views, peaceful surroundings and lifestyle are like no other in the great state of Texas.<br>
      <br>
      Toronto Creek Estates was designed and developed with a mission to provide affordable quality homes within  a quality community all nestled in a quiet country setting yet close to all the local conveniences.  Some of the many great amenities offered include:
      </div>
      <div id="amenitiescol1">
      <p>Spacious Lots</p>
      <p>Paved Streets</p>
    </div>
    <div id="amenitiescol2">
      <p>City Water &amp; Sewer</p>
      <p>Underground Utilities</p>
    </div>
    <div id="amenitiescol3">
      <p>Beautiful Mountain Views</p>
      <p>Covenants To Preserve Consistency</p>
    </div>
    <div id="tceplat"><img src="../Images/toronto_creek/kim new plat_final.jpg" alt="tceplat" usemap="#TCEplate" border="0">
      <map name="TCEplate">
        <area shape="poly" coords="710,143,714,214,620,218,627,186" alt="lot_13_view">
        <area shape="poly" coords="613,218,612,257,710,259,712,214" alt="lot_14_view">
        <area shape="poly" coords="611,306" href="#">
        <area shape="poly" coords="713,305,709,347,612,347,613,306" alt="lot_16_view">
        <area shape="poly" coords="711,349,612,349,611,366,621,373,625,392,710,393">
        <area shape="poly" coords="625,393,709,394,710,484,617,410,621,404" alt="lot_18_view">
        <area shape="poly" coords="712,260,712,260,614,261,613,304,661,305,700,305,710,304" href="keller_homepage.html" alt="model15map">
        <area shape="poly" coords="292,94,337,94,340,189,290,189" alt="lot6map">
        <area shape="poly" coords="484,98,532,108,533,189,487,188" href="#" alt="lot10map">
      </map>
    </div>
    <div id="alpineintexasmap"><img src="../Images/toronto_creek/alpinetxmap.jpg" alt="alpinemapsm" name="alpinetxmap" width="327" height="263" id="alpinetxmap" onMouseOver="MM_swapImage('alpinetxmap','','../Images/toronto_creek/Lot6.jpg',1)" onMouseOut="MM_swapImgRestore()"></div>
    <div id="LayoutDiv2"><iframe width="290" height="240" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps/ms?msa=0&msid=210296110747849097579.0004d85c733f09892697e&ie= UTF8&t=m&ll=30.361026,-103.670425&spn=0.044436,0.051498&z=13&output=embed"></iframe><br />
      <small>Click to view <a href="https://maps.google.com/maps/ms?msa=0&msid=210296110747849097579.0004d85c733f09892697e&ie= UTF8&t=m&ll=30.361026,-103.670425&spn=0.044436,0.051498&z=13&source=embed" style="color:#0000FF;text-align:left">Toronto Creek Estates, Alpine, Texas</a> in a larger map with directions.</small></div>
    <div id="BottomNav">
        <div>
          <div>Home  |  Our Homes  |  Neighborhoods  |  Gallery  |  Financing  |  About Us  |  Contact Us </div>
        </div>
      </div>
      <div id="PriceAvail">
        <div>
          <div>Pricing and Availability are subject to change without notice</div>
        </div>
      </div>
      <div id="Footer">
        <div>
          <div>Copyright &copy; 2013 PreferredQualityHomes.com, pqualityhomes.com, pqhhomes.com, &amp; Preferred Quality Homes, L.L.C. All rights reserved. Last updated 10/31/12</div>
        </div>
      </div>
    </div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

  • OnClick JavaScript error

    I have made several changes to my nav bar through Fireworks
    and exported, which I have done a million times, but this time when
    I inser Fireworkd HTML image it gives me the following message:
    While executing onClick in Fireworks HTML.htm, the following
    JavaScript error occurred:
    At line 438 of File C:\Program Files\Macromedia\Dreamweaver
    MX 2004\Configuration\Shared\MM\Scripts\InsertFireworksHTML.js":
    TypeError: menuFn.match(searchPatt)has no properties.
    I should tell you we have two sites we are putting this in.
    One to test pages and one that is live.
    Any help would be great!
    BigD

    Don't use FW menus.
    You can try this simple fix -
    Quit DW.
    Find this folder -
    C:\Documents and Settings\<username>\Application
    Data\Macromedia\Dreamweaver
    8\Configuration\WinFileCache-*.dat
    (these folders are normally hidden - you may have to use
    Explorer > Tools >
    Folder Options to unhide them)
    or on Mac -
    Library/Application Support/Macromedia/Dreamweaver
    8/Configuration/MacFileCache-*.dat
    and delete it.
    Restart DW. Works better?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "BigD05" <[email protected]> wrote in
    message
    news:es6jpt$551$[email protected]..
    >I have made several changes to my nav bar through
    Fireworks and exported,
    >which
    > I have done a million times, but this time when I inser
    Fireworkd HTML
    > image it
    > gives me the following message:
    >
    > While executing onClick in Fireworks HTML.htm, the
    following JavaScript
    > error
    > occurred:
    > At line 438 of File C:\Program
    Files\Macromedia\Dreamweaver MX
    >
    2004\Configuration\Shared\MM\Scripts\InsertFireworksHTML.js":
    TypeError:
    > menuFn.match(searchPatt)has no properties.
    >
    > I should tell you we have two sites we are putting this
    in. One to test
    > pages
    > and one that is live.
    >
    > Any help would be great!
    >
    > BigD
    >
    >

  • Can't set a hidden field value from onClick event with a runtime expression

    Hi,
    I need to set a hidden field in an onClick event of button but it's not working.
    <html:submit styleClass="btnLink" onclick="document.empForm.hidden.value='<%= empID%>'">
    <%= empID%>
    </html:submit>
    Althought the second expression is evaluated and written successfully "the button value"
    I heard that this is because you can't mix the value of an attribute of a custom tag with both string literal and run time expressions.
    Is there any work around to solve that?
    I can't use EL as I'm using old JSP version

    I guess, it should work; instead of html:submit, try with button.

  • In a JSP Page, onclick of submit, it is submitting twice.

    Hello! everybody...
    Please help me.. its urgent!
    I have a jsp page, after i enter values in textboxes and click on submit, i am calling a javascript function wherein i am submitting the form.
    The problem is, it is submitting twice and inserting the record in the database twice.
    here is my code.
    anybody pls let me know where the problem is?
    Thanks in advance.
    /*Javascript Function for onsubmit*/
    function addVersion()
                             alert('hi');
                             this.VersionDynaForm.action = "./Version.do?param=add";
                             this.VersionDynaForm.submit();
    <html:form action="/Version.do" styleId="VersionDynaForm" onsubmit= "return addVersion()">
    <input type="hidden" name="actionType" value="">
         <table cellspacing=0 cellpadding=2 border=0 class="table_view" id="TABLE3" >
              <tr class="table_data">
                        <td class="smalltext" width="200px" align="left"><b>Year<span style="color:Red;">*</span></b></td>
                        <td width="150px">
                        <select id="FLP_YEAR" name="FLP_YEAR" class="mediumtext" style="width:120px; height:30px" onchange="FLP_YEARChanged()">
                        <option value="">Select</option>
                             <%
                             ArrayList year = new ArrayList<Version>();
                             year = (ArrayList)session.getAttribute("years");
                             if(year!=null)
                        for(int i=0;i<year.size();i++){                                 
                             Version temp1 = (Version)year.get(i);
                             if(temp1.getFLP_YEAR().equals(Element6)){
         %>
              <OPTION selected value='<%=temp1.getFLP_YEAR()%>'><%=temp1.getFLP_YEAR()%></OPTION>
                        <%}
                             else{%>
                             <OPTION value='<%=temp1.getFLP_YEAR()%>'><%=temp1.getFLP_YEAR()%></OPTION>
                        <%}
                        %>
                        </select>
                   </td>
                   <td width="150px"></td>
                   <td width="200px"></td>
                   <td width="200px"></td>     
                   <td width="150px"></td>
                   <td width="150px"></td>
                        <td width="200px"></td>
         </tr>
         <tr class="table_data">
                        <td class="smalltext" width="200px" align="left"><b>Business Line<span style="color:Red;">*</span></b></td>
                        <td widht="150px">
                        <select id="LPA_BUSINESS_LINES" name="LPA_BUSINESS_LINES" class="mediumtext" style="width:120px; height:30px" onchange="alert('hi');testChanged()">
                        <option value="">Select</option>
                             <%
                             ArrayList lst1 = new ArrayList<Version>();
                             lst1 = (ArrayList)session.getAttribute("mnemonic1");
                             if(lst1!=null)
                        for(int i=0;i<lst1.size();i++){                                 
                             Version temp1 = (Version)lst1.get(i);
                             if(temp1.getLPA_BUSINESS_LINES().equals(Element1)){
         %>
              <OPTION selected value='<%=temp1.getLPA_BUSINESS_LINES()%>'> <%=temp1.getLPA_BUSINESS_LINES()%></OPTION>
                        <%}
                             else{%>
                             <OPTION value='<%=temp1.getLPA_BUSINESS_LINES()%>'> <%=temp1.getLPA_BUSINESS_LINES()%></OPTION>
                        <%}
                        %>
                        </select>
                   </td>
                   <td width="150px"></td>
                   <td width="200px"></td>
                   <td width="200px"></td>     
                   <td width="150px"></td>
                   <td width="150px"></td>
                        <td width="200px"></td>
         </tr>
         <tr class="table_data" align="left">
                        <td class="smalltext" width="200px" align="left"><b>RC Number<span style="color:Red;">*</span></b></td>
                        <td width="150px">
                        <select id="LPA_RC_NUMBER" name="LPA_RC_NUMBER" class="mediumtext" style="width:120px; height:30px" onchange="LPA_RC_NUMBERChanged()">
                        <option value="">Select</option>
                             <%
                             ArrayList lst2 = new ArrayList<Version>();
                             lst2 = (ArrayList)session.getAttribute("rcmnemonic");
                             if(lst2!=null && Element2!=null)
                        for(int i=0;i<lst2.size();i++){                                 
                             Version temp2 = (Version)lst2.get(i);
                                  if(temp2.getLPA_RC_NUMBER().equals(Element2)){
         %>
              <OPTION selected value='<%=temp2.getLPA_RC_NUMBER()%>'> <%=temp2.getLPA_RC_NUMBER()%></OPTION>
                        <%}
                             else{%>
                             <OPTION value='<%=temp2.getLPA_RC_NUMBER()%>'> <%=temp2.getLPA_RC_NUMBER()%></OPTION>
                        <%}
                        %>
                        </select>
                        </td>
                        <td class="smalltext" width="200px" align="left"><b>Version<span style="color:Red;">*</span></b></td>
                        <td width="150px">
                        <select id="LPA_VERSION_ID" name="LPA_VERSION_ID" class="mediumtext" style="width:120px; height:30px" onchange="LPA_VERSION_IDChanged()">
                        <option value="">Select</option>
                             <%
                             ArrayList ver = new ArrayList<Version>();
                             ver = (ArrayList)session.getAttribute("version");
                             if(ver!=null && Element5!=null)
                        for(int i=0;i<ver.size();i++){                                 
                             Version temp3 = (Version)ver.get(i);
                                  if(temp3.getLPA_VERSION_ID().equals(Element5)){
         %>
              <OPTION selected value='<%=temp3.getLPA_VERSION_ID()%>'> <%=temp3.getLPA_VERSION_NO()%></OPTION>
                        <%}
                             else{%>
                             <OPTION value='<%=temp3.getLPA_VERSION_ID()%>'> <%=temp3.getLPA_VERSION_NO()%></OPTION>
                        <%}
                        %>
                        </select>
                        </td>
                   <td width="150px"></td>
                   <td width="200px"></td>
                   <td width="200px"></td>     
                   <td width="150px"></td>
         </tr>
         <tr class="table_data" >
                   <td class="smalltext" width="200px" align="left"><b>Project<span style="color:Red;">*</span></b></td>
                        <td width="150px">
                        <select id="LPA_PROJECT_NAME" name="LPA_PROJECT_NAME" class="mediumtext" style="width:120px; height:30px" onchange="LPA_PROJECT_NAMEChanged()">
                        <option value="">Select</option>
                             <%
                             ArrayList lst3 = new ArrayList<Version>();
                             lst3 = (ArrayList)session.getAttribute("project");
                             if(lst3!=null && Element3!=null)
                        for(int i=0;i<lst3.size();i++){                                 
                             Version temp2 = (Version)lst3.get(i);
                                  if(temp2.getLPA_PROJECT_NAME().equals(Element3)){
         %>
              <OPTION selected value='<%=temp2.getLPA_PROJECT_NAME()%>'> <%=temp2.getLPA_PROJECT_NAME()%></OPTION>
                        <%}
                             else{%>
                             <OPTION value='<%=temp2.getLPA_PROJECT_NAME()%>'> <%=temp2.getLPA_PROJECT_NAME()%></OPTION>
                        <%}
                        %>
                        </select>
                   </td>     
                   <td align="left" class="smalltext" width="150px"><b>Version Name</b><span style="color:Red;">*</span></td>
                   <td><input type="text" class="smalltext" property="LPA_VERSION_NAME" name="LPA_VERSION_NAME" value="" maxlength="30"/></td>
                   <td width="150px"></td>
                   <td width="200px"></td>
                   <td width="200px"></td>     
                   <td width="200px"></td>
         </tr>     
    </table>          
    <table cellspacing=0 cellpadding=2 border=0 class="table_input" id="TABLE2" >     
              <tr class="table_input">
                   <td height="10px" colspan="5" class="table_top_td" align = "right" >
                   <INPUT id="button" class="mediumtext" style="width:80px; height:20px;" type="submit" value="NewVersion" class="btn" >
                   <INPUT id="button" class="mediumtext" style="width:80px; height:20px;" type="button" value="Update" class="btn" name="method" onclick="javascript:return updateFunction();">
                   <INPUT id="button" class="mediumtext" style="width:80px; height:20px;" type="button" value=Cancel class="btn" name="method" onclick="history.go(-1)" >
                   </td>
              </tr>
    </table>

    hi
    change the type="button" in the following line
    <INPUT id="button" class="mediumtext" style="width:80px; height:20px;" type="submit" value="NewVersion" class="btn" >
    and call the javascript function on onClick in above line and dont call it from form(tat u hav done), remove it from form
    then it wont submit twice
    -venkat

  • I want to execute JSP scriplet in onClick function of the button HTML page

    in my JSP page, the code is like this...
    <input type="button" value="xyz" onClick="<% my jsp code%>">
    the jsp code is executing wen the page is loading..
    i want the jsp code is executed wen v click the button..
    can i write like this...if not how should i write.
    plz suggest me...
    Thanking you
    Sorry if i post this in a wrong forum....
    Edited by: Murthy_Srinivas on Jun 5, 2008 10:49 PM

    the jsp code is executing wen the page is loading..
    i want the jsp code is executed wen v click the button..Not possible(in the way you are trying to achieve). JSP codes are processed in the server and only processed data/results are sent to browser which you see in your screen. Browser cannot/willnot execute the jsp code.
    ...if not how should i write.The only way is to make a server call(eg: either submit a form, make a http request using Ajax etc)

  • Onclick and doubleclick event not working in CC

    hi..  onclick and doubleclick event not working in CC..  how to get these events to work?
    Please advise anyone. Thanks alot!

    Is your event target a ListBox?
    In that case there are serious issues to deal with:
    http://indiscripts.com/blog/public/ScriptUIEvents.pdf
    @+
    Marc

  • Buttons just appearing as text for certain clients until enabled with onClick and enabled

    Would anyone know why buttons may disappear for some clients but not others.   I'm not finding a consistent pattern.  When I sign in locally or through vpn they display and behave properly, but when I sign in externally via Chrome or IE 11
    sometime the buttons only appear as text other disable buttons that are enabled on click.  I have a laptop with ie11 Win8 and desktop with ie11 win7.   The laptop displays the buttons proper behavior and the desktop does not.  
    anyone have any ideas.  Someone was working on the server recently and I'm wondering if any IIS setting may cause this problem.  Thanks for help!
    Buttons original state:
    <td><asp:Buttonrunat="server"Text="Print"ID="btnPrint"CssClass="tablerowheader"Enabled="False"/>
    <asp:Buttonrunat="server"Text="Submit"ID="btnSubmit"OnClick="btnSubmit_Click"
    CssClass="tablerowheader"Enabled="False"/></td>
    Buttons action:
    <asp:checkbox runat="server" id="chkSignature" onclick="EnableSubmitButton(this)" text="I Agree" Font-Bold+"true" checked="False">

    Solved.  The disabled status was being overwritten as null.

  • Menu Problem with OnClick Values

    Hi, I am not able to resolve this, so I hope someone can
    point out my error, or point me in the right direction. I have a
    set of menu choices and have an imbedded onclick command to pass a
    desired value. Instead of getting a value of, 1, for the first menu
    item, the value of, 6, is passed. How do I get the correct value
    passed? I've copied a section of my menu code below:
    <LI class=first>
    <A href="DisplayCFP.cfm" class=first onClick="<cfset
    session.DKy = 1>">"About BOMA"</A></LI>
    <LI>
    <A href="DisplayCFP.cfm" onClick="<cfset session.DKy =
    2>">"Who is BOMA?"</A></LI>
    <LI>
    <A href="DisplayCFP.cfm" onClick="<cfset session.DKy =
    3>">"Membership Categories"</A></LI>
    <LI><A
    href="https://www.bomakc.org/RegisterNewMember.cfm">Join
    Online</A></LI>
    <LI>
    <A href="DisplayCFP.cfm" onClick="<cfset session.DKy =
    4>">"Leadership"</A></LI>
    <LI class=first>
    <A href="DisplayCFP.cfm" class=first onClick="<cfset
    session.DKy = 5>">"What We Provide"</A></LI>
    <LI><A
    href="ClassRegistration.cfm">Class Schedule &amp;
    Registration</A></LI>
    <LI>
    <A href="DisplayCFP.cfm" onClick="<cfset session.DKy =
    6>">"Continuing Professional
    Development"</A></LI>
    Thank you, in advance, for some help.

    Not sure what you want to achieve.
    CF is a server-side script. Setting session variables ,
    processing of inputs
    will be done at the server-side. The values of Cf variables
    are set when the
    code is parsed by the server. You would not be able to set
    session
    variables client-side as your code seems to suggest.
    Just as an example, say you want to send a value 1 to the new
    page when a
    user clicks a link, you could use
    <a href="DisplayCFP.cfm?id=1">About BOMA</a>
    At the receiving page, you could get the data with
    <cfset session.DKy = url.id>
    Passing url variables is not secure as the user can see the
    variable and can
    change the value in the address bar. If you can be more
    specific about what
    you want to achieve someone can suggest a solution. You may
    also want to try
    the CF forum.
    "jade2g" <[email protected]> wrote in
    message
    news:eoo4tf$7bf$[email protected]..
    >
    >
    > Hi, I am not able to resolve this, so I hope someone can
    point out my
    > error,
    > or point my in the right direction. I have a set of menu
    choices and have
    > an
    > imbedded onclick command to pass a desired value.
    Instead of getting a
    > value
    > of, 1, for the first menu item, the value of, 6, is
    passed. How do I get
    > the
    > correct value passed? I've copied a section of my menu
    code below:
    >
    > <LI class=first>
    > <A href="DisplayCFP.cfm" class=first
    onClick="<cfset session.DKy =
    > 1>">"About
    > BOMA"</A></LI>

  • App.open not responding if called from inside onclick()

    Hi all.
    Working on a script for InDesign CC 2014 I found this problem : if I call app.open() from inside button.onclick() it stops and nothing happens. Since I'm a beginner with Javascript I'm probably doing something wrong, but I can not figure out where I'm wrong. If executed without onclick it works....
    There is another method to achieve the same result?
    As my project is still under construction, I place only the portion of code relating to the problem.
    I hope someone can help me, I can not get out of this hitch.
    Thanks in advance.
    var book_info;
    var w1 = new Window ("dialog", "TEST");
        w1.minimumSize.height = 50;
        w1.minimumSize.width = 50;
         var p1 = w1.add ("panel");
            sel_button = p1.add ("button", undefined, "Open a book");
         var g1 = w1.add ("group");
            g1.add("button", undefined, "Cancel");
            g1.add("button", undefined, "OK");
    sel_button.onClick = function(){
        var theFile = File.openDialog ("Select the book file to open...");
        get_data(theFile);
            alert(book_info.filePath + "\r" + book_info.name);
        book_info.close();
    w1.show();
    function get_data(data) {
        app.open(data);
        book_info = app.activeBook;
            alert("INSIDE FUNCTION" + book_info.filePath + "\r" + book_info.name);
        return data;

    Thanks,Loic.Aigon
    A better solution than mine. I just used a variable set inside the select button and check for the value after the window close. You can use different variables for different buttons. The approach is quite  similar. Reusing Loic.Aigon code:
    var book_info;  
    var theFile;
    var getData;
    var w1 = new Window ("dialog", "TEST");  
        w1.minimumSize.height = 50;  
        w1.minimumSize.width = 50;  
        var p1 = w1.add ("panel");  
            sel_button = p1.add ("button", undefined, "Open a book");  
        var g1 = w1.add ("group");  
            g1.add("button", undefined, "Cancel");  
            g1.add("button", undefined, "OK");  
    sel_button.onClick = function(){  
        theFile = File.openDialog ("Select the book file to open..."); 
      getData =1;        
      w1.close(1);
    w1.show()
    if (  getData ==1) {
      if ( theFile ) {
      get_data(theFile);  
    function get_data(data) {  
        app.open(data);  
        book_info = app.activeBook;  
            alert("INSIDE FUNCTION" + book_info.filePath + "\r" + book_info.name);  
        return data;  

  • Using javascript to detect the onclick event over a datatable row

    Hi all,
    I'm working with JSF 1.2 R.I. and I would like to add some javascript to my datatable to be able to control the onclick event on a row.
    At the moment I have just added a checkbox to be able to know which row the user wants to select but I'm not satisfied with this solution.
    <h:dataTable
    value="#{person_iupopulations_Observation.customer}" var="customer"
    rowClasses="evenRow,oddRow"
    cellspacing="0">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Select" />
    </f:facet>
    <h:selectBooleanCheckbox value="" onclick="getRow(this)">
    </h:selectBooleanCheckbox>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name" />
    </f:facet>
    <h:outputText value="#{customer.Name}"></h:outputText>
    </h:column>
    </h:dataTable>
    What I would like to achieve is:
    When the user clicks the row (wherever, not only the checkbox) the checkbox changes to the new value depending, off course, on the user's selection.
    For this purpose I would need to add the onclick event to every row and associate it to a javascript function to update the checkbox.
    Can anybody help me please.
    I appreciate any suggestion.
    Thanks in advance!

    I am looking for answers on how to use javascript to detect the onclick event over a datatable row . I have a selectBooleanCheckBox in one of the columns in the every row in the table. On click of the checkbox in any row of the table, I want to get some values from the selected row and also verify that the rest of the checkboxes in all the other columns are unchecked. I want to do this using javascript. If any of you have answers, please repsond. Thanks.

Maybe you are looking for

  • Removing Resolution Warning?

    So I've bought an Apple mini-DVI to video adapter so I can use front row on my TV. One caveat - when I try to use any photos in front row, it will hang indefinately because iPhoto will open and display a warning that my output resolution is too low.

  • Sharing an iPhoto Library over an external drive with multiple Macs

    I have a library of photos that is around 30 GB. All of the photos are already on an external drive, which is accessed through Xserve, and I have begun creating an iPhoto library on that same external drive. I have seen mixed opinions on whether or n

  • Audio Jack of my HP Envy 4 is not working anymore

    Hi all,             I have purchased HP Envy 4 just a 4 months ago and now something worong with its audio jack for headphone and its not working anymore. The hardware profile for this audio jack shows no error but its still not working. Is there any

  • Financial Document not updated with Sale Order Number

    Hello, I wish to update the Financial document posting from the billing document with the Sales order and line item number against the revenue account. This is not populating in COBL-KDAUF.  I have seen some other messages concerning this, but none w

  • Not seeing Gifs

    I am trying to run the RadioButtonDemo from the JavaTutorial. It compiles and actually runs fine but I dont see any of the gifs - I have tried numerous examples that should display a gif but none of them display the image I am using Forte for Java 3.