Hello,
I've been using QuickForm for a few months now and I am now given a
new challenge:
I've got a search form with a dozen of dropdown menus, the first
dropdown menu being "Brand". If you select either Brand A, B, C, D...
Z, the second dropdown menu "Model" must be dynamically changed to
model AA, AB, AC, AD..., according to the models manufactured by the
brand selected in the first box.
I've seen that done on quite a few sites, but never found if QuickForm
had a quick & clean way of doing that.
Any idea?
Thanks,
JFLac 4 4239
i suppose "dynamicall y change" means on the spot...
using php - not possible, because to change the page you have to make a
trip to the server and back, i.e. reload the page.
if you dont't mind the trip to the server, it's easy. just have php
print the selects according to the submitted values.
using javscript - possible, but maybe not good
1. many people have turned off javascript. they will never be able to
use your search, unless you build in a fallback.
2. you'll have to include every possible choice for the selects in the
code from the very start (because there is no trip back to the server),
which is likely to make huge files - not good
3. if you want to use javascript anyway: have a look at DOM, especially
appending, removing and altering children (because every option of a
select is a child to that select)
micha
"micha" <ch*********@we b.de> wrote in news:1114687283 .519957.306190
@f14g2000cwb.go oglegroups.com: 1. many people have turned off javascript. they will never be able to use your search, unless you build in a fallback.
really? "many people"?
anyone that disables javascript is probably used to many websites not
working properly, and have probably switched it on by now.
I just can't see anyone going into browser settings and shutting off
javascript in 2005...
micha wrote:
<snip> 1. many people have turned off javascript. they will never be able to use your search, unless you build in a fallback.
That's why the PHP version has to be first done and the JavaScript
"speeding up processes" have to be lately--by hooking the forms and
elements (using external js file) and act accordingly than by mixing
JavaScript with HTML.
2. you'll have to include every possible choice for the selects in
the code from the very start (because there is no trip back to the
server), which is likely to make huge files - not good
Yes, buffering in JS isn't a better solution. But, AJAX technique
might be used to avoid memory issues.
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Good Man wrote: "micha" <ch*********@we b.de> wrote in news:1114687283 .519957.306190 @f14g2000cwb.go oglegroups.com:
1. many people have turned off javascript. they will never be able
to use your search, unless you build in a fallback. really? "many people"?
well, "many" is just a phrase i use in these cases. it's probably not
that many in numbers, but consider for instance people accessing the
net with other hard-/software than screen/browser, like blind people
using braille readers.
i do web developement for the public sector in germany. we must (by
law) design apps accessible to everyone, which forbids to code any
crucial functionality in js.
anyone that disables javascript is probably used to many websites not
working properly, and have probably switched it on by now.
I just can't see anyone going into browser settings and shutting off javascript in 2005... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: red |
last post by:
I have PHP Version 5.0.1 installed on my computer, and according to the
pear manual pear is already installed. But how do I tell if it is
installed ?
for example, how do I get this line, which I found in the pear manual to
work:
require_once "HTML/Table.php";
Warning: main(HTML/Table.php) : failed to open stream: No
|
by: william108 |
last post by:
I am trying to insert the current date into a database from within an
HTML_QuickForm document. Any suggestions on how? Also does anyone know
if it is possible to to use regular php type queries from within a
HTML_QuickForm document and whether you can put functions (like NOW())
as an argument to addelement()? Also, are there any forums dedicated to
PEAR or QuickForm?
Thanks.
|
by: stab |
last post by:
Hello everybody,
I am learning HTML_QuickForm_Controller pear extension.
situation:
In my project the pages are called by a op get parameter
(index.php?op=foobar) and this needs to remain there even when forms are
submitted.
the problem:
|
by: erwinschrijver |
last post by:
On a previous installed server my site which uses several PEAR-packages
worked fine.
Now it's transfered to a new server. (Both servers installed with
Windows 2003 / IIS 6, on the previous server the PHP version was 5.03,
on the new one 5.05)
The site gives a open_basedir restriction on this new server. In the
php.ini the open_basedir line is commented, but when I run the command
phpinfo() there appears to be a local value, which I...
|
by: lawrence k |
last post by:
I wrote a simple CMS for personal use. I'm thinking of using it for
other clients now. It's use of the database is slow and inefficient.
I'm thinking of switching to the PEAR class listed here:
http://pear.php.net/package/DB
What do people think of it?
| |
by: Yi Chen |
last post by:
We have a drop down list on a PHP page, with several product names, and
when people click one item, we will refresh the same page with the
product name as parameter, and in turn we want to include a HTML file
into the content area of the same page.
I know it is recommended to put everything into database, but we want
the web site to be very "portable", so the drop-downlist and the
content should both in text files.
Let's say the...
|
by: Paul |
last post by:
I am moving an existing app written years ago to a new server. It uses
Sigma Template 1.3 and Quickform 1.1.1 and PEAR.php,v 1.1.1.1 2004/02/16
The directory structure is like this:
/site
/site/html/Pear.php
/site/html/Sigma.php
/site/html/Common.php
/site/html/Quickform.php
/site/html/Quickform/
|
by: cybervigilante |
last post by:
I can't seem to change the include path on my local winmachine no
matter what I do. It comes up as
includ_path .;C:\php5\pear in phpinfo() but there is no such file. I
installed the WAMP package and PEAR is in c:\wamp\php\pear
I modified php.ini in the c:\wamp\php directory to reflect the actual
path, but even stopping and restarting my server shows the c:
\php5\pear path. I can't change it no matter what I do I also tried
the...
|
by: Dan |
last post by:
Hi all,
I'd like to add rules to QuickForm2, however, the version I've
downloaded from PEAR seems not to have come with the necessary files.
Everywhere I look I see people talking about adding rules to their
form object and the development wiki at http://quickform.mamasam.com/wiki/
suggests that I should have these features, which I do not (->addRule
gives a non method error and I have no Rules.php and no Rules folder
in the PEAR...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |