Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

forms-dev

The Yahoo! Groups Product Blog

Check it out!

Group Information

? 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.

Messages

Advanced
Messages Help
Messages 83 - 114 of 946   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#83 From: <operationsengineer1@...>
Date: Thu Apr 21, 2005 6:02 pm
Subject: Re: form error question
operationsen...
Send Email Send Email
 
> You have set the VALUE to "" which is not present in
> the $options array,
> so AddInput fails.

Manuel, thank you!  i was using "customer_name"
instead of "customer_id" as my "VALUE" entry.  using
"customer_id" produces the combo box and using your
prior suggestion...

> $options=array(""=>"Please choose a customer");

yields exactly what i was looking for.

thank you!

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#84 From: "artem_ivlev" <artem_i@...>
Date: Fri Apr 22, 2005 11:13 am
Subject: Custom input classs
artem_ivlev
Send Email Send Email
 
Hi!

i need make custom input class. It must consists of select and text
fields. Text field is alweys innactive but if in select field
selected "Other" it must be activated and focused. How to do this?

#85 From: Manuel Lemos <mlemos@...>
Date: Fri Apr 22, 2005 4:09 pm
Subject: Re: Custom input classs
mallemos
Send Email Send Email
 
Hello,

on 04/22/2005 08:13 AM artem_ivlev said the following:
> i need make custom input class. It must consists of select and text
> fields. Text field is alweys innactive but if in select field
> selected "Other" it must be activated and focused. How to do this?

This is relatively easy but it requires a little studying of how to
create custom input classes.

I suggest that you start by trying to do it yourself after reading the
section of the class manual named "Enhancing forms with custom input
type plug-ins". Then, if you get stuck or have questions, just reply to
this message so I can help you?

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#86 From: "Kike F Becerra" <qbecerra@...>
Date: Sat Apr 23, 2005 2:01 am
Subject: Re: Howto: Integrate custom input field into class forms
qbecerra
Send Email Send Email
 
Sorry Manuel
I didn't do... but I'm gonna do it right now
Thanks a lot for your help !!
AWESOME WORK DUDE !

--- In forms-dev@yahoogroups.com, Manuel Lemos <mlemos@a...> wrote:
> Hello,
>
> on 04/17/2005 12:00 AM Kike F Becerra said the following:
> > Does any1 know which procedures are necessary to integrate this
> > xtremely awesome date selector into forms generator ?
> > (see demos)
> > http://www.dynarch.com/projects/calendar/
> >
> > please: tell me like if u were telling to a monkey, coz i'm learning
> > this class and my php knowledge is not very good by now... :)
>
> Have you checked the section of the class documentation named
"Enhancing
> forms with custom input type plug-ins" ?
>
> --
>
> Regards,
> Manuel Lemos
>
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>
> PHP Reviews - Reviews of PHP books and other products
> http://www.phpclasses.org/reviews/
>
> Metastorage - Data object relational mapping layer generator
> http://www.meta-language.net/metastorage.html

#88 From: <operationsengineer1@...>
Date: Thu Apr 28, 2005 11:20 pm
Subject: Multiple Select Problem
operationsen...
Send Email Send Email
 
Manuel,

i want to create a multiple select box that displays
product_number (already done).  for the products that
are selected, i want to insert the product_id of the
product number into a link table.

the link table will hold the product_id and
product_note_id pairs linking notes to product
numbers.

each note can be associated with multiple product
numbers, hence the need for the link table.

how can i get this done?

i used the following format...

$options[$rs->fields[0]]=$rs->fields[1];

...and thought the product_id would be associated with
field[0] in the $options array, but i can't find it.

tia...

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#89 From: Manuel Lemos <mlemos@...>
Date: Fri Apr 29, 2005 3:13 am
Subject: Re: Conversion HTML Form to PHP?
mallemos
Send Email Send Email
 
Hello,

on 04/27/2005 06:37 PM Halima Mitchell said the following:
> I don't know much to anything about PHP. Just that I was told I need
> to have my forms in PHP in order to have them on a SSL or whatever.
> I need secured forms for those filling them out.
>
> So can anyone do a conversion to php for me that works of the
> following form, if it's even possible. Again I don't know how PHP
> works leaving that up to you:

I am afraid that it will be hard to find anybody to do all your work for
free.

This list is more about helping people to use the forms class to
generate forms for their needs, not really to do all your work.

If you would like to get started doing all by yourself, you may get help
here on how to implement details that you don't know using your class.

If you want somebody to do it all for you, I suggest that you post a
paid job request and you will probably get help faster and better.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#91 From: Manuel Lemos <mlemos@...>
Date: Fri Apr 29, 2005 4:13 am
Subject: Re: Multiple Select Problem
mallemos
Send Email Send Email
 
Hello,

on 04/28/2005 08:20 PM operationsengineer1@... said the following:
> i want to create a multiple select box that displays
> product_number (already done).  for the products that
> are selected, i want to insert the product_id of the
> product number into a link table.
>
> the link table will hold the product_id and
> product_note_id pairs linking notes to product
> numbers.
>
> each note can be associated with multiple product
> numbers, hence the need for the link table.
>
> how can i get this done?
>
> i used the following format...
>
> $options[$rs->fields[0]]=$rs->fields[1];
>
> ...and thought the product_id would be associated with
> field[0] in the $options array, but i can't find it.

I have had requests to implement dependent selects and I was willing to
develop a plug-in class to provide that. However, since I never needed
it, I ended up not doing it yet.

I may develop it some time soon, but first I need to have a good idea of
it is expected to work. How do you see it working in terms of parameters
to customize the behavior of a plug-in class that would implement
dependent selects?


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#92 From: <operationsengineer1@...>
Date: Fri Apr 29, 2005 4:38 am
Subject: Re: Multiple Select Problem
operationsen...
Send Email Send Email
 
Manuel,

being a DIY (do it yourself) kind of programmer, i'm
not exaclty sure what you are looking for in an
answer.  so, let me explain in english and then you
can ask specific question if any still exist.

1. display multiple select (done)
2. user chooses list elements that apply (multiple ok)
3. once the choices are made, the ids associated with
the list elements are available for database
manipulation.

is this enough information?

in my case, i'm populating a link table that only
contains ids - one id for product_number and one id
for product_notes.  each product_note can be
associated with multiple product_numbers.

like this...

product_number_id / product_note_id

1 / 1
2 / 1
9 / 1
3 / 2
4 / 2
8 / 2
3 / 3

etc...

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#93 From: Manuel Lemos <mlemos@...>
Date: Fri Apr 29, 2005 4:48 am
Subject: Re: Multiple Select Problem
mallemos
Send Email Send Email
 
Hello,

on 04/29/2005 01:38 AM operationsengineer1@... said the following:
> Manuel,
>
> being a DIY (do it yourself) kind of programmer, i'm
> not exaclty sure what you are looking for in an
> answer.  so, let me explain in english and then you
> can ask specific question if any still exist.
>
> 1. display multiple select (done)
> 2. user chooses list elements that apply (multiple ok)
> 3. once the choices are made, the ids associated with
> the list elements are available for database
> manipulation.
>
> is this enough information?
>
> in my case, i'm populating a link table that only
> contains ids - one id for product_number and one id
> for product_notes.  each product_note can be
> associated with multiple product_numbers.
>
> like this...
>
> product_number_id / product_note_id
>
> 1 / 1
> 2 / 1
> 9 / 1
> 3 / 2
> 4 / 2
> 8 / 2
> 3 / 3
>
> etc...

Sorry, I thought you wanted to display select fields on which the
options of one would be updated according to the option selected by the
user on the other.

I am still not sure what is your doubt. It seems that you want to use
two selects: one multiple with products and a single with notes . Then
you want to let the user select the products that are associated with
each note, right?


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#94 From: <operationsengineer1@...>
Date: Fri Apr 29, 2005 5:30 am
Subject: Re: Multiple Select Problem
operationsen...
Send Email Send Email
 
> Sorry, I thought you wanted to display select fields
> on which the
> options of one would be updated according to the
> option selected by the
> user on the other.
>
> I am still not sure what is your doubt. It seems
> that you want to use
> two selects: one multiple with products and a single
> with notes . Then
> you want to let the user select the products that
> are associated with
> each note, right?
>

Manuel, i want the user to select the various
product_numbers that a note will apply to.  then i
want the user to type the note in a textarea.

after submittal, i will enter the notes data in the
database, collect the ids and store them in the links
table.

the select has the following syntax:

<SELECT NAME="part_number">
<OPTION VALUE="100">widget 1
<OPTION VALUE="101">widget 2
<OPTION VALUE="102">widget 3
<OPTION VALUE="103">widget 4
</SELECT>

does field[0] get entered as "VALUE" given the forms
syntax we discussed before, ie,

$options[$rs->fields[0]]=$rs->fields[1];

and field[1] get entered as the displayed text?

thanks for the guidance.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#95 From: Manuel Lemos <mlemos@...>
Date: Fri Apr 29, 2005 1:46 pm
Subject: Re: Multiple Select Problem
mallemos
Send Email Send Email
 
Hello,

on 04/29/2005 02:30 AM operationsengineer1@... said the following:
> Manuel, i want the user to select the various
> product_numbers that a note will apply to.  then i
> want the user to type the note in a textarea.
>
> after submittal, i will enter the notes data in the
> database, collect the ids and store them in the links
> table.
>
> the select has the following syntax:
>
> <SELECT NAME="part_number">
> <OPTION VALUE="100">widget 1
> <OPTION VALUE="101">widget 2
> <OPTION VALUE="102">widget 3
> <OPTION VALUE="103">widget 4
> </SELECT>
>
> does field[0] get entered as "VALUE" given the forms
> syntax we discussed before, ie,
>
> $options[$rs->fields[0]]=$rs->fields[1];
>
> and field[1] get entered as the displayed text?

If you want to assign multiple products to a note, you need to use
select MULTIPLE. The GetInputValue will return an array of selected values.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#96 From: <operationsengineer1@...>
Date: Wed May 4, 2005 5:12 pm
Subject: Seemingly Strange Select Behavior
operationsen...
Send Email Send Email
 
hi Manuel,

i have the following code...

----------------
$sql = 'SELECT product_id, product_number FROM
t_product ORDER BY product_number ASC';

$rs = $conn->Execute($sql);

$options=array(""=>"Choose Product");

while (!$rs->EOF) {
  //      used to make sure data being read - it prints
  //      as expected.
	 $options[$rs->fields[0]]=$rs->fields[1];
	 $rs->MoveNext();
}


$form->AddInput(array(
   "TYPE"=>"select",
   "NAME"=>"product",
   "ID"=>"product",
   "VALUE"=>"",
   "SIZE"=>7,
   "OPTIONS"=>$options,
   "ValidationErrorMessage"=>"It was not specified a
valid credit card type",
   "LABEL"=>"Choose Product Number",
   "TABINDEX"=>1,
));
--------------------------

which works fine.  however, if i remove...

$options=array(""=>"Choose Product");

then it breaks and gives me this error...

AddLabelPart: it was not specified a valid label FOR
input ID product: it was not specified a valid input

I have product_id and product_number pairs in my db -
and they display along with "Choose Product(s)" before
i remove the line of code.  after i remove the line of
code, though, i get the error.

this seems unexpected to me.  shouldn't it populate
the box with the database array values without the
line of code that adds "Choose Product" to the list?
what am i missing here?

tia...

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#97 From: Manuel Lemos <mlemos@...>
Date: Wed May 4, 2005 5:22 pm
Subject: Re: label css style issue
mallemos
Send Email Send Email
 
Hello,

on 04/13/2005 12:53 PM operationsengineer1@... said the following:
> do you expect the date class to ignore LabelCLASS and
> LabelSTYLE declarations?  is there a workaround?

I just released a new version that fixes this problem

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#98 From: Manuel Lemos <mlemos@...>
Date: Wed May 4, 2005 5:24 pm
Subject: Re: Seemingly Strange Select Behavior
mallemos
Send Email Send Email
 
Hello,

on 05/04/2005 02:12 PM operationsengineer1@... said the following:
> which works fine.  however, if i remove...
>
> $options=array(""=>"Choose Product");
>
> then it breaks and gives me this error...
>
> AddLabelPart: it was not specified a valid label FOR
> input ID product: it was not specified a valid input
>
> I have product_id and product_number pairs in my db -
> and they display along with "Choose Product(s)" before
> i remove the line of code.  after i remove the line of
> code, though, i get the error.
>
> this seems unexpected to me.  shouldn't it populate
> the box with the database array values without the
> line of code that adds "Choose Product" to the list?
> what am i missing here?

Your initial value is "". Therefore it must be present in the options array.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#99 From: <operationsengineer1@...>
Date: Fri May 6, 2005 4:05 pm
Subject: SELECT & VALUE
operationsen...
Send Email Send Email
 
Manuel,

i populate a select via a table in my db.  the table
in the db is subject to change.  for example, new
product may be added at any time.  i sort the product
numbers in ascending order and always want the first
product to be highlighted.

the required VALUE makes this difficult because a new
product number may be lower than the the current
assigned value.

i tried...

$options=array(""=>"Choose Assembly(ies)");

but received an error when the user didn't move the
cursor away from "Choose Assembly(ies)".

i guess i could query the db for the MIN value of
product numbers, assign it to a variable and then
assign the variable to the value.

am i missing something simple?

btw, you mentioned including functionality where one
list box would automatically open another list box.  i
think that would be pretty nice.

probably the best model to base such a thing on is
states / major cities.  click on a state then all its
major cities fill in the list box.

other possibilities

1. department / pay scale
2. supervisor / employee that report to supervisor
3. assemblies / part numbers of parts that make up
    assembly

i have no need for anything like this now, but i can
see where others might - and i might down the road.
it also might be a nice "sales" tool to get others on
the edge to try your forms class.



__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail

#100 From: <operationsengineer1@...>
Date: Fri May 6, 2005 6:07 pm
Subject: SELECT Display Behavior
operationsen...
Send Email Send Email
 
manuel,

how come the following displays and acts correctly
even though there is no "" value in the database table
to match the VALUE in the class?

$conn = &ADONewConnection('postgres');
$conn->Connect($db_string,$db_owner,$db_pw,$db_name);

$sql = 'SELECT product_id, product_number FROM
t_product ORDER BY product_number ASC';

$rs = $conn->Execute($sql);
while (!$rs->EOF) {
	 $options[$rs->fields[0]]=$rs->fields[1];
	 $rs->MoveNext();
}

$form->AddInput(array(
   "TYPE"=>"select",
   "NAME"=>"product",
   "ID"=>"product",
   "VALUE"=>"",
   "MULTIPLE"=>1,
   "SIZE"=>7,
   "OPTIONS"=>$options,
   "ValidateAsSet"=>1,
   "ValidateAsSetErrorMessage"=>"you must enter at
least one product",
   "LABEL"=>"Enter Product Number(s)",
   "TABINDEX"=>1,
));

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

i have this a single select that will not display.

$conn = &ADONewConnection('postgres');
$conn->Connect($db_string,$db_owner,$db_pw,$db_name);

$sql = 'SELECT product_id, product_number FROM
t_product ORDER BY product_number ASC';

$rs = $conn->Execute($sql);

while (!$rs->EOF) {
	 $options[$rs->fields[0]]=$rs->fields[1];
	 $rs->MoveNext();
}

$form->AddInput(array(
   "TYPE"=>"select",
   "NAME"=>"product",
   "ID"=>"product",
   "VALUE"=>"",
   "SIZE"=>7,
   "OPTIONS"=>$options,
   "ValidationErrorMessage"=>"It was not specified a
valid credit card type",
   "LABEL"=>"Choose Product Number",
   "TABINDEX"=>1,
));

they seem very similar and pull from the same table,
but one displays and one doesn't.  truthfully, i
wouldn't expect either to display since "" doesn't
exist my db.



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html

#101 From: Manuel Lemos <mlemos@...>
Date: Fri May 6, 2005 6:46 pm
Subject: Re: SELECT & VALUE
mallemos
Send Email Send Email
 
Hello,

on 05/06/2005 01:05 PM operationsengineer1@... said the following:
> Manuel,
>
> i populate a select via a table in my db.  the table
> in the db is subject to change.  for example, new
> product may be added at any time.  i sort the product
> numbers in ascending order and always want the first
> product to be highlighted.
>
> the required VALUE makes this difficult because a new
> product number may be lower than the the current
> assigned value.
>
> i tried...
>
> $options=array(""=>"Choose Assembly(ies)");
>
> but received an error when the user didn't move the
> cursor away from "Choose Assembly(ies)".

That is because you have that validation type ValidadeAsNotEmpty, which
is meant to not allow the empty string value.


> i guess i could query the db for the MIN value of
> product numbers, assign it to a variable and then
> assign the variable to the value.

If you query ordering by product numbers, the default value could be
easily set to the first value in the options array using the Reset() and
Key() PHP functions.


> btw, you mentioned including functionality where one
> list box would automatically open another list box.  i
> think that would be pretty nice.
>
> probably the best model to base such a thing on is
> states / major cities.  click on a state then all its
> major cities fill in the list box.
>
> other possibilities
>
> 1. department / pay scale
> 2. supervisor / employee that report to supervisor
> 3. assemblies / part numbers of parts that make up
>    assembly
>
> i have no need for anything like this now, but i can
> see where others might - and i might down the road.
> it also might be a nice "sales" tool to get others on
> the edge to try your forms class.

Right, I could develop a custom input class for that but since I do not
need that for me immediately, I will wait until somebody needs that
would like to participate in the tests.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#102 From: Manuel Lemos <mlemos@...>
Date: Fri May 6, 2005 6:52 pm
Subject: Re: SELECT Display Behavior
mallemos
Send Email Send Email
 
Hello,

on 05/06/2005 03:07 PM operationsengineer1@... said the following:
> how come the following displays and acts correctly
> even though there is no "" value in the database table
> to match the VALUE in the class?

Because MULTIPLE select fields may have not option set, unless you use
the ValidateAsSet. Even in that case, you can start with no options set.
The VALUE attribute is ignored for the MULTIPLE select fields. The take
the SELECTED attribute to define an array with all the initially
selected options.




--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#103 From: Manuel Lemos <mlemos@...>
Date: Fri May 6, 2005 6:52 pm
Subject: Re: SELECT Display Behavior
mallemos
Send Email Send Email
 
Hello,

on 05/06/2005 03:07 PM operationsengineer1@... said the following:
> how come the following displays and acts correctly
> even though there is no "" value in the database table
> to match the VALUE in the class?

Because MULTIPLE select fields may have not option set, unless you use
the ValidateAsSet. Even in that case, you can start with no options set.
The VALUE attribute is ignored for the MULTIPLE select fields. The take
the SELECT attribute to define an array with all the initially selected
options.




--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#104 From: <operationsengineer1@...>
Date: Fri May 6, 2005 7:35 pm
Subject: Re: SELECT & VALUE
operationsen...
Send Email Send Email
 
Manuel,

thanks for the reset and key php functions.  i set it
up so that i was querying the db to get these values -
now i can save a query.

i could use the functionality at some point in the
future for a project i'm working on.

i will need to display revisions linked to products.

click on product -> revision drop down box appears.

it isn't hot right now, but if you want to work
developing that functionaility, i would help out.

--- Manuel Lemos <mlemos@...> wrote:
> Hello,
>
> on 05/06/2005 01:05 PM operationsengineer1@...
> said the following:
> > Manuel,
> >
> > i populate a select via a table in my db.  the
> table
> > in the db is subject to change.  for example, new
> > product may be added at any time.  i sort the
> product
> > numbers in ascending order and always want the
> first
> > product to be highlighted.
> >
> > the required VALUE makes this difficult because a
> new
> > product number may be lower than the the current
> > assigned value.
> >
> > i tried...
> >
> > $options=array(""=>"Choose Assembly(ies)");
> >
> > but received an error when the user didn't move
> the
> > cursor away from "Choose Assembly(ies)".
>
> That is because you have that validation type
> ValidadeAsNotEmpty, which
> is meant to not allow the empty string value.
>
>
> > i guess i could query the db for the MIN value of
> > product numbers, assign it to a variable and then
> > assign the variable to the value.
>
> If you query ordering by product numbers, the
> default value could be
> easily set to the first value in the options array
> using the Reset() and
> Key() PHP functions.
>
>
> > btw, you mentioned including functionality where
> one
> > list box would automatically open another list
> box.  i
> > think that would be pretty nice.
> >
> > probably the best model to base such a thing on is
> > states / major cities.  click on a state then all
> its
> > major cities fill in the list box.
> >
> > other possibilities
> >
> > 1. department / pay scale
> > 2. supervisor / employee that report to supervisor
> > 3. assemblies / part numbers of parts that make up
>
> >    assembly
> >
> > i have no need for anything like this now, but i
> can
> > see where others might - and i might down the
> road.
> > it also might be a nice "sales" tool to get others
> on
> > the edge to try your forms class.
>
> Right, I could develop a custom input class for that
> but since I do not
> need that for me immediately, I will wait until
> somebody needs that
> would like to participate in the tests.
>
> --
>
> Regards,
> Manuel Lemos
>
> PHP Classes - Free ready to use OOP components
> written in PHP
> http://www.phpclasses.org/
>
> PHP Reviews - Reviews of PHP books and other
> products
> http://www.phpclasses.org/reviews/
>
> Metastorage - Data object relational mapping layer
> generator
> http://www.meta-language.net/metastorage.html
>



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html

#105 From: Manuel Lemos <mlemos@...>
Date: Sun May 15, 2005 3:11 am
Subject: Re: SELECT & VALUE
mallemos
Send Email Send Email
 
Hello,

on 05/06/2005 04:35 PM operationsengineer1@... said the following:
> thanks for the reset and key php functions.  i set it
> up so that i was querying the db to get these values -
> now i can save a query.
>
> i could use the functionality at some point in the
> future for a project i'm working on.
>
> i will need to display revisions linked to products.
>
> click on product -> revision drop down box appears.
>
> it isn't hot right now, but if you want to work
> developing that functionaility, i would help out.

I don't need it now either but there is a lot of demand. So, I have been
thinking about a working model solution.

What I have in mind is to add the ability to define event handlers that
are associated to certain inputs and trigger actions associated to other
inputs. This way I can make for instance an onchange event of an input
trigger whatever actions it takes to update a select input.

I will let you know when I have something implemented.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#106 From: <operationsengineer1@...>
Date: Wed May 18, 2005 4:59 pm
Subject: Label and File Upload Problem
operationsen...
Send Email Send Email
 
Manuel,

i can't get label to work with file for file uploads.

$form->AddInput(array(
"TYPE"=>"file",
"NAME"=>"userfile",
"ACCEPT"=>"application/pdf",
"ValidateAsNotEmpty"=>1,
"ValidationErrorMessage"=>"please specify a pdf file
to
  upload.",
"LABEL"=>"Upload PDF File",
));

and
		 $form->AddLabelPart(array("FOR"=>"userfile"));
$form->AddInputPart("userfile");

yields

"AddLabelPart: it was not specified a valid label FOR
input ID" and the file upload text area area and
button.

is this expected behavior?  since i use CSS formatted
labels for everything else, it would be nice to use
them here also.  is this possible?


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#107 From: Manuel Lemos <mlemos@...>
Date: Wed May 18, 2005 5:20 pm
Subject: Re: Label and File Upload Problem
mallemos
Send Email Send Email
 
Hello,

on 05/18/2005 01:59 PM operationsengineer1@... said the following:
> i can't get label to work with file for file uploads.
>
> $form->AddInput(array(
> "TYPE"=>"file",
> "NAME"=>"userfile",
> "ACCEPT"=>"application/pdf",
> "ValidateAsNotEmpty"=>1,
> "ValidationErrorMessage"=>"please specify a pdf file
> to
>  upload.",
> "LABEL"=>"Upload PDF File",
> ));
>
> and
> 	 $form->AddLabelPart(array("FOR"=>"userfile"));
> $form->AddInputPart("userfile");
>
> yields
>
> "AddLabelPart: it was not specified a valid label FOR
> input ID" and the file upload text area area and
> button.
>
> is this expected behavior?  since i use CSS formatted
> labels for everything else, it would be nice to use
> them here also.  is this possible?

That means that you need to define the ID of the file input so the
browser can associate the label to the input.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#108 From: "taras086" <bc.mail@...>
Date: Sun May 22, 2005 11:27 pm
Subject: javascript unescape problems with non Latin charsets
taras086
Send Email Send Email
 
Hello, everybody

I am playing with FormGeneration script and have found a problem when
dealing with non Latin-1 encoded text.
When the ValidationErrorMessage contains characters other than Latin-
1, it is encoded into javascript escape string, which looks like

alert(unescape('%CF')+unescape('%EE')+unescape('%EB'))

But when this message is displayed by a browser it shows as a line of
Latin-1 characters like <I with umlaut> and others, also known as
'garbage'. This happens because browser has no idea what charset has
unescape() argument, and uses Latin-1 by default.

The solution that works for now is to disable completely the escaping
of characters in forms.php at line 306:

$encode=0; //$encode=!strcmp(strtolower($this->encoding),"iso-8859-1"
);

Any suggestions on that ?

#109 From: Manuel Lemos <mlemos@...>
Date: Mon May 23, 2005 12:14 am
Subject: Re: javascript unescape problems with non Latin charsets
mallemos
Send Email Send Email
 
Hello,

on 05/22/2005 08:27 PM taras086 said the following:
> Hello, everybody
>
> I am playing with FormGeneration script and have found a problem when
> dealing with non Latin-1 encoded text.
> When the ValidationErrorMessage contains characters other than Latin-
> 1, it is encoded into javascript escape string, which looks like
>
> alert(unescape('%CF')+unescape('%EE')+unescape('%EB'))
>
> But when this message is displayed by a browser it shows as a line of
> Latin-1 characters like <I with umlaut> and others, also known as
> 'garbage'. This happens because browser has no idea what charset has
> unescape() argument, and uses Latin-1 by default.
>
> The solution that works for now is to disable completely the escaping
> of characters in forms.php at line 306:
>
> $encode=0; //$encode=!strcmp(strtolower($this->encoding),"iso-8859-1"
> );
>
> Any suggestions on that ?

As you may notice the escaping only happens that way when the encoding
class variable is left set to "iso-8859-1" which is also known as
Latin-1 . So , if you change that variable to whatever is the encoding
of the characters that you are using, your problem is solved properly.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#110 From: Taras <bc.mail@...>
Date: Mon May 23, 2005 2:00 pm
Subject: Re[2]: javascript unescape problems with non Latin charsets
taras086
Send Email Send Email
 
Hello, Manuel

Thank you for your help - it is really the solution for this problem



Taras

#111 From: "pvutrix" <PvUtrix@...>
Date: Mon May 23, 2005 6:22 pm
Subject: XHTML Validation problem
pvutrix
Send Email Send Email
 
When I try to validate a page, using the class, I get these errors.


Line 216, column 63: non SGML character number 127

...Exp("^([-!#$%&'*+./0-9=?A-Z^_`a-z{|}~])+@([-!#$%&'*+/0-9=?A-
Z^_`a-z{|}~]+\\

Line 216, column 98: non SGML character number 127

...}~])+@([-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+\\.)+[a-zA-Z]{2,6}
$","gi"))>=0)


The problem is with the following regular expression

var $email_regular_expression="^([-!#\$%&'*+./0-9=?A-Z^_`a-z{|}~])+@
([-!#\$%&'*+/0-9=?A-Z^_`a-z{|}~]+\\.)+[a-zA-Z]{2,6}\$";

The  characters do not validate...

#112 From: Manuel Lemos <mlemos@...>
Date: Mon May 23, 2005 8:48 pm
Subject: Re: XHTML Validation problem
mallemos
Send Email Send Email
 
Hello,

on 05/23/2005 03:22 PM pvutrix said the following:
> When I try to validate a page, using the class, I get these errors.
>
>
> Line 216, column 63: non SGML character number 127
>
> ...Exp("^([-!#$%&'*+./0-9=?A-Z^_`a-z{|}~])+@([-!#$%&'*+/0-9=?A-
> Z^_`a-z{|}~]+\\
>
> Line 216, column 98: non SGML character number 127
>
> ...}~])+@([-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+\\.)+[a-zA-Z]{2,6}
> $","gi"))>=0)
>
>
> The problem is with the following regular expression
>
> var $email_regular_expression="^([-!#\$%&'*+./0-9=?A-Z^_`a-z{|}~])+@
> ([-!#\$%&'*+/0-9=?A-Z^_`a-z{|}~]+\\.)+[a-zA-Z]{2,6}\$";
>
> The  characters do not validate...

Hummm... I was not aware that character 127 was not accepted as valid.

Anyway, I just fixed that and a few other minor XHTML compatibility
problems.

I will upload this version later, probably next week. Meanwhile you may
test by fethcing it from CVS or downloading the MetaL CVS snapshot
archives explained here:

http://www.meta-language.net/download.html#cvs

Just let me know if you still find any problems. Thanks for reporting.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#113 From: "Kike F Becerra" <qbecerra@...>
Date: Tue May 24, 2005 8:57 pm
Subject: Automatic select generation from another select
qbecerra
Send Email Send Email
 
Hi guys...
I'm having a little trouble now, because I have this:

I need a country list in a select field (has any1 the code to generate
this list ?)

Well, when i have this country list select, i'd need following:

When user selects a country, the system should check if there's a list
of provinces/cities in a mysql table for that choosen country and then
generate another select with provinces/cities using the class or
another thing...

thanks a lot in advance... hope your help

#114 From: Manuel Lemos <mlemos@...>
Date: Wed May 25, 2005 4:34 am
Subject: Re: Automatic select generation from another select
mallemos
Send Email Send Email
 
Hello,

on 05/24/2005 05:57 PM Kike F Becerra said the following:
> I'm having a little trouble now, because I have this:
>
> I need a country list in a select field (has any1 the code to generate
> this list ?)
>
> Well, when i have this country list select, i'd need following:
>
> When user selects a country, the system should check if there's a list
> of provinces/cities in a mysql table for that choosen country and then
> generate another select with provinces/cities using the class or
> another thing...

Connecting form inputs to handle events triggered in one input is on my
to do list.

Meanwhile, what you want can be done with appropriate Javascript code
set to ONCHANGE event of the master select input.

I have added an example to demonstrate how to do that using arrays of
dependent options for two linked select inputs. I will upload the
example on the weekend. Meanwhile you can try by downloading the Metal
archive from the CVS repository or from the archives available here:

http://www.meta-language.net/download.html#cvs

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

Messages 83 - 114 of 946   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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