简体   繁体   中英

Interaction with user in a Javascript Popup

there are 2 main functions on a website that I'm trying to build: 'Search users' and 'interact with users'

Search results display usernames, and I would like to POPUP a box similar to lighbox where the poped up users profile would display. Within it I need to have several action buttons, like block, add to favorites, and separate tab for messaging.

Can all of the above be displayed and refreshed within a javascript popup? What plugins/approach would you recommend?

Essentially, anything can be done inside a lightbox, because a lightbox is only a partially transparent image overlay with html content positioned above the image. What's more, there are plenty of lightbox plugins for jquery (almost too many lightbox plugins, really).

But before you proceed any further, you might want to start planning on creating a javascript disabled fallback for when you cannot display the lightbox.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM