I having an issue with ajaxOnLoad function to use with gfgrid.
if i call a function say 'myfun' using cfset ajaxOnLoad(myfun) for a
cfgrid,
the function will work ONLY IF PUT INSIDE HEAD/HEAD tags. i need to make
that js dynamic.. please some one can help me with any tweaks that will allow
JS
if i call a function say 'myfun' using cfset
ajaxOnLoad(myfun) for a cfgrid, the function will work
ONLY IF PUT INSIDE HEAD/HEAD tags. i need to make that js
dynamic.. please some one can help me with any tweaks that
will allow JS to be placed anywhere in the code ?
I'm not sure what you
cfsavecontent variable=headText
your javascript stuff here
/cfsavecontent
cfhtmlhead text=#headText# /
On Thu, Aug 21, 2008 at 1:53 PM, dev losh [EMAIL PROTECTED] wrote:
I having an issue with ajaxOnLoad function to use with gfgrid.
if i call a function say 'myfun' using cfset
Hey Great Joy it worked !!
Thanks Charilie :)
cfsavecontent variable=headText
your javascript stuff here
/cfsavecontent
cfhtmlhead text=#headText# /
On Thu, Aug 21, 2008 at 1:53 PM, dev losh [EMAIL PROTECTED] wrote:
~|
When I load the page, no javascript errors..
When I type something in the box, I get a employ is not defined..
Yes it is... it's right freakin there. :)
I realize I must be missing something obvious... Any ideas?
script type=text/javascript
function employ()
{
xmlHttp
When I load the page, no javascript errors..
When I type something in the box, I get a employ is not defined..
Yes it is... it's right freakin there. :)
I realize I must be missing something obvious... Any ideas?
script type=text/javascript
function employ()
{
xmlHttp
It's not the function that's not found, it's GetXmlHttpObject.
Adrian
-Original Message-
From: Phillip Vector [mailto:[EMAIL PROTECTED]
Sent: 28 April 2008 18:19
To: CF-Talk
Subject: Javascript function not defined
When I load the page, no javascript errors..
When I type something
Phillip Vector wrote:
I realize I must be missing something obvious...
like a ; after xmlHttp=GetXmlHttpObject() ?
just a guess...
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
~|
Adobe® ColdFusion® 8 software 8 is
: Monday, April 28, 2008 1:18:30 PM
Subject: Javascript function not defined
When I load the page, no javascript errors..
When I type something in the box, I get a employ is not defined..
Yes it is... it's right freakin there. :)
I realize I must be missing something obvious... Any ideas?
script
Here is the full code (with some fixes). I still get the same error...
script type=text/javascript
// Set variable for AJAX
var xmlHttp;
// Load in the AJAX object based on what browser you have
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
//
// Load in the AJAX object based on what browser you have
function GetXmlHttpObject()
In the code snippet you posted, this was all on one single line. Is it that
way in your actual code? If so, there won't be any function called
GetXmlHttpObject, and the code block that corresponds to the
No. Please see the full code posting..
There's more below it.
On Mon, Apr 28, 2008 at 10:44 AM, Dave Watts [EMAIL PROTECTED] wrote:
// Load in the AJAX object based on what browser you have
function GetXmlHttpObject()
~|
I assumed stateChanged was a variable. If it is a function call, need the
parenthesis.
xmlHttp.onreadystatechange=stateChanged();
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try
No. Please see the full code posting..
There's more below it.
I know there's more below it. However, in what you posted, the keyword
function is on the same line as your comment. If this is what you have in
your actual code, that won't work. I just copied and pasted the two relevant
lines.
Ah... As I emailed, it isn't on the same line. Sorry for the confusion. :)
On Mon, Apr 28, 2008 at 10:55 AM, Dave Watts [EMAIL PROTECTED] wrote:
No. Please see the full code posting..
There's more below it.
I know there's more below it. However, in what you posted, the keyword
The code you pasted works fine for me as long as the span is there.
script type=text/javascript
// Set variable for AJAX
var xmlHttp;
// Load in the AJAX object based on what browser you have
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
// Firefox, Opera 8.0+, Safari
Yeah... I think I'm going to have to work on something else before I
go mad. I may have to kludge something together. :)
Thanks anyway guys.
On Mon, Apr 28, 2008 at 11:13 AM, JJ Cool [EMAIL PROTECTED] wrote:
The code you pasted works fine for me as long as the span is there.
script
I have a template that calls a javascript function that in turn uses cfajax to
call a cfm function as below, it all works perfectly:
!--- ---
select size=1 id=jobData name=jobData class=form1
onChange=getStartDates();
option value=#jb.jobID##jb.oilcompany#/option
/select
I have a template that calls a javascript function that in turn uses
cfajax to call a cfm function as below, it all works perfectly:
Problem solved! - must put head into gear before typing!
~|
Logware (www.logware.us): a new
You must pass the photo id in paramaetr to the _javascript_ function:
and the function should open a template that will get and display the image ( I suppose in full size)
SCRIPT language=_javascript_
function newwindow(photoId)
{
window.open(fullImage.cfm?id= + photoId,''jav','width=700,
The script above is inside a CFLOOP
This is your problem: you finally end up with as many definitions of the same function in your page,
each function opening a window for a photo, but every function definition is overwriting the previous one,
so that finally only the last one exists.
[Todays
Rick, here's the pop-up code I use ... (store this in a snippet in HomeSite/Studio for handy reuse).
SCRIPT LANGUAGE=_javascript_
!-- Original:Eric King ([EMAIL PROTECTED]) --
!-- Web Site:http://redrival.com/eak/ --
!-- This script and many more are available free online at --
!-- The
Ok...been trying everything I could think of...but still not working...
This is just opening the event_slide_show.cfm page in the same page
as event_photo_list.cfm, which is the page that this code is in...
Note the lack of a page reference in the window.open... line of the
function...
I'm sure
Thanks for the code, Howard...
However, I still can't seem to find a way to make a window
open that carries the dynamic URL variables with it...
See my post in response to Claude...
Rick
-Original Message-
From: Howard Owens [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 11, 2003
Can I loop a _javascript_ Function like this?
SCRIPT language=_javascript_
function newwindow()
{
window.open('event_slide_show.cfm?PhotoID=#GetPhotos.PhotoID#EventID=#Sessi
on.EventID#','jav','width=700, height=474, screenx=200, screeny=150,
left=200, right=150, resizable=no, scrollbar=yes,
Try putting your script else where on the page and then call it with an event handler, something like this (treat this as psuedo code ..
cfoutput query=getphotos
a href="" return true;New Photo/a
/cfoutput
If you really want to keep calling the same function over and over, specify your query in
Hi, Howard, and thanks for the reply...
Can you help me out a little more with the coding...I'm not much
of a _javascript_er...
I need some helpwith this part... a href="">
That's sending me back to the same page, Event_Photo_List.cfm,
rather than on to Event_Slide_Show.cfm...
How would I
Is there some kind of function that enables me to load an include or
other file that contains specific JavaScript?
Not wanting to replace the current page, I just want to do the
following;
Page loads, script checks to see if any forms are present in the page
(not a problem) then I want to get
, June 28, 2003 8:50 PM
Subject: [OT] JavaScript Function?
Is there some kind of function that enables me to load an include or
other file that contains specific JavaScript?
Not wanting to replace the current page, I just want to do the
following;
Page loads, script checks to see if any forms
function attached to
the continue button. I'm trying to pass the value of the selected
radiobutton through a javascript function onto the next page which loads in
the same frame.
HERE'S THE CODE:
The javascript function:
SCRIPT LANGUAGE=JavaScript
function loadFrames(frame1
Hi,
Could anyone give me advice on the following function?
Ive got 2 Select boxes with Years as the value for each,so that the user
can pick dates from to etc.
ie From select name=YearFrom 1999 up to 2030
to select name=YearTo1999 up to 2030
what i require is a function
To: CF-Talk
Subject: JavaScript Function
Hi,
Could anyone give me advice on the following function?
Ive got 2 Select boxes with Years as the value for each,so that the user
can pick dates from to etc.
ie From select name=YearFrom 1999 up to 2030
to select name=YearTo1999 up to 2030
I don't know exactly how to do this, but I'm a big fan of preventing wrong
entry in the first place. You should be able to, when the YearFrom is
selected, rewrite the contents of the YearTo select box to begin at the
YearFrom selected. This way, it would be impossible to overlap. Just a
thought.
.);
}
}
/script
-Original Message-
From: Jerry Staple [mailto:[EMAIL PROTECTED]]
Sent: July 23, 2001 8:56 AM
To: CF-Talk
Subject: JavaScript Function
Hi,
Could anyone give me advice on the following function?
Ive got 2 Select boxes with Years as the value for each,so that the user
can
Thanks Tony! great Job!
All the Best
Jerry
-Original Message-
From: Tony Schreiber [mailto:[EMAIL PROTECTED]]
Sent: 23 July 2001 15:58
To: CF-Talk
Subject: Re: JavaScript Function
I don't know exactly how to do this, but I'm a big fan of preventing
wrong
entry in the first place
Hi,
Could anyone inform me of any javascript function that takes the total
of numbers entered into a textbox and displays them in another? eg
form name=form1
Item a = 2 (number in text box)
Item b = 3
Item c = 4
Total = 9 (this total is generated by adding the items in the textboxes
above
Here's something that I recently did:
script language=Javascript
function AddMe()
{
var total;
total = 0;
num1 = parseInt(form1.number1.value);
if (isNaN(num1) == 0) {
total = total + num1;
}
num2 = parseInt(form1.number2.value);
if (isNaN(num2) == 0) {
total = total + num2;
}
num3
hi,
in my form, i have several fields to display price in TEXTFIELD
INPUT TYPE="TEXT" VALUE=""
The value will be set via a Javascript function when event "onclick"
occurs.
2 questions:
1) how do i format the number into a dollar format (2 decimal places)
usi
al Message -
From: "Hong" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Tuesday, October 10, 2000 5:49 PM
Subject: OT: javascript function
hi,
in my form, i have several fields to display price in TEXTFIELD
INPUT TYPE="TEXT" VALUE=""
The valu
I can't remember who I talked with before, but I got assistance on
launching a new window with my data and prompting the user whether they
wanted to print the screen. What I am using works, but it double prompts
me for printing and I am not sure why. Here is my code.
SCRIPT LANGUAGE="JavaScript"
ce.
I bet the first doit makes no differnce as to whether it prints or not.
do something like this:
SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"
!--
function doit
{
return confirm("Send summary data to a new screen to print?");
}
if (doit)
]]
Sent: Thursday, August 10, 2000 12:05 PM
To: [EMAIL PROTECTED]
Subject: Printing with Javascript function
I can't remember who I talked with before, but I got assistance on
launching a new window with my data and prompting the user whether they
wanted to print the screen. What I am using works
Hi James
You have called doit twice.
I bet the first doit makes no differnce as to whether it prints or not.
do something like this:
SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"
!--
function doit
{
return confirm("Send summary dat
, 2000 2:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Printing with Javascript function
Tried the code, but did not print. So what I did was start from scratch
with what I thought would work right, but it still double prompts me,
once when the window is first open and then a second time after
I have a form containing a pulldown menu. I need this form to send the user
to a different place according to what they choose. I'm trying to use
ONSUBMIT to call a javascript function that will look at the value on the
pulldown menu and send a variable containing the url back to the submit
;page12.html" -Products amp; Prices
OPTION VALUE="page13.html" -Internet Ordering
OPTION VALUE="page14.html" -Order Form
/SELECT
/FORM
/BODY
/HTML
At 5:28 PM -0500 8/8/00, Kim Ahlbrandt wrote:
I have a form containing a pulldown menu. I need
24-1004 ext 361
[EMAIL PROTECTED] [EMAIL PROTECTED]
icq: 5202487 aim: lv2bounce
http://www.cs.odu.edu/~bader
-Original Message-
From: Dick Applebaum [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, August 08, 2000 7:18 PM
To: [EMAIL PROTECTED]
Subject: Re: pas
Yes it will successfully execute a non js href
(href="http://www.thissite.com") but it will not do:
href="javascript:window.open()"
Date: Wed, 19 Jul 2000 12:44:11 -0600
From: "Don Vawter" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: setting an href to call
Hi, I'm trying to use CFTree selections to populate a select box. Currently
the form that has the select box has an add button, this button opens the
cftree in a pop-up window. I'm trying to do something along the lines of:
href="javascript:window.open()"
as an example (I don't want it to
ting an href to call a javascript function
Hi, I'm trying to use CFTree selections to populate a select box.
Currently
the form that has the select box has an add button, this button opens the
cftree in a pop-up window. I'm trying to do something along the lines of:
href="javascript:window.o
50 matches
Mail list logo