Heres my .02
Do an iframe with the variable in the Url of the iframe.
Do an onblur event on the field to reload the iframe.
Put your Query and Display element in the iframe.
I say this because if your doing a query on a DB with millions of records an
aray might not be a good idea.?
I use that ap
To cake or not to bake, that is the question...
Whether 'tis nobler in the kitchen to suffer the slings and arrows of
outrageous icing or to bear arms against a sea of debugging - and by
opposing, to make a sandwich...
- Will Bakespeare
-Jon*needs to eat some dinner*
On Nov 14, 2006, a
Im on year 5 and I am hungry for cake!
On 11/14/06, Charlie Griefer <[EMAIL PROTECTED]> wrote:
>
> I think for a guy who's on day 5...all that analogy is going to do is
> make him more confused and hungry for cake.
>
> On 11/14/06, Dan Plesse <[EMAIL PROTECTED]> wrote:
> > I reviewed every one's r
I think for a guy who's on day 5...all that analogy is going to do is
make him more confused and hungry for cake.
On 11/14/06, Dan Plesse <[EMAIL PROTECTED]> wrote:
> I reviewed every one's response so far and I did like a single one. I would
> use a bakery analogy. For example CF is like a cake i
I reviewed every one's response so far and I did like a single one. I would
use a bakery analogy. For example CF is like a cake it gets baked first then
the sweet buttery javascript icing goes last. The two don't mix well. To cut
the layers you need a fork called AJAX bla bla bla. What you need to
> You can do exactly what he wants by loading the data into a JS array.
> Then his function would simply look in the array rather than trying to
> do a query.
>
> the cfquery in his function is querying for a specific record based on
> a value passed to the function.
>
> if he does a query withou
BTW, just to clarify...I wasn't trying to debate over which was "easier" (the
JS array vs AJAX), since "easy" is a relative term. My point was that it's
possible to do without AJAX.
And my "easy" was referring to the creation of the JS array, again not JS array
VS AJAX. But I concur that jump
On 11/14/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> if he does a query without the WHERE and loops over that query, he can create
> a JS array easily.
>
> Even easier if he uses the tag, which will take
> a CF variable, simple or complex, and turn it into a corresponding JS
> variable.
Yes,
bit daunting if you're still learning the "little things" that make
CF, well, CF.
> -Original Message-
> From: Munson, Jacob [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 14, 2006 1:58 PM
> To: CF-Talk
> Subject: RE: Mixing CF and JavaScript.
> Importan
if he does a query without the WHERE and loops over that query, he can create a
JS array easily.
Even easier if he uses the tag, which will take a
CF variable, simple or complex, and turn it into a corresponding JS variable.
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSou
Jake Churchill wrote:
> Look into CFAjax.
Don't look into CFAJAX unless you like outdated code with known security
vulnerabilities that isn't being updated/maintained anymore.
ajaxCFC or mxajax or any variety of others, but absolutely not cfajax.
Rick
~
ic CFC including
> his cfquery, and then cfreturn the result. I'd imagine it's similar in
> mxajax.
>
> > -Original Message-
> > From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, November 14, 2006 11:42 AM
> > To: CF-Talk
> > Subj
lie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 14, 2006 11:42 AM
> To: CF-Talk
> Subject: Re: Mixing CF and JavaScript.
>
> yeah, that's why I threw in the mention of AJAX, but really didn't
> pursue that as the solution. He's probably got enough thi
on that.
>
> > -Original Message-
> > From: Munson, Jacob [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, November 14, 2006 1:17 PM
> > To: CF-Talk
> > Subject: RE: Mixing CF and JavaScript.
> >
> > > You need to use AJAX.
> >
> > I
o the lookup on that.
> -Original Message-
> From: Munson, Jacob [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 14, 2006 1:17 PM
> To: CF-Talk
> Subject: RE: Mixing CF and JavaScript.
>
> > You need to use AJAX.
>
> I agree, but I wouldn't recommend CFAjax. It&
another page or service to
activate CF enabled templates. This is typically done in AJAX when using
JavaScript. You can do this also in Flash with Flex.
Teddy
On 11/14/06, Jason T. Slack <[EMAIL PROTECTED]> wrote:
>
> I am on Day 5 with CF and Coming along nicely.
>
> I have a que
our
onclick would use that array.
On 11/14/06, Jason T. Slack <[EMAIL PROTECTED]> wrote:
> I am on Day 5 with CF and Coming along nicely.
>
> I have a question on mixing CF and Javascript.
>
> Say I have the following with an onBlur event:
>
> onblur="lookUpUPC
> You need to use AJAX.
I agree, but I wouldn't recommend CFAjax. It's outdated, and the guy
that wrote it has moved on to MXAjax:
http://www.indiankey.com/mxajax/
Personally I prefer ajaxCFC:
http://ajaxcfc.riaforge.org/
---
So I must be doing something wrong but I am not sure what.
Can anybody shed some light?
-Jason
ColdFusion runs on the server and Javascript runs on the client and the two
don't mix.
Ok, they can be made to look like they mix with Ajax and other techniques, but
this isn't beginner stuff.
Th
On 11/14/06, Jason T. Slack <[EMAIL PROTECTED]> wrote:
> I am on Day 5 with CF and Coming along nicely.
>
> I have a question on mixing CF and Javascript.
>
> Say I have the following with an onBlur event:
>
> onblur="lookUpUPC(this.value);" />
>
&g
question on mixing CF and Javascript.
>
> Say I have the following with an onBlur event:
>
> onblur="lookUpUPC(this.value);" />
>
> Here is the JS for LookUpUPC()
>
> function lookUpUPC(upc)
> {
>
> SELECT Description, UnitPrice FROM I
I am on Day 5 with CF and Coming along nicely.
I have a question on mixing CF and Javascript.
Say I have the following with an onBlur event:
Here is the JS for LookUpUPC()
function lookUpUPC(upc)
{
SELECT Description, UnitPrice FROM Inventoryitems
WHERE
22 matches
Mail list logo