File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What happen to this Tabbed form ?

 
Alvin chew
Ranch Hand
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good day everyone ...the following code is about tabbed form using fieldset, i still facing the problem on focus on other fieldset , let say i want to make this page to focus the second fieldset "product query" , how to i do that ?

for your information, i using struts framework to fire formaction



thank you very much for helping !

[ November 27, 2004: Message edited by: Alvin chew ]

[ November 29, 2004: Message edited by: Alvin chew ]
[ December 01, 2004: Message edited by: Alvin chew ]
 
Alvin chew
Ranch Hand
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have try using <A href="#TESTLINK"></A>, but is not successful


[ November 30, 2004: Message edited by: Alvin chew ]
 
Alvin chew
Ranch Hand
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i also try "document.productquery.pro_query_code.focus();" , and it prompt me the error "document.productquery.pro_query_code is not object or null
"

can someone please try help here ..really need to solve it urgently ..thanks for your time
 
Yuriy Fuksenko
Ranch Hand
Posts: 413
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
there is one thing I am actually missing:
At what point are you trying to set that focus? I mean, I tryed opened the code you provided in IE6, used scriplet

and it worked fine. After I hit "New Product" the same scriplet gives me an error, which is fine since that form is hidden. You may see the error you getting, if you trying to set the focus before the page fully loaded.

One more thing, not sure it is related, but your fieldset tags with id's dv1 and dv2 have an inner form. But when you have closing tags, you actually close the fieldset first and than the form, which does not look right.
Also you have only closing tag pre that is not really needed there.
 
Alvin chew
Ranch Hand
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i put under the <script></script>


[ December 01, 2004: Message edited by: Alvin chew ]
[ December 01, 2004: Message edited by: Alvin chew ]
 
Yuriy Fuksenko
Ranch Hand
Posts: 413
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
put it either as onload event handler, or you can try to put it at the bottom of the page, right before closing BODY tag
 
Alvin chew
Ranch Hand
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks , Yuriy Fuksenko , finally get it ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic