Hi all,
I know this might not be the right forum to post this question but i
need advice anyway.
The application im developing has 2 things giving me a real headache,
there is a default chemicals list without values which will be used
for first time entry. User can either add to the list new
Hi, i have a problem with this ajax oncomplete callback function, it
works with firefox but not in internet explorer.. i tried to debug
with firebug, everythings seems ok until this line of code..
var response = eval(( + request.responseText + )); //i suspect
something wrong in here
Hi,
Why not use the responseJSON property?
http://www.prototypejs.org/api/ajax/response
Also:
//callback function
function loadcomplete(request)
Your variable name there is probably misleading, as the callback
receives an Ajax.Response object, not the Ajax.Request object.
HTH,
--
T.J.
On Sep 28, 10:00 am, Blaze [EMAIL PROTECTED] wrote:
Hello,
indeed something wrong here:
var response = eval(( + request.responseText + ));
You should just use:
var response = eval(request.responseText);
Not really.
Those parenthesis around a to-be-evaluated string make it
(syntactically)
Hi,
You don't have to eval the responseJSON. The point of the
responseJSON property is that the JSON has already been decoded into
an object for you. So if you have page returning:
{
foo: bar
}
and your handler looks like this
function oncomplete(response)
{
2008/9/27 darrinholst [EMAIL PROTECTED]
I was going to inject my own thoughts on this, but I found this thread
instead...
http://groups.google.com/group/prototype-core/browse_thread/thread/140fdf88eed057d/1c466af382e9ba54?lnk=gstq=toQueryString#
Some good reading, but I'm not sure what
There is a trailing comma in your object that IE doesn't like,
considering a syntax error. Remember when evaling something that the
expression you're evaluating has to have perfect syntax as well.
On Sep 28, 12:39 pm, uncleroxk [EMAIL PROTECTED] wrote:
ok my JSON:
{messages: {message:[
I want to fire an Event when one select is changed, an after that I
want all selec-elements which is observing on this event catch that
event
$('Select1').observe('change', function()
{ this.fire('Select1:changed') })
$('Select2').observe('Select1:changed', function()
{ alert('catched') })
but when I change the second line to
$('form1').observe('Select1:changed', function()
{ alert('catched') })
it catches the event and message 'catched' is appeared
On 29 сент, 01:57, buda [EMAIL PROTECTED] wrote:
I want to fire an Event when one select is changed, an after that I
want all
On Sat, Sep 27, 2008 at 09:49:13PM -0700, Andrew Dupont wrote:
On Sep 27, 5:35?pm, Gregory Seidman gsslist
[EMAIL PROTECTED] wrote:
And yet, this is a problem. Prototype should strive to be as good as
jQuery in terms of convenience for non-programmers. It isn't even
difficult. A good part
Thanks to everyone for their help.
In the end, the following code sufficed for my needs:
var uid = function()
{
var id = 0;
return function()
{
return id ++;
}
}();
Ajax.Responders.register
({
onCreate: function(request)
{
11 matches
Mail list logo