Thanks a lot for the pointer, Dan.

Regards,
Pine

-----Original Message-----
From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 01, 2006 9:43 AM
To: CF-Talk
Subject: RE: Set session variables in JS?


Pine,

>> Hi Dan,
>>
>> Can you elaborate a bit on point 3 -> Use Image()object in JS to post

>> to a fixed URL. I know how to do the other 3 (Form, Hidden 
>> fields/iframe and AJAX) but not sure how to do on point 3 that you 
>> mentioned.
>
>Here's my method for that:
>
>http://www.depressedpress.com/Content/Development/JavaScript/Articles/G
>IFAs
>P
>ipe/Index.cfm
>
>It's old (about 6 years old now) but still works a treat.

Jim's technique is crutch of it, but instead of actually putting an <img
/> tag in your code, you can use something like:

var oImgGateway = new Image();
oImgGateway.src = "someurl.cfm?passParam=here";

This will create an async event that will load the URL in the src
property to the server.

The caveat with this approach is that you have no way to really interact
with the server--basically you can only use it to pass information to
the server, you won't be able to retrieve information from the server
using that technique.

-Dan





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231031
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to