prototype.js and &_=

| 2 Comments | No TrackBacks

Seth pointed me to prototype.js, a handy Javascript library for doing a variety of gee-wizzy things in webapps, one of which is performing a variety of useful AJAX functions. After fighting with it for way longer than necessary, I turned to:

tail -f /var/log/httpd/site_access_log

and after finding the request from my app I discovered that prototype.js was adding a parameter to the list I had provided for the remote call. The line in question is line 214(-ish) of the script, which looks like so:

if (parameters.length > 0) parameters += '&_=';

There are no comments explaining the additional parameter, or why it has no value, but FileMaker (collective groan) doesn’t like it one bit. I’ve commented out the line for now, at least until I’m given a very good reason for it being there.

Anyone have any ideas?

update: Markjuh had the answer - it was originally put there to work around a Safari bug, but is irrelevant now (so commenting it out is ok). Darn you Apple :-) !

No TrackBacks

TrackBack URL: http://redmonk.net/mt/mt-tb.cgi/34

2 Comments

As I said last night, I'm sure it's there just so that you can detect where the request came from, on the server side.

Web servers are supposed to ignore args they don't understand.

I hate filemaker.

Heh. I know, I know. Actually, I believe that the issue is that FileMaker wants its 'action' parameter (-find, -edit, -new) to be LAST. And it'a annoyingly picky about it.

Leave a comment

R.E.M. Says:

About this Entry

This page contains a single entry by Steve published on November 9, 2005 7:06 AM.

Note To Self: A is for... was the previous entry in this blog.

Things I Want: OS X Terminal Edition is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

OpenID accepted here Learn more about OpenID