Javascript question

2011-03-13 Thread fun and learning

Hi All - I am trying to get the following working. It seemed to work initially, 
but somehow it stopped working

I have a row like below

tr id=row_1_4_2009_abc class=rowclick
   td/td
/tr

I am using jquery to get the id on click of a row:

$(.rowclick).click(function() {
  var row_id = $(this).attr(id);
  var getAttributes = row_id.split(_);
  var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ + 
getAttributes[3] + _ + getAttributes[4];
  var new_row_id = document.getElementById(new_row_ + setCommonAttr).value;
});

Can anyone let me know what is wrong with the above code. Tried different 
options but with no success



~|
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:342959
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Javascript question

2011-03-13 Thread fun and learning

Hi All - I am trying to get the following working. It seemed to work initially, 
but somehow it stopped working

I have a row like below

tr id=row_1_4_2009_abc class=rowclick
   td/td
/tr

I am using jquery to get the id on click of a row:

$(.rowclick).click(function() {
  var row_id = $(this).attr(id);
  var getAttributes = row_id.split(_);
  var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ + 
getAttributes[3] + _ + getAttributes[4];
  var new_row_id = document.getElementById(new_row_ + setCommonAttr).value;
});

Can anyone let me know what is wrong with the above code. Tried different 
options but with no success



~|
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:342960
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Javascript question

2011-03-13 Thread Jake Churchill

Look into jQuery's .each() method.  It helps in loopin over things like that

-Jake

Sent from my Droid
On Mar 13, 2011 9:51 AM, fun and learning funandlrnn...@gmail.com wrote:

 Hi All - I am trying to get the following working. It seemed to work
initially, but somehow it stopped working

 I have a row like below

 tr id=row_1_4_2009_abc class=rowclick
 td/td
 /tr

 I am using jquery to get the id on click of a row:

 $(.rowclick).click(function() {
 var row_id = $(this).attr(id);
 var getAttributes = row_id.split(_);
 var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
getAttributes[3] + _ + getAttributes[4];
 var new_row_id = document.getElementById(new_row_ +
setCommonAttr).value;
 });

 Can anyone let me know what is wrong with the above code. Tried different
options but with no success



 

~|
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:342961
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Javascript question

2011-03-13 Thread Russ Michaels

it looks like you are using the classname instead of the object ID.
normally the $() function is fer getting a reference to a obejct by its ID.

$(.rowclick)
shouldn't this be
$(row_1_4_2009_abc)




On Sun, Mar 13, 2011 at 3:29 PM, Jake Churchill reyna...@gmail.com wrote:


 Look into jQuery's .each() method.  It helps in loopin over things like
 that

 -Jake

 Sent from my Droid
 On Mar 13, 2011 9:51 AM, fun and learning funandlrnn...@gmail.com
 wrote:
 
  Hi All - I am trying to get the following working. It seemed to work
 initially, but somehow it stopped working
 
  I have a row like below
 
  tr id=row_1_4_2009_abc class=rowclick
  td/td
  /tr
 
  I am using jquery to get the id on click of a row:
 
  $(.rowclick).click(function() {
  var row_id = $(this).attr(id);
  var getAttributes = row_id.split(_);
  var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
 getAttributes[3] + _ + getAttributes[4];
  var new_row_id = document.getElementById(new_row_ +
 setCommonAttr).value;
  });
 
  Can anyone let me know what is wrong with the above code. Tried different
 options but with no success
 
 
 
 

 

~|
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:342962
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Javascript question

2011-03-13 Thread Michael Grant

$(.rowclick) is completely acceptable. It will just add the function to
all elements with that class name, which I assume is that the OP is looking
for.

OP: In the code you pasted what part isn't working exactly? All you are
doing is setting some variables. I don't see in the code where any actually
does anything other than populate variables which are all var'd to the
function, they aren't global. Also, can you confirm that there is an element
with the id of  new_row_1_4_2009_abc and a parameter called value?

I guess it might help if we knew what exactly you were trying to accomplish
in order to determine if it's working or not.

On a side note, since you are using jQuery I'd recommend the jQuery
$(#idname).val() instead of document.getElementById(idname).value.


On Sun, Mar 13, 2011 at 12:17 PM, Russ Michaels r...@michaels.me.uk wrote:


 it looks like you are using the classname instead of the object ID.
 normally the $() function is fer getting a reference to a obejct by its ID.

 $(.rowclick)
 shouldn't this be
 $(row_1_4_2009_abc)




 On Sun, Mar 13, 2011 at 3:29 PM, Jake Churchill reyna...@gmail.com
 wrote:

 
  Look into jQuery's .each() method.  It helps in loopin over things like
  that
 
  -Jake
 
  Sent from my Droid
  On Mar 13, 2011 9:51 AM, fun and learning funandlrnn...@gmail.com
  wrote:
  
   Hi All - I am trying to get the following working. It seemed to work
  initially, but somehow it stopped working
  
   I have a row like below
  
   tr id=row_1_4_2009_abc class=rowclick
   td/td
   /tr
  
   I am using jquery to get the id on click of a row:
  
   $(.rowclick).click(function() {
   var row_id = $(this).attr(id);
   var getAttributes = row_id.split(_);
   var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
  getAttributes[3] + _ + getAttributes[4];
   var new_row_id = document.getElementById(new_row_ +
  setCommonAttr).value;
   });
  
   Can anyone let me know what is wrong with the above code. Tried
 different
  options but with no success
  
  
  
  
 
 

 

~|
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:342963
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Javascript question

2011-03-13 Thread Michael Grant

And one other thought. If your code posted accurately reflects the id's of
the items you can replace this:

 var getAttributes = row_id.split(_);
 var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
getAttributes[3] + _ + getAttributes[4];
 var new_row_id = document.getElementById(new_row_ + setCommonAttr).value;

with this:

var new_row_id = $('#new_' + row_id).val();

In both cases id is going to evaluate to: new_row_1_4_2009_abc so all you
need to do is prepend new_.


On Sun, Mar 13, 2011 at 1:48 PM, Michael Grant mgr...@modus.bz wrote:

 $(.rowclick) is completely acceptable. It will just add the function to
 all elements with that class name, which I assume is that the OP is looking
 for.

 OP: In the code you pasted what part isn't working exactly? All you are
 doing is setting some variables. I don't see in the code where any actually
 does anything other than populate variables which are all var'd to the
 function, they aren't global. Also, can you confirm that there is an element
 with the id of  new_row_1_4_2009_abc and a parameter called value?

 I guess it might help if we knew what exactly you were trying to accomplish
 in order to determine if it's working or not.

 On a side note, since you are using jQuery I'd recommend the jQuery
 $(#idname).val() instead of document.getElementById(idname).value.


 On Sun, Mar 13, 2011 at 12:17 PM, Russ Michaels r...@michaels.me.ukwrote:


 it looks like you are using the classname instead of the object ID.
 normally the $() function is fer getting a reference to a obejct by its
 ID.

 $(.rowclick)
 shouldn't this be
 $(row_1_4_2009_abc)




 On Sun, Mar 13, 2011 at 3:29 PM, Jake Churchill reyna...@gmail.com
 wrote:

 
  Look into jQuery's .each() method.  It helps in loopin over things like
  that
 
  -Jake
 
  Sent from my Droid
  On Mar 13, 2011 9:51 AM, fun and learning funandlrnn...@gmail.com
  wrote:
  
   Hi All - I am trying to get the following working. It seemed to work
  initially, but somehow it stopped working
  
   I have a row like below
  
   tr id=row_1_4_2009_abc class=rowclick
   td/td
   /tr
  
   I am using jquery to get the id on click of a row:
  
   $(.rowclick).click(function() {
   var row_id = $(this).attr(id);
   var getAttributes = row_id.split(_);
   var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
  getAttributes[3] + _ + getAttributes[4];
   var new_row_id = document.getElementById(new_row_ +
  setCommonAttr).value;
   });
  
   Can anyone let me know what is wrong with the above code. Tried
 different
  options but with no success
  
  
  
  
 
 

 

~|
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:342964
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Javascript question

2011-03-13 Thread andy matthews

You didn't say what it is you're trying to accomplish, nor did you post
example code, so we can't really say what's not working. One thing you could
try is simplifying your code. Try replacing 3 lines with one:

// old lines
var getAttributes = row_id.split(_);
var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
getAttributes[3] + _ + getAttributes[4];
var new_row_id = document.getElementById(new_row_ +
setCommonAttr).value;});

// new line
new_row_id = $('#' + row_id.replace(/^row/,'new_row') );


-Original Message-
From: fun and learning [mailto:funandlrnn...@gmail.com] 
Sent: Sunday, March 13, 2011 9:43 AM
To: cf-talk
Subject: Javascript question


Hi All - I am trying to get the following working. It seemed to work
initially, but somehow it stopped working

I have a row like below

tr id=row_1_4_2009_abc class=rowclick
   td/td
/tr

I am using jquery to get the id on click of a row:

$(.rowclick).click(function() {
  var row_id = $(this).attr(id);
  var getAttributes = row_id.split(_);
  var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
getAttributes[3] + _ + getAttributes[4];
  var new_row_id = document.getElementById(new_row_ +
setCommonAttr).value;
});

Can anyone let me know what is wrong with the above code. Tried different
options but with no success





~|
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:342965
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Access website from Ipad or iphone

2011-03-13 Thread sandeep saini

Hi,
I have installed coldfusion server, webserver and coldfusion code on my Vista 
laptop. Now I want to access this website from iphone(using inbuilt WIFI 
connection?). 

Please help me how to get this done.

Thanks


~|
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:342966
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF9 CreateObject() Maps From Current Directory First?

2011-03-13 Thread Matt Quackenbush

Ever since CFCs were introduced, the path to them has been derived based
upon the web root.  So, given the following directory structure...

/webroot
/com
 - myCFC.cfc
/subdir
 /com
   - myCFC.cfc

... if I were to do the following...

myCFCInstance = createObject(component,com.myCFC);

... no matter what file in the directory structure I did this in, I would
always be creating an instance of /webroot/com/myCFC.cfc.  I would **NOT**
be creating an instance of /webroot/subdir/com/myCFC.cfc unless I provided
that full path.  E.g.

myCFCInstance = createObject(component,subdir.com.myCFC);

I am attempting to get a project setup locally (not coded by me) that has a
directory structure similar to the above.  I am running CF 9.0.1, which is
giving me an instance of the subdirectory's CFC, rather than the one right
off the web root.  I thought I remembered seeing a thread about this issue
quite some time back, but I cannot find it anywhere.

Has anyone ever experienced this and/or know a solution?  (Other than
loading up CF8... lol.)

Thanks in advance.


~|
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:342967
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Access website from Ipad or iphone

2011-03-13 Thread Paul Kukiel

Make sure the firewall on the ColdFusion machine has the firewall open for HTTP 
( 80 ) or 8500 ( not behind Apache or IIS ) and connect the iPhone to the same 
network and browse by IP address from the iPhone to the dev CF server ( vista 
box ).

Paul.

 
On Mar 14, 2011, at 9:21 AM, sandeep saini wrote:

 
 Hi,
 I have installed coldfusion server, webserver and coldfusion code on my Vista 
 laptop. Now I want to access this website from iphone(using inbuilt WIFI 
 connection?). 
 
 Please help me how to get this done.
 
 Thanks
 
 
 

~|
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:342968
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Access website from Ipad or iphone

2011-03-13 Thread Matt Quackenbush

I'm not sure I am understanding what you're looking for, but I *think* you
are wanting to access your development server from your iPhone.  That is,
browse your Vista laptop's application (website) via your iPhone.

You _might_ be able to do this by hitting the network IP of your Vista
laptop.  E.g. http://192.168.0.24:8300/

Of course, there are a ton of variables that would/could come into play that
would determine whether or not this is in fact possible in your network
setup.  You're going to have to provide a lot more information, though, for
someone to be able to get you fixed up.

HTH


~|
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:342969
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF9 CreateObject() Maps From Current Directory First?

2011-03-13 Thread Russ Michaels

Matt,

I believe that officially CF would always search relative to the current
directory first, which applies to CFC's and custom tags.
In which case if you instantiate the cfc from within subdir, were you also
have a com/mycfc.cfc then this one would be found first.

I have generally found that ColdFusion search order is not always reliable
(at least on a shared server with many sites), it sometimes does as above,
but sometimes looks in the webroot first, and if you have custom tag paths
it may look there first as well, so I have always used a mapping to avoid
this problem.
So perhaps the original developer used a mapping if this code used to work
fine before?



On Sun, Mar 13, 2011 at 9:51 PM, Matt Quackenbush quackfu...@gmail.comwrote:


 Ever since CFCs were introduced, the path to them has been derived based
 upon the web root.  So, given the following directory structure...

 /webroot
/com
 - myCFC.cfc
/subdir
 /com
   - myCFC.cfc

 ... if I were to do the following...

 myCFCInstance = createObject(component,com.myCFC);

 ... no matter what file in the directory structure I did this in, I would
 always be creating an instance of /webroot/com/myCFC.cfc.  I would **NOT**
 be creating an instance of /webroot/subdir/com/myCFC.cfc unless I provided
 that full path.  E.g.

 myCFCInstance = createObject(component,subdir.com.myCFC);

 I am attempting to get a project setup locally (not coded by me) that has a
 directory structure similar to the above.  I am running CF 9.0.1, which is
 giving me an instance of the subdirectory's CFC, rather than the one right
 off the web root.  I thought I remembered seeing a thread about this issue
 quite some time back, but I cannot find it anywhere.

 Has anyone ever experienced this and/or know a solution?  (Other than
 loading up CF8... lol.)

 Thanks in advance.


 

~|
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:342970
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


customtag not being found

2011-03-13 Thread Greg Morphis

I upgraded a server from CF7 to CF9 and started to see this error:
Cannot find CFML template for custom tag EmailVerify.

The file exists in C:\inetpub\wwwroot\customtags and is being called by
CF_EmailVerify

I added a mapping for /customtags in the cfadmin and still getting the
error.. ideas?
/customtags   C:\inetpub\wwwroot\customtags

The code is in a few files so I guess I could change it using a cfmodule if
I need to but would rather not touch this old code (I'm in the process of
rewriting the whole site)

Thanks


~|
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:342971
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF9 CreateObject() Maps From Current Directory First?

2011-03-13 Thread Mark A. Kruger

In my experience it will always use a CF mapping first (if found) then
relative path... that would make a good article if I could sort it out...

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com

-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Sunday, March 13, 2011 7:56 PM
To: cf-talk
Subject: Re: CF9 CreateObject() Maps From Current Directory First?


Matt,

I believe that officially CF would always search relative to the current
directory first, which applies to CFC's and custom tags.
In which case if you instantiate the cfc from within subdir, were you also
have a com/mycfc.cfc then this one would be found first.

I have generally found that ColdFusion search order is not always reliable
(at least on a shared server with many sites), it sometimes does as above,
but sometimes looks in the webroot first, and if you have custom tag paths
it may look there first as well, so I have always used a mapping to avoid
this problem.
So perhaps the original developer used a mapping if this code used to work
fine before?



On Sun, Mar 13, 2011 at 9:51 PM, Matt Quackenbush
quackfu...@gmail.comwrote:


 Ever since CFCs were introduced, the path to them has been derived 
 based upon the web root.  So, given the following directory structure...

 /webroot
/com
 - myCFC.cfc
/subdir
 /com
   - myCFC.cfc

 ... if I were to do the following...

 myCFCInstance = createObject(component,com.myCFC);

 ... no matter what file in the directory structure I did this in, I 
 would always be creating an instance of /webroot/com/myCFC.cfc.  I 
 would **NOT** be creating an instance of /webroot/subdir/com/myCFC.cfc 
 unless I provided that full path.  E.g.

 myCFCInstance = createObject(component,subdir.com.myCFC);

 I am attempting to get a project setup locally (not coded by me) that 
 has a directory structure similar to the above.  I am running CF 
 9.0.1, which is giving me an instance of the subdirectory's CFC, 
 rather than the one right off the web root.  I thought I remembered 
 seeing a thread about this issue quite some time back, but I cannot find
it anywhere.

 Has anyone ever experienced this and/or know a solution?  (Other than 
 loading up CF8... lol.)

 Thanks in advance.


 



~|
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:342972
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: customtag not being found

2011-03-13 Thread Greg Morphis

I also tried under the c:\coldfusion9\customtags directory with a mapping to
there... still no luck

On Sun, Mar 13, 2011 at 8:23 PM, Greg Morphis gmorp...@gmail.com wrote:

 I upgraded a server from CF7 to CF9 and started to see this error:
 Cannot find CFML template for custom tag EmailVerify.

 The file exists in C:\inetpub\wwwroot\customtags and is being called by
 CF_EmailVerify

 I added a mapping for /customtags in the cfadmin and still getting the
 error.. ideas?
 /customtags   C:\inetpub\wwwroot\customtags

 The code is in a few files so I guess I could change it using a cfmodule if
 I need to but would rather not touch this old code (I'm in the process of
 rewriting the whole site)

 Thanks



~|
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:342973
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: customtag not being found

2011-03-13 Thread Steven Durette

You say that you added the mapping, but did you also tell CF that this was a 
custom tag directory?  They are two different things. 

Steve

Sent from my iPhone

 


~|
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:342974
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: customtag not being found

2011-03-13 Thread Bobby Hartsfield

Is it multi-server configuration or standard?


.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-Original Message-
From: Greg Morphis [mailto:gmorp...@gmail.com] 
Sent: Sunday, March 13, 2011 9:58 PM
To: cf-talk
Subject: Re: customtag not being found


I also tried under the c:\coldfusion9\customtags directory with a mapping to
there... still no luck

On Sun, Mar 13, 2011 at 8:23 PM, Greg Morphis gmorp...@gmail.com wrote:

 I upgraded a server from CF7 to CF9 and started to see this error:
 Cannot find CFML template for custom tag EmailVerify.

 The file exists in C:\inetpub\wwwroot\customtags and is being called by
 CF_EmailVerify

 I added a mapping for /customtags in the cfadmin and still getting the
 error.. ideas?
 /customtags   C:\inetpub\wwwroot\customtags

 The code is in a few files so I guess I could change it using a cfmodule
if
 I need to but would rather not touch this old code (I'm in the process of
 rewriting the whole site)

 Thanks





~|
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:342975
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: customtag not being found

2011-03-13 Thread Andrew Scott

You need to add the customtag dir to the Admin and not a mapping, there is a
section for custom tags.

Regards,
Andrew Scott
http://www.andyscott.id.au/




 -Original Message-
 From: Greg Morphis [mailto:gmorp...@gmail.com]
 Sent: Monday, 14 March 2011 12:24 PM
 To: cf-talk
 Subject: customtag not being found
 
 
 I upgraded a server from CF7 to CF9 and started to see this error:
 Cannot find CFML template for custom tag EmailVerify.
 
 The file exists in C:\inetpub\wwwroot\customtags and is being called by
 CF_EmailVerify
 
 I added a mapping for /customtags in the cfadmin and still getting the
error..
 ideas?
 /customtags   C:\inetpub\wwwroot\customtags
 
 The code is in a few files so I guess I could change it using a cfmodule
if I need
 to but would rather not touch this old code (I'm in the process of
rewriting
 the whole site)
 
 Thanks
 


~|
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:342976
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: customtag not being found

2011-03-13 Thread Dave Watts

 You say that you added the mapping, but did you also tell CF that this was a 
 custom tag directory?  They are two different things.

Right. You need to tell CF this is a custom tag directory, not a mapping.

In addition, you can do this in your code, using the customTagPaths
property of your application, in Application.cfc:

http://forum.hostek.com/showthread.php?298-Creating-Your-Own-Custom-Tag-Paths

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:342977
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: customtag not being found

2011-03-13 Thread Greg Morphis

Awesome, thanks for the info! I added it as a customtags directory.

Thanks again!

On Sun, Mar 13, 2011 at 9:33 PM, Dave Watts dwa...@figleaf.com wrote:


  You say that you added the mapping, but did you also tell CF that this
 was a custom tag directory?  They are two different things.

 Right. You need to tell CF this is a custom tag directory, not a mapping.

 In addition, you can do this in your code, using the customTagPaths
 property of your application, in Application.cfc:


 http://forum.hostek.com/showthread.php?298-Creating-Your-Own-Custom-Tag-Paths

 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:342978
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF9 CreateObject() Maps From Current Directory First?

2011-03-13 Thread Russ Michaels

that is why the Snake was suggesting using a mapping :-)

On Mon, Mar 14, 2011 at 1:46 AM, Mark A. Kruger mkru...@cfwebtools.comwrote:


 In my experience it will always use a CF mapping first (if found) then
 relative path... that would make a good article if I could sort it out...

 Mark A. Kruger, MCSE, CFG
 (402) 408-3733 ext 105
 www.cfwebtools.com
 www.coldfusionmuse.com
 www.necfug.com

 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: Sunday, March 13, 2011 7:56 PM
 To: cf-talk
 Subject: Re: CF9 CreateObject() Maps From Current Directory First?


 Matt,

 I believe that officially CF would always search relative to the current
 directory first, which applies to CFC's and custom tags.
 In which case if you instantiate the cfc from within subdir, were you also
 have a com/mycfc.cfc then this one would be found first.

 I have generally found that ColdFusion search order is not always reliable
 (at least on a shared server with many sites), it sometimes does as above,
 but sometimes looks in the webroot first, and if you have custom tag paths
 it may look there first as well, so I have always used a mapping to avoid
 this problem.
 So perhaps the original developer used a mapping if this code used to work
 fine before?



 On Sun, Mar 13, 2011 at 9:51 PM, Matt Quackenbush
 quackfu...@gmail.comwrote:

 
  Ever since CFCs were introduced, the path to them has been derived
  based upon the web root.  So, given the following directory structure...
 
  /webroot
 /com
  - myCFC.cfc
 /subdir
  /com
- myCFC.cfc
 
  ... if I were to do the following...
 
  myCFCInstance = createObject(component,com.myCFC);
 
  ... no matter what file in the directory structure I did this in, I
  would always be creating an instance of /webroot/com/myCFC.cfc.  I
  would **NOT** be creating an instance of /webroot/subdir/com/myCFC.cfc
  unless I provided that full path.  E.g.
 
  myCFCInstance = createObject(component,subdir.com.myCFC);
 
  I am attempting to get a project setup locally (not coded by me) that
  has a directory structure similar to the above.  I am running CF
  9.0.1, which is giving me an instance of the subdirectory's CFC,
  rather than the one right off the web root.  I thought I remembered
  seeing a thread about this issue quite some time back, but I cannot find
 it anywhere.
 
  Has anyone ever experienced this and/or know a solution?  (Other than
  loading up CF8... lol.)
 
  Thanks in advance.
 
 
 



 

~|
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:342979
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF9 CreateObject() Maps From Current Directory First?

2011-03-13 Thread Matt Quackenbush

I guess I've stored everything 'cept for static files, App.cfc, and
index.cfm outside the webroot for so many years that it's just been engraved
in my head that it's webroot or mapping.  Heh.  The interesting thing is,
even with an CFAdmin mapping, I am still getting an instance of the wrong
CFC.  Perhaps I should just drink more.  :-)


~|
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:342980
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF9 CreateObject() Maps From Current Directory First?

2011-03-13 Thread denstar

On Sun, Mar 13, 2011 at 10:01 PM, Matt Quackenbush wrote:

 Perhaps I should just drink more.  :-)


The trick is to be at the same level of intoxication as you were when
writing the code.

Since this is third party code, it may well require a sorta brute
force approach to figuring out the correct level-- unless you've got
the BMI and # and kind of stuff drunk by the original author.

Hey, there's one for the release notes, neh?  When writing section X,
I'd had 6 shots of tequila over a span of 1 and a half hours.  I'm 6
feet 3 inches tall and weigh 185 lbs.

Might help to know what music was being jammed at code inception as
well, come to think of it.

I see a whole new paradigm opening up.

:Den

-- 
It is possible that mankind is on the threshold of a golden age; but,
if so, it will be necessary first to slay the dragon that guards the
door, and this dragon is religion.
Bertrand Russe

~|
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:342981
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF9 CreateObject() Maps From Current Directory First?

2011-03-13 Thread Matt Quackenbush

LOL.  The great thing is, I know this dood that could totally automate all
of that with this badass little thingy called cfdistro.  I should talk to
him.  :-)


On Sun, Mar 13, 2011 at 11:20 PM, denstar valliants...@gmail.com wrote:


 On Sun, Mar 13, 2011 at 10:01 PM, Matt Quackenbush wrote:
 
  Perhaps I should just drink more.  :-)
 

 The trick is to be at the same level of intoxication as you were when
 writing the code.

 Since this is third party code, it may well require a sorta brute
 force approach to figuring out the correct level-- unless you've got
 the BMI and # and kind of stuff drunk by the original author.

 Hey, there's one for the release notes, neh?  When writing section X,
 I'd had 6 shots of tequila over a span of 1 and a half hours.  I'm 6
 feet 3 inches tall and weigh 185 lbs.

 Might help to know what music was being jammed at code inception as
 well, come to think of it.

 I see a whole new paradigm opening up.

 :Den

 --
 It is possible that mankind is on the threshold of a golden age; but,
 if so, it will be necessary first to slay the dragon that guards the
 door, and this dragon is religion.
 Bertrand Russe

 

~|
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:342982
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF9 CreateObject() Maps From Current Directory First?

2011-03-13 Thread Wil Genovese

LOL

Knowing the music is most definitely important! 

It makes a difference if it was Dropkick Murphys or Pink Floyd.

 
Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com

wilg...@trunkful.com
www.trunkful.com

On Mar 13, 2011, at 11:20 PM, denstar wrote:

 
 On Sun, Mar 13, 2011 at 10:01 PM, Matt Quackenbush wrote:
 
  Perhaps I should just drink more.  :-)
 
 
 The trick is to be at the same level of intoxication as you were when
 writing the code.
 
 Since this is third party code, it may well require a sorta brute
 force approach to figuring out the correct level-- unless you've got
 the BMI and # and kind of stuff drunk by the original author.
 
 Hey, there's one for the release notes, neh?  When writing section X,
 I'd had 6 shots of tequila over a span of 1 and a half hours.  I'm 6
 feet 3 inches tall and weigh 185 lbs.
 
 Might help to know what music was being jammed at code inception as
 well, come to think of it.
 
 I see a whole new paradigm opening up.
 
 :Den
 
 -- 
 It is possible that mankind is on the threshold of a golden age; but,
 if so, it will be necessary first to slay the dragon that guards the
 door, and this dragon is religion.
 Bertrand Russe
 
 

~|
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:342983
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF9 CreateObject() Maps From Current Directory First?

2011-03-13 Thread denstar

On Sun, Mar 13, 2011 at 10:28 PM, Matt Quackenbush wrote:

 LOL.  The great thing is, I know this dood that could totally automate all
 of that with this badass little thingy called cfdistro.  I should talk to
 him.  :-)


If only that punk would add some documentation and commit the stuff
he's got hanging out locally!  ;)

I heard that like 90% of that code was done to techno music too, so...

Heh.

:Den

-- 
Italy, and the spring and first love all together should suffice to
make the gloomiest person happy.
Bertrand Russ

~|
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:342984
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm