aspose file tools*
The moose likes JSF and the fly likes Onload script does not work in subview page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Onload script does not work in subview page" Watch "Onload script does not work in subview page" New topic
Author

Onload script does not work in subview page

Robert Jack
Ranch Hand

Joined: Apr 13, 2010
Posts: 46
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

Joined: Mar 19, 2010
Posts: 138
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.


Cheers Munees
My Blog
Robert Jack
Ranch Hand

Joined: Apr 13, 2010
Posts: 46
Its worked...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Onload script does not work in subview page