Click here to Skip to main content
15,920,896 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Daaah!! ExecuteScalar always throws an exception!! Pin
Rickard Andersson207-Oct-02 1:54
Rickard Andersson207-Oct-02 1:54 
GeneralRe: Daaah!! ExecuteScalar always throws an exception!! Pin
Paul Watson6-Oct-02 21:31
sitebuilderPaul Watson6-Oct-02 21:31 
GeneralRe: Daaah!! ExecuteScalar always throws an exception!! Pin
Rickard Andersson207-Oct-02 1:59
Rickard Andersson207-Oct-02 1:59 
GeneralRe: Daaah!! ExecuteScalar always throws an exception!! Pin
Jörgen Sigvardsson7-Oct-02 7:20
Jörgen Sigvardsson7-Oct-02 7:20 
GeneralRe: Daaah!! ExecuteScalar always throws an exception!! Pin
Rickard Andersson207-Oct-02 9:04
Rickard Andersson207-Oct-02 9:04 
GeneralFill in label.text from Page_Load... Pin
Ray Cassick6-Oct-02 5:44
Ray Cassick6-Oct-02 5:44 
GeneralRe: Fill in label.text from Page_Load... Pin
Ray Cassick7-Oct-02 4:09
Ray Cassick7-Oct-02 4:09 
GeneralEfficiency Pin
Paul Riley6-Oct-02 4:21
Paul Riley6-Oct-02 4:21 
Okay... my turn...

Is there a better way of doing this?
XML
<script><!--
function ChangeRB(toPlayer)
{
	document.helpout.rbPlayer.checked = toPlayer;
	document.helpout.rbNew.checked = !toPlayer;
}
--></script>
<script for="ddlPlayer" event="onfocus"><!-- 
ChangeRB (true);
--></script>
<script for="cbExistAsGM" event="onfocus"><!--
ChangeRB (true);
--></script>
<script for="cbExistAsTO" event="onfocus"><!--
ChangeRB (true);
--></script>
<script for="tbFullName" event="onfocus"><!-- 
ChangeRB (false);
--></script>
<script for="tbNick" event="onfocus"><!--
ChangeRB (false);
--></script>
<script for="tbEmail" event="onfocus"><!--
ChangeRB (false);
--></script>
<script for="tbLocation" event="onfocus"><!--
ChangeRB (false);
--></script>
<script for="cbNewAsGM" event="onfocus"><!--
ChangeRB (false);
--></script>
<script for="cbNewAsTO" event="onfocus"><!--
ChangeRB (false);
--></script>
<script for="cbNewAsTMC" event="onfocus"><!--
ChangeRB (false);
--></script>

I don't want to use onfocus="ChangeRB();" because they're actually <asp:...> tags, which have a tendency to deal with events on the server. So what I'm looking for really is a way to say "execute this script when focus moves to any of these controls..."

This works fine as it is but it seems like a waste of bandwidth to me so any abbreviated way of doing it would be a bonus.


Paul
GeneralRe: Efficiency Pin
leppie6-Oct-02 5:39
leppie6-Oct-02 5:39 
GeneralRe: Efficiency Pin
Paul Riley6-Oct-02 5:53
Paul Riley6-Oct-02 5:53 
GeneralRe: Efficiency Pin
Paul Riley6-Oct-02 6:31
Paul Riley6-Oct-02 6:31 
GeneralRe: Efficiency Pin
leppie6-Oct-02 6:42
leppie6-Oct-02 6:42 
GeneralRe: Efficiency Pin
Paul Riley6-Oct-02 6:48
Paul Riley6-Oct-02 6:48 
GeneralRe: Efficiency Pin
leppie6-Oct-02 7:48
leppie6-Oct-02 7:48 
GeneralRe: Efficiency Pin
Paul Riley6-Oct-02 9:01
Paul Riley6-Oct-02 9:01 
GeneralRe: Efficiency Pin
leppie6-Oct-02 9:23
leppie6-Oct-02 9:23 
GeneralRe: Efficiency Pin
Andy Smith7-Oct-02 10:36
Andy Smith7-Oct-02 10:36 
GeneralPaging results Pin
User 98855-Oct-02 8:08
User 98855-Oct-02 8:08 
GeneralRe: Paging results Pin
Paul Riley5-Oct-02 8:15
Paul Riley5-Oct-02 8:15 
GeneralRe: Paging results Pin
User 98855-Oct-02 8:43
User 98855-Oct-02 8:43 
GeneralRe: Paging results Pin
User 98855-Oct-02 15:35
User 98855-Oct-02 15:35 
GeneralResizing TextArea Pin
leppie5-Oct-02 3:17
leppie5-Oct-02 3:17 
GeneralRe: Resizing TextArea Pin
Paul Riley5-Oct-02 4:53
Paul Riley5-Oct-02 4:53 
GeneralRe: Resizing TextArea Pin
Roger Wright5-Oct-02 5:14
professionalRoger Wright5-Oct-02 5:14 
GeneralRe: Resizing TextArea Pin
leppie5-Oct-02 7:05
leppie5-Oct-02 7:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.