Can you post both responses here?
First I encourage everyone to carry this conversation to the new prototype scriptaculous forum
http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/1364afb7bca58888
That said here's what firebug is showing, first for the working request, then for the non-working one, I don't think that this is a DOM problem since in the non-working case the alert is never shown, so it looks like the javascript is not getting evaluated at all.
Working:
Params
country_code AI
timezoneable_id 6644
timezoneable_type User
Response Headers
Server nginx/0.5.29
Date Mon, 07 Jul 2008 18:00:44 GMT
Content-Type text/javascript; charset=utf-8
Connection keep-alive
Set-Cookie neartime=6328c886a25842aeb21293c6919790db; domain=.
development.near-time.com; path=/; expires=Thu, 05 Jul 2018 17:55:45 GMT
Status 200 OK
X-Runtime 0.22983
Etag "9315af15ca940f80d119f9874b06848f"
Cache-Control private, max-age=0, must-revalidate
Content-Length 616
Request Headers
Host
sa-space.development.near-time.com
User-Agent Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0
Accept text/javascript, text/html, application/xml, text/xml, */*
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
X-Requested-With XMLHttpRequest
X-Prototype-Version
1.6.0.2Referer
http://sa-space.development.near-time.com/events
Cookie __utma=26861096.1409779322.1204576086.1215011433.1215023063.28; __utmz=26861096.1215023063.28.20.utmcsr=my.development.near-time.com:3000|utmccn=(referral)|utmcmd=referral|utmcct=/profile/edit; neartime=6328c886a25842aeb21293c6919790db; __utma=157920952.4221974457982456300.1211479843.1215448404.1215452953.11; __utmz=157920952.1215448404.10.6.utmcsr=
my.development.near-time.com|utmccn=(referral)|utmcmd=referral|utmcct=/profile/edit; __utma=185682102.3820142486948954600.1214936559.1215444944.1215453488.6; __utmz=185682102.1215453488.6.4.utmcsr=
my.development.near-time.com|utmccn=(referral)|utmcmd=referral|utmcct=/profile; __utmc=185682102; __utmc=157920952; __utmc=26861096; __utmb=157920952.2.10.1215452953; __utmb=185682102.2.10.1215453488
Response
try {
alert("done");
Element.replace("admin-6644-timezone", "\u003Cselect class=\"wide\" id=\"admin-6644-timezone\" name=
\"user[timezone_identifier]\"\u003E\u003Coption value=\"America/Anguilla\"\u003EAmerica/Anguilla\u003C
/option\u003E\u003C/select\u003E");
} catch (e) { alert('RJS error:\n\n' + e.toString()); alert('alert(\"done\");\nElement.replace(\"admin-6644-timezone
\", \"\\u003Cselect class=\\\"wide\\\" id=\\\"admin-6644-timezone\\\" name=\\\"user[timezone_identifier
]\\\"\\u003E\\u003Coption value=\\\"America/Anguilla\\\"\\u003EAmerica/Anguilla\\u003C/option\\u003E
\\u003C/select\\u003E\");'); throw e }
This is the script from the HTML source which is making the AJAX request, again this is the working version:
<script type="text/javascript">
//<![CDATA[
new Form.Element.EventObserver('admin-6644-country_code', function(element, value) {new Ajax.Request('
http://sa-space.development.near-time.com/events/ajax_update_timezone_select_with_new_zones_for_selected_country?timezoneable_id=6644&timezoneable_type=User', {asynchronous:true, evalScripts:true, method:'get', parameters:'country_code=' + value})})
//]]>
</script>
Not Working
Params
country_code AI
timezoneable_id 6644
timezoneable_type User
Response Headers
Server nginx/0.5.29
Date Mon, 07 Jul 2008 18:02:03 GMT
Content-Type text/javascript; charset=utf-8
Connection keep-alive
Set-Cookie neartime=6328c886a25842aeb21293c6919790db; domain=.
development.near-time.com; path=/; expires=Thu, 05 Jul 2018 17:55:44 GMT
Status 200 OK
X-Runtime 0.15805
Etag "9315af15ca940f80d119f9874b06848f"
Cache-Control private, max-age=0, must-revalidate
Content-Length 616
Request Headers
Host
my.development.near-time.com
User-Agent Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0
Accept text/javascript, text/html, application/xml, text/xml, */*
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
X-Requested-With XMLHttpRequest
X-Prototype-Version
1.6.0.2Referer
http://my.development.near-time.com/profile/edit
Cookie __utma=26861096.1409779322.1204576086.1215011433.1215023063.28; __utmz=26861096.1215023063.28.20.utmcsr=my.development.near-time.com:3000|utmccn=(referral)|utmcmd=referral|utmcct=/profile/edit; neartime=6328c886a25842aeb21293c6919790db; __utma=139263919.2051287913.1204576345.1215022160.1215453483.67; __utmz=139263919.1215453483.67.28.utmcsr=
sa-space.development.near-time.com|utmccn=(referral)|utmcmd=referral|utmcct=/events; __utma=185682102.3820142486948954600.1214936559.1215444944.1215453488.6; __utmz=185682102.1215453488.6.4.utmcsr=
my.development.near-time.com|utmccn=(referral)|utmcmd=referral|utmcct=/profile; __utmc=185682102; __utmc=26861096; __utmc=139263919; __utmb=139263919.2.10.1215453483; __utmb=185682102.3.10.1215453488
Response
try {
alert("done");
Element.replace("admin-6644-timezone", "\u003Cselect class=\"wide\" id=\"admin-6644-timezone\" name=
\"user[timezone_identifier]\"\u003E\u003Coption value=\"America/Anguilla\"\u003EAmerica/Anguilla\u003C
/option\u003E\u003C/select\u003E");
} catch (e) { alert('RJS error:\n\n' + e.toString()); alert('alert(\"done\");\nElement.replace(\"admin-6644-timezone
\", \"\\u003Cselect class=\\\"wide\\\" id=\\\"admin-6644-timezone\\\" name=\\\"user[timezone_identifier
]\\\"\\u003E\\u003Coption value=\\\"America/Anguilla\\\"\\u003EAmerica/Anguilla\\u003C/option\\u003E
\\u003C/select\\u003E\");'); throw e }
And here's the javascript from the HTML source.
<script type="text/javascript">
//<![CDATA[
new Form.Element.EventObserver('admin-6644-country_code', function(element, value) {new Ajax.Request('
http://my.development.near-time.com/profile/ajax_update_timezone_select_with_new_zones_for_selected_country?timezoneable_id=6644&timezoneable_type=User', {asynchronous:true, evalScripts:true, method:'get', parameters:'country_code=' + value})})
//]]>
</script>