I've read on a few sites that window.location.href is better supported than location.href (do we actually need the href part too, as I see window.location= mentioned a lot too?). So if there are no objections, I'll change all the location.href to window.location.href.
Eelco On 10/30/06, Steve Knight <[EMAIL PROTECTED]> wrote: > I cannot reliably reproduce the problem. But I have a solution that > shouldn't cause any other issues. Simply, change 'location.href' to > 'window.location.href' in the generated javascript. > > Steve > > > On 10/27/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > Never encountered this. If you have it reproducable and think it is > > something Wicket could fix, please share. > > > > Eelco > > > > > > On 10/23/06, Steve Knight <[EMAIL PROTECTED] > wrote: > > > Hello, > > > > > > I have a Cancel button in my forms that, when clicked, should redirect > the > > > user back to the previous page. This works fine in all but one of my > forms. > > > It is almost identical to all the others, so I don't know why it > doesn't > > > work. I am simply using setResponsePage(backPage) in the onClick method > of > > > the button, and it generates the correct onclick code. > > > > > > After doing some research, I have found other people with the same > > > javascript issue and it seems to be that 'location.href=' doesn't always > > > work inside of forms. To test this I created another button and tried > using > > > ' self.location= ', and it works fine. > > > > > > Anyone else run into this problem before or know of any workarounds? > > > > > > Steve > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, > security? > > > Get stuff done quickly with pre-integrated technology to make your job > > > easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > > _______________________________________________ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user