Search the web
Sign In
New User? Sign Up
qformsapi · qForms API: qForums
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 3947 - 3977 of 3977   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#3977 From: "Dan G. Switzer, II" <dswitzer@...>
Date: Thu Sep 3, 2009 6:21 pm
Subject: Re: Error on Opera - The _validateExp0 validator has already been loaded.
dswitzer2
Offline Offline
Send Email Send Email
 
Mary Jo,

Why not just change the expressions to a custom validation method since they're all doing the same thing.

-Dan

On Thu, Sep 3, 2009 at 11:18 AM, maryjos313 <lists@...> wrote:
Hi all, hope the list is still being used, although it's been awfully
quiet! Been wondering if further development on qForms has been
abandoned, but I still often use it and find it very useful. Recently we
ran into an issue on Opera that has us stumped. I have a page with
multiple qForms objects, each include the validate expression function.
These seem to throw an error on Opera. I tried giving each object a
unique name but that doesn't seem to make a difference. Any other ideas?
You can see the issue here:

http://www.cfwebstore.com/cfwebstorefb6/index.cfm/category/10/products-l\
isted-in-standard-layout.cfm


Thanks for any help!


---
Mary Jo Sminkey
maryjo@...



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/qformsapi/

<*> Your email settings:
   Individual Email | Traditional

<*> To change settings online go to:
   http://groups.yahoo.com/group/qformsapi/join
   (Yahoo! ID required)

<*> To change settings via email:
   mailto:qformsapi-digest@yahoogroups.com
   mailto:qformsapi-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
   qformsapi-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/



#3976 From: "maryjos313" <lists@...>
Date: Thu Sep 3, 2009 3:18 pm
Subject: Error on Opera - The _validateExp0 validator has already been loaded.
maryjos313
Offline Offline
Send Email Send Email
 
Hi all, hope the list is still being used, although it's been awfully
quiet! Been wondering if further development on qForms has been
abandoned, but I still often use it and find it very useful. Recently we
ran into an issue on Opera that has us stumped. I have a page with
multiple qForms objects, each include the validate expression function.
These seem to throw an error on Opera. I tried giving each object a
unique name but that doesn't seem to make a difference. Any other ideas?
You can see the issue here:

http://www.cfwebstore.com/cfwebstorefb6/index.cfm/category/10/products-l\
isted-in-standard-layout.cfm


Thanks for any help!


---
Mary Jo Sminkey
maryjo@...

#3975 From: "mattmanremote" <matt.widiger@...>
Date: Thu Jul 30, 2009 2:49 pm
Subject: Re: qForms and script.aculo.us/prototype
mattmanremote
Offline Offline
Send Email Send Email
 
Dean,

Thanks for your help and time in looking at the problem.  Unfortunately, I can't
change the name of the object because of other reasons relating to the platform
we are using.

I have solved the problem, though, in another way.

The form object name and other related information were being passed correctly
into QForms, so I was playing with its internals for a while.  The error kept
occuring on a statement that was trying to create a new Field object, which is
well-defined in QForms.  This didn't make sense to me until I realized that
there is also a Field object defined in the Prototype library.  I
double-checked, and yup: both libraries were defining objects named Field!  So I
hacked into QForms and changed Field object names to QFormField, restarted...and
it worked like a charm!

Moral of the story: JS needs namespacing.  :)

Thanks to all who tried to help, appreciate the time!

- M

--- In qformsapi@yahoogroups.com, Dean Lawrence <deanlaw@...> wrote:
>
> Matt,
>
> Sorry I wasn't able to get to this yesterday. Just change the field
> name to something different than "key". It is apparently conflicting
> with one of the libraries. As soon as I did this (I just used "keys"),
> the error went away.
>
> Dean
>
> On Tue, Jul 28, 2009 at 4:35 PM, mattmanremote<matt.widiger@...> wrote:
> > Hi Dean,
> >
> > Thanks for the offer to check it out!  I've managed to verify that both
modalbox (okonet.ru/projects/modalbox/ btw) and qForms work properly when
separated - this leads me to believe it's not a simple syntactical problem like
capitalization.  I can't post the production code, but I've broken it down into
a little test form, so:
> >
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> >
> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
> > <head>
> >
> > <title>Lightbox Test</title>
> >
> > <link rel="stylesheet" href="lib/modalbox.css" type="text/css"
media="screen" />
> >
> > <script language="JavaScript" type="text/javascript"
src="lib/qforms.js"></script>
> > <script language="JavaScript" type="text/javascript"
src="lib/qformsInit.js"></script>
> >
> > <script type="text/javascript" src="lib/prototype.js"></script>
> > <script type="text/javascript"
src="lib/scriptaculous.js?¬load=builder,effects"></script>
> > <script type="text/javascript" src="lib/modalbox.js"></script>
> >
> >
> > </head>
> > <body>
> > <a href="docs\terms.htm" title="Simple form"
onclick="Modalbox.show(this.href, {title: this.title, width: 600}); return
false;"><h1>Go to restricted content</h1></a>
> >
> > <form name="formSearch" method="POST" action="CheckKey.htm">
> >   <label for="key">Find a Specific Key: </label>
> >   <input type="text" value="" name="key" id="key">
> >   <input type="Submit" value="Search" name="Submit">
> > </form>
> >
> > <script language="JavaScript" type="text/javascript">
> > // initialize the qForm object
> > objForm = new qForm("formSearch");
> >
> > // make these fields required
> >
> > objForm.key.description="Key (or a part thereof)";
> > //objForm.key.required=true;
> > objForm.key.validateAlphaNumeric();
> > </script>
> >
> > </body>
> > </html>
> >
> > Thanks again!
> >
> > - M
> >
> > --- In qformsapi@yahoogroups.com, Dean Lawrence <deanlaw@> wrote:
> >>
> >> Matt, can you post your code? It is possible that you are using a
> >> reserved word for your field name. Also, have you checked to make sure
> >> that you have spelled everything correctly? JS being case-sensitive
> >> will give you fits if you have not used the exact same letter case for
> >> you variable names.
> >>
> >> Dean
> >>
> >>
> >> > Yes, that was the first thing I tried before posting here.  I've also
looked over the scriptaculous and prototype documentations to try and replicate
the qForms functionality, but that seems like a mammoth job to a relative
beginner in JS like me.
> >> >
> >> > HAS anyone tried this who would share further insight!  Thanks!
> >>
> >> __________________________________________
> >> Dean Lawrence, CIO/Partner
> >> Internet Data Technology
> >> 888.GET.IDT1 ext. 701 * fax: 888.438.4381
> >> http://www.idatatech.com/
> >> Corporate Internet Development and Marketing Specialists
> >>
> >
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>
>
>
> --
> __________________________________________
> Dean Lawrence, CIO/Partner
> Internet Data Technology
> 888.GET.IDT1 ext. 701 * fax: 888.438.4381
> http://www.idatatech.com/
> Corporate Internet Development and Marketing Specialists
>

#3974 From: Dean Lawrence <deanlaw@...>
Date: Wed Jul 29, 2009 8:38 pm
Subject: Re: Re: qForms and script.aculo.us/prototype
deanmlaw
Offline Offline
Send Email Send Email
 
Matt,

Sorry I wasn't able to get to this yesterday. Just change the field
name to something different than "key". It is apparently conflicting
with one of the libraries. As soon as I did this (I just used "keys"),
the error went away.

Dean

On Tue, Jul 28, 2009 at 4:35 PM, mattmanremote<matt.widiger@...> wrote:
> Hi Dean,
>
> Thanks for the offer to check it out!  I've managed to verify that both
modalbox (okonet.ru/projects/modalbox/ btw) and qForms work properly when
separated - this leads me to believe it's not a simple syntactical problem like
capitalization.  I can't post the production code, but I've broken it down into
a little test form, so:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
> <head>
>
> <title>Lightbox Test</title>
>
> <link rel="stylesheet" href="lib/modalbox.css" type="text/css" media="screen"
/>
>
> <script language="JavaScript" type="text/javascript"
src="lib/qforms.js"></script>
> <script language="JavaScript" type="text/javascript"
src="lib/qformsInit.js"></script>
>
> <script type="text/javascript" src="lib/prototype.js"></script>
> <script type="text/javascript"
src="lib/scriptaculous.js?¬load=builder,effects"></script>
> <script type="text/javascript" src="lib/modalbox.js"></script>
>
>
> </head>
> <body>
> <a href="docs\terms.htm" title="Simple form" onclick="Modalbox.show(this.href,
{title: this.title, width: 600}); return false;"><h1>Go to restricted
content</h1></a>
>
> <form name="formSearch" method="POST" action="CheckKey.htm">
>   <label for="key">Find a Specific Key: </label>
>   <input type="text" value="" name="key" id="key">
>   <input type="Submit" value="Search" name="Submit">
> </form>
>
> <script language="JavaScript" type="text/javascript">
> // initialize the qForm object
> objForm = new qForm("formSearch");
>
> // make these fields required
>
> objForm.key.description="Key (or a part thereof)";
> //objForm.key.required=true;
> objForm.key.validateAlphaNumeric();
> </script>
>
> </body>
> </html>
>
> Thanks again!
>
> - M
>
> --- In qformsapi@yahoogroups.com, Dean Lawrence <deanlaw@...> wrote:
>>
>> Matt, can you post your code? It is possible that you are using a
>> reserved word for your field name. Also, have you checked to make sure
>> that you have spelled everything correctly? JS being case-sensitive
>> will give you fits if you have not used the exact same letter case for
>> you variable names.
>>
>> Dean
>>
>>
>> > Yes, that was the first thing I tried before posting here.  I've also
looked over the scriptaculous and prototype documentations to try and replicate
the qForms functionality, but that seems like a mammoth job to a relative
beginner in JS like me.
>> >
>> > HAS anyone tried this who would share further insight!  Thanks!
>>
>> __________________________________________
>> Dean Lawrence, CIO/Partner
>> Internet Data Technology
>> 888.GET.IDT1 ext. 701 * fax: 888.438.4381
>> http://www.idatatech.com/
>> Corporate Internet Development and Marketing Specialists
>>
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>



--
__________________________________________
Dean Lawrence, CIO/Partner
Internet Data Technology
888.GET.IDT1 ext. 701 * fax: 888.438.4381
http://www.idatatech.com/
Corporate Internet Development and Marketing Specialists

#3973 From: "mattmanremote" <matt.widiger@...>
Date: Tue Jul 28, 2009 8:35 pm
Subject: Re: qForms and script.aculo.us/prototype
mattmanremote
Offline Offline
Send Email Send Email
 
Hi Dean,

Thanks for the offer to check it out!  I've managed to verify that both modalbox
(okonet.ru/projects/modalbox/ btw) and qForms work properly when separated -
this leads me to believe it's not a simple syntactical problem like
capitalization.  I can't post the production code, but I've broken it down into
a little test form, so:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<title>Lightbox Test</title>

<link rel="stylesheet" href="lib/modalbox.css" type="text/css" media="screen" />

<script language="JavaScript" type="text/javascript"
src="lib/qforms.js"></script>
<script language="JavaScript" type="text/javascript"
src="lib/qformsInit.js"></script>

<script type="text/javascript" src="lib/prototype.js"></script>
<script type="text/javascript"
src="lib/scriptaculous.js?¬load=builder,effects"></script>
<script type="text/javascript" src="lib/modalbox.js"></script>


</head>
<body>
<a href="docs\terms.htm" title="Simple form" onclick="Modalbox.show(this.href,
{title: this.title, width: 600}); return false;"><h1>Go to restricted
content</h1></a>

<form name="formSearch" method="POST" action="CheckKey.htm">
    <label for="key">Find a Specific Key: </label>
    <input type="text" value="" name="key" id="key">
    <input type="Submit" value="Search" name="Submit">
</form>

<script language="JavaScript" type="text/javascript">
// initialize the qForm object
objForm = new qForm("formSearch");

// make these fields required

objForm.key.description="Key (or a part thereof)";
//objForm.key.required=true;
objForm.key.validateAlphaNumeric();
</script>

</body>
</html>

Thanks again!

- M

--- In qformsapi@yahoogroups.com, Dean Lawrence <deanlaw@...> wrote:
>
> Matt, can you post your code? It is possible that you are using a
> reserved word for your field name. Also, have you checked to make sure
> that you have spelled everything correctly? JS being case-sensitive
> will give you fits if you have not used the exact same letter case for
> you variable names.
>
> Dean
>
>
> > Yes, that was the first thing I tried before posting here.  I've also looked
over the scriptaculous and prototype documentations to try and replicate the
qForms functionality, but that seems like a mammoth job to a relative beginner
in JS like me.
> >
> > HAS anyone tried this who would share further insight!  Thanks!
>
> __________________________________________
> Dean Lawrence, CIO/Partner
> Internet Data Technology
> 888.GET.IDT1 ext. 701 * fax: 888.438.4381
> http://www.idatatech.com/
> Corporate Internet Development and Marketing Specialists
>

#3972 From: Dean Lawrence <deanlaw@...>
Date: Tue Jul 28, 2009 5:56 pm
Subject: Re: Re: qForms and script.aculo.us/prototype
deanmlaw
Offline Offline
Send Email Send Email
 
Matt, can you post your code? It is possible that you are using a
reserved word for your field name. Also, have you checked to make sure
that you have spelled everything correctly? JS being case-sensitive
will give you fits if you have not used the exact same letter case for
you variable names.

Dean


> Yes, that was the first thing I tried before posting here.  I've also looked
over the scriptaculous and prototype documentations to try and replicate the
qForms functionality, but that seems like a mammoth job to a relative beginner
in JS like me.
>
> HAS anyone tried this who would share further insight!  Thanks!

__________________________________________
Dean Lawrence, CIO/Partner
Internet Data Technology
888.GET.IDT1 ext. 701 * fax: 888.438.4381
http://www.idatatech.com/
Corporate Internet Development and Marketing Specialists

#3971 From: "mattmanremote" <matt.widiger@...>
Date: Tue Jul 28, 2009 5:50 pm
Subject: Re: qForms and script.aculo.us/prototype
mattmanremote
Offline Offline
Send Email Send Email
 
--- In qformsapi@yahoogroups.com, "ashishnashikkar" <ashishnashikkar@...> wrote:
>
> --- In qformsapi@yahoogroups.com, "mattmanremote" <matt.widiger@> wrote:
> >
> > Good afternoon,
> >
> > Thank you so much for creating this library, it will be very useful!
> >
> > I wondered if anyone could help me with a problem I've been having.  I've
been trying to use qForms and Modalbox (based on script.aculo.us/prototype
framework), but there seems to be some conflict.  It throws "Object doesn't
support this action" on the _q_addField function, line "this[field]=new Field(o,
field, this._name);".
> >
> > I'm not a Javascript expert, I'm closer to beginner/novice but not total
noob, but this has completely stumped me.  Anyone care to comment?
> >
> > Thanks for any help in advance, I'm hoping to learn a lot here.
> >
> > M
> >
>
>
> A Simpla search on google might help u out!!!
>

Yes, that was the first thing I tried before posting here.  I've also looked
over the scriptaculous and prototype documentations to try and replicate the
qForms functionality, but that seems like a mammoth job to a relative beginner
in JS like me.

HAS anyone tried this who would share further insight!  Thanks!

#3970 From: "ashishnashikkar" <ashishnashikkar@...>
Date: Tue Jul 28, 2009 3:01 am
Subject: Re: qForms and script.aculo.us/prototype
ashishnashikkar
Offline Offline
Send Email Send Email
 
--- In qformsapi@yahoogroups.com, "mattmanremote" <matt.widiger@...> wrote:
>
> Good afternoon,
>
> Thank you so much for creating this library, it will be very useful!
>
> I wondered if anyone could help me with a problem I've been having.  I've been
trying to use qForms and Modalbox (based on script.aculo.us/prototype
framework), but there seems to be some conflict.  It throws "Object doesn't
support this action" on the _q_addField function, line "this[field]=new Field(o,
field, this._name);".
>
> I'm not a Javascript expert, I'm closer to beginner/novice but not total noob,
but this has completely stumped me.  Anyone care to comment?
>
> Thanks for any help in advance, I'm hoping to learn a lot here.
>
> M
>


A Simpla search on google might help u out!!!

#3969 From: "mattmanremote" <matt.widiger@...>
Date: Mon Jul 27, 2009 7:07 pm
Subject: qForms and script.aculo.us/prototype
mattmanremote
Offline Offline
Send Email Send Email
 
Good afternoon,

Thank you so much for creating this library, it will be very useful!

I wondered if anyone could help me with a problem I've been having.  I've been
trying to use qForms and Modalbox (based on script.aculo.us/prototype
framework), but there seems to be some conflict.  It throws "Object doesn't
support this action" on the _q_addField function, line "this[field]=new Field(o,
field, this._name);".

I'm not a Javascript expert, I'm closer to beginner/novice but not total noob,
but this has completely stumped me.  Anyone care to comment?

Thanks for any help in advance, I'm hoping to learn a lot here.

M

#3968 From: "Derrick Jackson" <derrick.jackson73@...>
Date: Thu Jan 8, 2009 5:26 pm
Subject: Re: qForms and ColdFusion's cfWindow
jackson0810
Offline Offline
Send Email Send Email
 
I'll try that now... Thanks for the quick tip Edward.

On Thu, Jan 8, 2009 at 11:39 AM, Edward A Savage Jr <sonnysavage@...> wrote:

It's my impression that <cfwindow> is for ajax... you probably need to include your qForms initialization JavaScript inside the <cfwindow> tags after the actual form.  This would ensure that the form element is in the DOM is there when it tries to initialize.
 
Edward "Sonny" Savage
http://savagefamily.pbwiki.com/



From: jackson0810 <derrick.jackson73@...>
To: qformsapi@yahoogroups.com
Sent: Thursday, January 8, 2009 9:36:54 AM
Subject: [qformsapi] qForms and ColdFusion's cfWindow

Hi all,

I am new to qForms and I'm having what I would consider a tiny issue.
I am using the <cfwindow> tag withing a Coldfusion. When the link to
this page is clicked it opens a new cfwindow that utilizes qForms
validate methods. However when the window opens it tells me that the
form is not defined.

Are there any issues with using qForm with <cfwindow> or is there a
certain implementation when using <cfwindow>?

Any help is much appreciated.




#3967 From: Edward A Savage Jr <sonnysavage@...>
Date: Thu Jan 8, 2009 4:39 pm
Subject: Re: qForms and ColdFusion's cfWindow
sonnysavage
Offline Offline
Send Email Send Email
 
It's my impression that <cfwindow> is for ajax... you probably need to include your qForms initialization JavaScript inside the <cfwindow> tags after the actual form.  This would ensure that the form element is in the DOM is there when it tries to initialize.
 
Edward "Sonny" Savage
http://savagefamily.pbwiki.com/



From: jackson0810 <derrick.jackson73@...>
To: qformsapi@yahoogroups.com
Sent: Thursday, January 8, 2009 9:36:54 AM
Subject: [qformsapi] qForms and ColdFusion's cfWindow

Hi all,

I am new to qForms and I'm having what I would consider a tiny issue.
I am using the <cfwindow> tag withing a Coldfusion. When the link to
this page is clicked it opens a new cfwindow that utilizes qForms
validate methods. However when the window opens it tells me that the
form is not defined.

Are there any issues with using qForm with <cfwindow> or is there a
certain implementation when using <cfwindow>?

Any help is much appreciated.



#3966 From: "jackson0810" <derrick.jackson73@...>
Date: Thu Jan 8, 2009 2:36 pm
Subject: qForms and ColdFusion's cfWindow
jackson0810
Offline Offline
Send Email Send Email
 
Hi all,

I am new to qForms and I'm having what I would consider a tiny issue.
  I am using the <cfwindow> tag withing a Coldfusion.  When the link to
this page is clicked it opens a new cfwindow that utilizes qForms
validate methods.  However when the window opens it tells me that the
form is not defined.

Are there any issues with using qForm with <cfwindow> or is there a
certain implementation when using <cfwindow>?

Any help is much appreciated.

#3965 From: "cameronmcox" <cameron@...>
Date: Thu Dec 4, 2008 3:13 pm
Subject: Testing - ignore this post
cameronmcox
Offline Offline
Send Email Send Email
 
testing please ignore post

#3964 From: "Dean Lawrence" <deanlaw@...>
Date: Tue Dec 2, 2008 9:16 pm
Subject: Re: Problem with n-Related Select Boxes
deanmlaw
Offline Offline
Send Email Send Email
 
Hi Mary,

Since all the javascript files get loaded on the client side of
things, ColdFusion is already done processing, so there would not be a
conflict there. Without seeing your code, I would double check that
you have indeed instatiated your qForms object with the name objForm
and that your select field is named Division. If you changed any of
the names from the demo code, this would cause your problems.

Dean

On Tue, Dec 2, 2008 at 11:05 AM, Mary Leir <mary@...> wrote:
> Thanks Dean,
>
> I am not using any cfforms. I think the libraries are loading properly – at
> least enough to do the form validation – it turns the empty fields red, just
> doesn't populate the lists.
>
> I also tried moving the init code to below the form (per the instructions in
> the third bullet on this page
> http://www.pengoworks.com/qforms/docs/using.htm)
>
> Do you think there is a coldfusion reserved word being used in the  field.js
> library?
>
> Mary
>
>
> On 12/2/08 9:49 AM, "Dean Lawrence" <deanlaw@...> wrote:
>
>
>
>
> Hi Mary,
>
> I typically get this type of error if the qForm library has not
> properly loaded. If you are using cfform in your code, ColdFusion
> inserts it's own Javascript in the header of the page, which might be
> causing the issue.
>
> Hope this helps,
>
> Dean
>
> On Mon, Dec 1, 2008 at 10:24 PM, Mary Leir <mary@...
> <mailto:mary%40leirdesign.com> > wrote:
>> I have been able to get several of the form examples to work on my system.
>> I
>> have also been able to get the n-related select box example to work on my
>> system as a static page. But, when I place the code into a Coldfusion 8
>> page, I get a javascript error:
>>
>> Error objForm.Division.populate is not a function
>> Error TypeError: objForm.Division.populate is not a function
>>
>> And none of the pulldown menus populate on change. Is anyone else having
>> problems with CF8 or have any suggestions?
>>
>> Thanks.
>
>



--
__________________________________________
Dean Lawrence, CIO/Partner
Internet Data Technology
888.GET.IDT1 ext. 701 * fax: 888.438.4381
http://www.idatatech.com/
Corporate Internet Development and Marketing Specialists

#3963 From: Mary Leir <mary@...>
Date: Tue Dec 2, 2008 4:05 pm
Subject: Re: Problem with n-Related Select Boxes
mary@...
Send Email Send Email
 
Thanks Dean,

I am not using any cfforms. I think the libraries are loading properly – at least enough to do the form validation – it turns the empty fields red, just doesn’t populate the lists.

I also tried moving the init code to below the form (per the instructions in the third bullet on this page http://www.pengoworks.com/qforms/docs/using.htm)

Do you think there is a coldfusion reserved word being used in the  field.js library?

Mary


On 12/2/08 9:49 AM, "Dean Lawrence" <deanlaw@...> wrote:


 

Hi Mary,

I typically get this type of error if the qForm library has not
properly loaded. If you are using cfform in your code, ColdFusion
inserts it's own Javascript in the header of the page, which might be
causing the issue.

Hope this helps,

Dean

On Mon, Dec 1, 2008 at 10:24 PM, Mary Leir <mary@... <mailto:mary%40leirdesign.com> > wrote:
> I have been able to get several of the form examples to work on my system. I
> have also been able to get the n-related select box example to work on my
> system as a static page. But, when I place the code into a Coldfusion 8
> page, I get a javascript error:
>
> Error objForm.Division.populate is not a function
> Error TypeError: objForm.Division.populate is not a function
>
> And none of the pulldown menus populate on change. Is anyone else having
> problems with CF8 or have any suggestions?
>
> Thanks.


#3962 From: "Dean Lawrence" <deanlaw@...>
Date: Tue Dec 2, 2008 3:49 pm
Subject: Re: Problem with n-Related Select Boxes
deanmlaw
Offline Offline
Send Email Send Email
 
Hi Mary,

I typically get this type of error if the qForm library has not
properly loaded. If you are using cfform in your code, ColdFusion
inserts it's own Javascript in the header of the page, which might be
causing the issue.

Hope this helps,

Dean

On Mon, Dec 1, 2008 at 10:24 PM, Mary Leir <mary@...> wrote:
> I have been able to get several of the form examples to work on my system. I
> have also been able to get the n-related select box example to work on my
> system as a static page. But, when I place the code into a Coldfusion 8
> page, I get a javascript error:
>
> Error objForm.Division.populate is not a function
> Error TypeError: objForm.Division.populate is not a function
>
> And none of the pulldown menus populate on change. Is anyone else having
> problems with CF8 or have any suggestions?
>
> Thanks.



--
__________________________________________
Dean Lawrence, CIO/Partner
Internet Data Technology
888.GET.IDT1 ext. 701 * fax: 888.438.4381
http://www.idatatech.com/
Corporate Internet Development and Marketing Specialists

#3961 From: "Aaron Rouse" <aaron.rouse@...>
Date: Tue Dec 2, 2008 2:00 pm
Subject: Re: Problem with n-Related Select Boxes
aaron_rouse
Offline Offline
Send Email Send Email
 
I do not have this issue at all.  Probably have to see an example of the code to trouble shoot it.

On Mon, Dec 1, 2008 at 9:24 PM, Mary Leir <mary@...> wrote:

I have been able to get several of the form examples to work on my system. I have also been able to get the n-related select box example to work on my system as a static page. But, when I place the code into a Coldfusion 8 page, I get a javascript error:

Error objForm.Division.populate is not a function
Error TypeError: objForm.Division.populate is not a function

And none of the pulldown menus populate on change. Is anyone else having problems with CF8 or have any suggestions?

Thanks.




--
Aaron Rouse
http://www.happyhacker.com/

#3960 From: Mary Leir <mary@...>
Date: Tue Dec 2, 2008 3:24 am
Subject: Problem with n-Related Select Boxes
mary@...
Send Email Send Email
 
I have been able to get several of the form examples to work on my system. I have also been able to get the n-related select box example to work on my system as a static page. But, when I place the code into a Coldfusion 8 page, I get a javascript error:

Error objForm.Division.populate is not a function
Error TypeError: objForm.Division.populate is not a function

And none of the pulldown menus populate on change. Is anyone else having problems with CF8 or have any suggestions?

Thanks.

#3959 From: "cameronmcox" <cameron@...>
Date: Wed Nov 5, 2008 5:09 pm
Subject: test test
cameronmcox
Offline Offline
Send Email Send Email
 
test test do not reply to this post, just testing a website feature.
thank you for your understanding and patients.

#3958 From: "Aaron Rouse" <aaron.rouse@...>
Date: Sun Nov 2, 2008 1:21 am
Subject: Re: qForms and Model Glue 2?
aaron_rouse
Offline Offline
Send Email Send Email
 
ugh ... guess it helps if I copied the entire source from the browser when testing.  I stripped out the CF debug information when I tested in a stand alone file.  That debug information was causing the code to run twice and I just read a warning about that in someone's blog earlier this morning.

On Sat, Nov 1, 2008 at 8:07 PM, Aaron Rouse <aaron.rouse@...> wrote:
I was wondering if anyone has used qForms within a Model Glue 2 application?  I keep getting a this.obj.elements is undefined error in FireFox.  If I copy the browser source into a new stand alone HTML file and run it then I do not get the error.  It seems like the approach I am taking is loading up the files within the header tags more than once, I think that because I added an alert() in there and got the Ok box more than once.

In my first attempt I added a value tag within the include tag for my display template, all of this within the ModelGlue.xml file.  So I had an event handler like this:

<event-handler name="contactForm">
    <views>
        <include name="body" template="frmContact.cfm">
            <value name="xe.contact" value="contactFormAction" />
            <value name="flgQforms" value="true" />
        </include>
    </views>
    <results>
        <result do="view.template" />
    </results>
</event-handler>

Then within my dspTemplate.cfm that I had something like this:

<cfset qForms = viewstate.getValue("flgQforms", false) />
...
<head>
<cfif Variables.qForms>
<script src="/assets/js/qForms/qforms.js"></script> 
        <script language="JavaScript"> 
<!--//
// set the path to the qForms directory
qFormAPI.setLibraryPath("/assets/js/qForms/");
// this loads all the default libraries
qFormAPI.include("*");
//--> 
        </script> 
    </cfif>
</head>

Then at the bottom of the specific view, frmContact.cfm which houses just the form itself, I had this:

<script language="javascript">
<!--//
// initialize the qForm object
objForm = new qForm("Form");
 
// make these fields required
objForm.required("UserName,UserEmail,Subject,Body");
//-->
</script>

I even tried moving the stuff out of my dspTemplate and into my frmContact.cfm but got no change.  I also even tried moving the script from the bottom of the frmContact.cfm to the bottom of the dspTemplate where it would be put in after the form but still no change.

Here is the exact error from FireFox:

this.obj.elements is undefined
_q_init()v3X06PoP...BUg%3D%3D (line 1)
qForm("Form", undefined, undefined)v3X06PoP...BUg%3D%3D (line 1)
(?)()

--
Aaron Rouse
http://www.happyhacker.com/



--
Aaron Rouse
http://www.happyhacker.com/

#3957 From: "Aaron Rouse" <aaron.rouse@...>
Date: Sun Nov 2, 2008 1:07 am
Subject: qForms and Model Glue 2?
aaron_rouse
Offline Offline
Send Email Send Email
 
I was wondering if anyone has used qForms within a Model Glue 2 application?  I keep getting a this.obj.elements is undefined error in FireFox.  If I copy the browser source into a new stand alone HTML file and run it then I do not get the error.  It seems like the approach I am taking is loading up the files within the header tags more than once, I think that because I added an alert() in there and got the Ok box more than once.

In my first attempt I added a value tag within the include tag for my display template, all of this within the ModelGlue.xml file.  So I had an event handler like this:

<event-handler name="contactForm">
    <views>
        <include name="body" template="frmContact.cfm">
            <value name="xe.contact" value="contactFormAction" />
            <value name="flgQforms" value="true" />
        </include>
    </views>
    <results>
        <result do="view.template" />
    </results>
</event-handler>

Then within my dspTemplate.cfm that I had something like this:

<cfset qForms = viewstate.getValue("flgQforms", false) />
...
<head>
<cfif Variables.qForms>
<script src="/assets/js/qForms/qforms.js"></script> 
        <script language="JavaScript"> 
<!--//
// set the path to the qForms directory
qFormAPI.setLibraryPath("/assets/js/qForms/");
// this loads all the default libraries
qFormAPI.include("*");
//--> 
        </script> 
    </cfif>
</head>

Then at the bottom of the specific view, frmContact.cfm which houses just the form itself, I had this:

<script language="javascript">
<!--//
// initialize the qForm object
objForm = new qForm("Form");
 
// make these fields required
objForm.required("UserName,UserEmail,Subject,Body");
//-->
</script>

I even tried moving the stuff out of my dspTemplate and into my frmContact.cfm but got no change.  I also even tried moving the script from the bottom of the frmContact.cfm to the bottom of the dspTemplate where it would be put in after the form but still no change.

Here is the exact error from FireFox:

this.obj.elements is undefined
_q_init()v3X06PoP...BUg%3D%3D (line 1)
qForm("Form", undefined, undefined)v3X06PoP...BUg%3D%3D (line 1)
(?)()

--
Aaron Rouse
http://www.happyhacker.com/

#3956 From: "Aaron Rouse" <aaron.rouse@...>
Date: Thu Oct 9, 2008 11:52 pm
Subject: Re: Re: Running validation at submit?
aaron_rouse
Offline Offline
Send Email Send Email
 
It actually is not going to work 100% for my needs but I think I have figured out how I am going to do this via a custom validator just took some experimenting before it dawned on me.

On Thu, Oct 9, 2008 at 4:25 PM, Dean Lawrence <deanlaw@...> wrote:

qForms has many great features like that. At times though, it is
difficult to find them in the documentation. What I have found helpful
in the past, is to look at the demo code, as Dan has included some
things in there that aren't overly obvious in the documentation.

Dean



On Thu, Oct 9, 2008 at 4:49 PM, Aaron Rouse <aaron.rouse@...> wrote:
> Ok, I should just type out my emails and not send them because it tends to
> make me find the answer. I just realized I could use validateAtLeastOne()
>

--
__________________________________________
Dean Lawrence, CIO/Partner
Internet Data Technology
888.GET.IDT1 ext. 701 * fax: 888.438.4381
http://www.idatatech.com/
Corporate Internet Development and Marketing Specialists




--
Aaron Rouse
http://www.happyhacker.com/

#3955 From: "Dean Lawrence" <deanlaw@...>
Date: Thu Oct 9, 2008 9:25 pm
Subject: Re: Re: Running validation at submit?
deanmlaw
Offline Offline
Send Email Send Email
 
qForms has many great features like that. At times though, it is
difficult to find them in the documentation. What I have found helpful
in the past, is to look at the demo code, as Dan has included some
things in there that aren't overly obvious in the documentation.

Dean

On Thu, Oct 9, 2008 at 4:49 PM, Aaron Rouse <aaron.rouse@...> wrote:
> Ok, I should just type out my emails and not send them because it tends to
> make me find the answer.  I just realized I could use validateAtLeastOne()
>

--
__________________________________________
Dean Lawrence, CIO/Partner
Internet Data Technology
888.GET.IDT1 ext. 701 * fax: 888.438.4381
http://www.idatatech.com/
Corporate Internet Development and Marketing Specialists

#3954 From: "Aaron Rouse" <aaron.rouse@...>
Date: Thu Oct 9, 2008 8:49 pm
Subject: Re: Running validation at submit?
aaron_rouse
Offline Offline
Send Email Send Email
 
Ok, I should just type out my emails and not send them because it tends to make me find the answer.  I just realized I could use validateAtLeastOne()

On Thu, Oct 9, 2008 at 3:41 PM, Aaron Rouse <aaron.rouse@...> wrote:
How can I add a validation function that is not specific to one field to run when I submit the form?  I know I could do something like:

function frmSubmit { if(myFunction() == true) objForm.submit() }

But I would like the result from myFunction to be included in the alert message from qForms if something is wrong.

What I am wanting to do is verify that the user has checked at least one out of a series of 32 check boxes.  I was planning on writing a function to loop through those and return true if one was checked,but perhaps I should go another route so that it works within qForms?

--
Aaron Rouse
http://www.happyhacker.com/



--
Aaron Rouse
http://www.happyhacker.com/

#3953 From: "Aaron Rouse" <aaron.rouse@...>
Date: Thu Oct 9, 2008 8:41 pm
Subject: Running validation at submit?
aaron_rouse
Offline Offline
Send Email Send Email
 
How can I add a validation function that is not specific to one field to run when I submit the form?  I know I could do something like:

function frmSubmit { if(myFunction() == true) objForm.submit() }

But I would like the result from myFunction to be included in the alert message from qForms if something is wrong.

What I am wanting to do is verify that the user has checked at least one out of a series of 32 check boxes.  I was planning on writing a function to loop through those and return true if one was checked,but perhaps I should go another route so that it works within qForms?

--
Aaron Rouse
http://www.happyhacker.com/

#3952 From: "elenaqc2002" <cfelena@...>
Date: Mon Sep 15, 2008 3:43 pm
Subject: ValidateFormat and allow only certain values in the field
elenaqc2002
Offline Offline
Send Email Send Email
 
I have 2 questions:
1) I am using ValidateFormat to allow 4 digit year into a year field,
on the error message "I get This field requires at least 4 valid
characters, etc." Is there a way to customize this error message, as
it is confusing what THIS FIELD is and what it means if there is more
than one field.
Please suggest.

2) I have an input field which should only allow values 1-7 (for the
number of days in the week. Is there a qforms Validation function
available that I can use to validate the field with only these 7 values.

Thanks!

#3950 From: "Dean Lawrence" <deanlaw@...>
Date: Wed Jul 30, 2008 8:17 pm
Subject: Re: Validate required field depending on another field selection
deanmlaw
Offline Offline
Send Email Send Email
 
There is a field method call createDependencyTo that allows you to
bind one field to another. You can find a description of this in the
documentation.

http://www.pengoworks.com/qforms/docs/extension_fields.htm#createDependencyTo

Hope this helps,

Dean

On Wed, Jul 30, 2008 at 11:27 AM, elenaqc2002 <cfelena@...> wrote:
> I have 2 fields and I need to make the second field (text input box)
> required only if the first field (checkbox) is checked off.
>
> Please advise.
>
> Thanks!!
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>



--
__________________________________________
Dean Lawrence, CIO/Partner
Internet Data Technology
888.GET.IDT1 ext. 701 * fax: 888.438.4381
http://www.idatatech.com/
Corporate Internet Development and Marketing Specialists

#3949 From: "elenaqc2002" <cfelena@...>
Date: Wed Jul 30, 2008 3:27 pm
Subject: Validate required field depending on another field selection
elenaqc2002
Offline Offline
Send Email Send Email
 
I have 2 fields and I need to make the second field (text input box)
required only if the first field (checkbox) is checked off.

Please advise.

Thanks!!

#3948 From: "tejau_ur" <tejau_ur@...>
Date: Wed Jun 11, 2008 10:02 am
Subject: how to change default error message " The following error(s) occurred:" in qform
tejau_ur
Offline Offline
Send Email Send Email
 
Hi,

my problem is when submitting one form i want to show custom error
message like "xyz" instead of default error message "The following
error(s) occurred:" and in another form i have to display the default
error message only.so how can i handle this situation in qfrom please
feel free to revert with solution as soon as possible.


thanks
ramesh

#3947 From: "d3z1gnr" <mike@...>
Date: Thu Apr 3, 2008 12:15 am
Subject: populated items not being passed on submit
d3z1gnr
Offline Offline
Send Email Send Email
 
hi guys,

i have simple form containing 2 x multiple selects -
products_available and products_selected. products_selected is
populated from a query.

problem: the products_selected select will not pass any pre-populated
items when the form is submitted. it will only work if i pass them
back to products_available and then back again??

the code i have to initialise qforms is...

<SCRIPT LANGUAGE="JavaScript">
	 <!--//
	 // initialize the qForm object
	 objForm = new qForm("related_product_form");

	 // make the User field a container, this will ensure that
the "reset()"
	 // method will restore the values in the select box, even if
they've
	 // been removed from the select box
	 objForm.products_available.makeContainer();
	 // setting the "dummyContainer" property to false will ensure
that no values
	 // from this container are included with the value
	 objForm.products_available.dummyContainer = true;

	 // make the "Members" field a container--every item in
the "Members" select box
	 // will be part of the container, even if the item isn't
selected.
	 objForm.products_selected.makeContainer();

	 stProductsSelected = new Object();
	 <cfoutput query="getRelated">
		 stProductsSelected["#getRelated.product_idfk#"]
= "#getRelated.product_title#";
	 </cfoutput>

	 objForm.products_selected.populate(stProductsSelected);
	 //-->
</SCRIPT>

Messages 3947 - 3977 of 3977   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help