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)){
For this, pretend that the contents of the iframe actually resides in a
different browser window.
When you click on bn1, you are changing the computers focus to a different
window. So all other commands, without using the mouse to change to the
other window, will only effect that window.
I
Thank you, William, this did what I need (I'm embarrassed), on user behavior,
yes, expect it this way but you never know what user would do even given
sufficient instructions. Don
For this, pretend that the contents of the iframe actually resides in a
different browser window.
When you click
_
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
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
HIDE: document.getElementById('idOfElement').style.display='none'
SHOW: document.getElementById('idOfElement').style.display='block'
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent:
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
-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 on
Pop-up blocker in your browser? Did you update anything recently having
nothing to do with the code?
Make a link with the following code:
a href=##
Onclick=alert( openCalWin_#attributes.target# );
Debug FN Call/a
This will alert the function that is actually being called. You should
see actual
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
Use the title attribute for the tool tip
If you are wanting the actual text on the button changed.. use
Onmouseover=this.value='Mouse On Danielson'; OnMouseout=this.value='Mouse
Off Danielson';
-Original Message-
From: Andy Ousterhout [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 14,
Thanks.
-Original Message-
From: Ewok
Use the title attribute for the tool tip
If you are wanting the actual text on the button changed.. use
Onmouseover=this.value='Mouse On Danielson'; OnMouseout=this.value='Mouse
Off Danielson';
-Original Message-
From: Andy Ousterhout
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
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.
Shawn
-Original Message-
From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
Sent:
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
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]
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
You are missing function at the beginning of your function
declaration.
Also, I suppose you want to hide the related table if you click a second
time. What you have there will show the table, but never hide it.
function toggleDrillDown(x){
if(document.getElementById(x).style.display == 'block'){
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
oh by all means...
:)
there is mad code around for this...here is one..
http://_javascript_.internet.com/generators/popup-window.html
tony
r e v o l u t i o n w e b d e s i g n
[EMAIL PROTECTED]
www.revolutionwebdesign.com
its only looks good to those who can see bad as well
-anonymous
Weeg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 February 2004 1:39 PM
To: CF-Talk
Subject: RE: JS Question
oh by all means...
:)
there is mad code around for this...here is one..
http://_javascript_.internet.com/generators/popup-window.html
tony
r e v o l u t i o n w e b d e s i g n
, February 16, 2004 10:14 PM
To: CF-Talk
Subject: RE: JS Question
Tony,
Thanks, but I can do that already. I was looking for code that would
allow me to modify the existing open window!
Regards
Andrew Scott
Technical Consultant
NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205
0485-Fax: 03 9699 7976
_
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 February 2004 2:21 PM
To: CF-Talk
Subject: RE: JS Question
what existing opening window?
got the code?
tony
r e v o l u t i o n w e b d e s i g n
[EMAIL PROTECTED]
www.revolutionwebdesign.com
its only
To: CF-Talk
Subject: RE: JS Question
Existing OPEN window.
In other words I have a window that is open, I want to control certain
aspects of that window like remove the title bar and status bar etc.
Regards
Andrew Scott
Technical Consultant
NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne
what existing opening window?
got the code?
I think he means the current browser window
I don't think you can turn off the status bar in IE, but you can in
Netscape, you'll have to change them when the window is opened if you're
using IE
[Todays Threads]
[This Message]
[Subscription]
Don't think you can do that. That would be incredibly annoying. You can only
control windows your app actually opens.
-Original Message-
From: Andrew Scott [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 February 2004 3:26 p.m.
To: CF-Talk
Subject: RE: JS Question
Existing OPEN window
I don't think you can turn off the status bar in IE, but you
can in Netscape, you'll have to change them when the window
is opened if you're using IE
Actually, you can on an opened window, but not a default one
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User
try this
newCell.onMouseMove= new function('doThis()')
HTH
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 11:10 AM
To: CF-Talk
Subject: js
to add new functions on the fly use this format
obj.event = function() {foo(goo)};
for example:
v.onblur=function() {checkBool(this)};
and in your case
newCell.onMouseMove=function() {doThis()};
should work.
Note that 'function()' above is not a specific function, this is the command syntax.
//newCell.onMouseOver = new function('doThis()');
I get an 'Expected Identifier' error when trying that Ian,
Win XP, IE 6.
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: 10 September 2003 19:19
To: CF-Talk
Subject: RE: js question
try this
newCell.onMouseMove= new
, September 10, 2003 11:28 AM
To: CF-Talk
Subject: RE: js question
//newCell.onMouseOver = new function('doThis()');
I get an 'Expected Identifier' error when trying that Ian,
Win XP, IE 6.
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: 10 September 2003 19:19
//newCell.onMouseOver = function() {doThis()}
Thanks Doug,
but that doesn't do anything either, no error though.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 10 September 2003 19:24
To: CF-Talk
Subject: RE: js question
to add new functions on the fly use
with simple then move up to your need, my
philosophy, especially with javascript.
Doug
-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 2:37 PM
To: CF-Talk
Subject: RE: js question
//newCell.onMouseOver = function() {doThis()}
Thanks
newCell.onMouseMove=doThis;
--
jon
mailto:[EMAIL PROTECTED]
Wednesday, September 10, 2003, 2:09:38 PM, you wrote:
JM Hi,
JM I You can dynamically create tr and td elements on the fly,
JM like,
JM var newRow=cell_root_table.insertRow(0)
JM then add attributes like,
JM newRow.vAlign='top'
newCell.onMouseMove='doThis()',
Try this:
newCell.onMouseMove=doThis;
function doThis() {
..
}
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription:
i have tried
oForm.apple.validateAtLeastOne(banana);
oForm.orange.validateAtLeastOne(watermelon);
oForm.grape.validateAtLeastOne(apple,orange,banana,watermelon);
with mixed results..
always 1 selection that leave to many selcted or not anough...
oh well.
going home.
-paul
- Original Message -
From: Bruce Sorge [EMAIL PROTECTED]
Say,
I have this enter image that looks like this:
a href=javascript:document.ViewerInfo.submit();img
src=images/EnterButton.gif border=0
What I want to do is to also be able to call my form validation JavaScript
when the user
Stick them all in a container div and make it invisible?
-Original Message-
From: webguy [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 14:04
To: CF-Talk
Subject: JS question / DOM hiding all elements in square area
I want to hide all elements in a region (ie5+, nn6+)
So I have these
No can't do that, there maybe any elements in the region..
WG
-Original Message-
From: Craig Dudley [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 13:58
To: CF-Talk
Subject: RE: JS question / DOM hiding all elements in square area
Stick them all in a container div and make it invisible
webguy wrote:
I want to hide all elements in a region (ie5+, nn6+)
So I have these pixel values for the region
left,top,weight,height
What the easiest way to do this ?
Create an empty div and apply a style to give it the right size,
position and z-index.
Jochem
]
Sent: 02 June 2003 14:21
To: CF-Talk
Subject: Re: JS question / DOM hiding all elements in square area
webguy wrote:
I want to hide all elements in a region (ie5+, nn6+)
So I have these pixel values for the region
left,top,weight,height
What the easiest way to do this ?
Create an empty div
: webguy [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, June 02, 2003 9:29 AM
Subject: RE: JS question / DOM hiding all elements in square area
That won't work either, I need to hide selects in this region. Due to an
issue in IE, select box show though divs, no matter what z-index
June 2003 14:11
To: CF-Talk
Subject: RE: JS question / DOM hiding all elements in square area
No can't do that, there maybe any elements in the region..
WG
-Original Message-
From: Craig Dudley [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 13:58
To: CF-Talk
Subject: RE: JS question / DOM
This works for me np.
div style=visibility: hidden;
select
option value=11
/select
/div
-Original Message-
From: webguy [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 14:30
To: CF-Talk
Subject: RE: JS question / DOM hiding all elements in square area
That won't work either, I need
Michael Tangorre wrote:
using style sheets and JS events if needed change the visibility
property. I forget the list of elements you can apply this to, but I
am sure the table, tr, td, div, span work.
visibility: hidden;
That is the easy part. But unless you have hardcoded window size, font
' ( or visible)
for each of them
anyone know of any code to do this?
Thansk WG
-Original Message-
From: Michael Tangorre [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 14:28
To: CF-Talk
Subject: Re: JS question / DOM hiding all elements in square area
using style sheets and JS events
:47
To: CF-Talk
Subject: RE: JS question / DOM hiding all elements in square area
I know how to hide elements, in fact I know how to everything
I need, but I'd prefer to use some code thats been tested etc .
Basically the functionality is
given top,left,width, and height , figure out
Okayeverytime I say something like this I can feel the cringe running
through the community! *L*
But here goes, this has been a very helpful guide for me in developing code
to solve this problem. This is an IE specific solution but you will get the
idea of what is being done to implement
To: CF-Talk
Subject: RE: JS question / DOM hiding all elements in square area
Why not have a hidden layer that is *not* transparent and toggle that on
to hide the area and toggle it off to display it you could fill it
with a solid image that will definitely hide the contents
DC
-Original
Hi webguy... cheers for the link will keep it in mind when I get
round to doing something like that and am tearing my hair out wishing
that I had taken more note of this conversation!
Hopes you get a result on this :-)
~|
code if you think this would work and I got it working in
N4+ from memory :-)
-Original Message-
From: webguy [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 15:01
To: CF-Talk
Subject: RE: JS question / DOM hiding all elements in square area
Again a solid image in a div will still
Subject: RE: JS question / DOM hiding all elements in square area
I know how to hide elements, in fact I know how to everything I need, but
I'd prefer to use some code thats been tested etc .
Basically the functionality is
given top,left,width, and height , figure out the elements of type select
]
Sent: 02 June 2003 15:04
To: CF-Talk
Subject: RE: JS question / DOM hiding all elements in square area
I want to hide all elements in a region (ie5+, nn6+)
That won't work either, I need to hide selects in this region. Due to an
issue in IE, select box show though divs, no matter what z-index
is active?
-Original Message-
From: webguy [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 15:26
To: CF-Talk
Subject: RE: JS question / DOM hiding all elements in square area
Basically I want to copy the functionality that coolmenus
http://www.dhtmlcentral.com/projects/coolmenus/
does to hide
Ironically.that example at DHTMLCentral does not work.
http://www.dhtmlcentral.com/projects/webcronize/examples/hide_selecboxes_and_form_example.html
Another thoughthow about placing the element on a div then resizing the
div (using the clip attribute), that would hide the element
15:26
To: CF-Talk
Subject: RE: JS question / DOM hiding all elements in square area
Basically I want to copy the functionality that coolmenus
http://www.dhtmlcentral.com/projects/coolmenus/
does to hide selects, when a menu opens over them.
The bit of code I want is just give me all then element
[mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 16:21
To: CF-Talk
Subject: RE: JS question / DOM hiding all elements in square area
This works in ie6, I assume it will work in any DOM Level 2 compliant
browser,
script
function hide(){
elements = document.getElementsByTagName('select');
for (var i
Nope, it doesn't.
getElementsByTagName returns a node list (array), hence the loop.
-Original Message-
From: webguy [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 16:41
To: CF-Talk
Subject: RE: JS question / DOM hiding all elements in square area
Yes that will hide all selects
){
document.getElementById[divId][i].style.visibility = 'hidden';
}
function showSelect(i){
document.getElementById[divId][i].style.visibility = 'visible';
}
-Original Message-
From: webguy [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 16:41
To: CF-Talk
Subject: RE: JS question / DOM hiding all
:-)
Thanks All
WG
-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 16:53
To: CF-Talk
Subject: RE: JS question / DOM hiding all elements in square area
//In fact this would probably hide ALL selects on a page
//document.getElementsByTagName('select
are looking for?
-Original Message-
From: webguy [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 17:22
To: CF-Talk
Subject: RE: JS question / DOM hiding all elements in square area
OK thanks everyone, but I think I didn't ask the question correctly!!
It is true you can usually stick
,
http://www.andronics.co.uk
we went with a re-design that kept everything away from that damn menu,
we stuck in large gifs to take up the menu real-estate.
-Original Message-
From: webguy [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 17:22
To: CF-Talk
Subject: RE: JS question / DOM hiding all
WG, check out:
http://www.milonic.co.uk/menu/
This is a self-contained js menu solution that should satisfy your geekiness
(excuse me, nerdiness). There is a setting that you set inside the
configuration portion of the js file that allows the menu to hide elements
underneath it. If you still
Tell it to Microsoft... :)
My suggestion would be to kill the selects and go with a dhtml
lookalike dropdown. You can maintain the separation between your UI
elements, without getting crazy with detecting where your elements are
onscreen.
--
jon
mailto:[EMAIL PROTECTED]
Monday, June 2,
This solution has only been tested in IE 6. There are a few little quirks in
it because of the implementation but I didn't spend too much time cleaning
it up
http://www.islandwizards.com/tests/dhtml/simplemenu_selects.cfm
HTH
Donnie Bachan
Phone: (718) 217-2883
ICQ#: 28006783
Nitendo
document.formname.blah[document.formname.blah.selectedIndex].text
- Original Message -
From: Ewok [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, May 31, 2003 2:42 AM
Subject: OT: js question
im trying to get the displayed text from a select field (not the value)
never mind : )
document.formname.blah.options[document.formname.blah.selectedIndex].text;
- Original Message -
From: Ewok [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, May 31, 2003 1:42 AM
Subject: OT: js question
im trying to get the displayed text from a select
-Original Message-
From: Ewok [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 31, 2003 1:42 AM
To: CF-Talk
Subject: OT: js question
im trying to get the displayed text from a select field (not the value)
select name=blah size=1
option value=1Option One/option
/select
I know
thanks Kwang :)
- Original Message -
From: Kwang Suh [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, May 30, 2003 11:09 PM
Subject: Re: js question
document.formname.blah[document.formname.blah.selectedIndex].text
- Original Message -
From: Ewok [EMAIL
actually document.blah.formname.value was returning the value of the
selected index fine..
nice explantion though thanks
- Original Message -
From: Charlie Griefer [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, May 30, 2003 11:14 PM
Subject: RE: js question
No problem, even though I forgot the options part :)
- Original Message -
From: Ewok [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, May 31, 2003 3:12 AM
Subject: Re: js question
thanks Kwang :)
- Original Message -
From: Kwang Suh [EMAIL PROTECTED]
To: CF
CheckQty(this)
function CheckQty(that) {
that.value ...
}
-Justin Scott
- Original Message -
From: Emmet McGovern [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 9:54 AM
Subject: js question
I am calling a function onBlur of a text field... to
I'd use an onClick event in the link with 2 window.open functions seperated
by ;
Bryan Stevenson B.Comm.
VP Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]
-
Macromedia Associate
onClick=LaunchWindows();
Then have a JS Function:
function LaunchWindows() {
var win1 = window.open(www.firstwindow.com,Window1);
var win2 = window.open(www.secondwindow.com,Window2);
}
[EMAIL PROTECTED] 12/10/02 02:25PM
I'd use an onClick event in the link with 2 window.open functions
yeah...I'm kinda looking for a code example/tweak.
My code automatically loads the two windows.
I want it to work when a user clicks a link...see below.
--
SCRIPT LANGUAGE=JavaScript!--
function myOpen(url,name) {
var handle = window.open(url,name);
}
var window1 =
that was it.
thanks to all who responded.
-Original Message-
From: Randell B Adkins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 2:30 PM
To: CF-Talk
Subject: Re: JS Question...
onClick=LaunchWindows();
Then have a JS Function:
function LaunchWindows() {
var win1
i am just trying to get my head around a problem before i move on.
on the form here i can grab my 'PrintPlotNum'
which is the Num_Origionals*Num_EachSet
then i select a price. Print_Type_ID * it by 'PrintPlotNum'
to get my 'PrintPrice'
no if i change either Num_Origionals OR Num_EachSet
that's similar to what i have in the htm file at the bottom
but it doesn't do it
-paul
__
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
FAQ:
that's similar to what i have in the htm file at the bottom
but it doesn't do it
Paul,
Do you have a link to the code?
Ben Johnson
Hostworks, Inc.
__
Structure your ColdFusion code with Fusebox. Get the official
just paste it into a htm file
- test.htm -
!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'
html
head
titlemath/title
script language='JavaScript'
function TotalNum_Origionals() // this from below gets passed as obj
{
var total = 0;
var amtNum_Origionals =
Paul,
Your problem is that you're passing a reference in the onChange event to
TotalPrintPrice() but not in the onChange event of the text boxes. Take out
the this from your select box's onChange event and make references to the
select box directly in your JS function.
Ben Johnson
ok
i was able to do this...
seems to work.
but question for you guru's out there.
isn't this kind of Bloated?
shouldn't there be a way to do this with less code?
thanks.
-paul
!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'
html
head
titlemath/title
script
I've looked into doing the same thing. I haven't found a
good way to disable the element, so what I did was create
an image object in JS of an grayed out element and used
layers to place it until I wanted to enable it. Then I
would just use the layer to replace the image with the
desired
Here is a little snippet I use for this, I don't believe it works for NS4
though. It does work in IE?/NS6...
So you could add an onchange event to your select box, and if the selected
option means that your text field needs to be disabled, fire off your
toggleEdit()...
function toggleEdit() {
oops, I accidentally posted this reply under the wrong subject! Here it is
again...
..
I have a form that, if a user selects a specific item from a select list,
then the next section of the form is grayed out, and the required attributes
are no longer required. I know how to by-pass the
, 2002 12:58 PM
To: CF-Talk
Subject: RE: JS Question
oops, I accidentally posted this reply under the wrong subject! Here it is
again...
.
I have a form that, if a user selects a specific item from a select list,
then the next section of the form is grayed out, and the required attributes
Bruce,
Complete shot in the dark, but could there be a limit to the length a form
name can have in JS? Have you tried document.forms[0].submit() instead? By
the way, forms[0] assumes that there is only one form on the page.
Again, just a guess, but a troubleshooting technique nonetheless.
-
From: Dave Carabetta [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, February 04, 2002 10:08 PM
Subject: Re: JS Question
Bruce,
Complete shot in the dark, but could there be a limit to the length a form
name can have in JS? Have you tried document.forms[0].submit() instead
1 - 100 of 114 matches
Mail list logo