cfhttp method="PUT" url="http://Server/Directory/Filename" username="username" password="password" throwonerror="true" cfhttpparam type="header" name="Content-Type" value="content/type"Don't forget to check the cfhttp response for possible errors!
cfhttpparam type="file" name="file" file="#a_str_full_path_of_filename#"
Monday, 24 September 2007
Thursday, 13 September 2007
So our approach is to copy the securitycontext on each request into the request scope using the following code:
Application.cfc / onRequest
cflock scope="session" timeout="30" type="readonly"
cfset a_struct_securitycontext=" Duplicate(session.a_struct_securitycontext)"
(Of course a check is needed if the securitycontext exists at all ;-)).
Using this way the structure can be accessed without any locking - very important to mention is the Duplicate function because we want a deep copy and not just a reference to the original structure. Be aware of this fact, because the request structure will not change until the next request is executed!
So, what's the big deal of this tiny (22kb) little .js file?
The design of the library is just gorgeous. The basic principle is very simple:
- Select the desired objects
- Perform some action on them
In this case an object with the ID this_is_the_id is selected and hidden.
$("#orderedlist > li").addClass("blue");
I this example, the CSS class "blue" is added to all child elements of an ordered list.
Here some code can be placed which is executed as soon as the DOM structure of the document has finished loading - so no more onLoad events which can have a huge delay because of e.g. external images or advertising stuff.
Here you can find some more tutorials on this.
Wednesday, 12 September 2007
Feel free to comment any articles!
View my XING profile