• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Onload script does not work in subview page

 
Robert Jack
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Here i write two jsp page like outerPage.jsp and innerPage.jsp

The outer page include innerPage.jsp

The inner page have one textfield and one button..

I need focus for textFiled while page loading(innerPage.jsp).. I write a javascript, but not work it...

The code is

outerPage.jsp


innerPage.jsp



The cursorFocus script does not called...
Here i need cursor focus for textFiled after display the page ...
please help me about this ..

Thanks in advance.
 
Muneeswaran Balasubramanian
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jack,

Check your element id.Thats wrong.
If you include the page using jsp:include.
your element id has to be changed.So you must add the subview id before the element id,So if you replace your element id like this you have your desired result.



If you Use

Insted of


you got your desired result.

Hopes this helps.

 
Robert Jack
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its worked...
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic