SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Oct 2006
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    prototype failure container

    In prototype with ajax.updater you can chose to show errors in another div than the one you want "real" content in.

    Code:
    new Ajax.Updater({ success: 'items', failure: 'notice' }, 'ajax_req.php', {
      parameters: { text: $F('text') },
      insertion: Insertion.Bottom
    });
    But all information i print out from ajax_req.php gets in the items div. How can i print out errors from ajax_req.php into the notice div?

  2. #2
    SitePoint Addict jtrelfa's Avatar
    Join Date
    Oct 2004
    Location
    Troy, Mi
    Posts
    231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you tried manually creating errors, such as a 404?
    var me = null;


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
  •