Error in TextField Validation Widget reset() method

There appears to be an error in the Textfield Validation
Widget's reset() method. When I set the widget to "real" or
"custom" validation, the reset() method is throwing an error when
it reaches the line "this.oldValue = this.input.defaultValue;"
I seached the code and it appears that
"this.input.defaultValue" is not set anywhere else. Is there a
missing option, or is this line incorrect and copied over from
another widget that uses "defaultValue"?

It looks as though you're trying to use main-content as a CSS selector. If it's a class, it should begin with a dot (period) like this:
.main-content
If it's an ID selector, it should begin with a hash:
#main-content

Similar Messages

  • Validation Widgets

    When I create a new div id for my form the color is not
    changing from gray to yellow when selected. It just stay yellow in
    my background.
    I am using the Validation Widgets Demo template for testing.
    It only happen when I create a custom input field like name
    and address the background is yellow.
    I try looking around in the css codes and can't find any
    linking words to my input text fields .
    Here is the link
    http://www.sarniasatellite.com/Contact_Viewsatusa.html
    thanks for the help

    Hello,
    1. When the user select any form input the corresponding
    validation widget apply a css class name on the input HTML
    container. Based on this class you can highlight the background
    color of your input. If you create a generic CSS rule it will apply
    to every input textfield in page. In the same time you can specify
    for each input a different color.
    The corresponding "focus" classes for each widget are:
    selectFocusState - Select Validation Widget
    textfieldFocusState - Textfield Validation Widget
    textareaFocusState - Textarea Validation Widget
    You can search into the corresponding css of each validation
    widget you already included in your page and change the background
    for all the textfields:
    .textfieldFocusState input, input.textfieldFocusState {
    background-color: #blue;
    or you can change a single one:
    .textfieldFocusState #fName1{
    background-color: pink;
    2. The default behaviour for the Validation Widgets is to
    request a value to be inserted. However this behavior could be
    switched off by using the isRequired option for each widget:
    isRequired: false
    Regardsm
    Cristian

  • TS1368 Error message tells me to reset password.  After resetting password I get confirmation email that new password is set.   As soon as I try to access App Store I get error message that password is not valid.

    Error message tells me to reset password.  After resetting password I get confirmation email that new password is set.   As soon as I try to access App Store I get error message that password is not valid.

    Try logging out of your account on the iPad by tapping on your id in Settings > Store and then log back in and see if it then works.

  • Dreaded "Not a Valid Widget" Error

    Hi Folks,
    I'm getting the dreaded "Not a Valid Widget" error when I try to import my Flash (Professional CS5) file as a widget into my Captivate 5 project. I've done my research on this problem, and found an earlier post from Vikranth regarding copying the AS3\static actionscript into the first frame of the Flash file:
                                                                          http://forums.adobe.com/message/3614964
    However, I'm not getting enough detail about exactly where to past this actionscript into Flash.
    Is this truly the fix? Even for the latest software fully updated?. If this is still the fix, am I going to have to do this every time I construct a Flash widget?
    Very much appreciate your help,
    Roger

    I think you may misunderstand. Installing WidgetFactory or any other API on your PC is not an instant fix for some issue in your widget coding.  I suggested that you go with an API because they are better documented than the Adobe templates and offer far more possibilities in the long run.
    To get the most out of the APIs you need to read the tutorials and documentation provided by their creators. Only then will you understand the differences in the templates, which use a framescripting approach to coding, versus the APIs, which use a class-based coding approach.  When using the APIs you do NOT use the Adobe templates at all to create widgets.  You begin your widget directly in Flash.
    Try these two tutorials first to get an idea of how it's done:
    http://www.infosemantics.com.au/widgetking/2010/11/building-widgets-in-flash/
    http://www.infosemantics.com.au/widgetking/2010/11/sign-up-for-the-widget-eseminars/
    Flash and Captivate DO work together very well, but only if you know what you are doing.  What's currently wrong with your picture is that you need to learn a lot more about how widgets work and how they need to be created.  As your ActionScript 3 skills improve, so will your widgets.

  • Abort and Reset methods do not execute on incoming error-

    Hi,
    I am using labview 8.6. Can i use  reset method in my host vi to reset my FPGA VI? Thanks

    The help explains what the Reset button does:
    Reset—Aborts and resets the FPGA VI on the FPGA target to
    the default state of the VI. This method sets the FPGA VI controls and
    indicators to their default states, sets uninitialized shift registers to their
    default values, clears FIFOs, and sets global variables to their default values.
    This method does not reset memory. If an error occurred before this method runs,
    the method runs normally and passes the error in value to
    error out. If an error occurs while this method runs, the
    method runs normally and merges error in and its own error
    status to produce error out.
    What exactly is the issue you are facing? Posting code will be helpful.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • UI Datepicker and Spry textfield Validation

    Hi, I am having a problem with using the UI Date picker and Spry textfield Validation together. I have created a sample form: 2 input boxe, the test box has the datepicker and spry validation and test2 has the date picker only,one submit button and some php code that echos the boxes values on submit.
    My date picker is date formated as 'yy-mm-dd' for four digit year.  My spry validation is formated 'yyyy-mm-dd' with validate on submit.
    Now when I click on the test input box the datepicker comes up normally and i select a date. I then select the date on test2. Once I click the submit button the test field with spry validation come back saying a value is required and nothing else happens.
    I was playing around and trying other things to get it to work and I noticed that when I select the test inputbox and the calander pops up if I enter some numbers into the text box then select a date from the datepicker then enter a date in the test2 inputbox and hit submit it works.
    So it appears to me that the validation is not reading anything in the test field when I just select a date.  Why is that?  When I select a date it shows a date in the inputbox.  It makes it hard to use the datepicker on a form.
    Any help would be a preciated.  Code is below.
    Thanks Winrol
    <?php echo "Test box 1 value = ". $_POST['test']. "<br/>" ?>
    <?php echo "Test box 2 value = ". $_POST['test2'] ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <script src="jquery-ui-1.7.2/js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="jquery-ui-1.7.2/js/jquery-ui-1.7.2.min.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="jquery-ui-1.7.2/css/base/ui.core.css" rel="stylesheet" type="text/css" />
    <link href="jquery-ui-1.7.2/css/base/ui.datepicker.css" rel="stylesheet" type="text/css" />
    <link href="jquery-ui-1.7.2/css/base/ui.theme.css" rel="stylesheet" type="text/css" />
    <link href="jquery-ui-1.7.2/css/base/ui.datepicker.images.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    /* BeginOAWidget_Instance_2137022: #datepicker */
    #datepicker .ui-widget {
    font-family: inherit;
    #datepicker .ui-datepicker {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    #datepicker .ui-datepicker-title {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    color: #000;
    font-weight: normal;
    line-height: 1.8em;
    #datepicker .ui-state-default, .ui-widget-content .ui-state-default {
    border-color: #e6e6e6;
    background-color: #e6e6e6;
    color: #555555;
    #datepicker .ui-state-default, .ui-state-default a {
    color: #555555;
    #datepicker .ui-state-highlight, .ui-widget-content .ui-state-highlight {
    border-color:#FCEFA1;
    background-color:#FCEFA1;
    color:#363636;
    #datepicker .ui-state-active, .ui-widget-content .ui-state-active {
    border-color: #FFFFFF;
    background-color: #FFFFFF;
    color: #212121;
    #datepicker .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus
    border-color: #5F5F5F;
    background-color: #5F5F5F;
    color: #212121;
    #datepicker .ui-widget-header
    border-color: #5F5F5F;
    background-color: #808080;
    border-width: 1px;
    /* Text attributes for the Days of Week Text */
    #datepicker .ui-datepicker table th
    font-size: .8em;
    color: #000;
    font-weight: bold;
    /* EndOAWidget_Instance_2137022 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2137022" binding="#datepicker" />
    </oa:widgets>
    -->
    </script>
      <script type="text/javascript">
    // BeginOAWidget_Instance_2137022: #datepicker
    $(function() {
    $('input').filter('.datepicker').datepicker({dateFormat: 'yy-mm-dd'});
    // EndOAWidget_Instance_2137022
      </script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    body {
    background-color: #FFC;
    </style>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="">
      <p>
        <label for="test">test</label>
        <span id="sprytextfield1">
        <input name="test" type="text" class="datepicker" id="test"/>
        <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span></p>
      <p>
        <label for="test2">test2</label>
        <input name="test2" type="text" id="test2"  class="datepicker" />
      </p>
      <p onclick="<?php echo $_POST['test'] ?>">
        <input type="submit" name="submit" id="submit" value="Submit" />
      </p>
    </form>
    <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "date", {format:"yyyy-mm-dd", hint:"yyyy-mm-dd"});
    </script>
    </body>
    </html>

    This does work
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.core.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.datepicker.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.theme.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.datepicker.images.css" rel="stylesheet">
    </head>
    <body>
    <form action="" method="post">
    <span id="sprytextfield1">
    <label for="mydate">Date:</label>
    <input id="datepicker" name="mydate" type="text">
    <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span>
    <div id="datepicker" class="ui-glass-gradient ui-80TopTo0Bottom-gradient-header"></div>
    <input name="mysubmit" type="submit">
    </form>
    <script src="SpryAssets/SpryValidationTextField.js"></script>
    <script src="jquery-ui-1.7.2/js/jquery-1.3.2.min.js"></script>
    <script src="jquery-ui-1.7.2/js/jquery-ui-1.7.2.min.js"></script>
    <script>
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "date", {format:"mm/dd/yyyy", validateOn:["change"], useCharacterMasking:true});
    $(function() {
        $('#datepicker').datepicker({ showOtherMonths: false });
    </script>
    </body>
    </html>
    Gramps

  • Force Textfield Validation??

    Hello,
    I am using the Spry Text Field Validation widget to validate
    my username field in a registration form. On blur, it checks to see
    if the username exists. Is there a function I can call from that
    checking function to classify that field as invalid?
    (Make it turn pink and pop up a custom error message)
    I tried to do this manually, but then the spry validation
    doesn't work anymore.
    I suppose it would be similar to the spry:states feature;
    that you could manually classify the field as 'maxchars' or
    'invalidFormat', or in my case, 'usernameTaken'...
    Thanks alot in advance,
    Maquelly

    Hi Maquelly,
    You have to use a custom validation to do this. Your custom
    validation function needs to return true if it passes validation
    and false if it doesn't. kjuliff did something like this already
    which you can use as an example. Look at these related posts.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=602&threadid =1231854&enterthread=y
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=602&threadid =1248092&enterthread=y
    I'll file a bug to make sure we have a sample that can walk
    folks through this.
    --== Kin ==--

  • [Load data from excel file [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may be error messa

    Error
    [Load data from excel file [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  There
    may be error message
    I am using BIDS Microsoft Visual Studio 2008 and running the package to load the data from excel .
    My machine has 32 bit excel hence have set property to RUN64BITRUNTIME AS FALSE.
    But the error still occurs .
    I checked on Google and  many have used Delay validation property at Data flow task level to true but even using it at both excel connection manager and DFT level it doesnt work
    Mudassar

    Thats my connection string
    Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\SrcData\Feeds\Utilization.xlsx;Extended Properties="Excel 12.0;HDR=NO";
    Excel 2010 installed and its 32 bit edition
    Are you referring to install this component -AccessDatabaseEngine_x64.exe?
    http://www.microsoft.com/en-us/download/details.aspx?id=13255
    Mudassar
    You can try an OLEDB provider in that case
    see
    http://dataintegrity.wordpress.com/2009/10/16/xlsx/
    you might need to download and install ms access redistributable
    http://www.microsoft.com/en-in/download/details.aspx?id=13255
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Using validation widgets within a data region

    My problem stems from the fact that when I place Spry Validation Widgets in a form within a Spry Data Region, the validation widgets do not work. When I remove the data region, all is well.
    Please help!
    This is a sample code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var dsMembers = new Spry.Data.XMLDataSet("data/members_xml.php", "export/row", {useCache: false});
    //-->
    </script>
    </head>
    <body>
    <div spry:region="dsMembers">
      <form id="editForm" name="editForm" action="">
        <table>
          <tr id="email">
            <td>E-mail:</td>
            <td>
              <input name="email_mem" type="text" id="email_mem" value="{username}" />
              <span class="textfieldRequiredMsg">The value is required.</span>
              <span class="textfieldInvalidFormatMsg">Invalid format.</span>
            </td>
          </tr>
          <tr id="password">
            <td>Password:</td>
            <td>
              <input name="password_mem" type="password" id="password_mem" value="{password}" />
              <span class="textfieldRequiredMsg">The value is required.</span>
              <span class="textfieldMinCharsMsg">The minimum number of characters not met.</span>
              <span class="textfieldMaxCharsMsg">The maximum number of characters exceeded.</span>
            </td>
          </tr>
          <tr id="site">
            <td>Website:</td>
            <td>
              <input name="website_mem" type="text" id="website_mem" value="{buswebsite}" />
              <span class="textfieldRequiredMsg">The value is required.</span>
              <span class="textfieldInvalidFormatMsg">Invalid format.</span>
            </td>
          </tr>
          <tr id="date">
            <td>Date:</td>
            <td><input name="registrationdate_mem" type="text" id="registrationdate_mem" value="{registrationdate}" />
            <span class="textfieldInvalidFormatMsg">Invalid format.</span> <span class="textfieldRequiredMsg">A value is required.</span></td>
          </tr>
          <tr>
            <td colspan="2">
              <input type="submit" name="Submit" id="Submit" value="Submit" />
              <input name="Reset" type="reset" value="Reset" />
            </td>     
          </tr>
        </table>
      <script type="text/javascript">
        <!--
        var email = new Spry.Widget.ValidationTextField("email", "email", {validateOn:["blur"]});
        var password = new Spry.Widget.ValidationTextField("password", "none", {minChars:6, maxChars:10, validateOn:["blur"]});
        var site = new Spry.Widget.ValidationTextField("site", "url", {validateOn:["blur"]});
        var date = new Spry.Widget.ValidationTextField("date", "date", {validateOn:["blur"], format:"dd/mm/yyyy", useCharacterMasking:true});
        //-->
        </script>
      </form>
    </div>
    </body>
    </html>
    Ben

    Ben,
    You need to add a function observer that will instantiate the form widgets and  add the Form Widget Init observer to the region.
    The modified code is as follows:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var dsMembers = new Spry.Data.XMLDataSet("data/members_xml.php", "export/row", {useCache: false});
    //  Define a function observer that will instantiate the form widgets.
    var widgetInitObserver = function(nType, notifier, data) {
        if(nType == 'onPostUpdate'){
            var email = new Spry.Widget.ValidationTextField("email", "email", {validateOn:["blur"]});
            var password = new Spry.Widget.ValidationTextField("password", "none", {minChars:6, maxChars:10, validateOn:["blur"]});
            var site = new Spry.Widget.ValidationTextField("site", "url", {validateOn:["blur"]});
            var date = new Spry.Widget.ValidationTextField("date", "date", {validateOn:["blur"], format:"dd/mm/yyyy", useCharacterMasking:true});
    //    add the Form Widget Init observer to the region
    Spry.Data.Region.addObserver('formregion', widgetInitObserver);
    //-->
    </script>
    </head>
    <body>
    <form id="editForm" name="editForm" action="">
      <div id="formregion" spry:region="dsMembers">
        <table>
          <tr id="email">
            <td>E-mail:</td>
            <td>
              <input name="email_mem" type="text" id="email_mem" value="{username}" />
              <span class="textfieldRequiredMsg">The value is required.</span>
              <span class="textfieldInvalidFormatMsg">Invalid format.</span>
            </td>
          </tr>
          <tr id="password">
            <td>Password:</td>
            <td>
              <input name="password_mem" type="password" id="password_mem" value="{password}" />
              <span class="textfieldRequiredMsg">The value is required.</span>
              <span class="textfieldMinCharsMsg">The minimum number of characters not met.</span>
              <span class="textfieldMaxCharsMsg">The maximum number of characters exceeded.</span>
            </td>
          </tr>
          <tr id="site">
            <td>Website:</td>
            <td>
              <input name="website_mem" type="text" id="website_mem" value="{buswebsite}" />
              <span class="textfieldRequiredMsg">The value is required.</span>
              <span class="textfieldInvalidFormatMsg">Invalid format.</span>
            </td>
          </tr>
          <tr id="date">
            <td>Date:</td>
            <td><input name="registrationdate_mem" type="text" id="registrationdate_mem" value="{registrationdate}" />
            <span class="textfieldInvalidFormatMsg">Invalid format.</span> <span class="textfieldRequiredMsg">A value is required.</span></td>
          </tr>
          <tr>
            <td colspan="2">
              <input type="submit" name="Submit" id="Submit" value="Submit" />
              <input name="Reset" type="reset" value="Reset" />
            </td>     
          </tr>
        </table>
      </div>
    </form>
    </body>
    </html>
    I hope this helps.
    Ben

  • Validation Widget onSubmit

    I would like to use the validation widgets when submitting
    data via Spry.Utils.loadURL. The validations work automatically
    when the form is submitted, but I want to call the
    Spry.Utils.loadURL in a function in an onSubmit function. Is there
    a way to invoke the validation manually?
    Something like:
    <script language="JavaScript" type="text/javascript">
    function SendFormCallback(request)
    //callback processing here
    function SendForm(theForm)
    Spry.Utils.loadURL("GET", "
    http://"+document.domain+"/scripts/myProxy.cfm?method=sendemail&"+formValsToString(theForm ),
    true, SendFormCallback);
    </script>
    <form name="myForm" method="post" action=""
    onSubmit="SendForm('myForm'); return false;">
    <table>
    <tr valign="top">
    <td align="right" valign="top"
    class="label">Name:</td>
    <td align="left" id="nameWidget"><input type="text"
    name="nameField" id="nameField" size="70">
    <span class="textfieldRequiredMsg">Please enter your
    name. </span></td>
    </tr>
    <tr valign="top">
    <td align="center" colspan="2"><input type="submit"
    name="Submit" value="Submit"></td>
    </tr>
    </table>
    </form>
    <script language="JavaScript" type="text/javascript">
    var nameWidget = new
    Spry.Widget.ValidationTextField("nameWidget", "none",
    {useCharacterMasking:true,
    validateOn:["blur","change"]});</script>

    Thanks for your help on this.
    Just wanted to let you know that in order to get this to work
    I had to add:
    var theForm = document.getElementById(form);
    So I ended up with:
    function SendForm(form)
    var theForm = document.getElementById(form);
    var ret = Spry.Widget.Form.validate(theForm);
    if (ret)
    Spry.Utils.loadURL("GET", "
    http://"+document.domain+"/scripts/myProxy.cfm?
    method=sendemail&"+formValsToString(theForm), true,
    SendFormCallback);
    }

  • Validation widget don't work in regions?

    Is it true, Validation Widget don't work in regions? If I
    create a text validation widget, then wrap it in a region for xml
    data, the validation no longer functions for the widget. Is there
    something I'm missing here, or does it simply not work in that
    configruation?
    Thanks,
    Nathan

    Hi Nathan,
    There is a workaround to have the validation widgets working
    inside a spry:region.n
    The reason why they don't work inside a region is because the
    spry region removes anything from page when it is created. In this
    way, the widget remains somewhere in the memory instantiated and
    will search from an element that no longer exists.This will make
    the widget to not function properly.
    You should do the following to have the widgets working
    inside a spry:region.
    - add the widgets' constructors instantiation inside the
    region
    - make an extra check if the widgets already exist and
    destroy them if any. I
    Below is a code sample of what you should do:
    <div spry:region="ds1">
    <form id="form1" name="form1" method="post" action="">
    <span id="sprytextfield1">
    <input type="text" name="text1" id="text1" />
    <span class="textfieldRequiredMsg">A value is
    required.</span></span>
    <p><span id="sprytextarea1">
    <label>
    <textarea name="textarea1" id="textarea1" cols="45"
    rows="5"></textarea>
    <span id="countsprytextarea1"> </span>
    </label>
    <span class="textareaRequiredMsg">A value is
    required.</span><span
    class="textareaMinCharsMsg">Minimum number of characters not
    met.</span><span class="textareaMaxCharsMsg">Exceeded
    maximum number of characters.</span></span></p>
    <p>
    <input type="submit" name="button" id="button"
    value="Submit" />
    </p>
    </form>
    <script type="text/javascript">
    <!--
    if (typeof sprytextfield1 != 'undefined' &&
    sprytextfield1.destroy) sprytextfield1.destroy();
    if (typeof sprytextfield1 != 'undefined' &&
    sprytextfield1.destroy) sprytextfield1.destroy();
    var sprytextfield1 = new
    Spry.Widget.ValidationTextField("sprytextfield1");
    var sprytextarea1 = new
    Spry.Widget.ValidationTextarea("sprytextarea1",
    {validateOn:["blur", "change"], counterType:"chars_count",
    counterId:"countsprytextarea1", minChars:2, maxChars:12});
    //-->
    </script>
    </div>
    Hope this makes things more clear,
    Diana

  • Not a valid widget

    This is so frustrating.   My Cap 5 keeps vomiting the not a valid widget error.....
    From Captivate 5:
    File>new project>Widget in Flash
    I select AS3, Static   (default)
    New file opens in Flash.   I chnage nothing....   I publish the swf from flash.
    Go back to captivate 5 and attempt to:
    Insert>widget
    "Not a valid widget"
    How can this be?    It has the default Adobe widget code??    It has no functionality....  but seriously...   it should allow it to be imported.
    I've checked the settings within Flash:
    File>Actionscript settings
    C:\Program Files\Adobe\Adobe Captivate 5\ActionScript\export\as3
    I know what CPgears and Widget factory do...    I get it...  so don't point me that way...     but I want to know WHY Adobe prodcut to Adobe product is broken...    I've checked the web, and it appears that everyone that has the same error as me were given work arounds...   not a genuine fix.
    This is the usual Adobe frustration...  

    Hi,
    I think this issue is same as the below post:-
    http://forums.adobe.com/message/3624888#3624888
    Please check and let me know if your issue gets resolved.
    Thanks,
    Vikranth

  • Reset() method problems...

    I have an assignment. I may be able to do it all myself, except for this one part. We are to find out, and use the reset() method for one question. I have done some code for the question.
    public class Date {
        public Date() {
             int dm_day = 0;
             int dm_month = 0;
             int dm_year = 0;
        public Date( int day, int month, int year){
        public void set_day(String str){
             dm_day = str;
        public int get_day(){
             return dm_day;
        public void set_month(String str){
             dm_month = str;
        public int get_month(){
             return dm_month;
        public void set_year(String str){
             dm_year = str;
        public int get_year(){
             return dm_year;
        public String toString(){
             String str = "Today's Date\n";
             str = dm_day + "/" + dm_month + "/" + dm_year;
    }I need to rovide a reset() method which sets the date to the first day of the year (January 1st). That is, the day and month change; the year is left as is. We cannot use the textbook, because it dies not include this method. So.. if anyone could help me out here, that would be excellent.
    Thanks in advance

    Yes I did write the code. I do understand what it
    does. I do not know what the reset method is for.Then don't write a reset method!
    The
    question states that it is to reset the year, keeping
    the day and month as the user's input. OK, so you do understand what the reset method is for.
    You're making this much harder than it has to be.
    As I said
    before, we are supposed to figure this out.Figure what out? How to do it? I already gave you a big fat clue that you apparently ignored.
    There is
    no help from our textbook. I have searched for the
    reset method.The textbook wouldn't tell you how to do this. There isn't some reset method standard in Java. This is just an application-level thing, put into your assignment for this individual case.
    But the docs that i found did not make
    sense to me. Nor did they say anything about what I
    am doing here. They're only going to help you out so much. In particular, they're not going to give you the answers to homework problems.
    And the error messages said all, and only
    "incompatible types" that is it.At this point, you should forget the reset() method until you get the code working otherwise. Which it's not.
    Jeff already told you what the problem is with your code that's preventing it from compiling. Plus of course the error message itself tells you. They don't tell you letter-for-letter what you have to type to fix your code, because that's basically impossible. Sorry, but you're going to have to think at least a little bit.

  • Textfield validation on values

    ALl,
    I am relatively new to Spry but I like to implement the Spry
    validation widgets in my forms.
    One of the tasks I have is checking if an entered number is
    already in my database and if so
    through an error.
    Basically checking the entered value against an array of
    numbers.
    Could some body help me get started to what the best approach
    is to this problem.
    ( I can code html and php, but my js skills are very basic)
    Thanks in advance
    KArel

    You can add the following to your onclick function and you
    should be all set.
    function postForm(YourForm)
    var val = Spry.Widget.Form.validate(YourForm);
    if (val)
    … Your post function

  • Servlet error java.io.IOException: Connection reset by peer

    While opening the R12 Notifications, error with Internal Server Error. And find this in application.log
    Servlet error
    java.io.IOException: Connection reset by peer
         at sun.nio.ch.FileDispatcher.write0(Native Method)
         at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
         at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
         at sun.nio.ch.IOUtil.write(IOUtil.java:75)
         at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:302)
         at java.nio.channels.Channels.write(Channels.java:60)
         at java.nio.channels.Channels.access$000(Channels.java:47)
         at java.nio.channels.Channels$1.write(Channels.java:134)
         at com.evermind.server.http.AJPOutputStream.endRequest(AJPOutputStream.java:117)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:317)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Any idea ?????

    Hi,
    Please post the exact release of R12 along with the database version and OS.
    Is this issue with specific notification? If yes, please mention the steps to reproduce the issue.
    Was this working before? If yes, any changes have been done recently?
    Can you find any errors in the Workflow log file?
    Thanks,
    Hussein

Maybe you are looking for

  • Populating the "Collections" drop down list in FEP reports

    When an FEP Antimalware report (e.g., the Antimalware Activity Report) opens in Report Manager or the FEP console, I see a drop-down list labeled Collection: from which I need to make a selection before the report can run.  But on our site, this drop

  • Encountering error while working with Dynamic Regions.

    Hi All, I am a beginner in ADF and on a quest to learn ADF. Sometimes I am struggling in the process. Now, when I am working with Dynamic Regions, encountered problem below Step 1 : Created a simple department TaskFlow with Department Form Step 2: Cr

  • Confusing imac memory install

    I'm confused by the description in the apple support notice(http://support.apple.com/kb/HT1423): "i5 and i7 Quad Core iMac computers come with both top memory slots populated. These computers will not start up if only a single DIMM is installed in an

  • BC4J Struts Integration

    Hi, I am trying to develop a sample application based on BC4J and Struts. I used the native integration between these two framework (as it is explained in the "Building a Web Store with Struts & BC4J Frameworks") but I have a problem: I need to acces

  • After software update I can't drag from iTunes directly into Garageband timeline, always could before, how can I fix this?

    After software update I can't drag  songs from iTunes directly into Garageband timeline, always could before, how can I fix this?