SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    ********* Articles ArticleBot's Avatar
    Join Date
    Apr 2001
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Article Discussion

    This is an article discussion thread for discussing the SitePoint article, "No-Refresh Links"

  2. #2
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Durham, NC USA
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This looks like the answer I am looking for, but both the link code and the form code return an 404 error and not a 204 error. The link 204.php, just seems to tell the browser to go to 204.php...not call a 204 header code. I've tried both types of headers. I can get the 204 no call header to work (i.e. when I refresh, nothing changes - but I can't get 204.php to call that header). Any thoughts?

  3. #3
    Ryan
    SitePoint Community Guest
    This solved my problem. For ColdFusion the syntax is this:
    <cfheader statuscode="204" statustext="No Content">

  4. #4
    Mark
    SitePoint Community Guest
    Sometimes firefox will make the browser completly white when it receives a 204 No Content response.

    Another option (best used in conjunction with the 204 response) is to make a request in such a way that the browser won't care if no response is returned. Instead of doing location.assign(url) or location = url, try:
    var img = new Image();
    img.src=url;
    where url is some request string like 'update.php?id=5&new_state=closed'


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
  •