Help CFFORM format flash with ActionScript

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default Help CFFORM format flash with ActionScript

    Because the syntax getURL("http://www.macromedia.com", "_blank", "POST"); she
    is not
    being executed. I want that in case that returns 1 either redirected
    for another archive

    -------------------


    <cfsavecontent variable="callingCFC">
    var dataholder = this.createEmptyMovieClip('dataholder',4587);
    dataholder.method = "Logar";//the cfc method
    dataholder.usuario = usuario.text; //the parameter
    dataholder.senha = senha.text; //the parameter
    dataholder.loadVariables ('login.cfc', 'POST');//note the component name with
    full path
    var obj = {};
    var checkData = function(obj){
    if(dataholder.Success != undefined){
    if(dataholder.Success == 0){
    alert("Usu?rio ou Senha incorreto",'Erro',mx.controls.Alert.OK);
    }
    else
    {
    getURL("http://www.macromedia.com", "_blank", "POST");
    alert("Acertou",'Erro',mx.controls.Alert.OK);
    }
    clearInterval(obj.id);
    dataholder.Success = undefined;
    }
    }
    obj.id = setInterval(checkData, 100, obj);
    </cfsavecontent>
    <html>
    <head>
    <title>Cerebrum</title>
    </head>
    <body bgcolor="#71828A" leftmargin="0" topmargin="0" rightmargin="0"
    bottommargin="0" marginwidth="0" marginheight="0">
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td align="center" valign="middle">
    <cfform method="post" name="form" preloader="yes" format="flash" height="270"
    width="380" skin="halosilver" wmode="transparent" style="verticalGap:0;
    horizontalGap:0; marginRight:20; marginLeft:20; marginBottom:20; marginTop:20;
    disabledColor:##ffffff; color:##000000; background-color:##71828A;">
    <cfformgroup type="tabnavigator" selectedIndex="0" id="container"
    style="verticalGap:0; tabHeight:0; tabWidth:0; backgroundColor:##71828A;
    borderStyle:none;">
    <cfformgroup type="page">
    <!--- --->
    <cfformgroup type="panel" label="Login" style="marginLeft:10;
    headerColors:##71828A, ##C3CACE; headerHeight:32;
    panelBorderStyle:'roundCorners'; backgroundColor:##E5EAF0">
    <cfformgroup type="horizontal" label="Usu?rio" visible="yes" enabled="yes">
    <cfinput type="text" name="usuario" size="20" maxlength="20" message="O campo
    Usu?rio deve ser preenchido" validateat="onSubmit" required="yes"
    value="supervisor">
    </cfformgroup>
    <cfformgroup type="horizontal" label="Senha" visible="yes" enabled="yes">
    <cfinput type="text" name="senha" size="20" maxlength="20" message="O campo
    Senha deve ser preenchido" validateat="onSubmit" required="yes" value="super">
    </cfformgroup>
    <cfformgroup type="horizontal" visible="yes" enabled="yes">
    <cfinput type="button" name="button" value="ok" onclick="#callingCFC#">
    </cfformgroup>
    <cfformgroup type="horizontal" visible="yes" enabled="yes">
    <cfinput type="checkbox" name="lembrar" value="Lembrar de mim">
    </cfformgroup>
    <cfformgroup type="horizontal" visible="yes" enabled="yes">
    <cfinput type="checkbox" name="esqueci_senha" value="Esqueci a senha"
    onclick="container.selectedIndex = 1;">
    </cfformgroup>
    </cfformgroup>
    <!--- --->
    </cfformgroup>
    <cfformgroup type="page">
    <!--- --->
    <cfformgroup type="panel" label="Esqueci a senha" style="marginLeft:10;
    headerColors:##71828A, ##C3CACE; headerHeight:32;
    panelBorderStyle:'roundCorners'; backgroundColor:##E5EAF0">
    <cfformitem type="text">Digite abaixo seu e-mail e n?s enviaremos sua senha
    para voc?.</cfformitem>
    <cfformgroup type="horizontal" label="e-mail" visible="yes" enabled="yes">
    <cfinput type="text" name="email" size="20" maxlength="20" message="O campo
    e-mail deve ser preenchido no formato de e-mail" validateat="onSubmit"
    validate="email" required="yes">
    </cfformgroup>
    <cfformgroup type="horizontal" visible="yes" enabled="yes">
    <cfinput type="button" name="button2" value="ok">
    <cfinput type="button" name="button3" value="voltar"
    onclick="container.selectedIndex = 0;">
    </cfformgroup>
    </cfformgroup>
    <!--- --->
    </cfformgroup>
    </cfformgroup>
    </cfform>
    </td>
    </tr>
    </table>
    </body>
    </html>

    hackins Guest

  2. Similar Questions and Discussions

    1. Help CFFORM format flash with ActionScript 2
      I go to send the example for you to analyze. I am trying to develop this on the basis of an article that I read "Calling the CFC from the Form...
    2. cfform format flash
      I am trying to read a small dbase with a name and a link. I am using cfform format flash. What i want is to able to click at the link which is...
    3. CFFORM format=flash height = 100%?
      I have tried many of methods to get the CFFORM and elements (such as CFTREE or CFGRID) to fill 100% of available space, as the documentation says...
    4. CFFORM Format Flash not work with IE
      I saw that this request was responded previously by saying that when you cann see the form in Netscape but not in IE, that mean IE did not had...
    5. cfselect in a cfform format=flash
      Has anyone been able to get the cfselect to validate in a html type of cfform. It works in flash, however, it does not work in html? <cfform...
  3. #2

    Default Help CFFORM format flash with ActionScript

    Hy my name is marcio i'm from brasil my email is [email]hackin88@yahoo.com.br[/email]

    -------------------------

    Because the syntax getURL("http://www.macromedia.com", "_blank", "POST"); she
    is not
    being executed. I want that in case that returns 1 either redirected
    for another archive


    -------------------


    <cfsavecontent variable="callingCFC">
    var dataholder = this.createEmptyMovieClip('dataholder',4587);
    dataholder.method = "Logar";//the cfc method
    dataholder.usuario = usuario.text; //the parameter
    dataholder.senha = senha.text; //the parameter
    dataholder.loadVariables ('login.cfc', 'POST');//note the component name with
    full path
    var obj = {};
    var checkData = function(obj){
    if(dataholder.Success != undefined){
    if(dataholder.Success == 0){
    alert("Usu?rio ou Senha incorreto",'Erro',mx.controls.Alert.OK);
    }
    else
    {
    getURL("http://www.macromedia.com", "_blank", "POST");
    alert("Acertou",'Erro',mx.controls.Alert.OK);
    }
    clearInterval(obj.id);
    dataholder.Success = undefined;
    }
    }
    obj.id = setInterval(checkData, 100, obj);
    </cfsavecontent>
    <html>
    <head>
    <title>Cerebrum</title>
    </head>
    <body bgcolor="#71828A" leftmargin="0" topmargin="0" rightmargin="0"
    bottommargin="0" marginwidth="0" marginheight="0">
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td align="center" valign="middle">
    <cfform method="post" name="form" preloader="yes" format="flash" height="270"
    width="380" skin="halosilver" wmode="transparent" style="verticalGap:0;
    horizontalGap:0; marginRight:20; marginLeft:20; marginBottom:20; marginTop:20;
    disabledColor:##ffffff; color:##000000; background-color:##71828A;">
    <cfformgroup type="tabnavigator" selectedIndex="0" id="container"
    style="verticalGap:0; tabHeight:0; tabWidth:0; backgroundColor:##71828A;
    borderStyle:none;">
    <cfformgroup type="page">
    <!--- --->
    <cfformgroup type="panel" label="Login" style="marginLeft:10;
    headerColors:##71828A, ##C3CACE; headerHeight:32;
    panelBorderStyle:'roundCorners'; backgroundColor:##E5EAF0">
    <cfformgroup type="horizontal" label="Usu?rio" visible="yes" enabled="yes">
    <cfinput type="text" name="usuario" size="20" maxlength="20" message="O campo
    Usu?rio deve ser preenchido" validateat="onSubmit" required="yes"
    value="supervisor">
    </cfformgroup>
    <cfformgroup type="horizontal" label="Senha" visible="yes" enabled="yes">
    <cfinput type="text" name="senha" size="20" maxlength="20" message="O campo
    Senha deve ser preenchido" validateat="onSubmit" required="yes" value="super">
    </cfformgroup>
    <cfformgroup type="horizontal" visible="yes" enabled="yes">
    <cfinput type="button" name="button" value="ok" onclick="#callingCFC#">
    </cfformgroup>
    <cfformgroup type="horizontal" visible="yes" enabled="yes">
    <cfinput type="checkbox" name="lembrar" value="Lembrar de mim">
    </cfformgroup>
    <cfformgroup type="horizontal" visible="yes" enabled="yes">
    <cfinput type="checkbox" name="esqueci_senha" value="Esqueci a senha"
    onclick="container.selectedIndex = 1;">
    </cfformgroup>
    </cfformgroup>
    <!--- --->
    </cfformgroup>
    <cfformgroup type="page">
    <!--- --->
    <cfformgroup type="panel" label="Esqueci a senha" style="marginLeft:10;
    headerColors:##71828A, ##C3CACE; headerHeight:32;
    panelBorderStyle:'roundCorners'; backgroundColor:##E5EAF0">
    <cfformitem type="text">Digite abaixo seu e-mail e n?s enviaremos sua senha
    para voc?.</cfformitem>
    <cfformgroup type="horizontal" label="e-mail" visible="yes" enabled="yes">
    <cfinput type="text" name="email" size="20" maxlength="20" message="O campo
    e-mail deve ser preenchido no formato de e-mail" validateat="onSubmit"
    validate="email" required="yes">
    </cfformgroup>
    <cfformgroup type="horizontal" visible="yes" enabled="yes">
    <cfinput type="button" name="button2" value="ok">
    <cfinput type="button" name="button3" value="voltar"
    onclick="container.selectedIndex = 0;">
    </cfformgroup>
    </cfformgroup>
    <!--- --->
    </cfformgroup>
    </cfformgroup>
    </cfform>
    </td>
    </tr>
    </table>
    </body>
    </html>

    hackins Guest

  4. #3

    Default Help CFFORM format flash with ActionScript

    I go to send the example for you to analyze. I am trying to develop
    this on the basis of an article that I read "Calling the CFC from the
    Form Flash without refreshing"
    [url]http://www.asfusion.com/blog/examples/cfforms/getDate.cfm[/url]

    in my example is executed alert("Acertou", 'Erro',
    mx.controls.Alert.OK);

    and not yet executed

    getURL(http://www.macromedia.com", "_ blank", "POST");

    because not is executed getURL how to resolve



    Gracias Hermanos


    **********************************************
    login.cfm
    **********************************************
    <cfsavecontent variable="callingCFC">
    var dataholder = this.createEmptyMovieClip('dataholder',4587);
    dataholder.method = "Logar";//the cfc method
    dataholder.usuario = usuario.text ; //the parameter
    dataholder.senha = senha.text; //the parameter
    dataholder.loadVariables ('login.cfc', 'POST');//note the component name with
    full path
    var obj = {};
    var checkData = function(obj){
    if(dataholder.Success != undefined){
    if(dataholder.Success == 0){
    alert("Usu?rio ou Senha incorreto",'Erro',mx.controls.Alert.OK);
    }
    else
    {
    getURL("http://www.macromedia.com", "_blank", "POST");
    alert("Acertou",'Erro', mx.controls.Alert.OK);
    }
    clearInterval(obj.id);
    dataholder.Success = undefined;
    }
    }
    obj.id = setInterval(checkData, 100, obj);
    </cfsavecontent>
    <html>
    <head>
    <title>Cerebrum</title>
    </head>
    <body bgcolor="#71828A" leftmargin="0" topmargin="0" rightmargin="0"
    bottommargin="0" marginwidth="0" marginheight="0">
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td align="center" valign="middle">
    <cfform method="post" name="form" preloader="yes" format="flash" height="270"
    width="380" skin="halosilver" wmode="transparent" style="verticalGap:0;
    horizontalGap:0; marginRight:20; marginLeft:20; marginBottom:20; marginTop:20;
    disabledColor:##ffffff; color:##000000; background-color:##71828A;">
    <cfformgroup type="tabnavigator" selectedIndex="0" id="container"
    style="verticalGap:0; tabHeight:0; tabWidth:0; backgroundColor:##71828A;
    borderStyle:none;">
    <cfformgroup type="page">
    <!--- --->
    <cfformgroup type="panel" label="Login" style="marginLeft:10;
    headerColors:##71828A, ##C3CACE; headerHeight:32;
    panelBorderStyle:'roundCorners'; backgroundColor:##E5EAF0">
    <cfformgroup type="horizontal" label="Usu?rio" visible="yes" enabled="yes">
    <cfinput type="text" name="usuario" size="20" maxlength="20" message="O campo
    Usu?rio deve ser preenchido" validateat="onSubmit" required="yes"
    value="supervisor">
    </cfformgroup>
    <cfformgroup type="horizontal" label="Senha" visible="yes" enabled="yes">
    <cfinput type="text" name="senha" size="20" maxlength="20" message="O campo
    Senha deve ser preenchido" validateat="onSubmit" required="yes" value="super">
    </cfformgroup>
    <cfformgroup type="horizontal" visible="yes" enabled="yes">
    <cfinput type="button" name="button" value="ok" onfiltered="#callingCFC#">
    </cfformgroup>
    <cfformgroup type="horizontal" visible="yes" enabled="yes">
    <cfinput type="checkbox" name="lembrar" value="Lembrar de mim">
    </cfformgroup>
    <cfformgroup type="horizontal" visible="yes" enabled="yes">
    <cfinput type="checkbox" name="esqueci_senha" value="Esqueci a senha"
    onfiltered=" container.selectedIndex = 1;">
    </cfformgroup>
    </cfformgroup>
    <!--- --->
    </cfformgroup>
    <cfformgroup type="page">
    <!--- --->
    <cfformgroup type="panel" label="Esqueci a senha" style="marginLeft:10;
    headerColors:##71828A, ##C3CACE; headerHeight:32;
    panelBorderStyle:'roundCorners'; backgroundColor:##E5EAF0">
    <cfformitem type="text">Digite abaixo seu e-mail e n?s enviaremos sua senha
    para voc?.</cfformitem>
    <cfformgroup type="horizontal" label="e-mail" visible="yes" enabled="yes">
    <cfinput type="text" name="email" size="20" maxlength="20" message="O campo
    e-mail deve ser preenchido no formato de e-mail" validateat="onSubmit"
    validate="email" required="yes">
    </cfformgroup>
    <cfformgroup type="horizontal" visible="yes" enabled="yes">
    <cfinput type="button" name="button2" value="ok">
    <cfinput type="button" name="button3" value="voltar" onfiltered="
    container.selectedIndex = 0;">
    </cfformgroup>
    </cfformgroup>
    <!--- --->
    </cfformgroup>
    </cfformgroup>
    </cfform>
    </td>
    </tr>
    </table>
    </body>
    </html>
    **********************************************
    FINAL do codigo login.cfm
    **********************************************
    ------------------------
    **********************************************
    login.cfc
    **********************************************
    <cfcomponent name="dataResponder" access="public">
    <cffunction name="Logar" output="true" access="remote" returntype="void">
    <cfif arguments.usuario eq "supervisor" and arguments.senha eq "supers">
    <cfoutput>&eof=true&Success=1&loaded=true</cfoutput>
    <cfelse>
    <cfoutput>&eof=true&Success=0&loaded=true</cfoutput>
    </cfif>
    </cffunction>
    </cfcomponent>
    **********************************************
    FINAL do codigo login.cfc
    **********************************************


    hackins Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139