Awesome! Thanks!
> -----Original Message-----
> From: Jon Hall [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 23 May 2002 12:10 p.m.
> To: CF-Talk
> Subject: Re: Recent thread?
>
>
> Well the three links I posted have wonderful examples, but
> here is some
> extensively snipped bits of code from a chat application I
> threw together
> experimenting one night. This is an IE/Mozilla solution only though.
>
> <style>
> #pipeFrame {
> display: none;
> }
> </style>
>
> <script language="JavaScript" type="text/javascript">
> function sendData(txt) {
> datapipe = document.getElementById("pipeFrame");
> datapipe.src = "chatrow.cfm?newtext=" + txt;
> }
>
> function setData(txt) {
> document.getElementById("serverdata").value = txt;
> }
> </script>
>
> <input type="text" id="serverdata">
> <iframe id="pipeFrame" src=""></iframe>
>
> All you have to do is fire the sendData function with the
> text to send to
> the server as the only parameter.
>
> ---chatrow.cfm---
>
> <script language="JavaScript">
> <cfloop from="1" to="#arrayLen(application.chatStr.chat)#" index="i">
>
> parent.setData('<cfoutput>#urlEncodedFormat(application.chatSt
> r.chat[i])#</c
> foutput>');
> </cfloop>
> </script>
>
> I snipped the array setup and some other things but the key
> is that this
> function calls the frames parent function but sends back
> whatever you want
> back to the original page.
>
> A bit more than five lines I guess, but close :)
>
> ----- Original Message -----
> From: "Matthew Walker" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, May 22, 2002 7:29 PM
> Subject: RE: Recent thread?
>
>
> > Could we see the 5 lines?!!
> >
> > I was intrigued by this concept and poked around for hours trying to
> > find a non-Java way. I failed miserably.
> >
>
>
>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists