Function to perform onSubmit - validation widget

Ok, Ussually, when a form takes time to load the destination
page (event that I will call
form submission delay), the user tends to press again the
submit button. Every time the button is pressed, the information is
sent again. In spite of that the user will, of course only be sent
once to the page specified in the action attribute of the form. So,
the user may think he did right by pressing the button many times,
but we end up with multiple copies of the same information.
The solution I came up with, was to modify the validation
widget javascript file as follows:
function realizarAlRemitir()
if (!Spry.Widget.Form.onSubmit) {
Spry.Widget.Form.onSubmit = function(e, form)
if (Spry.Widget.Form.validate(form) == false) {
return false;
realizarAlRemitir()
return true;
I created a wildcard function "realizarAlRemitir()" to be
performed only when, having pressed the submit button, there is no
incorrect or empty required field to fill.
Then, in the html page containig the form, Iredefined the
"realizarAlRemitir()" function as follows:
<script language="JavaScript" type="text/javascript">
<!--
function realizarAlRemitir()
ratioGrow = 0.68;
Spry.Effect.GrowShrink('enviando', {duration:300, from:
'1px', to: '559px', toggle: true, growCenter:false});
Spry.Effect.AppearFade('enviando',
{duration:300,from:1,to:100,toggle:true});
// -->
</script>
This function "draws" using a modified spry effect a div tag
that effectively blocks the whole form so that the user cannot
modify the information or press again the submit button, while
giving her or him appropriate feedback that indicates that the
submission is being performed correctly.
This is the sample page:
http://192.168.10.2/nuevawebdesarrollo/eventos/conferencia.aspx?id=mbatc
Finnally, my question is whether or not there is a less
intrusive way to do such a thing, meaning, not having to touch the
javascript files code. I didn't find one, for instance, so will
some functionality like this be added to the framework? And,
lastly, once the framework is embedded inside Dreamweaver, will we
still be able to make such changes, without generating some trouble
that will cause the framework to stop working correctly with
dreamweaver.

Hello Marin,
Thanks a lot for your reply. I´m really sorry I made the
mistake of giving you our internal address. I'm used to just
copy/pasting it and sending the link to be reviewed. In spite of
that, you seem to have gotten the idea, perfectly fine, so thanks
again for making the effort to reply to a flawed question.
This is the public link, so It should work well for you:
http://www.esan.edu.pe/nuevawebdesarrollo/eventos/conferencia.aspx?id=mbatc
It's in spanish, but I don't think language matters to
understand how it works. Your solution is perfect, as it
effectively stops the user from pressing the submit button more
than once.
Still, the final part of my question holds. We are inserting
an event, after the submit button has been pressed and,
consequently, after we've got your javascript files running. So,
the only way to insert such an event is messing with the files. Or
can it be done with our own scripts? Will there be a less intrusive
way to do such a thing, meaning, not having to touch the javascript
code of your source files to add events or functionality? I didn't
find a way but that doesn't mean that there isn't one, right? I'm
worried that now that we have dreamweaver CS3, if anybody needs to
do such a thing, dreamweaver will no longer recognize the files and
it will look like in the preview window, that we didn't insert it,
even if it still works perfectly in the browser.
Thanks again,
DANTESAENZ

Similar Messages

  • 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);
    }

  • CFFORM and validation widget

    if you use a cfform this normally overwrites the spry
    validation at submit. Call on your cfform the validate() function
    on submit action. You should have something like: if
    (Spry.Widget.Form.validate(form) == true)....
    On submit check if the validate() function returns true or
    false. If true, continue submission, if false trigger the spry
    validation.
    Does anyone have a sample of the code, or more detailed
    information on the code reffered to above. I have included my code
    below:
    <!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>
    <title>Admissions Application</title>
    <cfinclude template="/head/app.htm" />
    <script type="text/javascript">
    <!--
    function ValidateForm(form){
    if(Spry.Widget.Form.validate(form)==true)
    return true;
    //-->
    </script>
    </head>
    <body>
    <div id="container" style="background-image:none;">
    <div id="header">
    <cfinclude template="/templates/header.htm" />
    </div>
    <img id="leafBottom" src="/images/rightNavLeaf.png"
    alt="" />
    <div id="content">
    <cfform method="post" name="app" id="application"
    action="" onsubmit="javascript:return ValidateForm(this)"
    enctype="x-www-form-urlencoded">
    <div id="box">
    <h1>I.D. and Name Information</h1>
    <p class="section">Section 1 of 7</p>
    <h3>Social Security Number</h3>
    <div id="thessn">
    <label for="ssn"><span
    class="required">*</span>Social Security
    Number:</label>
    <p><cfinput id="ssn" class="field" name="ssn"
    type="text" size="10" />
    <span class="textfieldRequiredMsg">Please enter your
    social security number.</span>
    <span class="textfieldInvalidFormatMsg">Please enter a
    valid social security number.</span></p>
    </div>
    <div id="thessn2">
    <label for="ssn2"><span
    class="required">*</span>Re-enter Social Security
    Number:</label>
    <p><cfinput id="ssn2" class="field" name="ssn2"
    type="text" size="10" />
    <span class="textfieldRequiredMsg">Please re-enter
    your social security number.</span>
    <span class="textfieldInvalidFormatMsg">Please enter a
    valid social security number.</span>
    <span class="confirmInvalidMsg">Social Security
    entires do not match.</span></p>
    </div>
    <p><cfinput class="field" type="submit" name=""
    value="Submit Application" /></p>
    </div>
    </cfform>
    <script type="text/javascript">
    <!--
    var thessn = new Spry.Widget.ValidationTextField("thessn",
    "social_security_number", {isRequired:"true", validateOn:["change",
    "blur"]});
    var thessn2 = new Spry.Widget.ValidationTextField("thessn2",
    "social_security_number", {isRequired:"true", validateOn:["change",
    "blur"]});
    var spryconfirm = new
    Spry.Widget.ValidationConfirm("thessn2", "ssn");
    //-->
    </script>
    </div>
    <div id="footer">
    <cfinclude template="/Templates/footer.htm" />
    </div>
    </div>
    </body>
    </html>

    if you use a cfform this normally overwrites the spry
    validation at submit. Call on your cfform the validate() function
    on submit action. You should have something like: if
    (Spry.Widget.Form.validate(form) == true)....
    On submit check if the validate() function returns true or
    false. If true, continue submission, if false trigger the spry
    validation.
    Does anyone have a sample of the code, or more detailed
    information on the code reffered to above. I have included my code
    below:
    <!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>
    <title>Admissions Application</title>
    <cfinclude template="/head/app.htm" />
    <script type="text/javascript">
    <!--
    function ValidateForm(form){
    if(Spry.Widget.Form.validate(form)==true)
    return true;
    //-->
    </script>
    </head>
    <body>
    <div id="container" style="background-image:none;">
    <div id="header">
    <cfinclude template="/templates/header.htm" />
    </div>
    <img id="leafBottom" src="/images/rightNavLeaf.png"
    alt="" />
    <div id="content">
    <cfform method="post" name="app" id="application"
    action="" onsubmit="javascript:return ValidateForm(this)"
    enctype="x-www-form-urlencoded">
    <div id="box">
    <h1>I.D. and Name Information</h1>
    <p class="section">Section 1 of 7</p>
    <h3>Social Security Number</h3>
    <div id="thessn">
    <label for="ssn"><span
    class="required">*</span>Social Security
    Number:</label>
    <p><cfinput id="ssn" class="field" name="ssn"
    type="text" size="10" />
    <span class="textfieldRequiredMsg">Please enter your
    social security number.</span>
    <span class="textfieldInvalidFormatMsg">Please enter a
    valid social security number.</span></p>
    </div>
    <div id="thessn2">
    <label for="ssn2"><span
    class="required">*</span>Re-enter Social Security
    Number:</label>
    <p><cfinput id="ssn2" class="field" name="ssn2"
    type="text" size="10" />
    <span class="textfieldRequiredMsg">Please re-enter
    your social security number.</span>
    <span class="textfieldInvalidFormatMsg">Please enter a
    valid social security number.</span>
    <span class="confirmInvalidMsg">Social Security
    entires do not match.</span></p>
    </div>
    <p><cfinput class="field" type="submit" name=""
    value="Submit Application" /></p>
    </div>
    </cfform>
    <script type="text/javascript">
    <!--
    var thessn = new Spry.Widget.ValidationTextField("thessn",
    "social_security_number", {isRequired:"true", validateOn:["change",
    "blur"]});
    var thessn2 = new Spry.Widget.ValidationTextField("thessn2",
    "social_security_number", {isRequired:"true", validateOn:["change",
    "blur"]});
    var spryconfirm = new
    Spry.Widget.ValidationConfirm("thessn2", "ssn");
    //-->
    </script>
    </div>
    <div id="footer">
    <cfinclude template="/Templates/footer.htm" />
    </div>
    </div>
    </body>
    </html>

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

  • Perform custom validation on invoices created via iSupplier portal in R12

    Hello,
    It seems that since R12, invoices created on iSupplier portal are no longer loaded via Payables open interface tables (while ASBN's still are). It is nice that they are loaded immediately but now we do not have any way to perform custom validation that we normally do via AP_INTERFACE_WORKFLOW_PKG.do_custom_validation procedure.
    Is there any way to modify how iSupplier portal inserts Invoice data into AP tables? In particular we would like to choose specific document category for certain suppliers.
    Many thanks in advance,
    Kamil

    Hi Friends,
    Apologies to have put this in SCM-Costing Category. I just posted the same thing in Financials Category.
    Please ignore this, if found irrelevant under this category.
    Thanks,
    AAR

  • How to Use the language function for assignment and validation

    Hi All,
    If anyone can explain me in details with example ,how to use the language function for assignments and validations?
    Thanks
    Arnab

    Hi Arnab,
    The expression is checked only for the current MDM session.
    If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
    Try connecting to the DM with the XYZ language.
    It should go to the if part rather than else.
    Hope it helps.
    Thanks,
    Minaz

  • Function returning error text validation

    Hi,
    I have a page where i can insert/update user, organisation, responsible.
    Organisation can be nullable.
    Only one user at a time can be responsible for a organisation.
    To check this responsible validation i made a function returning error text validation as follow:
    BEGIN
    FOR c IN (SELECT usr_spa
    FROM kpi_users
    WHERE usr_org_id = :p22_usr_org_id
    LOOP
    IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
    THEN
    RETURN 'A user is already responsible for this organisation'||'!';
    END IF;
    END LOOP;
    END;
    The validation works fine.
    But it goes wrong when i want to insert a new user, without assigning him to an organisation.
    I get following message:
    ORA-01722: invalid number
    ERR-1024 Unable to run "function body returning text" validation.
    Can someone please help me solve this problem?
    Thanks

    Hi,
    try:
    BEGIN
    FOR c IN (SELECT usr_spa
    FROM kpi_users
    WHERE usr_org_id = nvl(:p22_usr_org_id,-1)
    LOOP
    IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
    THEN
    RETURN 'A user is already responsible for this organisation'||'!';
    END IF;
    END LOOP;
    END;This assumes that :p22_usr_org_id could be null and converts this to -1 (pick another default value if this may exist as an id). It is possible that the statement would otherwise be seen as WHERE usr_org_id = null which is invalid.
    or you could do:
    BEGIN
    IF :p22_usr_org_id IS NOT NULL THEN
    FOR c IN (SELECT usr_spa
    FROM kpi_users
    WHERE usr_org_id = :p22_usr_org_id
    LOOP
    IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
    THEN
    RETURN 'A user is already responsible for this organisation'||'!';
    END IF;
    END LOOP;
    END IF;
    END;As this would stop the validation running if the :p22_usr_org_id is null.
    Or, you could just make your validation conditional on p22_usr_org_id not being null?
    Andy

  • Spry Validation widgets not working on local WAMP server

    I just started the process of creating a contact page. I got the client side done last night, woke up this morning and panicked. The spry validation widgets weren't working anymore. I re-did the entire page and realized it was only the contact.html page in the wamp directory that wasn't working. All the needed CSS and javascript assets are there and in the proper folders, so what's up?
    (I'm still in the middle of the lynda.com series Dreamweaver CS5 with PHP and MySQL , so I'm not even certain where I'm heading just yet. I'm doing stuff as I think I understand it.)

    OK, this is interesting. It works online, but not in local cache.
    Here's the contact page on my website: http://www.ladyhawkslair.com/contact.html (So far, GNDN: goes nowhere; does nothing.)
    And here's the WAMP version: http://www.ladyhawkslair.com/wamp/contact.html
    worky-worky online.
    No worky-worky when I preview in Firefox on my system.
    Wait. Hold that thought.
    I only refuses to work when I preview it in Firefox THROUGH Dreamweaver. Let me test again.
    Verified.
    The spry widgets don't work when I load them to Firefox WITH Dreamweaver. Interestingly, it works with IE.
    Any ideas, Gramps?

  • Making a Swf a valid widget

    I have a swf carousel that will work sat inside an HTML file for the purposes of siting on a web page.
    What as3 code do I need to make this a valid widget?
    I don't actually need it to interact with the captivate project, but I need the user to be able to click the images on the carousel and view the image on the carousel stage area inside the project.

    The Widget King blog is your best resource for advice about coding widgets for Captivate using the WidgetFactory API.
    Take a look at this post about setting the widget type:
    http://www.infosemantics.com.au/widgetking/2012/07/building-a-widget-step-by-step-part-2/

  • Oracle 9i function to perform data manipulation

    Hi everyone,
    I have two scenarios. I would like to write one Oracle 9i function that can accommodate both these scenarios, using PL/SQL developer. I intend passing a varchar2 parameter to this function. Within the function, I perform a select on a table and see if this value sent has a parent record.
    If it does not have a parent record (null or blank) then I take this value, join with another table, perform some processing and return one varchar2 value.
    If it has a parent record (not null or not blank) then I need to retrieve all the other children records associated with this same parent record, take this value, join with another table,perform some processing and return one varchar2 value.
    I have two simple queries that I wrote: one for record with null/blank parent, and the other for record with same parent and other children. These two queries work individually, when I combine them is where I run into problems. Sample table:
    TABLE XYZ data: (note: if there is a parent, parent shows up in both parent and child field in the table)
    child parent
    1234
    5107 3167
    6259 3652
    5678 9754
    3167 3167
    3652 3652
    1649
    2306 9754
    4657 3652
    9754 9754
    8753 3652
    passing record 1234 into the function.
    SELECT A.child, A.parent, C.field1
    FROM OTHERTABLE C,
    (SELECT TableA.child, TableA.parent
    FROM XYZ TableA
    WHERE TableA.child ='1234')A
    WHERE A.child = C.field2
    ----(output of this query is 1 record with 3 fields 1234 and null/blank and 987654321. I place this output into a cursor and then take 987654321 and place into a variable and return this value)
    passing record 4657 into the function
    SELECT c.CHILDfield, c.PARENTfield, TableOther.field1
    FROM OTHERTABLE TableOther,(
    (SELECT B.CHILDfield, B.PARENTfield FROM
    (SELECT A.PARENTfield, i.CHILDfield FROM TableB,
    (SELECT TableA.CHILDfield, TableA.PARENTfield
    FROM XYZ TableA
    WHERE TableA.CHILDfield ('4657' ))A
    -- pass 4657 and then get the parent
    WHERE A.PARENTfield = TableB.PARENTfield)B
    -- gets associated children with the parent from previous query.
    -- note: parent can exist in the parent and child fields
    WHERE B.CHILDfield <> B.PARENTfield))C
    --strips off the parent and gets child/children only as I don't need
    --the parent when it is also a child
    WHERE C.CHILDfield = TableOther.field1
    --(output of this query is 3 records
    4657 3652 912345671
    6259 3652 945362798
    8753 3652 934274857)
    I place this output into a cursor and then have a CASE statement that goes thru each record, and appends the third value into a variable, the ultimate return value of this will be as follows:
    912345671;945362798;934274857)
    The dilemma is writing a generic query to accommodate both these situations. My current function can handle each of these situations individually, but not both. For testing purposes, I change the select statement depending on whether I have a record that has a parent on not!
    Any help is greatly appreciated.

    You want one function to handle two cases? This is the best opportunity to use the IF STATEMENT.
    FUNCTION MyFunc (p_input IN VARCHAR2) RETURN VARCHAR2 IS
    ReturnValue VARCHAR2;
    BEGIN
    IF <blank or null test> THEN
    SELECT ... -- Blank or null select statement
    ... -- Blank or null data processing
    RETURN ReturnValue;
    ELSE
    SELECT ... -- Other select statement
    ... -- Other data processing
    RETURN ReturnValue;
    END IF;
    END MyFunc;

  • No interface driver connected - Function not performed

    Can some one please help me. I am a new user of Oracle, and I am trying to logon using SQl plus 8.0. (system/manager @ODBC:POLITE. But I get an error message saying "No interface driver connected - Function not performed" Where on the machine is the interface driver usually stored. I also have SQL plus 8.0 on the same machine, and it works when I log on using scott/tiger.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Uche Ubani ([email protected]):
    Can some one please help me. I am a new user of Oracle, and I am trying to logon using SQl plus 8.0. (system/manager @ODBC:POLITE. But I get an error message saying "No interface driver connected - Function not performed" Where on the machine is the interface driver usually stored. I also have SQL plus 3.3 on the same machine, and it works when I log on using scott/tiger.<HR></BLOCKQUOTE>
    null

  • Function to perform subsequent subtraction in BEx

    Hello Experts,
    I want to build following standard deviation formula in BEx.
    std = R-Bar/D2, R-Bar defined as the sum of the absolute values of the differences between the value and the value before it divided by the number of values (the number of values will be the count minus 1 since the first value does not have a value to take a difference from).  D2 is a contant 1.128.
    I don't get any function to perform subsequent subtraction.
    , in spreadsheet it is something like this.
    Column D : Actual Test Results of Lot 'L1' for each sample (A to G)
    Now I need to calculate its standard deviation using above formula.
    Column F : E3-E2, E4-E3 and so on. In E2, value will be Zero as it's the first record.
    Column G : Absolute of Values in Column F.
    Cell G10 : Sum of all absolute values (60 in this example)
    Cell G12 : Sum/ (Count-1) i.e. 60/(7-1) in this example. A to G are 7 samples, so count is 7.
    G14 : G12/1.128
    So, G14 holds the desired result of standard deviation.
    When I remove Sample column from my report I should get this result in standard deviation cell.
    Lot Number
    Standard Dev
    L1
    7.598784195
    Appreciate your help.
    Thanks.

    Hi There
    So you want to play with designer, then you have to create a lot key figure selections and formulas, you have to create as much as samples you may have. If the max number of samples can be seven then you have to create seven key figure selections and restrict each one of them with samples characteristic value. You will create also six formulas.
    An example:
    KYF 1: Test Result , restrict Samples : A
    KYF 2:  Test Result , restrict Samples : B
    KYF 3:  Test Result , restrict Samples : C
    KYF 4:  Test Result , restrict Samples : D
    and so on...
    Formula 1: KYF 2 - KYF 3
    Formula 2: KYF 3 - KYF 4
    Since samples will not be in the analysis then you won't have any issue with the results.
    Thank you
    Yiannis

  • SQL User Defined Functions for performing statistical calculations

    Hi!
       I hope you can help.  I just wasn’t sure where to go with this question, so I’m hoping you can at least point me in the right direction.
       I’m writing a SQL Server stored procedure that returns information for a facility-wide scorecard-type report.  The row and columns are going to be displayed in a SQL Server Reporting Services report. 
       Each row of information contains “Current Month” and “Previous Month” numbers and a variance column.  Some rows may compare percentages, others whole numbers, others ratios, depending on the metric they’re measuring.  For each row/metric the company has specified whether they want to see a t-test or a chi-squared statistical test to determine whether or not there was a statistically significant difference between the current month and the previous month. 
       My question is this:  Do you know where I can find a set of already-written user defined functions to perform statistical calculations beyond the basic ones provided in SQL Server 2005?  I’m not using Analysis Services, so what I’m looking for are real SQL User Defined Functions where I can just pass my data to the function and have it return the result within a stored procedure. 
       I’m aware that there may be some third-party statistical packages out there we could purchase, but that’s not what I’m looking for.   And I’m not able to do anything like call Excel’s analysis pack functions from within my stored procedure.   I’ve asked.   They won’t let me do that.   I just need to perform the calculation within the stored procedure and return the result.
       Any suggestions?  Is there a site where people are posting their SQL Server UDF’s to perform statistical functions?  Or are you perhaps aware of something like a free add-in for SQL that will add statistical functions to those available in SQL?   I just don’t want to have to write my own t-test function or my own chi-squared function if someone has already done it.
     Thanks for your help in advance!  Oh, and please let me know if this should have been posted in the TSQL forum instead.  I wasn't entirely sure.
    Karen Grube

    STATS_T_TEST_
    docs.oracle.com/cd/B19306_01/server.102/b14200/functions157.htm 
    STATS_T_TEST_ONE: A one-sample t-test
    STATS_T_TEST_PAIRED: A two-sample, paired t-test (also known as a crossed t-test)
    STATS_T_TEST_INDEP: A t-test of two independent groups with the same variance (pooled variances)
    STATS_T_TEST_INDEPU: A t-test of two independent groups with unequal variance (unpooled variances)

Maybe you are looking for