SORRRRY...
var pass= '<%=load%>'; if(pass=='first_time') SORRRRY... --- "Domingo A. Rodriguez S." <[EMAIL PROTECTED]> escribió: > > <body onload="javascript:getValues();"> > > function getValues{ > // sample code > // I would pass a hidden param > <% > String param= request.getParameter("myHidden"); > String load= param==null?"first_time":"next_time"; > %> var pass= '<%=load%>'; if(pass=='first_time') > document.forms[0].myHidden.value='first_time'; > document.forms[0].submit(); > }; > } > > --- Leticia Golubov <[EMAIL PROTECTED]> escribió: > Hello Gurus, > > > > I'm in a bit of a predicament, and my lack of expertise in Javascript > > and > > Struts isn't helping... :( > > > > I have a jsp page which I need to retrieve some values at onLoad time, > > i.e.: > > <body onload="javascript:getValues();"> > > > > all getValues() does is submit the form on this page which sets a > bunch > > of > > bean values for me to retrieve further down this page... > > > > The problem is, on the Action for this form, I need to redisplay the > > same > > page... As you can imagine I find myself in a never ending onload loop > > using > > this setup of mine... > > > > Assuming anyone can understand my description of this situation, my > > question > > is: how can I get a page to execute the onload first time but not to > do > > it > > second time around? Basically, I would like the onload for that > window > > to > > be called from the parent window, but I've no idea how to do it... > I've > > tried doing below from the parent window: > > > > window.open(editUrl, "scope", > > "width=380px,height=300px").onload(document.forms[0].submit()); > > > > but that didn't work, i'd imagine that submitted the current window, > not > > the > > one about to be opened. > > > > thanks in advance > > > > Leticia > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > _________________________________________________________ > Do You Yahoo!? > Información de Estados Unidos y América Latina, en Yahoo! Noticias. > Visítanos en http://noticias.espanol.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]