Can javascript be used with CF flash forms?
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
In the example below, how would I use Javascript or CF informing a user to
please make a selection as opposed to clicking SUBMIT on the title View
Available Reports?
Thanks as always.
form method=post action=test.cfm
select name=date
optionView Available Reports/option
/select
input type
onchange=this.form.submit(); in the select, and leave the submit button
off the page.
- Original Message -
From: Robert Orlini [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Wednesday, January 05, 2005 3:58 PM
Subject: SOT: Javascript or CF in drop-down
In the example
Robert Orlini wrote:
In the example below, how would I use Javascript or CF informing a user to
please make a selection as opposed to clicking SUBMIT on the title View
Available Reports?
Thanks as always.
form method=post action=test.cfm
select name=date
optionView Available
Keith Gaughan wrote:
Maybe give it a label, and just put the dates in the select box:
form method=post action=test.cfm
label for=dateView Report For:/labelbr /
select name=date id=date
!--- Dates go here ---
/select
input type=image src=images/view.gif /
/form
The low-tech
On Wednesday 08 Dec 2004 22:24 pm, Greg Morphis wrote:
val = evaluate(test.agentpw[+ rn +]);
The structure exists, I can get any value manually by #qry.desc[1]#.
What's 'test' ? Some sort of Neuromancer webservice object ?
--
Tom Chiverton
Advanced ColdFusion Programmer
Tel: +44
my bad, test should have been qry..
It should have read
val = evaluate(qry.agentpw[+ rn +]);
Ian Skinner wrote a reply using cfwddx so I'm going to give that a try.
I know about the server/client problems with CF and JS.
I wish there were simpler ways of making them work together more fluidly.
Ian, thanks for the reply.
I'm using
script language=Javascript type=text/javascript
cfwddx action=cfml2js input=#qry# topLevelVariable=aJSVar
/script
however I keep getting a JS error : WddxRecordset is Undefined.
When I view the source I clearly see the array created, I just keep
getting that
Nevermind, I found that I had to include the wddx.js file.
Thanks!
On Thu, 9 Dec 2004 07:57:43 -0600, Greg Morphis [EMAIL PROTECTED] wrote:
Ian, thanks for the reply.
I'm using
script language=Javascript type=text/javascript
cfwddx action=cfml2js input=#qry# topLevelVariable=aJSVar
Greg Morphis wrote:
Say I have a query that returns some values
rownum, id, and desc
11001 ProductA
21002 ProductB
31003 ProductC
41004 ProductD
51005 ProductE
Is it not possible (without opening a new frame) to use Javascript to
get a
Say I have a query that returns some values
rownum, id, and desc
11001 ProductA
21002 ProductB
31003 ProductC
41004 ProductD
51005 ProductE
Is it not possible (without opening a new frame) to use Javascript to
get a certain row?
I was thinking
In your example, you've defined the variable val in javascript only, not in
ColdFusion -- hence the error.
I'm not exactly sure what you are trying to accomplish .. can you explain it to
me again? I'll have another go at it.
Dave.
Say I have a query that returns some values
rownum, id, and
One must always remember that server side processing (CF) and client side
processing (JS) are different and never the twain shall meet.
Ok, ok, yes there are ways to mix the two, but not the way you are talking
about. Once the page and all the data has been sent to the client, using CFML
is
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 5:15 PM
To: CF-Talk
Subject: Re: Single Quotes in Field value throwing error outputing in
javascript on cf page
Well - that was an uncontested 5 suggestions for jsStringFormat() - and
it worked wonderfully. How did that little function
Hello list -
I have an access database - it already has text in a memo field riddled
with ' quotes. Like - Woman's and it's and all sorts of words.
Problem is it is creating an issue with my javascript event - which is
onMouseOver=tip.show('#Trim(LinkDesc)#')
Do I need to do a replace function
see: jsStringFormat()
-Justin
- Original Message -
From: Jason Miller [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 5:13 PM
Subject: Single Quotes in Field value throwing error outputing in javascript
on cf page
Hello list -
I have an access database
-- Original Message --
From: Jason Miller [EMAIL PROTECTED]
Do I need to do a replace function each time? Or do I have to run a
filter on all existing fields and re-insert the info with a
PreserveSingleQuotes?
Have you tried JSStringFormat()?
]
*
-Original Message-
From: Jason Miller [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 5:14 PM
To: CF-Talk
Subject: Single Quotes in Field value throwing error outputing in
javascript on cf page
Hello
there is a jsStringFormat() function which will escape the 'dangerous'
javascript characters :)
hth,
charlie
Jason Miller writes:
Hello list -
I have an access database - it already has text in a memo field riddled
with ' quotes. Like - Woman's and it's and all sorts of words.
www.audiencecentral.com
-Original Message-
From: Jason Miller [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 2:14 PM
To: CF-Talk
Subject: Single Quotes in Field value throwing error outputing in
javascript on cf page
Hello list -
I have an access database - it already
Well - that was an uncontested 5 suggestions for jsStringFormat() - and
it worked wonderfully. How did that little function escape me so long.
My toughest decision is now do I go back through old project cleaning up
my nutty replace functions I previously dreamed up and replace with
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 5:15 PM
To: CF-Talk
Subject: Re: Single Quotes in Field value throwing error outputing in
javascript on cf page
Well - that was an uncontested 5 suggestions for jsStringFormat() - and
it worked wonderfully. How did that little function escape
Have a small form problem I need some assistance with
I have a form that needs to submit itself with no user interaction (it's on
a processing page that the user never sees that passes variables off to
Verisign for a product payment). There are actually 4 forms, but each is
contained inside
script type=text/javascriptdocument.cart.submit()/script
-^
insert a ; here
script type=text/javascriptdocument.forms[0].submit()/script
-^
Quote should not be there, place a ; instead
Corm inside CFIF question...(More JavaScript than
CF)
Have a small form problem I need some assistance with
I have a form that needs to submit itself with no user interaction (it's
on
a processing page that the user never sees that passes variables off to
Verisign for a product payment
Moonbow Software
: -Original Message-
: From: Les Mizzell [mailto:lesmizz;bellsouth.net]
: Sent: Wednesday, October 30, 2002 3:44 PM
: To: CF-Talk
: Subject: Self submitting Corm inside CFIF question...(More JavaScript
: than CF)
:
:
: Have a small form problem I need some assistance
script type=text/javascriptdocument.forms['cart'].submit();/script
Works in I.E. - still not in Netscape 7
Same goes for:
script type=text/javascriptdocument.cart.submit();/script
Sheesh.
Just to be sure it's not me:
http://www.beabetterwriter.com/newsletter1.cfm
What happens when you
: I do this extensively in a few of my forms and you may just be missing a
: semicolon after submit, i.e. document.cart.submit();.
Fixed that already. Still refuses to work in Netscape 7.
..searching for another solution
Thanks...
FYI, The language attribute in the script tag was deprecated in HTML 4, in
favor of type...
--
jon
mailto:jonhall;ozline.net
Wednesday, October 30, 2002, 4:54:40 PM, you wrote:
BD Offhand, I'd try adding 'language=JavaScript' to the script tag.
BD I don't know about Netscape, but in Mozilla
2:09 PM
To: CF-Talk
Subject: RE: Self submitting Corm inside CFIF question...(More
JavaScript than CF)
script type=text/javascriptdocument.forms['cart'].submit();/script
Works in I.E. - still not in Netscape 7
Same goes for:
script type=text/javascriptdocument.cart.submit();/script
Sheesh
Mozilla js debugger is showing this error
Error: document.forms.cart has no properties
Source File: http://www.beabetterwriter.com/newsord_process.cfm?ID=1year
Line: 9
I'd try adding html and body tags, and adding an id parameter to your
form tag.
--
jon
mailto:jonhall;ozline.net
Wednesday,
: Error: document.forms.cart has no properties
: Source File: http://www.beabetterwriter.com/newsord_process.cfm?ID=1year
: Line: 9
It's right there - the form is named cart
Here's the code. Other variations refusing to work as well...
cfif url.ID eq 2year
form name=cart
JavaScript than CF)
: Error: document.forms.cart has no properties
: Source File: http://www.beabetterwriter.com/newsord_process.cfm?ID=1year
: Line: 9
It's right there - the form is named cart
Here's the code. Other variations refusing to work as well...
cfif url.ID eq 2year
: The reason it is probably not working is
: because when you say document. that means in my valid html
: document there
: is an object called... without an htmlbody etc it is
: technically not a
: valid html document (should have declarations etc) but with out
: the html
: the DOM is all jacked.
window.setTimeout(Redirect();,1000);
Runs a function called Redirect after 1 second (1000ms)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 13 January 2002 17:03
To: CF-Talk
Subject: Re: OT - Javascript and CF
i don't recall the syntax directly but there's
i don't recall the syntax directly but there's a javascript function ca
lled
setTimeout()
that does exactly that.
Tangorre, Michael T. [EMAIL PROTECTED] on 01/12/2002 11:35:30
PM
Please respond to [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
cc:
Subject: OT - Javascript and CF
Hi Everyone,
This is a bit off topic, but if anyone is still up I could use some
guideance.
I have a query that returns a value in minutes. What I need to do is setup a
counter that counts down
The minutes then sends a user to another page after so long...
Any ideas?
Michael T. Tangorre
:16 PM
Subject: Re: Javascript Vs. CF Form Validation
I understand where you're coming from - just came out wrong, I suppose.
If
CFForm doesn't do what you need, you should write you're own JavaScript -
but on the flip side, always do server-side validation - even if you can
write JS that does
put a cfoutput around your entire form and use cfloop for query looping!
-Original Message-
From: Tristram Charnley [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 9 november 2001 10:53
To: CF-Talk
Subject: Re: Javascript Vs. CF Form Validation
Leaving aside the validation issues, I like CF
I kind of see that as reinventing the wheel, when there are plenty of
JavaScript's out there that can do validation for you. Not saying I have
avoided learning JavaScript or that I use CFForm to do it. However with
things like qForms from www.pengoworks.com out there, personally I wish I
had
]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, November 09, 2001 7:20 AM
Subject: Re: Javascript Vs. CF Form Validation
I kind of see that as reinventing the wheel, when there are plenty of
JavaScript's out there that can do validation for you. Not saying I have
avoided learning JavaScript or that I
and paste the code I need,
rather than including a big library that has a lot of code I don't need.
- Original Message -
From: Aaron Rouse [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, November 09, 2001 7:20 AM
Subject: Re: Javascript Vs. CF Form Validation
I
I have question about using JS and CF. What I wanted the following to do is
build a list of parts in a SELECT command. ALlow the user to select the
part they want and then reload the page with the part number select.
The calling program is call "EndItemAddEdit.cfm" and of course I want to
Steve DeWitt wrote:
Javascript can run "server-side" but not on a CF server. Ever heard of
server side javascript that runs on a web server?
Of course I have. However, for purposes of keeping the explanation
simple, I chose elucidate the difference between server-side Cold
Fusion, and
script language="javascript"
var x = "Superman";
document.write("cfset y = "+x+"");
/script
This won't actually do anything in CF. If you need to pass a variable from
the browser (including from JavaScript), you'll have to send it back in an
HTTP request. You can do that with JavaScript
cript"
var x = "Superman";
document.write("cfset y = "+x+"");
/script
The above does it the other way around.
If anybody knows a better way please explain.
- Original Message -
From: aslam bajaria [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Frid
Can someone plz let me know the best books and best
website tutorials etc for learning JavaScript?
Also, which versions are supported by CF and which are
not?
Appreciate.
A.B.
__
Do You Yahoo!?
Send instant messages get email alerts with Yahoo!
CF doesn't "support" JavaScript: CF runs server-side, JavaScript runs
client-side. Your support for JavaScript is dependent upon the end
user's browser, not how you generate the content.
The best book I've come across is O'reilly's Javascript: The Definitive
Guide (Flanagan).
]
Subject: JavaScript and CF
Can someone plz let me know the best books and best
website tutorials etc for learning JavaScript?
Also, which versions are supported by CF and which are
not?
Appreciate.
A.B.
__
Do You Yahoo!?
Send instant messages get email
questions.
Good luck.
Blighty.
- Original Message -
From: aslam bajaria [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 07, 2000 10:09 AM
Subject: JavaScript and CF
Can someone plz let me know the best books and best
website tutorials etc for learning JavaScript?
Also, which
50 matches
Mail list logo