I tried this way: http://pastie.org/727632
The div is appendend but the javascript declaration not: Any idea? Kind regards Massimo On 4 Dic, 16:13, "m.ugues" <m.ug...@gmail.com> wrote: > Hallo all. > I would like to save the response of an AJAX call in a variable > declared in the document ready in parent page. > > Imagine this piece of code > > http://pastie.org/727450 > > The document ready lives in an iframe so I would like to save in the > parent page the var myVariable, not to load it every time with a > server-side call. > > Is there any way to inject in the parent the javascript variable? > > Kind regards > > Massimo