Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
hackins #1
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
-
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... -
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... -
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... -
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... -
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... -
hackins #2
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
-
hackins #3
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



Reply With Quote

