Hi list, I have no idea how do merge two json objects?
If have switch(a){ case:1 vId='plan'; vParametros= {parameters: {control:vId, ejercicio_id: $F('ejercicio_id')}, evalScripts: true}; break; case:2 vId='actividad'; vParametros= {parameters: {control:vId, proyecto: $F('proyecto'), ejercicio_id: $F('ejercicio_id')}, evalScripts: true}; break; case:3 vId='vale'; vParametros= {parameters: {control:vId, ejercicio_id: $F('ejercicio_id')}, evalScripts: true}; break; else vId='plan'; vParametros= {parameters: {control:vId, ejercicio_id: $F('ejercicio_id')}, evalScripts: true}; } //create a PWC window with name "win" errores = {on0: function{ //soStuff } ,onFailure: function{ //soStuff },onException: function{ //soStuff } } win.setAjaxContent("carga_datos.htm", vParametros + errores, true, true); <--this not work, not send any option I try use http://proto-scripty.wikidot.com/prototype:how-to-bulletproof-ajax-requestswith http://prototype-window.xilinus.com/documentation.html#setAjaxContent -- ________________________________________ Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---