i try to open a popup window like this popup = window.open(''index.php?m=kundensuche&c=getEmpty'',''popup'',''toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=960,height=680''); popup.focus(); new Ajax.Updater(''popup'',''index.php?m=kundensuche&c=getListe'', { evalScripts:true, parameters:$(''FormSearchbox'').serialize(''FormSearchbox''), onSuccess: function(transport) { var response = transport.responseText; alert("Success! \n\n" + response); } , onFailure: function(){ alert(''Die Verbindung zum Server ist unterbrochen!'') } }); how can i load data into it or how can i put the serialized form data to a url? ____________ Virus checked by G DATA AntiVirusKit Version: AVK 17.8837 from 11.10.2007 Virus news: www.antiviruslab.com --~--~---------~--~----~------------~-------~--~----~ 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 sense a lot of confusion with you. First error i see is in the Ajax.Updater request, you''re referencing "popup" as a DOM Element, if you want to pass your popup window you need to pass it literally not a string which would reference its ID. As this pop up window isn''t part of the document nor has an ID you can''t reference it this way. Nor would this work if you had referenced it properly as its going to attempt to stuff the responseText in the innerHTML property of the object, as this is a window object it doesn''t have this available. Alternatively if you''re looking to change the url of the window with data from the server you need to use Ajax.Request and then take the data and append it to popup.location = transport.responseText. This approach seems like the wrong tool for the job, If i were you i''d take the Ajax.Request out of the solution all together. Push the user to a php page and do the proper redirect from there. On Oct 11, 2:55 pm, "reta...-Mmb7MZpHnFY@public.gmane.org" <reta...-Mmb7MZpHnFY@public.gmane.org> wrote:> i try to open a popup window like this > > popup > window.open(''index.php?m=kundensuche&c=getEmpty'',''popup'',''toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=960,height=680''); > popup.focus(); > new Ajax.Updater(''popup'',''index.php?m=kundensuche&c=getListe'', > { > evalScripts:true, > parameters:$(''FormSearchbox'').serialize(''FormSearchbox''), > onSuccess: function(transport) > { > var response = transport.responseText; > alert("Success! \n\n" + response); > } , > onFailure: function(){ alert(''Die Verbindung zum Server ist > unterbrochen!'') } > }); > > how can i load data into it or how can i put the serialized form data to > a url? > > ____________ > Virus checked by G DATA AntiVirusKit > Version: AVK 17.8837 from 11.10.2007 > Virus news:www.antiviruslab.com--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
hello, how can i feth all formelements and use it in a window.open? that smy problem because i have some multi array elements> I sense a lot of confusion with you. > > First error i see is in the Ajax.Updater request, you''re referencing > "popup" as a DOM Element, if you want to pass your popup window you > need to pass it literally not a string which would reference its ID. > As this pop up window isn''t part of the document nor has an ID you > can''t reference it this way. Nor would this work if you had > referenced it properly as its going to attempt to stuff the > responseText in the innerHTML property of the object, as this is a > window object it doesn''t have this available. > > Alternatively if you''re looking to change the url of the window with > data from the server you need to use Ajax.Request and then take the > data and append it to popup.location = transport.responseText. > This approach seems like the wrong tool for the job, If i were you i''d > take the Ajax.Request out of the solution all together. Push the user > to a php page and do the proper redirect from there. > > > > > > > On Oct 11, 2:55 pm, "reta...-Mmb7MZpHnFY@public.gmane.org" <reta...-Mmb7MZpHnFY@public.gmane.org> wrote: >> i try to open a popup window like this >> >> popup >> window.open(''index.php?m=kundensuche&c=getEmpty'',''popup'',''toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=960,height=680''); >> popup.focus(); >> new Ajax.Updater(''popup'',''index.php?m=kundensuche&c=getListe'', >> { >> evalScripts:true, >> parameters:$(''FormSearchbox'').serialize(''FormSearchbox''), >> onSuccess: function(transport) >> { >> var response = transport.responseText; >> alert("Success! \n\n" + response); >> } , >> onFailure: function(){ alert(''Die Verbindung zum Server ist >> unterbrochen!'') } >> }); >> >> how can i load data into it or how can i put the serialized form data to >> a url? >> >> ____________ >> Virus checked by G DATA AntiVirusKit >> Version: AVK 17.8837 from 11.10.2007 >> Virus news:www.antiviruslab.com > > > >____________ Virus checked by G DATA AntiVirusKit Version: AVK 17.8881 from 12.10.2007 Virus news: www.antiviruslab.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---