User Profile

Collapse

Profile Sidebar

Collapse
conspireagainst
conspireagainst
Last Activity: Sep 13 '07, 02:44 PM
Joined: May 28 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Retrieving AJAX container element name?

    Is there any possible way (I'm using prototype framework) to glean what the name of the container element to be updated (using Ajax.Updater) is?

    I have appended at the bottom of prototype.js a function that shows a loading dialog when any AJAX interaction takes place, but I need to cancel it for one particular element and cannot figure out a way without knowing the element name.

    Here's the code:

    Code:
    Ajax.Responders.register({
    ...
    See more | Go to post

  • Right, however, the referrals are being sent [from our site] by DOM-compatible browsers like FF and others, but IE most of the time is not reporting headers [from our site to the external link] sent via JavaScript's window.open() function.

    Is there a way to get window.open() to always send the header, or is this solely reliant upon the browser and cannot be controlled?

    Basically, I need a sure-fire, 100% method of sending...
    See more | Go to post

    Leave a comment:


  • External links, xhtml standards, reporting header info?

    I'm in a bit of a quandry.

    Since XHTML strict does not allow the use of the attribute target="_whatev er" inside anchor tags (since HTML 4), most web standards professionals advocate the use of either a simple, or complicated, depending on the situation, Javascript function that is an event handler.

    Now, this event handler that forces new windows onclick by using the function window.open() has one main issue...
    See more | Go to post

  • Wow, that's a lot of work you did! That code is probably better than what I have and accounts for things that I hope users won't do but I'm sure they will.

    Thanks!...
    See more | Go to post

    Leave a comment:


  • I have finally found a way to do what is needed, based on what everyone has said so far. It is complicated, that much is true, but it works. The last solution posted did not work still, so I am forgetting Regex for now and simply using PHP's string functions.

    Test data: (string)$tag_li st = tag1, tag2, "tag3 tag3, tag3" tag4, "tag5, tag5", tag6 tag7

    [PHP]
    // ensure there is at least one beginning...
    See more | Go to post

    Leave a comment:


  • That doesn't seem to make a difference in my particular case. Thanks for the reply, though! Any other thoughts?...
    See more | Go to post

    Leave a comment:


  • Regex needed for splitting on commas (not inside quotes)

    I'm having quite a time with this particular problem:

    I have users that enter tag words as form input, let's say for a photo or a topic of discussion. They are allowed to delimit tags with spaces and commas, and can use quotes to encapsulate multiple words.

    An example:

    tag1, tag2 tag3, "tag4 tag4, tag4" tag5, "tag6 tag6"

    So, as we can see here anything is allowed, but...
    See more | Go to post
No activity results to display
Show More
Working...