Ask a Question related to ASP.NET General, Design and Development.
-
bruce barker #1
Re: client side script with RegisterStartupScript issue
no, you can not control the order the blocks are rendered. you can concat
the scripts and register them once. also
if you are doing code like:
<script> window.open([url]http://myurl);[/url] </script>
to open the window on postback, you should reengineer unless its an entranet
site. popup ad blockers, an i hope IE soon (Netscape, Opera, etc already
do), block the execution of this code. window.open should only be legal from
a client click event.
-- bruce (sqlwork.com)
..
"Dave Stienessen" <daves@xata.com> wrote in message
news:eM44KB5VDHA.384@TK2MSFTNGP12.phx.gbl...same> I have some web pages that will issue script to spawn a url in another
> window after the page posts back and sets focus to the new window - theput> pages contain web user controls that put in script in the page that sets
> focus to a control on the form -
>
> The problem I run into is the script that launches the new browser getslaunched,> into the html 1st and the script for setting focus in the use control gets
> run 2nd - the behavior because of this is that my new window getscontrol> gets focus, then the script that sets focus in the old window runs and
> returns focus to the original window (apparently setting focus to arun> grabs focus for the entire window)
>
> It seems like a good enhancement to RegisterStartupScript would be a
> relative order of the script so I could force my "new Window" script to> last - Is there any way that I can control the ordering of how ASP.NET
> renders these?
>
> TIA
> Dave
>
>
bruce barker Guest
-
Client side script ASP.NET
Hi, How can i eassely add client side script in my code. I have a sort of TAB control, that works through postbacks but i want the action taken... -
How to identify client in the server-side script?
Imagine application consisting from server-side script and many client-side flash applications. Clients are connecting to server and calling various... -
Client Side Script interferes with Server Side Script?
I added the form validation script (Java Script) to the head section of my insert records form page which works great when tested but when I submit... -
Client Side Java Script
Hi, am not a ASP.NET programmer, and it seems that i have to learn web development, so i need help learning java script. any links to some... -
Newbie client side JavaScript debugging issue
Hello. I apologise for the potential stupidity of this question in advance. After doing a lot of server side ASP.NET coding and debugging, I've... -
Dave Stienessen #2
Re: client side script with RegisterStartupScript issue
I was afraid of that... Thanks for the input - our script code does take
into account popup blockers - if the window fails to open in script, it
redirects to the page within the same window -
Thanks again...
"bruce barker" <nospam_brubar@safeco.com> wrote in message
news:ufo4U55VDHA.1896@TK2MSFTNGP12.phx.gbl...entranet> no, you can not control the order the blocks are rendered. you can concat
> the scripts and register them once. also
> if you are doing code like:
>
> <script> window.open([url]http://myurl);[/url] </script>
>
> to open the window on postback, you should reengineer unless its anfrom> site. popup ad blockers, an i hope IE soon (Netscape, Opera, etc already
> do), block the execution of this code. window.open should only be legalgets> a client click event.
>
> -- bruce (sqlwork.com)
>
>
>
> .
>
>
>
>
> "Dave Stienessen" <daves@xata.com> wrote in message
> news:eM44KB5VDHA.384@TK2MSFTNGP12.phx.gbl...> same> > I have some web pages that will issue script to spawn a url in another
> > window after the page posts back and sets focus to the new window - the> put> > pages contain web user controls that put in script in the page that sets
> > focus to a control on the form -
> >
> > The problem I run into is the script that launches the new browser gets> > into the html 1st and the script for setting focus in the use control> launched,> > run 2nd - the behavior because of this is that my new window gets> control> > gets focus, then the script that sets focus in the old window runs and
> > returns focus to the original window (apparently setting focus to a> run> > grabs focus for the entire window)
> >
> > It seems like a good enhancement to RegisterStartupScript would be a
> > relative order of the script so I could force my "new Window" script to>> > last - Is there any way that I can control the ordering of how ASP.NET
> > renders these?
> >
> > TIA
> > Dave
> >
> >
>
Dave Stienessen Guest



Reply With Quote

