On Wed, January 11, 2006 11:19 am, [EMAIL PROTECTED] said: > > Dear All, > > I have a JSP like the following > > <html> > <head> > ............. > ............. > </head> > <body> > ................ > ................ > <frameset> > <frame> > ............ > ............ > </frame> > <frame src="a.jsp"> > </frameset> > ............. > ............. > </body> > <html> > > where ...... is for html code. > > If I try to access html elements under the jsp "a.jsp", it returns me a > null. Why?
How are you trying to access the elements and from where? You will need to properly traverse the DOM to get at the elements you want (I usually use window.top.xxxx where xxxx is the name assigned to the frame, which I notice you don't have). Remember that frames are separate documents entirely, it is not like doing an include. Based on the structure you show here, which is somewhat atypical, I suspect your thinking of it as an include, and hence the problem your seeing. > Thanks in advance. > > Regards, > Ashish A. Frank --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]