Zulu
Posts: 33
|
| Posted: 08/27/2005, 7:19 AM |
|
I have a MyTicker.asp page where I show a dynamic marquee. There is a Label1 with HTML content type. In the Page Befor show event I wrote:
Function Page_BeforeShow() 'Page_BeforeShow @1-653D685B
dim xStr
xStr="<TABLE width=100% border=2 align=center><TR><TD>"
xStr=xStr & "<marquee scrolldelay=0 scrollAmount= 2 onMouseover=this.scrollAmount=0 onMouseout=this.scrollAmount=2 onMouseDown=this.scrollAmount=2 onMouseUp=this.scrollAmount=2>"
xStr=xStr & "<FONT SIZE=12>Sultan's Marquee</FONT>" 'Here u gen and put the text to scroll
xStr=xStr & "</marquee></TD></TR></TABLE>"
Label1.value=xStr
End Function 'Close Page_BeforeShow @1-54C34B28
If the page is not includable It can show the marquee but if it is included in another page that page does not show the marquee.
PLS HELP
|
 |
 |
Zulu
Posts: 33
|
| Posted: 08/27/2005, 12:49 PM |
|
Sorry to mention this:
The page where I included MyTicker.asp shows Variable is undefined: 'Label1'
/scroller/MyTicker_events.asp, line 88 (this is where Label1.value=xStr located in myticker.asp)
PLS HELP
|
 |
 |
DonB
|
| Posted: 08/28/2005, 12:25 PM |
|
This is because the reference to Label1 changes when it's included. It is
then 'contained' within the include page object.
A better way to write this is by creating the Before Show event for this
label, then moving your code there. Use this to set ithe label's value:
Eventcaller.Value = xStr
--
DonB
http://www.gotodon.com/ccbth
"Zulu" <Zulu@forum.codecharge> wrote in message
news:64310c3e169985@news.codecharge.com...
> Sorry to mention this:
>
> The page where I included MyTicker.asp shows Variable is undefined:
'Label1'
> /scroller/MyTicker_events.asp, line 88 (this is where Label1.value=xStr
located
> in myticker.asp)
>
> PLS HELP
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|