Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Good Context/Pop-up Menu Routine
March 19, 2012, 10:26 pm
rate this thread
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
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???
Re: Good Context/Pop-up Menu Routine
<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
(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.
- » Cheapest Websites: Only for 100USD: Fully designed and Fully registered
- — Previous thread in » Webmaster Forum