Log in

View Full Version : modal window while processing parent website script



ricmetal
12-09-2008, 06:45 PM
hey

im looking for a modal window script that allows the parent website to work in the background (deleting an entry from a database), while it displays a loading message. so click button on parent website > modal window > query, delete, reload in the parent website + remove modal window.

anybody know when i can find a script like that?
or if it is even possible to do this? or an alternative? ;D

ive seen something along these lines before, where a loading bar appeared while the parent background was doing something

Medyman
12-11-2008, 04:00 AM
Any modal window script will allow you to do that. Each would have a different technique. Is there a particular one you're using or leaning towards?

It sounds like you'll be doing Ajax, so I would recommend looking to the jQuery library and one of the numerous modal window plugins for it. That way you don't have to worry about script incompatibilities if you're using other JS.

ricmetal
12-13-2008, 02:57 AM
hy medyman

im using the Lightbox gone wild (http://particletree.com/features/lightbox-gone-wild/) modal but its blocking the parent website, preventing it to refresh on delete.

maybe if i add the exit modal code on the refresh tag to exit it, and refresh the website it will work but if it works then it is indeed blocking the parent website.

it already blocks the refresh, thats why i was asking about a modal that doesnt block the parent website.

ill have a look at jQuery library again, but ive tried some modals based on jQuery (i think . i tried many scripts) and i never got the website to refresh

Medyman
12-13-2008, 05:13 PM
I think the problem might be in your approach. Are you trying to refresh the page in the background while the modal window is on display? That'll never work as the modal window is part of the page's markup.

Instead, you'll want to use AJAX to asynchronously update whatever is being deleted without having to refresh the entire page.