bas
|
| Posted: 05/17/2011, 2:59 PM |
|
How can I read the current value of a List
ie. tried $myForm->MyLabel->SetValue($myForm->myList->GetValue());
(before show of MyLabel)
and several other variations - MyLabel is always blank
|
|
|
 |
damian
Posts: 838
|
| Posted: 05/17/2011, 6:00 PM |
|
i dont think ccs can grab the selected value in a list box - i think that is javascript.
however - if the listbox is storing its value in the db then you can grab that value
also when are you selecting the value in the listbox? if the user is selecting it after page is displayed and then you want the myLabel to change value you cant do that on the event you are using as the page is already shown.
also what happens if you echo this output?
$myForm->myList->GetValue();
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
bas
|
| Posted: 05/18/2011, 12:10 AM |
|
I tried putting "echo $myForm->myList->GetValue();" in various places
including List After Excecute/Before Show
> however - if the listbox is storing its value in the db then you can grab
> that value
How do I do that?
Do you know if I can somehow get at the SQL or Java script code and set an
temp variable?
What I need to do is allow user to pick Category this then allows him to
pick Pages in that category - any OTHER way to do this ??
"damian" <damian@forum.codecharge> wrote in message
news:54dd31a105f1b6@news.codecharge.com...
>i dont think ccs can grab the selected value in a list box - i think that
>is
> javascript.
> however - if the listbox is storing its value in the db then you can grab
> that
> value
> also when are you selecting the value in the listbox? if the user is
> selecting
> it after page is displayed and then you want the myLabel to change value
> you
> cant do that on the event you are using as the page is already shown.
> also what happens if you echo this output?
> $myForm->myList->GetValue();
> _________________
> if you found this post useful take the time to help someone else.... :)
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Waspman
Posts: 948
|
| Posted: 05/18/2011, 12:45 AM |
|
dependant list boxes, jQuery -Ajax...menu builder?
_________________
http://www.waspmedia.co.uk |
 |
 |
bas
|
| Posted: 05/18/2011, 1:19 AM |
|
Sorry I don't really understand your response.
Its not really a menu I'm trying to produce - if that's what you mean !
Lets forget the method or technology used and let me explain what I'm trying
to get
Two Tables - "Category" and "Pages"
I want to allow the user to Select a Category from a LIST
I then want to present the user with Items (Pages) in that Category only, in
a 2nd List
so the 2nd list content depends on the 1st list
However, I also need the values of the at least 2 other fields from the 2nd
Table
something like.... Select * from pages where pages.categoryid =
category.categoryid
Ajax is nice because its smoother ie. only controls are updated.
"Waspman" <Waspman@forum.codecharge> wrote in message
news:54dd3793036326@news.codecharge.com...
> dependant list boxes, jQuery -Ajax, a menu?
> _________________
> http://www.waspmedia.co.uk
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
 |
Waspman
Posts: 948
|
| Posted: 05/18/2011, 2:11 AM |
|
Ajax it is then...
do it with this...
http://forums.yessoftware.com/posts.php?post_id=115394
_________________
http://www.waspmedia.co.uk |
 |
 |
bas
|
| Posted: 05/19/2011, 8:12 AM |
|
Yep, Pitty
Tried that lookup works fine but becuase the data is generated on a 2nd
(PHP) page I can't get JQuery Zoom to fire !
"Waspman" <Waspman@forum.codecharge> wrote in message
news:54dd38d282242f@news.codecharge.com...
> Ajax it is then...
>
> do it with this...
>
>
> http://forums.yessoftware.com/posts.php?post_id=115394
> _________________
> http://www.waspmedia.co.uk
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
 |