Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
AcidGuy #1
javascript, coldfusion expression
hi guys!
is there a way to embed a expression using javascript and coldfusion values?
this variable is getting nut...
<a
href="#CGI.SCRIPT_NAME#?pagina=#URL.pagina#&modifi carCantidad=dameNumero(F_iCant
idad#i#)&elemento=F_iCantidad#i#&codigoBarra=#deta llePagina.codigoBarra#">
the "dameNumero(F_iCantidad#i#)" function is a javascript one,
this is the function which is called, and nothing happens...
<script>
<!--
function dameNumero (numero)
{
//variable = document.f_cambiosPagina[elemento].value;
//return variable
elemento = "F_iCantidad"+numero
return document.f_cambiosPagina[elemento].value;
}
-->
</script>
thx for any advice!
AcidGuy Guest
-
Javascript and Coldfusion
Can you have CF tags within javascript tags? thanks, Mike -
ColdFusion and JavaScript???
I have this javascript that works well... http://www.hotarea.com/fast/display.exe?show+javascript&form_elements&formsDropD own2D.html It's a... -
Coldfusion expression stored inside a variable...
I have a Coldfusion expression stored inside a coldfusion variable, for example: <cfsavecontent time = #CreateODBCDateTime(now())#> if i do not... -
JavaScript? Putting a variable in the midst of a Regular Expression.
I was reading a great article by Kas Thomas, "Save Yourself Some Typing with 'With'" at PlanetPDF. I really don't care much for the term guru, I... -
javascript regular expression error
It works here but it's not fool proof. You didn't say why it isn't working for you. It could be that your putting in odd characters in the field or... -
Neculai Macarie #2
Re: javascript, coldfusion expression
> <a
href="#CGI.SCRIPT_NAME#?pagina=#URL.pagina#&modifi carCantidad=dameNumero(F_i>
CantThe href value must be a string, not a javascript expression:> idad#i#)&elemento=F_iCantidad#i#&codigoBarra=#deta llePagina.codigoBarra#">
<a href="##"
onclick="location.href='#CGI.SCRIPT_NAME#?pagina=# URL.pagina#&modificarCanti
dad=' + dameNumero(F_iCantidad#i#) +
'&elemento=F_iCantidad#i#&codigoBarra=#detallePagi na.codigoBarra#">
--
<mack />
Neculai Macarie Guest
-
BKBK #3
Re: javascript, coldfusion expression
>... is there a way
No, there isn't. Your code example is neither Javascript nor Coldfusion.
You say dameNumero() is a Javascript function, yet there is no Javascript
event to load it. You should indeed expect nothing to happen.
BKBK Guest



Reply With Quote

