How could i Validate a select box so that the user has to change the field? i have tried this objForm.Project_Leader_ID.validateExp("parseInt(this.value) NEQ...
548
Dan G. Switzer, II
dswitzer@...
Oct 1, 2001 8:59 pm
Paul, I'm not sure I'm clear on what you're trying to do. Are trying to make sure that the select box is not equal to the default value? (i.e. You're trying to...
549
Seth Petry-Johnson
seth@...
Oct 1, 2001 9:01 pm
... field? ... It looks like you're getting your ColdFusion syntax, SQL syntax, and JavaScript syntax confused. qForms is entirely JavaScript based, so any ...
550
Paul Ihrig
pihrig@...
Oct 1, 2001 9:03 pm
yep i am trying to make sure the user makes a change to the select box. hehe... been reading all the documentation, you have. still not clicking -paul ... ...
551
Dan G. Switzer, II
dswitzer@...
Oct 1, 2001 9:08 pm
Paul, Then what I'd do is something like: objForm.Project_Leader_ID.validateExp("this.value != this.defaultValue"); In order to ensure the validation rule is...
552
Paul Ihrig
pihrig@...
Oct 1, 2001 9:16 pm
Seth, Dan thanks, but i am still not able to get it to work this is what i have & what i have tried.. if you have any ideas, please let me know. i have a huge...
553
Paul Ihrig
pihrig@...
Oct 2, 2001 12:04 pm
This is what i have. which doesn't work -paul <cfinclude template="Connections/Project_Set_Up.cfm"> <cfquery name="rs_Employees"...
554
Dan G. Switzer, II
dswitzer@...
Oct 2, 2001 12:59 pm
Paul, Instead of sending the CFML, can you send the compiled HTML that the browser sees? It's awful hard to produce the results you're viewing since we don't...
555
Paul Ihrig
pihrig@...
Oct 2, 2001 1:16 pm
sure. now it is doing the opposite of what i want hehe if i leave it at its default, it is fine, if i change the value to my name=15 then it highlight it &...
556
Dan G. Switzer, II
dswitzer@...
Oct 2, 2001 1:21 pm
Paul, I made a mistake in the message I sent you yesterday, instead of thinking out the question, I just responded w/the logic that was in front of me. Here's...
557
Paul Ihrig
pihrig@...
Oct 2, 2001 1:27 pm
Thanks Dan! Very Cool. now if i can just learn this! i could use it on every thing i have ever built! appreciate your good work. -paul...
558
Aaron Rouse
jsjive@...
Oct 2, 2001 2:21 pm
I am using the populate() function to populate some select boxes on my form when it is loaded and am curious if I am using the correct method to do this or...
559
Dan G. Switzer, II
dswitzer@...
Oct 2, 2001 2:51 pm
Aaron, Absolutely, that's one of the purposes of using the populate() method. Once you get use to creating data structures and populating them via JS, I find...
560
Aaron Rouse
jsjive@...
Oct 2, 2001 3:13 pm
I noticed by doing it via JS instead of making each option tag, I would save roughly 1k per Year drop down in the browsers source size. I am curious if there...
561
Dan G. Switzer, II
dswitzer@...
Oct 2, 2001 3:33 pm
Aaron, That's one of the key points of using an OO approach to qForms. If you look at the code that tags such as the <CF_TwoSelectsRelate> output, all the code...
562
Paul Ihrig
pihrig@...
Oct 2, 2001 3:38 pm
Hello Dan. Are you planning on creating more example of qForms? i know that you are extremely busy it would be difficult to show an example of each problem...
563
Seth Petry-Johnson
seth@...
Oct 2, 2001 3:57 pm
... One of the problems with giving demos of an API like this is that the API can be used in so many different ways that trying to provide demos of all of them...
564
Aaron Rouse
jsjive@...
Oct 2, 2001 4:07 pm
I have to agree on that method of learning. The few examples online were a great means to a jump start on the learning curve and then help from this list has...
565
Paul Ihrig
pihrig@...
Oct 2, 2001 4:10 pm
ok, that's cool. wasn't sure. just seems to be rather difficult to get this thing to click in my old noodle. -paul...
566
Seth Petry-Johnson
seth@...
Oct 2, 2001 4:21 pm
... If you don't have any experience with object oriented development then the learning curve will be a bit steeper for you than it was for me. Don't worry...
567
Paul Ihrig
pihrig@...
Oct 2, 2001 8:56 pm
after going through this ugly over bloated form, i have come to an impasse. i was using CF_TwoSelectsRelated which initially worked well. but now trying to...
568
Dan G. Switzer, II
dswitzer@...
Oct 2, 2001 9:31 pm
Paul, The thing I think you'll find once you start using qForms, is that it becomes much easier to maintain and add functionality to your forms. Even if you...
569
PHU,JULIA (HP-Sunnyva...
julia_phu@...
Oct 3, 2001 4:04 am
It appears that I'm already in trouble. I use CF_TwoSelectsRelated on my form and haven't started to do INSERT statement yet. Furthermore, I'm still trying to...
570
Seth Petry-Johnson
seth@...
Oct 3, 2001 6:04 am
Its late, so its very possible I'm just suffering from exhaustion now... if the answer to my question is blatantly obvious to anyone reading this in the ...
571
Paul Ihrig
pihrig@...
Oct 3, 2001 12:02 pm
is it better to hard code the data in a structure on the page then it is to pull the info from 2 tables or so? In this example i am just doing a County to...
572
Paul Ihrig
pihrig@...
Oct 3, 2001 12:41 pm
hey Aaron. i appreciate the example you sent. but i have a few questions. on 2 selects related. i have not used structures, like this before. in an example i...
573
Dan G. Switzer, II
dswitzer@...
Oct 3, 2001 12:47 pm
Seth, There's a workaround to your dilemma: // define Field isRequired(); prototype function _Field_isRequired(){ // check for blank field if(...
574
Aaron Rouse
jsjive@...
Oct 3, 2001 1:39 pm
Strange, been seeing a lot of complaints about the twoselectsrelated tag lately. I have used that tag a good bit and never had a issue with pre-populating it...
575
Paul Ihrig
pihrig@...
Oct 3, 2001 1:53 pm
thanks i will try that in a minute. what i just did was t=his. but it doesn't loop the Countries. probably do to my where statement from the previous tag. ...
576
Aaron Rouse
jsjive@...
Oct 3, 2001 2:04 pm
You do not need to make the structures in CF and if you do then you would have to then convert them into a JS structure. Also on your countries within your...