We are developing an application with Script.aculo.us 1.7.0 &
Prototype 1.5.0 which used personal certificates to sign important
requests, in Firefox we use window.crypto.signText and with IE activeX
Capicom. Here is the problem.
The application send through Ajax.Request data & signed data, in
Firefox works OK, but in IExploter crash the Ajax.Request, we are sure
that the problem is with activeX Capicom because if we comment this
part, Ajax.Request works OK.
Here is Ajax.Request that return onFailure "Error 122 -- unknow" and
onException "the system cannot locate the resource specified".
[code]
var op_dom = {
method: ''get'',
onLoading: function(request){
Element.show(''loading'', {duration: 0.3});
},
onSuccess: function(t) {
Element.update(''contentdomLayer'', t.responseText);
Element.show(''domLayer'', {duration: 0.3});
},
onComplete: function(request){
Element.hide(''loading'', {duration: 0.3});
},
onFailure: function(t){
alert(''Error '' + t.status + '' -- '' +
t.statusText);
},
onException: function(xhr, exception) {
var description = '''';
for (var property in exception) {
description += property + ''='' + exception[property] +
''\n'';
}
alert(''Exception: '' + exception + ''\n'' +
description);
}
};
if (setFirmafunc($(''Formulario''))) {
var valorFirma = document.getElementById(''StrFirma'').value;
new Ajax.Request(''index.php?ajax=true&action='' +
taskOper +
''&idRec='' + parseInt(idRec)+
''&enti='' + $(''enti'').value +
''&ofi='' + $
(''ofi'').value + ''&dc='' +
$(''dc'').value + ''&cuenta='' + $
(''cuenta'').value + ''&StrFirma='' +
valorFirma + ''&StrXMLE='' + $
(''StrXMLE'').value, op_dom);
}
[/code]
The setFirmafunc($(''Formulario'') function, works OK when it is
running
without Ajax.Request
We are really desperate, any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
Anybody knows why it doesn''t work? We are really desperate. Best wishes On Feb 21, 12:03 pm, "Farlopex" <farlo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> We are developing an application with Script.aculo.us 1.7.0 & > Prototype 1.5.0 which used personal certificates to sign important > requests, in Firefox we use window.crypto.signText and with IE activeX > Capicom. Here is the problem. > > The application send through Ajax.Request data & signed data, in > Firefox works OK, but in IExploter crash the Ajax.Request, we are sure > that the problem is with activeX Capicom because if we comment this > part, Ajax.Request works OK. > > Here is Ajax.Request that return onFailure "Error 122 -- unknow" and > onException "the system cannot locate the resource specified". > > [code] > var op_dom = { > method: ''get'', > onLoading: function(request){ > Element.show(''loading'', {duration: 0.3}); > }, > onSuccess: function(t) { > Element.update(''contentdomLayer'', t.responseText); > Element.show(''domLayer'', {duration: 0.3}); > }, > onComplete: function(request){ > Element.hide(''loading'', {duration: 0.3}); > }, > onFailure: function(t){ > alert(''Error '' + t.status + '' -- '' + t.statusText); > }, > onException: function(xhr, exception) { > var description = ''''; > for (var property in exception) { > description += property + ''='' + exception[property] + ''\n''; > } > alert(''Exception: '' + exception + ''\n'' + description); > } > > }; > > if (setFirmafunc($(''Formulario''))) { > var valorFirma = document.getElementById(''StrFirma'').value; > new Ajax.Request(''index.php?ajax=true&action='' + taskOper + > ''&idRec='' + parseInt(idRec)+ ''&enti='' + $(''enti'').value + ''&ofi='' + $ > (''ofi'').value + ''&dc='' + $(''dc'').value + ''&cuenta='' + $ > (''cuenta'').value + ''&StrFirma='' + valorFirma + ''&StrXMLE='' + $ > (''StrXMLE'').value, op_dom); > > } > > [/code] > > The setFirmafunc($(''Formulario'') function, works OK when it is running > without Ajax.Request > > We are really desperate, any ideas?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I also have a same issue. Why ...... On 2月23日, 午前12:36, "Farlopex" <farlo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Anybody knows why it doesn''t work? > We are really desperate. > > Best wishes > > On Feb 21, 12:03 pm, "Farlopex" <farlo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > We are developing an application with Script.aculo.us 1.7.0 & > > Prototype 1.5.0 which used personal certificates to sign important > > requests, in Firefox we use window.crypto.signText and withIEactiveX > > Capicom. Here is the problem. > > > The application send through Ajax.Request data & signed data, in > > Firefox works OK, but in IExploter crash the Ajax.Request, we are sure > > that the problem is with activeX Capicom because if we comment this > > part, Ajax.Request works OK. > > > Here is Ajax.Request that return onFailure "Error 122 -- unknow" and > > onException "the system cannot locate the resource specified". > > > [code] > > var op_dom = { > > method: ''get'', > > onLoading: function(request){ > > Element.show(''loading'', {duration: 0.3}); > > }, > > onSuccess: function(t) { > > Element.update(''contentdomLayer'', t.responseText); > > Element.show(''domLayer'', {duration: 0.3}); > > }, > > onComplete: function(request){ > > Element.hide(''loading'', {duration: 0.3}); > > }, > > onFailure: function(t){ > > alert(''Error '' + t.status + '' -- '' + t.statusText); > > }, > > onException: function(xhr, exception) { > > var description = ''''; > > for (var property in exception) { > > description += property + ''='' + exception[property] + ''\n''; > > } > > alert(''Exception: '' + exception + ''\n'' + description); > > } > > > }; > > > if (setFirmafunc($(''Formulario''))) { > > var valorFirma = document.getElementById(''StrFirma'').value; > > new Ajax.Request(''index.php?ajax=true&action='' + taskOper + > > ''&idRec='' + parseInt(idRec)+ ''&enti='' + $(''enti'').value + ''&ofi='' + $ > > (''ofi'').value + ''&dc='' + $(''dc'').value + ''&cuenta='' + $ > > (''cuenta'').value + ''&StrFirma='' + valorFirma + ''&StrXMLE='' + $ > > (''StrXMLE'').value, op_dom); > > > } > > > [/code] > > > The setFirmafunc($(''Formulario'') function, works OK when it is running > > without Ajax.Request > > > We are really desperate, any ideas?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
You''re right ! Remember that URL can''t have more than 255 characters ... including parameters ! -- Cyril On 3/19/07, Colin Mollenhour <eliteii92g-NPSFNn/7+NYVo650/ln6uw@public.gmane.org> wrote:> > That looks like a super long url... try sending all of that stuff in the--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
That looks like a super long url... try sending all of that stuff in the
postBody or parameters (as a hash) instead.. could also be some of the
string needs to be encoded first or Prototype is trying to break it down
to a hash and making a mistake somewhere. What version of Prototype are
you using?
op_dom.parameters = {
ajax: true,
action: taskOper,
idRec: idRec,
enti: $(''enti'').value,
ofi: $(''ofi'').value,
dc: $(''dc'').value,
cuenta: $(''cuenta'').value,
StrFirma: valorFirma,
StrXMLE: $(''StrXMLE'').value
};
new Ajax.Request(''index.php'',op_dom);
Note, this is now using the POST method rather than GET, so make the
proper changes elsewhere if necessary but I think this will at least fix
the error you''re currently getting in IE.
Colin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---