RE: ColdFusion 5.0 Applets

2001-08-30 Thread Ricardo Villalobos

Snipe,

I found the issue you mentioned yesterday in CFTREE. Here is how to fix
it.

In the previous version of CF_TREE, you would reference the selected
node in Javascript as:

_CF_getTree(document.cftreename)

Where cftreename is the name that you assigned to the CFTREE element.
This actually would not give you the exact name, but a string that
contained the name. Here is the complete function to get the selected
node in the previous version of the applet:

function FindSelectedNode()
{
NodeName = _CF_getTree(document.cftreename); 
mposition=NodeName.indexOf(";")+2;
NodeName=NodeName.substring(mposition,NodeName.length);
if (NodeName != '')
{
Whatever you want to do with the selected node;
}
else
{
alert ("Please select one of the elements");
}

}


For CFTREE in version 5 you need to reference the selected node as 

formname.__CFTREE__formname__cftreename.value; 

Where formname is the name of the Form that contains the CFTREE element

Here is the complete code for version 5.0

function FindSelectedNode()
{

NodeName =formname.__CFTREE__formname__cftreename.value;

mposition=NodeName.indexOf(";")+2;
NodeName=NodeName.substring(mposition,NodeName.length);
if (NodeName != '')
{
Whatever you want to do with the selected node;
}
else
{
alert ("Please select one of the elements");
}
        
    }


Hope this helps.

Best Regards!

Ricardo Villalobos
Dimasys, Inc.



---
>Isn't there also a issue with CFTree in that one of the old JavaScripts
>that it used to make is no longer made in CF5?  I have yet to upgrade
to
>CF5 on the one site I use CFTree on, so have no first hand experience
with
>this.  I think it is the _CF_getTree() function, but I might be wrong
on
>that function name.

Snipe - 

On Wed, 29 Aug 2001, Mike Brunt wrote:

> Yes they were upgraded and there can be issues with CFGrid when
upgrading to
> 5.0. Knowledge Base 20371 lists various hotfixes including the CFGrid
one.
> 
> Kind Regards - Mike Brunt
> 
> -Original Message-
> From: Ricardo Villalobos [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 29, 2001 7:53 AM
> To: CF-Talk
> Subject: ColdFusion 5.0 Applets
> 
> 
> Did Macromedia change the java applets in version 5.0? It seems to me
> like they upgraded them to Java 1.3.1 but I wanted to verify with you
> guys...
> 
> Best Regards!
> 
> Ricardo Villalobos
> Dimasys, Inc.
> 


FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



ColdFusion 5.0 Applets

2001-08-29 Thread Ricardo Villalobos

Did Macromedia change the java applets in version 5.0? It seems to me
like they upgraded them to Java 1.3.1 but I wanted to verify with you
guys...

Best Regards!

Ricardo Villalobos
Dimasys, Inc.


FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Reading an XML Post

2001-08-14 Thread Ricardo Villalobos

David,

Thank you, this is what I needed. Due to budget limitations I have to
find a way to do this with ColdFusion 4.0. Any ideas on how to read an
HTTP Post without using form variables, CFHTTP or CFFILE? (Remember, our
customer is sending the XML file as an HTTP post)

Thanks again for your help and for all the previous responses.

Ricardo Villalobos
Dimasys, Inc.


> Date: Mon, 13 Aug 2001 19:27:48 -0400
> From: Dave Watts <[EMAIL PROTECTED]>
> Subject: RE: Reading an XML post
> Message-ID: 
> <[EMAIL PROTECTED]>
> 
> > One of our customers will start sending us orders using XML. They
> > basically will post the file to a URL in our web server. Using ASP, 
> > I can read the contents of the post using Request.BinaryRead. Is 
> > there anything similar in ColdFusion?
> 
> Yes, in CF 5 you can use the GetHTTPRequestData function to 
> read the body of
> an HTTP POST received by CF. Unfortunately, in previous 
> versions there's
> nothing analogous to that. There are workarounds, but none of them are
> especially palatable.
> 
> David T Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> phone: (202) 797-5496
> fax: (202) 797-5444
> 
> ~~


FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Reading an XML post

2001-08-13 Thread Ricardo Villalobos

Hi,

One of our customers will start sending us orders using XML. They
basically will post the file to a URL in our web server. Using ASP, I
can read the contents of the post using Request.BinaryRead. Is there
anything similar in ColdFusion? 

Thanks in advance for your help.

Ricardo Villalobos
[EMAIL PROTECTED]



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Practice

2001-07-26 Thread Ricardo Villalobos

Hi,

What would you use to substitute the java grid applet that comes with
ColdFusion? I am using it in some pages but as you know, its
functionality is very limited. Thanks in advance for your help.

Ricardo Villalobos
Internet Development
Dimasys, Inc.

> -Original Message-
> From: Tangorre, Mike [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, July 26, 2001 9:10 AM
> To: CF-Talk
> Subject: Practice
> 
> 
> Does anyone know of any sites online that have examples to 
> work out in CF? I am working as an intern and have some free 
> time.. I would like to look into some of the harder concepts 
> of CF. Perhaps more specifically: arrays, structures, trees, 
> scopes, and some of the built in functions. I have the CF 
> books here, but would like to find some more examples to 
> increase my knowledge.  :-)  any ideas?
> 
> Mike
> 
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists