AJAX Limitation


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: AJAX Limitation

  1. #1
    Join Date
    Aug 2004
    Posts
    5

    AJAX Limitation

    google shows this
    Last edited by kovo; 06-15-2009 at 04:29 PM. Reason: google shows this

  2. #2
    Join Date
    Mar 2007
    Location
    In the Matrix
    Posts
    3
    I've had similar problems too. Don't know of a workaround yet.
    Last edited by WebGeek182; 03-14-2007 at 07:26 PM.

  3. #3
    Join Date
    Jun 2008
    Posts
    1

    Thumbs up Solution to Lytebox problem with AJAX

    Hi guys,

    I was using Lytebox in one of my AJAX applications. The problem was that Lytebox gets initialized during page load. Since AJAX bypasses page load, the problem arises.

    Solution to this is that when you load the content in Ajax response handler,
    simply call the initLytebox(); function.

    Your code will probably look like this...


    function handleHttpResponse() {
    if (http.readyState == 4) {

    document.getElementById('ResultDiv').innerHTML = http.responseText;

    // Following line is to initialize the Lytebox control after content display every time.
    initLytebox();
    }
    }

    ----------------------------------------------------------------

    Vikramjit R.Rai
    http://www.vikramjits.com

Similar Threads

  1. A new AJAX IDE !
    By ajaxtoday in forum AJAX
    Replies: 3
    Last Post: 04-11-2007, 01:40 AM
  2. Replies: 3
    Last Post: 09-12-2006, 02:31 AM
  3. Basic AJAX examples
    By Frefaln in forum AJAX
    Replies: 2
    Last Post: 06-03-2006, 07:45 PM
  4. New forum + some AJAX links
    By Lori in forum AJAX
    Replies: 0
    Last Post: 02-09-2006, 01:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center