By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,031 Members | 1,248 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,031 IT Pros & Developers. It's quick & easy.

A Problem to solve

P: n/a
I have a page that is loaded with 12 labels and potentially 100s
i have placed and icon next to each label. What I need to do is to
have a 'hidden layer' of sort that displays a long list of choices
(500 or more). I need this layer to popup below the icon and when the
user selects an item, the label should be replaced with the item
selected.

I can not offord to have potentially 100 drop down lists for obvious
rendering delays. Can someone point me in the right direction ?

As usual; an example is highly appreciated since I am a newbee to
layers

many thanks for your effort

Nov 9 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On Nov 9, 2:03 am, Rivotti <MelHer...@gmail.comwrote:
I have a page that is loaded with 12 labels and potentially 100s
i have placed and icon next to each label. What I need to do is to
have a 'hidden layer' of sort that displays a long list of choices
(500 or more). I need this layer to popup below the icon and when the
user selects an item, the label should be replaced with the item
selected.

I can not offord to have potentially 100 drop down lists for obvious
rendering delays. Can someone point me in the right direction ?

As usual; an example is highly appreciated since I am a newbee to
layers

many thanks for your effort
Can you please rephrase your question? I'm having hard time to
understand
both what your problem is and what the page purpose is. It would be
good
to accompany it with a piece of code what you've tried so far, or
better
yet, a URL of the page where it can be looked upon.

Nov 9 '07 #2

P: n/a
>From my understanding, heres how I would approch it

What is needed is a hidden div (<div style="display:none"></div>)
below each label, then on the on click event, do an ajax request
getting the choices. Then on complete of the ajax request, load the
choices into the div and show the div.
Then on the choice click change the name of the label, and send the
information back to the server.

What framework are you using?
---
Camocarzi - The art of web development
Blog: www.camocarzi.com
Labs: http://svn.camocarzi.com/public

Nov 9 '07 #3

P: n/a
Camo said the following on 11/8/2007 10:59 PM:
>>From my understanding, heres how I would approch it

What is needed is a hidden div (<div style="display:none"></div>)
below each label, then on the on click event, do an ajax request
getting the choices.
Who fed you that load of crap? There are better ways to get data into a
page.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 9 '07 #4

P: n/a
Who fed you that load of crap? There are better ways to get data into a
page.
Of course you can do it with out the XHR request, It really comes done
the actual problem hes trying to solve, a XHR request would atleast
reduce all the pointless data being sent back to the client every
time, if 90% of the time the user isn't going to even see the
choices.

---
Camocarzi - The art of web development
Blog: www.camocarzi.com
Labs: http://svn.camocarzi.com/public

Nov 9 '07 #5

P: n/a
Camo said the following on 11/9/2007 1:06 AM:
>Who fed you that load of crap? There are better ways to get data into a
page.

Of course you can do it with out the XHR request,
Of course you can. Or I wouldn't have asked my question.
It really comes done the actual problem hes trying to solve,
No argument there.
a XHR request would at least reduce all the pointless data being
sent back to the client every time, if 90% of the time the user
isn't going to even see the choices.
You are getting closer. An XHR request is not the best way to get data
into a page. And no, I am not saying to transport all the data at one
time. I can get data into a page more reliably and in more browsers
without an XHR request than an XHR request can. Search the archives for
dynamically load js file (loadJSFile is the name of a function). It has
a lot wider support than "ajax" does, it just doesn't have a buzz word
name for it.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 9 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.