SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict Johana Solendhal's Avatar
    Join Date
    Aug 2004
    Location
    Land of the free
    Posts
    252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    AJAX: Infinite windows poping up! Help me killl them!!!

    Hello again!

    Boy, this one is annoying the heck out of me!
    I downloaded an ajax script from dhtmlgoodies, but can't get it to work properly.

    http://www.lojadasflores.pt/floating...ng_window2.htm

    Try clicking on Create new window dynamically(get data from external file) . Aftert the pop window opens, try and click on the link again, and again and again!

    you see, I just want it to load one single time! If the visitors clicks again onthe link, it shouldn't open it!

    Pleeeease help me guys!

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,044
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)

    event - open

    You should be able to wrap the open in an if. eg. (in pseudo-code)
    global var spawn = 0;
    click event;
    if (spawn == 0) {
    spawn++;
    open window;


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
  •