This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Onload script does not work in subview page  RSS feed

 
Ranch Hand
Posts: 53
  • 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.
 
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: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its worked...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!