Hi Adrian,

I just had a brief look at jQuery, it seems to assume a knowledge of
javascript?

I plan to learn javascript asap, but I don't have time to do that now, just
need to get this project wrapped up.

Jenny

-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: 30 July 2008 22:29
To: CF-Talk
Subject: RE: Form question


The quick and dirty answer is:

<input name="height" type="text" class="inputNumber" id="height"
onchange="this.form.action += '#yourAnchorHere';
document.forms['process'].submit();" <cfif
isdefined("session.height")>value="#session.height#" </cfif> />

But as Dave said, there are much better ways to do this. I'd do it with some
jQuery myself.

Adrian

-----Original Message-----
From: Jenny Gavin-Wear [mailto:[EMAIL PROTECTED]
Sent: 30 July 2008 22:11
To: CF-Talk
Subject: RE: Form question


Hi Adrian,

Many thanks for the helpful reply, I'm still not very conversant with
Javascript.

An example of the code I've used is:
<input name="height" type="text" class="inputNumber" id="height"
onChange="document.forms['process'].submit();" <Cfif
isdefined("session.height")>value="#session.height#" </cfif> />

How would I need to change the syntax, please?

Jenny

-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: 30 July 2008 17:58
To: CF-Talk
Subject: RE: Form question


In the function that fires onchange, add the #place to the action of the
form.

Something like:

function refreshMyForm() {
        this.form.action += "#myPlace";
}

<select onchange="refreshMyForm()">
        ....
</select>

That needs tidying up and made better but that's the basic idea.

Adrian

-----Original Message-----
From: Jenny Gavin-Wear [mailto:[EMAIL PROTECTED]
Sent: 30 July 2008 17:29
To: CF-Talk
Subject: Form question


I'm working on a quotation page. I have a long (very) form and when elements
in the form change I need it to process a cftag.

I have this working pretty well using onchange to submit the form, but it's
pretty horrible for the user to be returned to the top of the page after
each submit/page reload.

Is there a way I could have the user come back to an anchor after each
reload, and to be able to specify  the anchor for each onchange?

I hope I've explained this clearly enough,

Thanks in advance,

Jenny




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310001
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to