Trigger the form serialization and AJAX form submission onchange and
then trigger the popup from the success callback to the AJAX call.
Are you doing this with vanilla.js or using a library like jQuery?
On 8/28/12 3:30 PM, Bruce Sorge wrote:
Can someone point me to a site or a sample of JS
Sorge [mailto:sor...@gmail.com]
Sent: Tuesday, August 28, 2012 6:30 PM
To: cf-talk
Subject: OT - JS Question
Can someone point me to a site or a sample of JS that does the following:
User enters first name, last name and birth date (birthdate is in a specific
format by using drop downs
Can someone point me to a site or a sample of JS that does the following:
User enters first name, last name and birth date (birthdate is in a specific
format by using drop downs and not free text).
Once the birth year has been selected, a query is triggered to check for the
existence of the
I have a form where I am adding administrators to a site. Site administrators
and resort administrators. Rather than have two separate forms for this I
thought that what I would do is when they are adding an admin, if they select a
resort admin, then another select list appears with a list of
Can you try this,
(parseInt(,10)||0)
Raj
Thanks for the suggestions but if I do this I get NaN (not a number I am
guessing).
parseInt(FOO,10);
parseInt(,10);
http://www.w3schools.com/jsref/jsref_parseInt.asp
var value = 15;
parseInt(value,10);
On Thu, Mar 4, 2010 at 1:37 PM, Chad Gray
Anyone know if there is an equivalent to CFs val() in Javascript?
I want to check a JS variable and set it to zero if it is blank.
Thanks
~|
Want to reach the ColdFusion community with something they want? Let them know
on
http://www.w3schools.com/jsref/jsref_parseInt.asp
var value = 15;
parseInt(value,10);
On Thu, Mar 4, 2010 at 1:37 PM, Chad Gray cg...@careyweb.com wrote:
Anyone know if there is an equivalent to CFs val() in Javascript?
I want to check a JS variable and set it to zero if it is blank.
parseInt might do the trick.
parseInt(var)
-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com]
Sent: Thursday, March 04, 2010 1:37 PM
To: cf-talk
Subject: OT JS question
Anyone know if there is an equivalent to CF's val() in Javascript?
I want to check a JS variable
Thanks for the suggestions but if I do this I get NaN (not a number I am
guessing).
parseInt(FOO,10);
parseInt(,10);
-Original Message-
From: Jake Churchill [mailto:reyna...@gmail.com]
Sent: Thursday, March 04, 2010 2:40 PM
To: cf-talk
Subject: Re: OT JS question
http
Ah I think I found one that will work
Number();
I will test it out.
Thanks for the help!
-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com]
Sent: Thursday, March 04, 2010 3:04 PM
To: cf-talk
Subject: RE: OT JS question
Thanks for the suggestions but if I do this I get
Hope this one is easy... how can I get the selected value from a form's
select box and then pass that value as a variable in a href? Can it be done
with an onClick event?
a onclick=*some js here*;
href=/account/index.cfm?mode=wishlistproductid=*js value here*Add to
Wishlist/abr /
Thanks, Che
not tested, but something like:
a href=# onclick=takeMeThere();Add to Wishlist/a
script type=text/javascript
function takeMeThere() {
var mySelectBox = document.getElementById('mySelectBox');
var productID =
mySelectBox.options[mySelectBox.selectedIndex].value;
[mailto:ch...@asitv.com]
Sent: Wednesday, September 16, 2009 3:54 PM
To: cf-talk
Subject: Simple JS question...
Hope this one is easy... how can I get the selected value from a form's
select box and then pass that value as a variable in a href? Can it be done
with an onClick event?
a onclick
Charlie/Duane... Thanks. That did the trick!
-Original Message-
From: Charlie Griefer [mailto:charlie.grie...@gmail.com]
Sent: Wednesday, September 16, 2009 3:02 PM
To: cf-talk
Subject: Re: Simple JS question...
not tested, but something like:
a href=# onclick=takeMeThere();Add
Hope this one is easy... how can I get the selected value from a form's
select box and then pass that value as a variable in a href? Can it be done
with an onClick event?
a onclick=*some js here*;
href=/account/index.cfm?mode=wishlistproductid=*js value here*Add to
Wishlist/abr /
The
Take this simple form snippet:
form action=searchResults.cfm
input name=searchField type=text value=#url.searchField#
a onmouseover=(window.status='Search...'); return(true);
href=javascript:location.href='searchResults.cfm?searchField=' +
document.top_search.searchField.value;img
Using JS, how can I replace all spaces with plus (+) signs? Can it be done
inline, or must I create a JS function?
You can use the escape function built into JavaScript; this is
analogous to URLEncodedFormat in CF.
http://www.w3schools.com/jsref/jsref_escape.asp
This won't replace spaces
[mailto:dwa...@figleaf.com]
Sent: Friday, July 31, 2009 3:37 PM
To: cf-talk
Subject: Re: Simple JS Question?
Using JS, how can I replace all spaces with plus (+) signs? Can it be
done inline, or must I create a JS function?
You can use the escape function built into JavaScript
Thanks Dave. In isn't quite working. What's interesting is that if I enter a
search term and then hit the enter key, I get the pluses in the url. If I
click the submit button with my mouse, I get the spaces between the search
term in the url.
If you hit enter, you're submitting the form. If
the
designer's layout functional.
~Che
-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com]
Sent: Friday, July 31, 2009 3:55 PM
To: cf-talk
Subject: Re: Simple JS Question?
Thanks Dave. In isn't quite working. What's interesting is that if I
enter a search term and then hit
Dave I would... but the actual example is a bit more complicated. Basically,
I'm using CSS to create a background image that sits under a form text box.
I then use a a href around a invisible spacer.gif to submit via a mouse
click. The site is complicated design wise... I'm only trying to
Thank you Dave... a simple solution indeed!
-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com]
Sent: Friday, July 31, 2009 4:25 PM
To: cf-talk
Subject: Re: Simple JS Question?
Dave I would... but the actual example is a bit more complicated.
Basically, I'm using CSS
I have this code that is assigning a JS function to the onClick events
of elements.
container.childNodes[i].onclick = openClose;
I would like to assign parameters so that the openClose function of
different elements function on specific items. I recoginize that this
syntax is not going to
I finally found the right combination of Google Search terms and
following other links to find at least one solution:
container.childNodes[i].onclick = function() {openClose('hello world')};
I would be interesting in hearing if there are other solutions or any
difficulties I might have with
Other solutions? Use JQuery or Ext Core for this type of binding. Makes
it very simple, and avoids any cross browser issues.
Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
Use JQuery and then check out the documentation on binding an event.
A classic example is passing the id to a function to identify that element
inside of the function:
$(#TheButton).bind(click,function(el){openClose( $(this).attr(id) )});
function openClose(el){
if($(el).is(.closed)){
I's an embarrasing js question, been on and off on js, pretty rusty with it...
I have an iframe for text data input, in the meantime, I have a button
(id=d2) that has an event trigger to open up another window to do
something else, once it is done for the pop-up window, when a user
goes back
...@yahoo.com]
Sent: Sunday, May 03, 2009 4:38 PM
To: cf-talk
Subject: js question - getting rusty
I's an embarrasing js question, been on and off on js, pretty rusty with
it...
I have an iframe for text data input, in the meantime, I have a button
(id=d2) that has an event trigger to open up
... evenTrigger2();document.getElementById('frm1').focus();
/
button id=bn3... evenTrigger3();document.getElementById('frm1').focus();
/
I's an embarrasing js question, been on and off on js, pretty rusty with
it...
I have an iframe for text data input, in the meantime, I have a button
(id=d2
_
From: s. isaac dealey [mailto:i...@turnkey.to]
To: cf-talk [mailto:cf-t...@houseoffusion.com]
Sent: Sat, 20 Dec 2008 16:25:01 -0500
Subject: Re: JS Question
I'm opening a popup on one page and want to close it on another page.
You can't do it, because the variable you created on one page
I think the reasoning is that upbar is not something that the popup
is called in the DOM rather it is a var that is defined as that
window. So when you go to close it in the non-opening page that upbar
isn't defined thus it doesn't know how or what to close.
Don't really know your solution since
I'm opening a popup on one page and want to close it on another page.
You can't do it, because the variable you created on one page to
reference the popup doesn't exist when you leave that page.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest
I'm opening a popup on one page and want to close it on another page.
You can't do it, because the variable you created on one page to
reference the popup doesn't exist when you leave that page.
That's true... although you might be able to get around that if you do
something really fancy
That's true... although you might be able to get around that if you do
something really fancy with frames or iframes and passing a window
reference around.
You would have to keep the page that created the variable; that page
could certainly be within a frameset or iframe. You could probably
I'm opening a popup on one page and want to close it on another page.
I'm opening it with this:
function progressWindow()
{
upbar = window.open(fileupload.htm,
upbar,status=1,scrollbars=no,resizable=no,width=320,height=130,top=280,le
ft=380);
}
Trying to close
Or $(#idofelement).toggle();
I'm having a tonne of fun with jQuery at the moment!
Adrian
-Original Message-
From: Josh Nathanson
Sent: 03 August 2007 17:25
To: CF-Talk
Subject: Re: JS Question Hide/Show Form Elements
HIDE: document.getElementById('idOfElement').style.display='none
We use Prototype. It works in just about everything we have thrown at it.
Eric
On 8/2/07, Che Vilnonis [EMAIL PROTECTED] wrote:
Anyone know of a JS that works on *most* browsers that will allow me to
hide/show sections of a form depending on what radio button is clicked?
I've
found a few,
: Thursday, August 02, 2007 2:53 PM
To: CF-Talk
Subject: OT: JS Question Hide/Show Form Elements
Anyone know of a JS that works on *most* browsers that will allow me to
hide/show sections of a form depending on what radio button is clicked? I've
found a few, but they don't seem to work with all browsers
HIDE: document.getElementById('idOfElement').style.display='none'
SHOW: document.getElementById('idOfElement').style.display='block'
Or in jQuery:
$(#idofelement).hide();
$(#idofelement).show();
-- Josh
~|
Get involved in
Anyone know of a JS that works on *most* browsers that will allow me to
hide/show sections of a form depending on what radio button is clicked? I've
found a few, but they don't seem to work with all browsers. Sent at 2:52 PM
EST.
Thanks, Che
-Original Message-
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 02, 2007 2:53 PM
To: CF-Talk
Subject: OT: JS Question Hide/Show Form Elements
Anyone know of a JS that works on *most* browsers that will allow me to
hide/show sections of a form depending
Hey all,
I have an app that I am using a custom tag called cf_cal. it worked fine
yesterday, and now today it is not. Basicaly it has an image of a calendar
and when you click on the image, it opens a small windows with a calendar in
it. The call to the tag looks like this:
cf_cal formname=Page_1
ColdFusion Help?
www.bennadel.com/ask-ben/
-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 14, 2006 3:59 PM
To: CF-Talk
Subject: JS Question
Hey all,
I have an app that I am using a custom tag called cf_cal. it worked fine
yesterday, and now today
No popup blocker, custom tag has not been touched since yesterday (it worked
fine when I left work). Function names are fine. The code you sent did
nothing for me really. And I put an alert in the function, and nothing. So
at least now I know the function is not being called.
/ask-ben/
-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 14, 2006 4:39 PM
To: CF-Talk
Subject: Re: JS Question
No popup blocker, custom tag has not been touched since yesterday (it
worked fine when I left work). Function names are fine. The code you
:59:47 2006
Subject: RE: JS Question
Bruce,
When you say the function I gave you did nothing... You mean it didn't
even alert anything? You might have Javascript Disabled on the browser
some how.
...
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
Need
To: CF-Talk
Subject: RE: JS Question
Bruce,
When you say the function I gave you did nothing... You mean it didn't
even alert anything? You might have Javascript Disabled on the browser
some how.
...
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
Need
In our various site's stats, of several thousand daily users, 4% had
javascript disabled and 99.3% of those were crawlers. What are your
site's stats like?
Cutter
Denny Valliant wrote:
The only trouble with JavaScript is: what if it's turned off?
The isValid() and maybe hidden form fields
Denny Valliant said:
The only trouble with JavaScript is: what if it's turned off?
Then you fall back to server-side validation.
The isValid() and maybe hidden form fields would be safest.
I think.
Not the most UI friendly. In conjunction with some AJAX it
could be, tho.
And how is AJAX
On 5/2/06, Jochem van Dieten [EMAIL PROTECTED] wrote:
Denny Valliant said:
The only trouble with JavaScript is: what if it's turned off?
Then you fall back to server-side validation.
Indeed, if you remembered to do it. I've found lots of places
where their only validation is through JS.
-Original Message-
From: Eric J. Hoffman [mailto:[EMAIL PROTECTED]
Sent: 01 May 2006 00:19
To: CF-Talk
Subject: More of a JS Question/Forms
I know this isn't quite CF, but figure the folks around here have done this
easily.
I have two forms, and I just want to check if no value has been entered
--//-
-Original Message-
From: Eric J. Hoffman [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 30, 2006 6:19 PM
To: CF-Talk
Subject: More of a JS Question/Forms
I know this isn't quite CF, but figure the folks around here have done
this easily.
I have two forms, and I just want
: More of a JS Question/Forms
FORM.fieldnames is a built in variable containing a commadelimited list of
all of the FORM fields. You could loop over that and check to see if any/all
of the fields are empty.
!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED
-Talk
Subject: RE: More of a JS Question/Forms
FORM.fieldnames is a built in variable containing a commadelimited list of
all of the FORM fields. You could loop over that and check to see if any/all
of the fields are empty.
!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL
I have two forms, and I just want to check if no value has been entered
in either form, and pop to tell the user to enter something! So I can't
do a required field in my validation because they can fill in one of
three fields or more in one form, but not the other.
Eric,
While Charlie's
Wright [mailto:[EMAIL PROTECTED]
Sent: Monday, May 01, 2006 9:08 AM
To: CF-Talk
Subject: Re: More of a JS Question/Forms
I have two forms, and I just want to check if no value has been
entered in either form, and pop to tell the user to enter something!
So I can't do a required field in my
Eric J. Hoffman wrote:
I know this isn't quite CF, but figure the folks around here have done
this easily.
I have two forms, and I just want to check if no value has been entered
in either form, and pop to tell the user to enter something! So I can't
do a required field in my validation
The only trouble with JavaScript is: what if it's turned off?
The isValid() and maybe hidden form fields would be safest.
I think.
Not the most UI friendly. In conjunction with some AJAX it
could be, tho.
:D
On 5/1/06, Jochem van Dieten [EMAIL PROTECTED] wrote:
Eric J. Hoffman wrote:
I
I know this isn't quite CF, but figure the folks around here have done
this easily.
I have two forms, and I just want to check if no value has been entered
in either form, and pop to tell the user to enter something! So I can't
do a required field in my validation because they can fill in one of
give each form field a unique ID.
if ((document.getElementById('field1').value == )
(document.getElementById('field2').value == )) {
alert('foobar');
return false;
}
that's the basic/most straightforward way. there are some regex's for
JS that will also check to make sure there are
I would like to be able to display alternate text when a User Mouse Over's a
submit button and have the text displayed similar to how Alt Text works with
links. Now could I do this?
Andy
~|
Find out how CFTicket can increase
, 2005 11:27 AM
To: CF-Talk
Subject: JS Question
I would like to be able to display alternate text when a User Mouse Over's a
submit button and have the text displayed similar to how Alt Text works with
links. Now could I do this?
Andy
[mailto:[EMAIL PROTECTED]
Sent: Saturday, May 14, 2005 11:27 AM
To: CF-Talk
Subject: JS Question
I would like to be able to display alternate text when a User Mouse Over's a
submit button and have the text displayed similar to how Alt Text works with
links. Now could I do this?
Andy
beautiful use of JSStringFormat() Isaac!You know I
fought with errant '
and in my JS for like a year and a half before
discovering this function.
Now, doesn't the below creae an array of 3d arrays?A
true 3D array is nto
available like CF, IIRC.Anyhoo, I've used the below
approach also
-0400
Subject: RE: CF and JS question
To: CF-Talk [EMAIL PROTECTED]
beautiful use of JSStringFormat() Isaac!You know I
fought with errant '
and in my JS for like a year and a half before
discovering this function.
Now, doesn't the below creae an array of 3d arrays?A
true 3D array is nto
Actually, JS supports associative arrays also.So,
foo['apple'] =
fruit is perfectly fine.Hence the need for
JSStringFormat() when
creating these via CF, in case there's a ' or something.
Doug
Ahh... Well I've always just used Object() for that -- which is also
what cfwddx uses... I suspect
: Saturday, August 28, 2004 1:04 PM
To: CF-Talk
Subject: Re: CF and JS question
Actually, JS supports associative arrays also.So,
foo['apple'] =
fruit is perfectly fine.Hence the need for
JSStringFormat() when
creating these via CF, in case there's a ' or something.
Doug
Ahh... Well I've
.
Doug
- Original Message -
From: Jim Davis [EMAIL PROTECTED]
Date: Sat, 28 Aug 2004 14:11:16 -0400
Subject: RE: CF and JS question
To: CF-Talk [EMAIL PROTECTED]
In _javascript_ associative arrays are always Objects - doing new Object
always creates an associative array (or, more specifically
)#'] = '#JSStringFormat(rates.url)#';
/cfoutput
/cfoutput
/cfoutput
Doug
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 4:05 PM
To: CF-Talk
Subject: Re: CF and JS question
_javascript_ arrays are declared a bit differently than CF arrays
The array isnt really the problem, the problem is taking
the array and
populating the select statements.
some puesdocode
for i = 0 to taskArray.arrayLength
for j = 0 to taskArray.arrayDimension
if taskArray.[i,3] = 2
I ... don't think this syntax is correct...
I would expect to see
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 4:05 PM
To: CF-Talk
Subject: Re: CF and JS question
_javascript_ arrays are declared a bit differently than CF arrays.
try this:
var taskArray = new Array();
cfloop index=x from
, 2004 4:05 PM
To: CF-Talk
Subject: Re: CF and JS question
_javascript_ arrays are declared a bit differently than CF arrays.
try this:
var taskArray = new Array();
cfloop index=x from=1
to=#alltasks.recordcount#
taskArray[#x-1#] = new Array(
'#jsstringformat
You have an unnecessary extra loop... (the j loop)
for(i=0;itaskArray.length;i++){
if (taskArray[i][2] == actid)
document.write('option=' + taskArray[i][0] +
'brvalue=' + taskArray[i][1] + 'br');
}
s. isaac dealey954.927.5117
new epoch : isn't it time for a change?
add features without
hey Issac..
yeah I started using your code to generate the JS Array..
var taskArray = new Array();
cfoutput
cfloop index=x from=1
to=#alltasks.recordcount#
taskArray[#x-1#] = new Array(
'#jsstringformat(alltasks.task)#',
'#jsstringformat(alltasks.c_taskid)#',
that works.. I also had to add cfoutput and [x] within the loop.
the problem I'm running into now is that it's leaving the spaces empty
for(i=0;itaskArray.length;i++){
if (taskArray[i][2] == actid)
document.forms['laforma'].c_taskid.options[i] = new
Option(taskArray[i][0], taskArray[i][1]);
you will want to use a vairavle for matches like z
so z=0
loop
if match {
option[z].value;
z=z+1;
}
Code:
document.forms['laforma'].c_taskid.options.length = 0;
y = taskArray.length;
z=0;
for (x=0; xy; x++){ //loop the array if the id= the passed ID then
boom put itin the sub select
FINALLY!
I went with 2 arrays, 2 queries to populate the damn arrays using SQL
to check to see if c_activityid was 2 or 4.
It works..
On Fri, 27 Aug 2004 12:13:24 -0500, Greg Morphis [EMAIL PROTECTED] wrote:
that works.. I also had to add cfoutput and [x] within the loop.
the problem I'm
Sorry Adam, I didnt see your post.. I may go that route but
considering it's given me pains for the past 3 hours :) I think I'm
gonna do something else for a few minutes and calm myself down..
On Fri, 27 Aug 2004 12:42:45 -0500, Greg Morphis [EMAIL PROTECTED] wrote:
FINALLY!
I went with 2
oh yeah or you could look on Macromedia's dev exchange and look for
the UDF (maybe a tag) called 2 releated selects ;) I don't like the
way it is done in that tag though.
Adam H
On Fri, 27 Aug 2004 12:45:14 -0500, Greg Morphis [EMAIL PROTECTED] wrote:
Sorry Adam, I didnt see your post.. I may
well see I have 3 selects twice..
I'm already using the cf multi selects related once, and because of
the code behind that custom tag you cant use it twice on the same
page.
I'd already considered that ;)
On Fri, 27 Aug 2004 14:00:12 -0400, Adam Haskell [EMAIL PROTECTED] wrote:
oh yeah or you
well see I have 3 selects twice..
I'm already using the cf multi selects related once, and
because of
the code behind that custom tag you cant use it twice on
the same
page.
I'd already considered that ;)
Well you probably could, but if you're using an encrypted tag it would
require using
I'm trying to populate a JS two dimensional array using CF..
this is that I have so far
var taskArray = new Array(cfoutput#alltasks.recordcount#/cfoutput,3);
cfoutput query=alltasks
taskArray[#alltasks.task#,#alltasks.c_taskid#,#alltasks.c_activityid#];
/cfoutput
I look at the source and it seems
_javascript_ arrays are declared a bit differently than CF arrays.
try this:
var taskArray = new Array();
cfloop index=x from=1
to=#alltasks.recordcount#
taskArray[#x-1#] = new Array(
'#jsstringformat(alltasks.task)#',
'#jsstringformat(alltasks.c_taskid)#',
)#']['#JSStringFormat(rates.rateplan)#'
]['#JSStringFormat(rates.descr)#'] = '#JSStringFormat(rates.url)#';
/cfoutput
/cfoutput
/cfoutput
Doug
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 4:05 PM
To: CF-Talk
Subject: Re: CF and JS question
PROTECTED]
Sent: donderdag 10 juni 2004 0:02
To: CF-Talk
Subject: RE: JS Question
You are missing function at the beginning of your function
declaration.
No, I just included the necessary code to give you an idea of
what I was doing... or trying to do rather.
I got it now thought
I have a CFLOOP that outputs 10 tables. Think of the 10 tables as pairs of
5.
T1 / T2
T3 / T4
T5 / T6
T7 / T8
T9 / T10
There is a link in each top table (T1,T3,T5,T7,T9) that when clicked on
should display the table below it (T2,T4,T6,T8,T10 respectively.)
The HTML for the link is as
: Wednesday, June 09, 2004 9:46 AM
To: CF-Talk
Subject: SOT: JS Question
I have a CFLOOP that outputs 10 tables. Think of the 10 tables as pairs of
5.
T1 / T2
T3 / T4
T5 / T6
T7 / T8
T9 / T10
There is a link in each top table (T1,T3,T5,T7,T9) that when clicked on
should display the table below it (T2,T4
This looks like a case of mixing server side and client side
logic.Try dumping the values of the variables via a JS
alert() just before calling the getElementById.See if it's
what you are expecting.
Just a bad variable naming choice Not mixing it up. :-)
[Todays Threads]
[This
There is a link in each top table (T1,T3,T5,T7,T9) that when
clicked on should display the table below it (T2,T4,T6,T8,T10
respectively.)
The HTML for the link is as follows:
cfloop from=1 to=5 index=x
table
trtda href=""
return false;Company #x#/a/td/tr/table
table
Are you sure this code is inside a CFOUTPUT scope ?
CFLOOP does not imply that expressions between #...# are interpreted.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address:
This might be way too obvious to be your problem, but I don't
see any CFOUTPUT in that HTML.
I only included the important code... Left the gimmes off :-)
Mike
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Are you sure this code is inside a CFOUTPUT scope ?
CFLOOP does not imply that expressions between #...# are interpreted.
Positive... It's a JS thing for sure. All the #x# and other variables output
correctly when viewing the source.
Mike
[Todays Threads]
[This Message]
[Subscription]
trtda href=""
return false;Company #x#/a/td/tr/table
...
The JS is as follows:
toggleDrillDown(x){
You're passing in a string when you call the function, instead of the object
itself.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
toggleDrillDown(x){
You're passing in a string when you call the function,
instead of the object itself.
I'm with ya Dave.. However, when I pass in the object I get another error
saying ';' expected (even though all the ; are there
Passing in the object
'){
document.getElementById(x).style.display = 'none';
}
else{
document.getElementById(x).style.display = 'block';
}
}
-Original Message-
From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
Sent: woensdag 9 juni 2004 17:46
To: CF-Talk
Subject: SOT: JS Question
I have a CFLOOP
Your code modified a little.
Works on IE 6.0.
cfoutput
cfloop from=1 to=5 index=x
table
trtda href="" return false;Company #x#/a/td/tr
/table
table style=display:none; id=tbl#x# trimmed off .. #x# /table
/cfloop
SCRIPT language=_javascript_
//initialize to some unused value
You are missing function at the beginning of your function
declaration.
No, I just included the necessary code to give you an idea of what I was
doing... or trying to do rather.
I got it now thought... eval() was needed.
Mike
[Todays Threads]
[This Message]
[Subscription]
[Fast
I've got an application with a form containing several textareas.This
application is going to manage several thousand records, and the text in
these fields, on average from 100 to 200 characters, will all be entered by
hand.I'm looking for a way to ease the initial data entry by allowing a
user to
- Original Message -
From: Steve Nelson [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 2:51 PM
Subject: Re: OT: HTML Form Desgin w/JS Question
From the sounds of it, I don't think it'll require hidden frames. Sounds
like what you need is a global
- Original Message -
From: Jeremy Brodie [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 2:13 PM
Subject: Re: OT: HTML Form Desgin w/JS Question
I'd like to add that with the number of fields that you will have, you
need to think about categorizing
1 - 100 of 243 matches
Mail list logo