Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #12908 > unrolled thread
| Started by | "Mojo" <please@dont.spam.com> |
|---|---|
| First post | 2012-03-19 22:26 +0000 |
| Last post | 2012-03-21 19:48 +0000 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.lang.javascript
Good Context/Pop-up Menu Routine "Mojo" <please@dont.spam.com> - 2012-03-19 22:26 +0000
Re: Good Context/Pop-up Menu Routine Jeff North <jnorthau@yahoo.com.au> - 2012-03-20 11:47 +1100
Re: Good Context/Pop-up Menu Routine Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2012-03-20 19:51 +0100
Re: Good Context/Pop-up Menu Routine Dr J R Stockton <reply1212@merlyn.demon.co.uk.not.invalid> - 2012-03-21 19:48 +0000
| From | "Mojo" <please@dont.spam.com> |
|---|---|
| Date | 2012-03-19 22:26 +0000 |
| Subject | Good Context/Pop-up Menu Routine |
| Message-ID | <gtCdncj2uuMML_rSnZ2dnUVZ7rGdnZ2d@brightview.co.uk> |
Hi All First of all, apols for the multi-post, but I'm hedging my bets on finding anybody because all of the groups seemed to have died out or been spammed to death at least. I'm back in the dev saddle after about 4 or 5 years out and I'm just finding my way in this new world. Ajax actually working is the most beautfiul thing I've seen up to yet and I'm desperately trying to embrace jquery, but I've come unstuck with a particular feature that I need. Basically I have a HTML table of data and I want to manipulate each cell by right or left clicking on the cell and selecting a value from what I'd call a bespoke contextual/pop-up menu. Now the actual values will be straightforwarrd string values, but I do need the ability to go down/into a sub-level menu from it, as some options will be say Fruit and I need to provide a sub-menu to select Apple, Banana or Pear. The reason I'm going for a right-click option is because many users will select the menu, have a look and probably not pick an option so the natural get around for this is to left click somewhere on the screen. I'd prefer to go the left-click route as I don't think tablets, ipads, etc have a right-click option (do they?), but if you go left-click with a pop-up what would be the best way to let them get away from it if they didn't want to make a selection? 'If mouseout...'???? Anyway I've scoured the internet and I know I might be missing something here, but all of the Jquery ones I've tried **really** lag the page load and I'm only testing with about 30 rows x 8 cols of data. I foresee three times as many rows at any one time. From what I've seen I can throw an ID and value at ajax to update the cell innerText and the DB and I can see the principal that you show a div above the selected cell, which in effect contains the menu (and sub-menus), but this is alll virgin terriority for me and I wondered if anybody had got round this sort of problem??? Thanks
[toc] | [next] | [standalone]
| From | Jeff North <jnorthau@yahoo.com.au> |
|---|---|
| Date | 2012-03-20 11:47 +1100 |
| Message-ID | <gskfm7pdfirbl17pf2a6b0s2264clejrav@4ax.com> |
| In reply to | #12908 |
On Mon, 19 Mar 2012 22:26:14 -0000, in comp.lang.javascript "Mojo" <please@dont.spam.com> <gtCdncj2uuMML_rSnZ2dnUVZ7rGdnZ2d@brightview.co.uk> wrote: >| Hi All >| >| First of all, apols for the multi-post, but I'm hedging my bets on finding >| anybody because all of the groups seemed to have died out or been spammed to >| death at least. >| >| I'm back in the dev saddle after about 4 or 5 years out and I'm just finding >| my way in this new world. >| >| Ajax actually working is the most beautfiul thing I've seen up to yet and >| I'm desperately trying to embrace jquery, but I've come unstuck with a >| particular feature that I need. >| >| Basically I have a HTML table of data and I want to manipulate each cell by >| right or left clicking on the cell and selecting a value from what I'd call >| a bespoke contextual/pop-up menu. >| >| Now the actual values will be straightforwarrd string values, but I do need >| the ability to go down/into a sub-level menu from it, as some options will >| be say Fruit and I need to provide a sub-menu to select Apple, Banana or >| Pear. >| >| The reason I'm going for a right-click option is because many users will >| select the menu, have a look and probably not pick an option so the natural >| get around for this is to left click somewhere on the screen. I'd prefer to >| go the left-click route as I don't think tablets, ipads, etc have a >| right-click option (do they?), but if you go left-click with a pop-up what >| would be the best way to let them get away from it if they didn't want to >| make a selection? 'If mouseout...'???? >| >| Anyway I've scoured the internet and I know I might be missing something >| here, but all of the Jquery ones I've tried **really** lag the page load and >| I'm only testing with about 30 rows x 8 cols of data. I foresee three times >| as many rows at any one time. >| >| From what I've seen I can throw an ID and value at ajax to update the cell >| innerText and the DB and I can see the principal that you show a div above >| the selected cell, which in effect contains the menu (and sub-menus), but >| this is alll virgin terriority for me and I wondered if anybody had got >| round this sort of problem??? >| >| Thanks >| Can you put up a sample page so we can see what you actually want to do (your description isn't all that clear to me).
[toc] | [prev] | [next] | [standalone]
| From | Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> |
|---|---|
| Date | 2012-03-20 19:51 +0100 |
| Message-ID | <lakhm79nrkbo1eol168ghufsvblnee7e03@4ax.com> |
| In reply to | #12908 |
On Mon, 19 Mar 2012 22:26:14 -0000, Mojo wrote: >Ajax actually working is the most beautfiul thing I've seen up to yet and >I'm desperately trying to embrace jquery, but I've come unstuck with a >particular feature that I need. I almost thought that was a typo, as JavaScript programmers around here desperately try just the opposite, to keep jQuery away as far as possible. I'm sure the feature you seek does not require jQuery. Hans-Georg
[toc] | [prev] | [next] | [standalone]
| From | Dr J R Stockton <reply1212@merlyn.demon.co.uk.not.invalid> |
|---|---|
| Date | 2012-03-21 19:48 +0000 |
| Message-ID | <FgiuRyGYCjaPFwl+@invalid.uk.co.demon.merlyn.invalid> |
| In reply to | #12908 |
In comp.lang.javascript message <gtCdncj2uuMML_rSnZ2dnUVZ7rGdnZ2d@bright view.co.uk>, Mon, 19 Mar 2012 22:26:14, Mojo <please@dont.spam.com> posted: >Basically I have a HTML table of data and I want to manipulate each cell by >right or left clicking on the cell and selecting a value from what I'd call >a bespoke contextual/pop-up menu. <http://www.merlyn.demon.co.uk/js-faq-u.htm#CM> does something like that with a one-cell target. One advantage over the WinXP context menu is that it Zooms (That could perhaps be prevented by sizing everything, even the font, in px units (untested). -- (c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05. Website <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web