CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Populating Listboxes

Print topic Send  topic

Author Message
Mark
Posted: 06/26/2002, 1:27 PM

Hi,

What I'm trying to do is to get one listbox populated based on another.
I know there's a javascript workaround for this, but I don't want to load
all the data to the client, as I'm acutely aware how easy it is for your PC
to run out of resources, regardless of the RAM available !

How can I make use of a button or link, to force the listbox in question to
re-populate itself from the server, when clicked ?

For Example, I think what I could do is set a session parameter in the
Client OnChange event of the first listbox to hold the new key based on the
selection made.

Then have a button which has a server OnClick event, that executes some SQL
based on the session parameter to get the correct entries & then populate
the second listbox....

That's my theory, but can anyone show me how to actually do this as I'm not
having any luck so far !!

Using PHP & MySQL.

Many Thanks,
Mark


Robert Rodgers
Posted: 06/27/2002, 12:56 PM

Another way is to keep posting to the current page Here is an example. This
is an ASP example but I don't think it should matter.

You will need to set up a connection named "Connection1" that points to the
Internet database (this example uses "users", and "user_groups") and point
to your publishing location

--
Robert Rodgers
Robert@SylvanComputing.com
Ph: 509.531.4351
Fax: 503.961.0317
Text Message: mailto:5095314351@mobile.att.net
===============================================
*** NEW ***
See our web hosting options
500MB Web Space, NT2000 Hosted, Unmetered Data
Transfer, Unlimited Email, Unlimited Email
Aliases, Web based mail access, MSSQL2000, ASP,
Coldfusion, PHP, Frontpage 2000, Server Side
Includes (.stm, .shtm, .shtml), RealAudio/Video,
SSL Security, E-commerce Shopping Cart
$360.00/yr or $35/mo
www.sylvancomputing.com
---
"Mark" <mark@markate.demon.co.uk> wrote in message
news:afd846$kob$1@news.codecharge.com...
> Hi,
>
> What I'm trying to do is to get one listbox populated based on another.
> I know there's a javascript workaround for this, but I don't want to load
> all the data to the client, as I'm acutely aware how easy it is for your
PC
> to run out of resources, regardless of the RAM available !
>
> How can I make use of a button or link, to force the listbox in question
to
> re-populate itself from the server, when clicked ?
>
> For Example, I think what I could do is set a session parameter in the
> Client OnChange event of the first listbox to hold the new key based on
the
> selection made.
>
> Then have a button which has a server OnClick event, that executes some
SQL
> based on the session parameter to get the correct entries & then populate
> the second listbox....
>
> That's my theory, but can anyone show me how to actually do this as I'm
not
> having any luck so far !!
>
> Using PHP & MySQL.
>
> Many Thanks,
> Mark
>
>
>


begin 666 linkedlist.zip
M4$L#!!0````(`%QEVRR&:C_Y;0(``,L&```,````5&5S=$QI;FLN8V-PS55-
M;]LP##UWP/Z#H<,^@+5!NNVT.$":)D6'H//F8-="L=E8F"RYE-2F^_6C)#NU
MTPWH80-V$Y\H\I&/IB<9WT(BRI2-66*A;B2WL-A94$9HE;+*UI(E" 2+.\BX
MK5)VPI(;)^6W0]! X1 HU))+`RQQ*-</#:2L\V2),)>JD*[L>>7Y:E848$R'
M3%^^.)K,==UH!<H:;QY-5L+8,[T+3$\IOP!9YMIA`3'%^=E<2U<K8M%#UWPC
M*47)+6\!V%F60"FLOR$;'=U7W"P0-5(("84-A<<;!.M0?>?2M1&O7+T!9(GB
M-5DM*VK=O?C)L5Q7X.$K8CZ XMNE\&0*K5279+X_CR/+6%+*G &\WJ)VC6')
M1CM5QO)2%L!K47JU=G:(>E(4!VZXDS:0IA3S"[!+U'6FC7WSZM9I^\G3WA#M
M:+T['K]ETU['1]/)XJX]A YF'"FR!?1(G@W-KZN!_5D+%1YUQDJH'_Z\])+Y
MPZCMVG0@ZOO_3=33?R+JH9Q!Z$,U`RCU5E#EO/!?SJ"(H22=2X CI\>DS]7U
M$ B2? AU45LI;0R\OV_%ZH_CHQZ7RL+6^QC@6%3S88S%K>.T4IHN5-M&C35+
M?,W%EP:06XTIFZFRY]BUL9M>EF@L`:-X87\-)_]XS/RT/:GT+P[PF;-6J]"L
MC[_==Z!\)"(DJ#V]$13F/'+=K\$X>S'@^.ET/W\4XW3[M>[?&NOIGQ1%\\=1
M&,6D=!@N77(OP<=L5W!GAG*]07IQM74ATRS/UNW?PW3%[+-ST_A1JFL*G;+7
M-#P:\T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YK+F-C<%!+`0(4`!0````(`&5EVRS2"P@.IP0``#(-```,````
M``````$`( "V@9<"``!497-T3&EN:RYA<W!02P$"% `4````" !,9=LL* AA
ME&$!``#.`@``#0`````````!`" `MH%H!P``5&5S=$QI;FLN:'1M;%!+`0(4
M`!0````(`&1EVRREHK=F( (``(H&```.``````````$`( "V@?0(``!497-T
@3&EN:V5D+F-C<U!+!08`````! `$`.L```! "P``````
`
end
Mark
Posted: 06/27/2002, 1:51 PM

Hi Robert,

many thanks - I'll take a look & get back to you.

Regards,
Mark

Robert Rodgers <Robert@SylvanComputing.com> wrote in message
news:affql5$h1c$1@news.codecharge.com...
> Another way is to keep posting to the current page Here is an example.
This
> is an ASP example but I don't think it should matter.
>
> You will need to set up a connection named "Connection1" that points to
the
> Internet database (this example uses "users", and "user_groups") and point
> to your publishing location
>
> --
> Robert Rodgers
>Robert@SylvanComputing.com
> Ph: 509.531.4351
> Fax: 503.961.0317
> Text Message: mailto:5095314351@mobile.att.net
> ===============================================
> *** NEW ***
> See our web hosting options
> 500MB Web Space, NT2000 Hosted, Unmetered Data
> Transfer, Unlimited Email, Unlimited Email
> Aliases, Web based mail access, MSSQL2000, ASP,
> Coldfusion, PHP, Frontpage 2000, Server Side
> Includes (.stm, .shtm, .shtml), RealAudio/Video,
> SSL Security, E-commerce Shopping Cart
> $360.00/yr or $35/mo
> www.sylvancomputing.com
> ---
> "Mark" <mark@markate.demon.co.uk> wrote in message
>news:afd846$kob$1@news.codecharge.com...
> > Hi,
> >
> > What I'm trying to do is to get one listbox populated based on another.
> > I know there's a javascript workaround for this, but I don't want to
load
> > all the data to the client, as I'm acutely aware how easy it is for your
> PC
> > to run out of resources, regardless of the RAM available !
> >
> > How can I make use of a button or link, to force the listbox in question
> to
> > re-populate itself from the server, when clicked ?
> >
> > For Example, I think what I could do is set a session parameter in the
> > Client OnChange event of the first listbox to hold the new key based on
> the
> > selection made.
> >
> > Then have a button which has a server OnClick event, that executes some
> SQL
> > based on the session parameter to get the correct entries & then
populate
> > the second listbox....
> >
> > That's my theory, but can anyone show me how to actually do this as I'm
> not
> > having any luck so far !!
> >
> > Using PHP & MySQL.
> >
> > Many Thanks,
> > Mark
> >
> >
> >
>
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.