: Java Script Value to CF Value
ALTERNATE METHOD:
I can read the file using CFFILE.
If it is an image file is there some way I can get the width and height?
Robert B. Harrison
Director of Interactive services
Austin & Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788 T : 631.231.6600
uge NY 11788
T : 631.231.6600 Ext. 119
F : 631.434.7022
www.austin-williams.com
Great advertising can't be either/or... It must be &.
-Original Message-
From: David Low [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 04, 2007 9:55 AM
To: CF-Talk
Subject: Re: Java Script Value to CF
Yep, that's possible - if you're using CF8 there are tags/functions to
do this, if not you could use Rick Root's excellent ImageCFC or Alagad
Image Component.
For info, Railo has a very handy attribute which lets you get image
dimensions directly from a tag.
Robert Harrison wrote:
> ALTERNAT
Message-
From: Robert Harrison [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 04, 2007 9:51 AM
To: CF-Talk
Subject: RE: Java Script Value to CF Value
I see the error of my ways. I'm missing client sided variables with
server sided variables... oh well, back to the drawing board.
Rob
ALTERNATE METHOD:
I can read the file using CFFILE.
If it is an image file is there some way I can get the width and height?
Robert B. Harrison
Director of Interactive services
Austin & Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119
F : 631.434.7022
www.a
But that is for passing CF values into Javascript, isn't it? Robert is
trying to get a client-side JS value (which is defined once an image has
loaded) into the server-side CF code. Can't be done in that way.
Robert, what is it you're trying to do in general, aside from the
snippet of code yo
But that is for passing CF values into Javascript, isn't it? Robert is
trying to get a client-side JS value (which is defined once an image has
loaded) into the server-side CF code. Can't be done in that way.
Robert, what is it you're trying to do in general, aside from the
snippet of code yo
Robert,
I couldn't really get a feel for what you're doing but take a look at
two options:
1) Doing an XHR called (Ajax) to a CF template to set it and do any work
necessary.
2) Look into WDDX to help you exchange JS native data elements between
CF. http://www.webmonkey.com/webmonkey/99/15/in
.434.7022
www.austin-williams.com
Great advertising can't be either/or... It must be &.
-Original Message-
From: Ryan Stille [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 04, 2007 9:45 AM
To: CF-Talk
Subject: Re: Java Script Value to CF Value
You'll need two pages or steps
Robert,
Look at the docs for toScript(), this function will help you out.
Dan
On 9/4/07, Robert Harrison <[EMAIL PROTECTED]> wrote:
>
> I have a value I'm retrieving from Java Script. I need to set it to a CF
> value. What is the correct syntax. Below does not work, but it makes the
> point on w
You'll need two pages or steps to get this value - one for the form
itself, then when you submit that form you can have the value.
document.forms[0].wide.value = document.images[0].height;
document.forms[0].submit();
Robert Harrison wrote:
> I have a value I'm retrieving from Java Script.
That script won't work, as the CF code will already be executed before
the client-side Javascript does anything. CF might be able to write to
Javascript but can't read it.
Robert Harrison wrote:
> I have a value I'm retrieving from Java Script. I need to set it to a CF
> value. What is the cor
createElement() is another way to... well... create elements :-p
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Jim Davis [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 02, 2007 3:35 PM
To: CF-Talk
Subject: RE: Java Script
Just a quick note. Firefox with the Firebug addon is the best thing you can
use for Js troubleshooting. I am doing a ton of AJAX mods to the sites I am
working on now. I still need to make sure it works in all/most browsers but
Firebug has saved me a ton of time
Eric
~
try
writetag()
you forgot the parentheses
regards,
larry
>Sorry for the OT JS question, but I need this to work and someone my see the
>problem.
>
>I'm creating a function to write a tag with some external variables. I'm
>using document.write, but the < and > symbols in the tag are giving me a
> -Original Message-
> From: Robert Harrison [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 02, 2007 1:58 PM
> To: CF-Talk
> Subject: OT: Java Script Question
>
>
> Sorry for the OT JS question, but I need this to work and someone my
> see the
> problem.
>
> I'm creating a function t
> Whats is the best way to do the following
>
> "exitnow('#CGI.QUERY_STRING#');">
> its just passing "Query_String" as an string.
It's actually _javascript_ (there's no JAVA in _javascript_ -- except the
name as a marketing ploy) ...
I'm not real sure what the intent of this code is tho -- rat
Whats is the best way to do the following
its just passing "Query_String" as an string.
>Asim Manzur wrote:
>
>>In that way, user won't use the application.
>>I want to validate the input field that it should not leave empty..
>>
>>
>Suggesting they get a new browser would be a better idea,
Asim Manzur wrote:
>In that way, user won't use the application.
>I want to validate the input field that it should not leave empty..
>
>
Suggesting they get a new browser would be a better idea, then they'll
be able to view other sites too. My XHTML-compliant sites that are
perfect in Gecko
In that way, user won't use the application.
I want to validate the input field that it should not leave empty..
>Asim Manzur wrote:
>
>>What code should i use to validate it on IE 5.2 on mac
>>
>>
>Use a browser detection CFX to detect the browser, then do:
>
>
>
>
>
>--
>*Damien McK
Asim Manzur wrote:
>What code should i use to validate it on IE 5.2 on mac
>
>
Use a browser detection CFX to detect the browser, then do:
--
*Damien McKenna* - Web Developer - [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
"Nothing endures but
On Fri, 06 Aug 2004 14:17:02 -0400, Asim Manzur
<[EMAIL PROTECTED]> wrote:
> is there anyway to check that how many orphan child windows are open and then close those??
You could create a function which checks if window.opener is NULL and
closes the window if so, schedule it using setTimeout() and
is there anyway to check that how many orphan child windows are open and then close those??
thanks
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
On Fri, 06 Aug 2004 11:15:12 -0400, Asim Manzur
<[EMAIL PROTECTED]> wrote:
> thanks Marc,
>
> can you please provide me the simple example code with that.
> I lost my almost two days to sort this stupid thing out.
>
> I really appriciate that.
Sorry for the double post, GMail had a hickup.
As
On Fri, 06 Aug 2004 10:42:25 -0400, Asim Manzur
<[EMAIL PROTECTED]> wrote:
> if I put that script in the popup file then its just open and then closed
>
> I have a index.cfm file, if the form submits, it popup the window and include upload.cfm
>
> so, what I was doing is putting that script at th
thanks Marc,
can you please provide me the simple example code with that.
I lost my almost two days to sort this stupid thing out.
I really appriciate that.
Thanks
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
Another thing to consider is that since IE will now be equipped with a
pop-up blocker and most mozilla users seem to have it turned on, it might
make more sense to have a hidden div that can popup overtop the current page
rather than a popup.
#infoPopup {
width:100px;
height: 100px;
On Fri, 06 Aug 2004 10:42:25 -0400, Asim Manzur
<[EMAIL PROTECTED]> wrote:
> if I put that script in the popup file then its just open and then closed
>
> I have a index.cfm file, if the form submits, it popup the window and include upload.cfm
>
> so, what I was doing is putting that script at th
if I put that script in the popup file then its just open and then closed
I have a index.cfm file, if the form submits, it popup the window and include upload.cfm
so, what I was doing is putting that script at the bottom of index.cfm coz if I put that script in popup.htm then popup just open and
...
Pascal
> -Original Message-
> From: Asim Manzur [mailto:[EMAIL PROTECTED]
> Sent: 05 August 2004 22:26
> To: CF-Talk
> Subject: Re:
>>and where i need to close the popup.
//alert("window is still open");
the_Child.close();
I suppose this script is in the pop up?
Then "the_Child" is not defined there, it is its parent's object.
Simply try self.close();
and it should close itself.
--
still playing with that, no luck yet,
If someone have a simple example script please send it to me.
What I am trying to do is on the top of page if the form has been submitted, open a popup window with a static html page showing animated gif and when the file is uploaded, at the bottom of the pag
thanks for you reply.
No this one doesn't work too.
There is no error. my script debugger is on, "display error on script" is on as well.
popup is opening but its not closing.
thanks
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Suppo
Try this.
windowHandle = window.open('anim.htm','waitWin','height=10,width=260');
// alert("windows still open");
windowHandle.close();
> -Original Message-
> From: Asim Manzur [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 05, 2004 11:26 AM
> To: CF-T
in addition now I am opening the popup on onSubmit event.
( validate(this) ) {return true} else {return false}">
in function validate
the_Child = window.open('popup.htm','waitWinPop','height=10,width=260');
}
and where i need to close the popup.
//alert("window is still open");
Joshua,
You a bit thin on the details here, but make sure that the cf variable (#projectid#)
is wrapped in
- mike
> -Original Message-
> From: Joshua Tipton [mailto:jtipton1@;directvinternet.com]
> Sent: Monday, November 04, 2002 7:00 PM
> To: CF-Talk
> Subject: Java script ot help
>
rry if this question was OT.
>
>-Original Message-
>From: Brian Scandale [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, September 28, 2002 1:43 PM
>To: CF-Talk
>Subject: Re: JAVA Script that adds
>
>I learned by example to do this by finding a site that had forms and
&g
Thanks, sorry if this question was OT.
-Original Message-
From: Brian Scandale [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 28, 2002 1:43 PM
To: CF-Talk
Subject: Re: JAVA Script that adds
I learned by example to do this by finding a site that had forms and
addition of numbers
I learned by example to do this by finding a site that had forms and addition of
numbers going on and then viewing the source and figuring out how it was done. Then I
modified it for my specific needs.
Since your result will be very dependant on your needs I suggest as a start:
http://www.goog
Yeah, but why bother when I can just do:
- Original Message -
From: Douglas Brown <[EMAIL PROTECTED]>
Date: Thursday, March 14, 2002 2:20 pm
Subject: Re: Java Script Array Question
> You can do this.
>
>
>
> images = Array New(){
> <cfoutput
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 1:08 PM
Subject: Re: Java Script Array Question
> The easiest way to do this is to use WDDX. It will create an array for
> you in JS straight from your CF query.
>
> Take a look in the CF Studio help, i
The easiest way to do this is to use WDDX. It will create an array for
you in JS straight from your CF query.
Take a look in the CF Studio help, it's very straightforward.
- Original Message -
From: Double Down <[EMAIL PROTECTED]>
Date: Thursday, March 14, 2002 1:47 pm
Subject: Java Sc
Oops.. Yes.. The ";"..
> -Original Message-
> From: Aitken, Jeffrey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 21, 2001 10:03 AM
> To: CF-Talk
> Subject: RE: Java Script
>
>
> Try this...
>
>
>window.loca
try document.location.href="#HTTP_REFERER#";
Joshua Miller
Web Development::Programming
Eagle Technologies Group, Inc.
www.eagletgi.com
[EMAIL PROTECTED]
-Original Message-
From: Joshua Tipton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 12:56 PM
To: CF-Talk
Subject: Java Sc
try
window.location.href="#HTTP_REFERER#";
i can't remember if you have to escape the "s or not
"Joshua Tipton" <[EMAIL PROTECTED]> on 08/21/2001 11:55:52 AM
Please respond to [EMAIL PROTECTED]
To: CF-Talk <[EMAIL PROTECTED]>
cc:
Subject: Java Script
I am not a java script person at
Try this
window.location.href = "#HTTP_REFERER#";
Off the top of my head... I have not tested it.
Justin Hansen - [EMAIL PROTECTED]
Project Leader / Web Application Developer
Interactive Business Solutions, Inc
816-221-5200 ext. 1305
-Original Message-
F
This works
window.location.href = '#HTTP_REFERER#'
- Original Message -
From: "Joshua Tipton" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, August 21, 2001 11:55 AM
Subject: Java Script
> I am not a java script person at all can someone plea
Try this...
window.location = "#HTTP_REFERER#";
-Original Message-
From: Joshua Tipton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 12:56 PM
To: CF-Talk
Subject: Java Script
I am not a java script person at all can someone please tell me why
Try this.. I think it should work...
window.location.href = "#cgi.http_referer#"
> -Original Message-
> From: Joshua Tipton [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 21, 2001 9:56 AM
> To: CF-Talk
> Subject: Java Script
>
>
> I am not a java script person at all can someone
u should try document.form.radio_button_fieldname[index].value.
becoz U are using the same name it is a array of the fieldname starting
from 0.
U are absolutely perfect and right to name the radio buttons with the same
name provided ur functionality requires that.
Eg if U want some one to fill a
what u can to do is check the "checked" property
if (formname.elementname[radiobuttonnum].checked==true){
myvar=formname.elementname[radiobuttonnum].value
}
Does that help at all???
- Original Message -
From: "Andy Ewings" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Se
Andrew,
Check out the qForms API:
http://www.pengoworks.com/qForms/
It'll make what you're trying to do very easy. As a matter of fact, if you
want to know the value of the field, just do:
obj.fieldName.getValue();
No need to trap the value, just call the getValue() method. You can also
< input type = "radio" value = "yes" onClick = "get(this)">
function get(radioBtn)
{
val = radioBtn.value;
.
}
- Original Message -
From: "Andy Ewings" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 1:18 PM
Subject: Java Script
I have
Show us the code!
-Original Message-
From: Andy Ewings [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 11:18 AM
To: CF-Talk
Subject: Java Script
I have 3 radio buttons on a form with the same name but different values.
When each of them is clicked a JS function fires which at
Hello Andy,
Untitled
--
Critter, MMCP
Certified ColdFusion Developer
Crit[s2k] -
---
Thursday, August 16, 2001, 1:18:11 PM, you wrote:
I believe you treat the control like an array. Maybe do..
val = document.formname.fieldname[y].value
where y is the index that was selected.
===
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [E
You could run the action page and if the login is in use automatically
redirect them to the login page using the tag.
-Original Message-
From: Double Down [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 07, 2000 4:26 PM
To: House Of Fusion
Subject: OT: Java Script Question
I would
Hi Tia,
[You Wrote]
|I would like to flash a java script alert box saying that a login name is
|already in use. This will happen on the submit and it will go to the action
|page to check the db. My question is can I have the alert box pop up on the
|form page so the person does not have to go bac
58 matches
Mail list logo