what is wrong with this code

2010-04-15 Thread fun and learning
Hi All, I know this is coldfusion forum, but can any one tell me what I am missing to make the fileName get within quotes in javascript. I am getting everything right except in callURL, the fileName is sent as argument, but the real value is not enclosed within quotes. I tried different

Re: what is wrong with this code

2010-04-15 Thread morgan l
I think this'll work: callURL = a href='##' onClick='javascript:return parent.frames[1].XYZ(\fileName\)'Link1/a; On Thu, Apr 15, 2010 at 3:58 PM, fun and learning funandlrnn...@gmail.comwrote: callURL = a href='##' onClick='javascript:return parent.frames[1].XYZ( + fileName + )'Link1/a;

Re: what is wrong with this code

2010-04-15 Thread Jason Fisher
callURL = a href='##' onClick='javascript:return parent.frames[1].XYZ(\ + fileName + \)'Link1/a; On 4/15/2010 4:58 PM, fun and learning wrote: Hi All, I know this is coldfusion forum, but can any one tell me what I am missing to make the fileName get within quotes in javascript. I am

Re: what is wrong with this code

2010-04-15 Thread fun and learning
I think this'll work: callURL = a href='##' onClick='javascript:return parent.frames[1].XYZ(\fileName\)'Link1/a; On Thu, Apr 15, 2010 at 3:58 PM, fun and learning funandlrnn...@gmail.comwrote: callURL = a href='##' onClick='javascript:return parent.frames[1].XYZ( + fileName + )'Link1/a;

Re: what is wrong with this code

2010-04-15 Thread fun and learning
callURL = a href='##' onClick='javascript:return parent.frames[1]. XYZ(\ + fileName + \)'Link1/a; Does not work..Shows syntax error. On 4/15/2010 4:58 PM, fun and learning wrote: Hi All, I know this is coldfusion forum, but can any one tell me what I am missing to make the

Re: what is wrong with this code

2010-04-15 Thread morgan l
Oops, put the +'s back in: callURL = a href='##' onClick='javascript:return parent.frames[1].XYZ(\ + fileName + \)'Link1/a; On Thu, Apr 15, 2010 at 4:07 PM, fun and learning funandlrnn...@gmail.comwrote: I think this'll work: callURL = a href='##' onClick='javascript:return

Re: what is wrong with this code

2010-04-15 Thread Jason Fisher
This works for me: function jscript1(){ var theString = screen1.cfm; var fileName = theString.substring(0,theString.lastIndexOf(.)); callURL = a href=\##\ onclick=\javascript:return parent.frames[1].XYZ(\' + fileName + \')\Link1/a; alert(callURL);

Re: what is wrong with this code

2010-04-15 Thread fun and learning
Oops, put the +'s back in: callURL = a href='##' onClick='javascript:return parent.frames[1].XYZ(\ + fileName + \)'Link1/a; On Thu, Apr 15, 2010 at 4:07 PM, fun and learning funandlrnn...@gmail.comwrote: Nope, it displays the following a href='##' onClick='javascript:return

Re: what is wrong with this code

2010-04-15 Thread funand learning
Hey Jason, It works for me too...Thanks a lot... On Thu, Apr 15, 2010 at 5:29 PM, Jason Fisher ja...@wanax.com wrote: This works for me: function jscript1(){ var theString = screen1.cfm; var fileName = theString.substring(0,theString.lastIndexOf(.));

RE: what is wrong with this code

2010-04-15 Thread Bobby Hartsfield
jsStringFormat() the callURL. It will take care of escaping everything correctly. -Original Message- From: fun and learning [mailto:funandlrnn...@gmail.com] Sent: Thursday, April 15, 2010 5:26 PM To: cf-talk Subject: Re: what is wrong with this code Oops, put the +'s back in: callURL

Re: what is wrong with this code

2010-04-15 Thread morgan l
My brain is fried, it's late. I needed to escape the quotes, then terminate the string, then insert the variables, then restart the string, then escape the closing quotes: callURL = a href='##' onClick='javascript:return parent.frames[1].XYZ(\ + fileName + \)'Link1/a; On Thu, Apr 15, 2010 at

What is wrong with this code?

2002-03-22 Thread Jon Hall
There is something wrong with this code (other than it's overly complex...), but I can't see it. Every time I run this code I get an anit.exe process that goes to 99%, but, and here is the weird part, the CF template does stop processing and I get all of the debug except for the queries...weird.

Re: What is wrong with this code?

2002-03-22 Thread Jon Hall
argh neither of those work, please ignore, unless you can tell me what I am doing wrong :). Sorry for the spam. - Original Message - From: Jon Hall [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, March 22, 2002 8:49 PM Subject: What is wrong with this code