CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Listbox

Print topic Send  topic

Author Message
Jack
Posted: 03/04/2002, 8:46 AM

Dear Sir,
I still have some basic problem in my listbox.

I tried to explain more clearly. I had a listbox, the content
comes from another table.

listbox: fldfix_part_id ( maintanence table )

data_source : primary key --> part_id ( parts table )
showing --> part_id

and I have another textbox : fldfix_part_name

If user select the items in listbox "fldfix_part_id" comes from parts table,
it would automatically get the part_name in the same table and pass the
value to fldfix_part_name.

I tried the solution you provided ( independent listbox ), there are two
javascript
arrays. I changed to use one array to keep the "part_id"&"#"&"part_name".
But I don't know if it's correct and I don't know how to pass the content
from
ASP to Javascript. EX: I wrote :

var cats = new Array;
cats('{parts}') =..........

I'm not so good in Javascript, please give me some instructions to do it.

thanks

Jackson


Alexey Alexapolsky
Posted: 03/05/2002, 2:42 AM

To fill javascript array you need to put data in template variables.
To get a better understanding of template mechanism please read
http://www.gotocode.com/art.asp?art_id=91&
This is a rather hard task you want to do and may be you better try to
do it without javascript , so that after new item is selected page is
reloaded
with it's data.


--
Alex
CodeCharge Developer


"Jack" <jack38@ms10.url.com.tw> wrote in message
news:a608cp$9o8$1@news.codecharge.com...
> Dear Sir,
> I still have some basic problem in my listbox.
>
> I tried to explain more clearly. I had a listbox, the content
> comes from another table.
>
> listbox: fldfix_part_id ( maintanence table )
>
> data_source : primary key --> part_id ( parts table )
> showing --> part_id
>
> and I have another textbox : fldfix_part_name
>
> If user select the items in listbox "fldfix_part_id" comes from parts
table,
> it would automatically get the part_name in the same table and pass the
> value to fldfix_part_name.
>
> I tried the solution you provided ( independent listbox ), there are two
> javascript
> arrays. I changed to use one array to keep the "part_id"&"#"&"part_name".
> But I don't know if it's correct and I don't know how to pass the content
> from
> ASP to Javascript. EX: I wrote :
>
> var cats = new Array;
> cats('{parts}') =..........
>
> I'm not so good in Javascript, please give me some instructions to do it.
>
> thanks
>
> Jackson
>
>
>

Jack
Posted: 03/06/2002, 4:45 AM

Dear Alexey,

I also tried to pass the value via a "URL" field, but
I was working with a master/detail page. I needed to receive
parameters came from other pages.

Would you please explain me more detail about your suggestion ?
I was quiet interested in your solution.

many thanks

Jackson

"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:a627dg$lqd$2@news.codecharge.com...
> To fill javascript array you need to put data in template variables.
> To get a better understanding of template mechanism please read
> http://www.gotocode.com/art.asp?art_id=91&
> This is a rather hard task you want to do and may be you better try to
> do it without javascript , so that after new item is selected page is
> reloaded
> with it's data.
>
>
> --
> Alex
> CodeCharge Developer
>
>
> "Jack" <jack38@ms10.url.com.tw> wrote in message
>news:a608cp$9o8$1@news.codecharge.com...
> > Dear Sir,
> > I still have some basic problem in my listbox.
> >
> > I tried to explain more clearly. I had a listbox, the content
> > comes from another table.
> >
> > listbox: fldfix_part_id ( maintanence table )
> >
> > data_source : primary key --> part_id ( parts table )
> > showing --> part_id
> >
> > and I have another textbox : fldfix_part_name
> >
> > If user select the items in listbox "fldfix_part_id" comes from parts
> table,
> > it would automatically get the part_name in the same table and pass the
> > value to fldfix_part_name.
> >
> > I tried the solution you provided ( independent listbox ), there are two
> > javascript
> > arrays. I changed to use one array to keep the
"part_id"&"#"&"part_name".
> > But I don't know if it's correct and I don't know how to pass the
content
> > from
> > ASP to Javascript. EX: I wrote :
> >
> > var cats = new Array;
> > cats('{parts}') =..........
> >
> > I'm not so good in Javascript, please give me some instructions to do
it.
> >
> > thanks
> >
> > Jackson
> >
> >
> >
>
>


   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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