You miss the subView id for your script : function cursorFocus() { alert("Cursor Focuse Method called..."); document. GetElementById("innerViewerForm:innerNameField").focus(); alert("Cursor Focuse method end! "); } So you use the following script and check it function cursorFocus() { document.
GetElementById("innerViewerSubviewId:innerViewerForm:innerNameField").focus(); }.
Thanks Eswar for your nice effort. Ya its worked. – jackrobert May 19 '10 at 2:55.
When you have this type of problem, Just call the script at the end of the page before tag Your body tag will be changed to ...content above body ...content inside body ...content after body.
Your HTML is syntactically invalid. The generated HTML output must look like as follows: ... ... But yours ends up like: ... ... ... Rightclick page in browser and View Source. Does it look right?No.
The W3 markup validator should also have hinted about that if you've tested it. Since the generated HTML is incredibly malformed, the webbrowser don't know how and where to locate the HTML DOM element you need in the Javascript function. The behaviour is unspecified.
You need to rewrite the pages as follows: outerPage. Jsp ... ... innerPage. Jsp Indeed, you should not put , , and tags in innerPage.
Jsp! Just code it so as if it is the actual include, but then with only around it. This way it will end up syntactically valid: ... ... Once you've aligned all that HTML, then you can concentrate on the functioning of the JavaScript function.
Check the generated client ID of the element in the generated HTML source (rightclick page in webbrowser, View Source) and then use it in the document.getElementById().
Actually I miss that tag during the post. But I have use all syntax. I use netbeans IDE.So there is no possible to miss that.. sorry for my incovenice post.
– jackrobert May 19 '10 at 2:20 Please update your question include the actual code. To properly format it you just need to indent it with 4 spaces or to select it and press 010101 button in editor toolbar or the Ctrl+K key. Else the HTML tags will disappear.
Also see the message formatting rules on the right hand column while editing the message. – BalusC May 19 '10 at 2:24 Your code is still invalid. Did you read my answer?
It are not only the double entries. It is more. I've updated my answer to reflect your question update.
– BalusC May 19 '10 at 2:35 ok. Thanks for your well effort. Now its worked.
The answer gave by eswaramoorthy-nec. I miss the subview id. The correct line is : document.
GetElementById("innerViewerSubviewId:innerViewerForm:innerNameField"). F?ocus(); – jackrobert May 19 '10 at 2:54.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.