cfdocument not displaying arabic font

2010-10-28 Thread safo 2000

hi,

i am trying the following 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;

 
cfprocessingdirective pageencoding = windows-1256
cfset SetEncoding(form,windows-1256)
cfset SetEncoding(url,windows-1256)
cfcontent type=text/html; charset=windows-1256

cfsavecontent variable=MyPage

 

head
titlePRINT TEST/title
/head

 

body
table width=810 border=0
  tr
td width=225 div align=centerstrongARABIC TEXT PRINT TEST 
/strong/div/td
td width=225 div align=centerstrongspan dir=rtl 
style=font:'Simplified Arabic'; font-size:16pxنظام بصمة الوجه 
في دولة/span/strong/div/td
  /tr
/table
/body
/html
/cfsavecontent

 

cfif not(isdefined(url.DISPLAY))
cfdocument format=pdf filename=files\print_test_cf.pdf  
overwrite=yes
cfoutput#mypage#/cfoutput

/cfdocument
cfelse

cfoutput#mypage#/cfoutput

/cfif

and i am getting this result

ARABIC TEXT PRINT TEST  © ظ„ط ˆ ظ¯ ظ‡ ظپظٹ ط ¬ طˆ ظ„ظ § 
ط © ظ…ط μ ط¨ ظ… ط § ط¸ ظ†ط

you will notice that the Arabic font is not displayed properly. what gives?

thanking you in advance for your insight

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338638
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdocument not displaying arabic font [spamtrap bayes][spamtrap heur]

2010-10-28 Thread Paul Hastings

On 10/28/2010 12:58 PM, safo 2000 wrote:
 ARABIC TEXT PRINT TEST  © ظ„ط ˆ ظ¯ ظ‡ ظپظٹ ط ¬ طˆ ظ„ظ 
 § ط © ظ…ط μ ط¨ ظ… ط § ط¸ ظ†ط

getting that w/out cfdocument. don't have that font or more likely your text is 
not encoded as windows arabic. works fine as unicode (utf-8). any reason you 
want to use that codepage instead of unicode?


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338639
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF 9.0 Schedule Tasks didn't execute.

2010-10-28 Thread Ian Skinner

Schedule tasks that have been running for weeks, months, or years 
decided not to exectute this week.

  I can see in the Schedule Task log that they all executed Monday , 
then somewhere between Tuesday and Wednesday, the entire list just did 
not execute.  For every task I can see it running and scheduling a new 
task to run, but that task never executed.

  There are no enteries in the Appliction nor the Exception logs.

  Any suggestions on anything else I can look at, or what steps I can try?

  TIA

Ian


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338640
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Question about using javascript in .cfm files...

2010-10-28 Thread Carl Von Stetten

Rick,

I have shared CF variables with JavaScript too.  What I usually do is this:

If I have to do any processes to define the CF variables, I put them at 
the top of the document, above the head section.  Then, in the head 
section of my CFM page, I add a cfoutput inside a script tag and 
pass all of the desired CF variables into JavaScript variables.  I make 
sure this is defined before I load any external JavaScript files and 
call any JavaScript functions.

This way my JavaScript files retain their .js extension.

HTH,
Carl

On 10/27/2010 10:44 AM, Rick Faircloth wrote:
 I've been using js files as .cfm files
 so I can intermix cf variables in the js.

 i.e., naming myJSFile.js, myJSFile.js.cfm, instead.

 This seems to work fine, but I've run into an issue
 that makes me wonder if this works in all cases as
 a regular js file would.

 Here's the question:

 If I have a js function in a .cfm file, would the
 declared function be defined by the browser
 upon first entering a page as it would if the function
 were in a .js file?

 e.g., should the function checkUserFavorites:

 function checkUserFavorites(USERID) {

   blah, blah, blah

 be defined if the js were in a .cfm file as readily
 as it would in a .js file?

 I keep running into a checkUserFavorites is not defined
 for which I cannot track down the problem.

 I'm reaching for an answer at this point, because I can't
 otherwise explain the error message otherwise, yet.

 Thanks for any feedback.

 Rick





 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338641
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Question about using javascript in .cfm files...

2010-10-28 Thread Carl Von Stetten

Rick,

I have shared CF variables with JavaScript too.  What I usually do is this:

If I have to do any processes to define the CF variables, I put them at the top 
of the document, above the head section.  Then, in the head section of my 
CFM page, I add a cfoutput inside a script tag and pass all of the desired 
CF variables into JavaScript variables.  I make sure this is defined before I 
load any external JavaScript files and call any JavaScript functions.

This way my JavaScript files retain their .js extension.

HTH,
Carl 

I've been using js files as .cfm files
so I can intermix cf variables in the js.

i.e., naming myJSFile.js, myJSFile.js.cfm, instead.

This seems to work fine, but I've run into an issue
that makes me wonder if this works in all cases as
a regular js file would.

Here's the question:

If I have a js function in a .cfm file, would the
declared function be defined by the browser
upon first entering a page as it would if the function
were in a .js file?

e.g., should the function checkUserFavorites:

function checkUserFavorites(USERID) {

   blah, blah, blah

be defined if the js were in a .cfm file as readily
as it would in a .js file?

I keep running into a checkUserFavorites is not defined
for which I cannot track down the problem.

I'm reaching for an answer at this point, because I can't
otherwise explain the error message otherwise, yet.

Thanks for any feedback.

Rick 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338642
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF 9.0 Schedule Tasks didn't execute.

2010-10-28 Thread Claude Schneegans

  Any suggestions on anything else I can look at, or what steps I can try?

Have you checked the date on the server? It might have been reset to 
1998 or so.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338643
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Question about using javascript in .cfm files...

2010-10-28 Thread Rick Faircloth

Interesting approach, Carl!
Haven't thought about that.
I'll definitely give that a try!

Thanks for the tip!

Rick

-Original Message-
From: Carl Von Stetten [mailto:cmvon...@hotmail.com] 
Sent: Thursday, October 28, 2010 11:19 AM
To: cf-talk
Subject: Re: Question about using javascript in .cfm files...


Rick,

I have shared CF variables with JavaScript too.  What I usually do is this:

If I have to do any processes to define the CF variables, I put them at the
top of the document, above the head section.  Then, in the head section
of my CFM page, I add a cfoutput inside a script tag and pass all of the
desired CF variables into JavaScript variables.  I make sure this is defined
before I load any external JavaScript files and call any JavaScript
functions.

This way my JavaScript files retain their .js extension.

HTH,
Carl 

I've been using js files as .cfm files
so I can intermix cf variables in the js.

i.e., naming myJSFile.js, myJSFile.js.cfm, instead.

This seems to work fine, but I've run into an issue
that makes me wonder if this works in all cases as
a regular js file would.

Here's the question:

If I have a js function in a .cfm file, would the
declared function be defined by the browser
upon first entering a page as it would if the function
were in a .js file?

e.g., should the function checkUserFavorites:

function checkUserFavorites(USERID) {

   blah, blah, blah

be defined if the js were in a .cfm file as readily
as it would in a .js file?

I keep running into a checkUserFavorites is not defined
for which I cannot track down the problem.

I'm reaching for an answer at this point, because I can't
otherwise explain the error message otherwise, yet.

Thanks for any feedback.

Rick 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338644
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Text Similarity Algorithm

2010-10-28 Thread Michele Filannino

You can use my new Similarity Algorithm based on WikipediA (SAWA):
http://tinyurl.com/sawa-filannino

Try it and say me what do you think!

I'd love to try it but got 404'd.

You can also use this URL:
http://193.204.187.223:8080/sawa/ 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338645
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


OT Windows Command line HTTP request

2010-10-28 Thread Ian Skinner

  In the simplest manner possible.  What ways can one make a Windows DOS 
Command line HTTP request.

TIA

Ian


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338646
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: OT Windows Command line HTTP request

2010-10-28 Thread Andy Matthews

You could check if Curl exists in DOS.


Andy
 

-Original Message-
From: Ian Skinner [mailto:h...@ilsweb.com] 
Sent: Thursday, October 28, 2010 11:58 AM
To: cf-talk
Subject: OT Windows Command line HTTP request


  In the simplest manner possible.  What ways can one make a Windows DOS
Command line HTTP request.

TIA

Ian




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338647
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OT Windows Command line HTTP request

2010-10-28 Thread Dave Watts

  In the simplest manner possible.  What ways can
 one make a Windows DOS Command line HTTP
 request.

Use a program like wget or cURL.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsit

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338648
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OT Windows Command line HTTP request

2010-10-28 Thread Ian Skinner

  On 10/28/2010 10:00 AM, Dave Watts wrote:
 Use a program like wget or cURL.

Any suggestions for where to get wget?  My first search attempts ended 
up in ancient (1997) ports and broken links.

TIA
Ian


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338649
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OT Windows Command line HTTP request

2010-10-28 Thread Alan Rother

I have the code for doing it in VB Script...

Can you use DOS to call a VB Script?


URL = http://www.someaddress.com;

Set WshShell = WScript.CreateObject(WScript.Shell)
 Set http = CreateObject(Microsoft.XmlHttp)
http.open GET, URL, FALSE
http.send 
 set WshShell = nothing
set http = nothing


On Thu, Oct 28, 2010 at 10:08 AM, Ian Skinner h...@ilsweb.com wrote:


  On 10/28/2010 10:00 AM, Dave Watts wrote:
  Use a program like wget or cURL.

 Any suggestions for where to get wget?  My first search attempts ended
 up in ancient (1997) ports and broken links.

 TIA
 Ian


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338650
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Question about using javascript in .cfm files...

2010-10-28 Thread Michael Grant

I'll +1 that. I generally only use CF to set js vars at the top of the head
too. That way your js can stay pure js.


On Thu, Oct 28, 2010 at 12:04 PM, Rick Faircloth ric...@whitestonemedia.com
 wrote:


 Interesting approach, Carl!
 Haven't thought about that.
 I'll definitely give that a try!

 Thanks for the tip!

 Rick

 -Original Message-
 From: Carl Von Stetten [mailto:cmvon...@hotmail.com]
 Sent: Thursday, October 28, 2010 11:19 AM
 To: cf-talk
 Subject: Re: Question about using javascript in .cfm files...


 Rick,

 I have shared CF variables with JavaScript too.  What I usually do is this:

 If I have to do any processes to define the CF variables, I put them at the
 top of the document, above the head section.  Then, in the head section
 of my CFM page, I add a cfoutput inside a script tag and pass all of
 the
 desired CF variables into JavaScript variables.  I make sure this is
 defined
 before I load any external JavaScript files and call any JavaScript
 functions.

 This way my JavaScript files retain their .js extension.

 HTH,
 Carl

 I've been using js files as .cfm files
 so I can intermix cf variables in the js.
 
 i.e., naming myJSFile.js, myJSFile.js.cfm, instead.
 
 This seems to work fine, but I've run into an issue
 that makes me wonder if this works in all cases as
 a regular js file would.
 
 Here's the question:
 
 If I have a js function in a .cfm file, would the
 declared function be defined by the browser
 upon first entering a page as it would if the function
 were in a .js file?
 
 e.g., should the function checkUserFavorites:
 
 function checkUserFavorites(USERID) {
 
blah, blah, blah
 
 be defined if the js were in a .cfm file as readily
 as it would in a .js file?
 
 I keep running into a checkUserFavorites is not defined
 for which I cannot track down the problem.
 
 I'm reaching for an answer at this point, because I can't
 otherwise explain the error message otherwise, yet.
 
 Thanks for any feedback.
 
 Rick



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338651
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Question about using javascript in .cfm files...

2010-10-28 Thread Dave Merrill

+1

On Thu, Oct 28, 2010 at 2:06 PM, Michael Grant mgr...@modus.bz wrote:

 I'll +1 that. I generally only use CF to set js vars at the top of the head
 too. That way your js can stay pure js.


 On Thu, Oct 28, 2010 at 12:04 PM, Rick Faircloth ric...@whitestonemedia.com
 wrote:


 Interesting approach, Carl!
 Haven't thought about that.
 I'll definitely give that a try!

 Thanks for the tip!

 Rick

 -Original Message-
 From: Carl Von Stetten [mailto:cmvon...@hotmail.com]
 Sent: Thursday, October 28, 2010 11:19 AM
 To: cf-talk
 Subject: Re: Question about using javascript in .cfm files...


 Rick,

 I have shared CF variables with JavaScript too.  What I usually do is this:

 If I have to do any processes to define the CF variables, I put them at the
 top of the document, above the head section.  Then, in the head section
 of my CFM page, I add a cfoutput inside a script tag and pass all of
 the
 desired CF variables into JavaScript variables.  I make sure this is
 defined
 before I load any external JavaScript files and call any JavaScript
 functions.

 This way my JavaScript files retain their .js extension.

 HTH,
 Carl

 I've been using js files as .cfm files
 so I can intermix cf variables in the js.
 
 i.e., naming myJSFile.js, myJSFile.js.cfm, instead.
 
 This seems to work fine, but I've run into an issue
 that makes me wonder if this works in all cases as
 a regular js file would.
 
 Here's the question:
 
 If I have a js function in a .cfm file, would the
 declared function be defined by the browser
 upon first entering a page as it would if the function
 were in a .js file?
 
 e.g., should the function checkUserFavorites:
 
 function checkUserFavorites(USERID) {
 
        blah, blah, blah
 
 be defined if the js were in a .cfm file as readily
 as it would in a .js file?
 
 I keep running into a checkUserFavorites is not defined
 for which I cannot track down the problem.
 
 I'm reaching for an answer at this point, because I can't
 otherwise explain the error message otherwise, yet.
 
 Thanks for any feedback.
 
 Rick





 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338652
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Question about using javascript in .cfm files...

2010-10-28 Thread Rick Faircloth

Yes, I definitely like the idea.
I didn't like having to mix cf with the js.

So, is this as simple as:

cfset jsVar = myCFVar

and then using jsVar in the js?

I haven't tried any of this or even searched
for an answerjust being lazy.

Example?

Rick

-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz] 
Sent: Thursday, October 28, 2010 2:06 PM
To: cf-talk
Subject: Re: Question about using javascript in .cfm files...


I'll +1 that. I generally only use CF to set js vars at the top of the head
too. That way your js can stay pure js.


On Thu, Oct 28, 2010 at 12:04 PM, Rick Faircloth ric...@whitestonemedia.com
 wrote:


 Interesting approach, Carl!
 Haven't thought about that.
 I'll definitely give that a try!

 Thanks for the tip!

 Rick

 -Original Message-
 From: Carl Von Stetten [mailto:cmvon...@hotmail.com]
 Sent: Thursday, October 28, 2010 11:19 AM
 To: cf-talk
 Subject: Re: Question about using javascript in .cfm files...


 Rick,

 I have shared CF variables with JavaScript too.  What I usually do is
this:

 If I have to do any processes to define the CF variables, I put them at
the
 top of the document, above the head section.  Then, in the head
section
 of my CFM page, I add a cfoutput inside a script tag and pass all of
 the
 desired CF variables into JavaScript variables.  I make sure this is
 defined
 before I load any external JavaScript files and call any JavaScript
 functions.

 This way my JavaScript files retain their .js extension.

 HTH,
 Carl

 I've been using js files as .cfm files
 so I can intermix cf variables in the js.
 
 i.e., naming myJSFile.js, myJSFile.js.cfm, instead.
 
 This seems to work fine, but I've run into an issue
 that makes me wonder if this works in all cases as
 a regular js file would.
 
 Here's the question:
 
 If I have a js function in a .cfm file, would the
 declared function be defined by the browser
 upon first entering a page as it would if the function
 were in a .js file?
 
 e.g., should the function checkUserFavorites:
 
 function checkUserFavorites(USERID) {
 
blah, blah, blah
 
 be defined if the js were in a .cfm file as readily
 as it would in a .js file?
 
 I keep running into a checkUserFavorites is not defined
 for which I cannot track down the problem.
 
 I'm reaching for an answer at this point, because I can't
 otherwise explain the error message otherwise, yet.
 
 Thanks for any feedback.
 
 Rick



 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338653
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Question about using javascript in .cfm files...

2010-10-28 Thread Michael Grant

No, more like this

cfset jsVar = myCFVar /

cfoutput
script

var jsVar = '#jsVar#';

/script
/cfoutput

script src=srcJS.js/script

On Thu, Oct 28, 2010 at 2:19 PM, Rick Faircloth
ric...@whitestonemedia.comwrote:


 Yes, I definitely like the idea.
 I didn't like having to mix cf with the js.

 So, is this as simple as:

 cfset jsVar = myCFVar

 and then using jsVar in the js?

 I haven't tried any of this or even searched
 for an answerjust being lazy.

 Example?

 Rick

 -Original Message-
 From: Michael Grant [mailto:mgr...@modus.bz]
 Sent: Thursday, October 28, 2010 2:06 PM
 To: cf-talk
 Subject: Re: Question about using javascript in .cfm files...


 I'll +1 that. I generally only use CF to set js vars at the top of the head
 too. That way your js can stay pure js.


 On Thu, Oct 28, 2010 at 12:04 PM, Rick Faircloth 
 ric...@whitestonemedia.com
  wrote:

 
  Interesting approach, Carl!
  Haven't thought about that.
  I'll definitely give that a try!
 
  Thanks for the tip!
 
  Rick
 
  -Original Message-
  From: Carl Von Stetten [mailto:cmvon...@hotmail.com]
  Sent: Thursday, October 28, 2010 11:19 AM
  To: cf-talk
  Subject: Re: Question about using javascript in .cfm files...
 
 
  Rick,
 
  I have shared CF variables with JavaScript too.  What I usually do is
 this:
 
  If I have to do any processes to define the CF variables, I put them at
 the
  top of the document, above the head section.  Then, in the head
 section
  of my CFM page, I add a cfoutput inside a script tag and pass all of
  the
  desired CF variables into JavaScript variables.  I make sure this is
  defined
  before I load any external JavaScript files and call any JavaScript
  functions.
 
  This way my JavaScript files retain their .js extension.
 
  HTH,
  Carl
 
  I've been using js files as .cfm files
  so I can intermix cf variables in the js.
  
  i.e., naming myJSFile.js, myJSFile.js.cfm, instead.
  
  This seems to work fine, but I've run into an issue
  that makes me wonder if this works in all cases as
  a regular js file would.
  
  Here's the question:
  
  If I have a js function in a .cfm file, would the
  declared function be defined by the browser
  upon first entering a page as it would if the function
  were in a .js file?
  
  e.g., should the function checkUserFavorites:
  
  function checkUserFavorites(USERID) {
  
 blah, blah, blah
  
  be defined if the js were in a .cfm file as readily
  as it would in a .js file?
  
  I keep running into a checkUserFavorites is not defined
  for which I cannot track down the problem.
  
  I'm reaching for an answer at this point, because I can't
  otherwise explain the error message otherwise, yet.
  
  Thanks for any feedback.
  
  Rick
 
 
 
 



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338654
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Question about using javascript in .cfm files...

2010-10-28 Thread Rick Faircloth

Alright, good deal.

I'll put that to use right away and strip out my
CF from the JS from now on.

Thanks for the tip, everyone!

Rick

-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz] 
Sent: Thursday, October 28, 2010 2:30 PM
To: cf-talk
Subject: Re: Question about using javascript in .cfm files...


No, more like this

cfset jsVar = myCFVar /

cfoutput
script

var jsVar = '#jsVar#';

/script
/cfoutput

script src=srcJS.js/script

On Thu, Oct 28, 2010 at 2:19 PM, Rick Faircloth
ric...@whitestonemedia.comwrote:


 Yes, I definitely like the idea.
 I didn't like having to mix cf with the js.

 So, is this as simple as:

 cfset jsVar = myCFVar

 and then using jsVar in the js?

 I haven't tried any of this or even searched
 for an answerjust being lazy.

 Example?

 Rick

 -Original Message-
 From: Michael Grant [mailto:mgr...@modus.bz]
 Sent: Thursday, October 28, 2010 2:06 PM
 To: cf-talk
 Subject: Re: Question about using javascript in .cfm files...


 I'll +1 that. I generally only use CF to set js vars at the top of the
head
 too. That way your js can stay pure js.


 On Thu, Oct 28, 2010 at 12:04 PM, Rick Faircloth 
 ric...@whitestonemedia.com
  wrote:

 
  Interesting approach, Carl!
  Haven't thought about that.
  I'll definitely give that a try!
 
  Thanks for the tip!
 
  Rick
 
  -Original Message-
  From: Carl Von Stetten [mailto:cmvon...@hotmail.com]
  Sent: Thursday, October 28, 2010 11:19 AM
  To: cf-talk
  Subject: Re: Question about using javascript in .cfm files...
 
 
  Rick,
 
  I have shared CF variables with JavaScript too.  What I usually do is
 this:
 
  If I have to do any processes to define the CF variables, I put them at
 the
  top of the document, above the head section.  Then, in the head
 section
  of my CFM page, I add a cfoutput inside a script tag and pass all of
  the
  desired CF variables into JavaScript variables.  I make sure this is
  defined
  before I load any external JavaScript files and call any JavaScript
  functions.
 
  This way my JavaScript files retain their .js extension.
 
  HTH,
  Carl
 
  I've been using js files as .cfm files
  so I can intermix cf variables in the js.
  
  i.e., naming myJSFile.js, myJSFile.js.cfm, instead.
  
  This seems to work fine, but I've run into an issue
  that makes me wonder if this works in all cases as
  a regular js file would.
  
  Here's the question:
  
  If I have a js function in a .cfm file, would the
  declared function be defined by the browser
  upon first entering a page as it would if the function
  were in a .js file?
  
  e.g., should the function checkUserFavorites:
  
  function checkUserFavorites(USERID) {
  
 blah, blah, blah
  
  be defined if the js were in a .cfm file as readily
  as it would in a .js file?
  
  I keep running into a checkUserFavorites is not defined
  for which I cannot track down the problem.
  
  I'm reaching for an answer at this point, because I can't
  otherwise explain the error message otherwise, yet.
  
  Thanks for any feedback.
  
  Rick
 
 
 
 



 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338655
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Question about using javascript in .cfm files...

2010-10-28 Thread Rick Faircloth

Question:

What about using onApplicationStart in application.cfc to set
global cf to js variables for the site

and

using onRequestStart in application.cfc to set specific page
cf to js variables for a page.

Gives me only one place to change variables.

Any drawbacks to that approach?



-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz] 
Sent: Thursday, October 28, 2010 2:30 PM
To: cf-talk
Subject: Re: Question about using javascript in .cfm files...


No, more like this

cfset jsVar = myCFVar /

cfoutput
script

var jsVar = '#jsVar#';

/script
/cfoutput

script src=srcJS.js/script





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338656
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Question about using javascript in .cfm files...

2010-10-28 Thread Michael Grant

Well the thing is that the js variables need to be part of the DOM. You can
your cf vars in both of those functions and then just reference them in your
display templates when you set up the js vars. That would also give you a
chance to override them on a per page basis.

On Thu, Oct 28, 2010 at 3:39 PM, Rick Faircloth r...@whitestonemedia.comwrote:


 Question:

 What about using onApplicationStart in application.cfc to set
 global cf to js variables for the site

 and

 using onRequestStart in application.cfc to set specific page
 cf to js variables for a page.

 Gives me only one place to change variables.

 Any drawbacks to that approach?



 -Original Message-
 From: Michael Grant [mailto:mgr...@modus.bz]
 Sent: Thursday, October 28, 2010 2:30 PM
 To: cf-talk
 Subject: Re: Question about using javascript in .cfm files...


 No, more like this

 cfset jsVar = myCFVar /

 cfoutput
 script

 var jsVar = '#jsVar#';

 /script
 /cfoutput

 script src=srcJS.js/script





 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338657
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Question about using javascript in .cfm files...

2010-10-28 Thread Rick Faircloth

Alright, thanks!


-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz] 
Sent: Thursday, October 28, 2010 3:47 PM
To: cf-talk
Subject: Re: Question about using javascript in .cfm files...


Well the thing is that the js variables need to be part of the DOM. You can
your cf vars in both of those functions and then just reference them in your
display templates when you set up the js vars. That would also give you a
chance to override them on a per page basis.

On Thu, Oct 28, 2010 at 3:39 PM, Rick Faircloth
r...@whitestonemedia.comwrote:


 Question:

 What about using onApplicationStart in application.cfc to set
 global cf to js variables for the site

 and

 using onRequestStart in application.cfc to set specific page
 cf to js variables for a page.

 Gives me only one place to change variables.

 Any drawbacks to that approach?



 -Original Message-
 From: Michael Grant [mailto:mgr...@modus.bz]
 Sent: Thursday, October 28, 2010 2:30 PM
 To: cf-talk
 Subject: Re: Question about using javascript in .cfm files...


 No, more like this

 cfset jsVar = myCFVar /

 cfoutput
 script

 var jsVar = '#jsVar#';

 /script
 /cfoutput

 script src=srcJS.js/script





 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338658
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OT Windows Command line HTTP request

2010-10-28 Thread Leigh

 Any suggestions for where to get wget?  My first
 search attempts ended 
 up in ancient (1997) ports and broken links.

Google sent me here. I did not try them, but the files seem pretty recent. 
http://www.gnu.org/software/wget/






 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338659
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OT Windows Command line HTTP request

2010-10-28 Thread Dave Watts

 Any suggestions for where to get wget?  My first search attempts ended
 up in ancient (1997) ports and broken links.

The GNU wget link that Leigh sent is the right one.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338660
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OT Windows Command line HTTP request

2010-10-28 Thread Dave Watts

 I have the code for doing it in VB Script...

 Can you use DOS to call a VB Script?

You can call VBScript programs from a command prompt, using the
cscript.exe or wscript.exe commands. Strictly speaking, though, you
can't use DOS to call VBScript, because there's no such thing as DOS
in Windows NT and higher - you have a command shell, but that's not
DOS. Sorry to be such a pedant.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338661
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


cfdocumentitem type=header

2010-10-28 Thread Tony Bentley

cfdocumentitem type=header
cfif cfdocument.currentpagenumber gt 1
//this does not compute!
/cfif
/cfdocumentitem

Any way around this? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338662
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdocumentitem type=header

2010-10-28 Thread Leigh

 cfdocumentitem type=header

Try adding evalatprint

ie
cfdocumentitem type=header evalatprint=true


  

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338663
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm