aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes What happen to this Tabbed form ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "What happen to this Tabbed form ?" Watch "What happen to this Tabbed form ?" New topic
Author

What happen to this Tabbed form ?

Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
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

Joined: Jan 08, 2004
Posts: 834
i have try using <A href="#TESTLINK"></A>, but is not successful


[ November 30, 2004: Message edited by: Alvin chew ]
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
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

Joined: Feb 02, 2001
Posts: 413
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

Joined: Jan 08, 2004
Posts: 834
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

Joined: Feb 02, 2001
Posts: 413
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

Joined: Jan 08, 2004
Posts: 834
thanks , Yuriy Fuksenko , finally get it ...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What happen to this Tabbed form ?