SmartNavigation

J

Jay

I use SmartNavigation a lot and it makes the web UI very nice for some
situation.

I have trouble in using SmartNavigation and setting the focus to a textbox
using the code below. Has anyone found a way to make SmartNavigation work
with setting the focus.

Jay

<script type="text/javascript">
var x = document.getElementById ("txtAccomplishment");
if (x != null) {x.focus();}
</script>
 
B

Bruce Barker

when you use smart nav, the postback is done in a hidden iframe. this means
if you output javascript on postback and smartnav, is on you need to set the
focus in the parent frame not the current.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,061
Latest member
KetonaraKeto

Latest Threads

Top