Results 1 to 4 of 4

Thread: modal window while processing parent website script

  1. #1
    Join Date
    Oct 2007
    Posts
    38
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default modal window while processing parent website script

    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
    Last edited by ricmetal; 12-10-2008 at 12:11 PM.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.

  3. #3
    Join Date
    Oct 2007
    Posts
    38
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    hy medyman

    im using the 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

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.

  5. The Following User Says Thank You to Medyman For This Useful Post:

    ricmetal (03-07-2009)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •