kevind
Posts: 251
|
| Posted: 11/18/2004, 7:14 AM |
|
I have a client onload event that fires and updates an image in a parent frame to an animated blinking gif image. If I put this line of code in the client onload event as custom code it works.
parent.banner.document.images.MsgAlert.src="images/MsgsWaiting.gif" ;
But, I don't want to do this for each page - I just want to include the page at the top of each data page. When I try this it seems the onload events of the included page are ignored.
can someone confirm this?
thanks
KD
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
kevind
Posts: 251
|
| Posted: 11/18/2004, 7:20 AM |
|
follow-up to the first question. I think on the server side I need to have an Before Show event that uses a dblookup to check for new messages and then attempts to change the graphic to a blinking gif.
when I paste the same line of code into the server Before Show event it fails as a vbscript error - does anyone know the equivalent vbscript (that would work) for:
parent.banner.document.images.MsgAlert.src="images/MsgsWaiting.gif" ;
thanks in advance.
Kevin
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
DonB
|
| Posted: 11/21/2004, 1:25 PM |
|
Not gonna happen. The server side cannot alter the client side at all. It
can serve up a new page but it can't touch what's "out there" already. You
will have to serve a new page with the alternate graphic in an <IMG> tag.
You can get clever and complicated by having hidden windows )that the main
window opens) with javascript that posts back to the server, gets data and
updates the main window. But what it all comes down to is, the client side
runs the show, the server side just reacts to what the client asks for.
If MsgAlert is an Image control, you can change it's .Value property in
coordination with doing the CCDLookUp() so that the page loads with a
different image. You could even have the Image control defined with the
blinking gif, and merely show or hide the control (.Visible = true, or
false).
Since you're making a round-trip to the server for the CCDLookUp() this is a
reasonable thing to do.
--
DonB
http://www.gotodon.com/ccbth
"kevind" <kevind@forum.codecharge> wrote in message
news:6419cbdb7d9d86@news.codecharge.com...
> follow-up to the first question. I think on the server side I need to
have an
> Before Show event that uses a dblookup to check for new messages and then
> attempts to change the graphic to a blinking gif.
>
> when I paste the same line of code into the server Before Show event it
fails
> as a vbscript error - does anyone know the equivalent vbscript (that would
> work) for:
>
> parent.banner.document.images.MsgAlert.src="images/MsgsWaiting.gif" ;
>
> thanks in advance.
> Kevin
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
kevind
Posts: 251
|
| Posted: 11/21/2004, 3:26 PM |
|
Thanks
kevin
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
|