Author |
Topic  |
Alfred
Senior Member
   
USA
1527 Posts |
Posted - 01 August 2003 : 11:18:01
|
quote: Originally posted by laser
I'll double-check later, but I was sure that the filenames on decorated.asp and members.asp are different - (aren't they ?)
SHouldn't be: decorated has "<img border=""0"" src=""../images/gold.gif"" width=""19"" height=""28"">" members has: http://www.ggholiday.com/bg/images/gold.gif |
Alfred The Battle Group CREDO
|
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
|
Alfred
Senior Member
   
USA
1527 Posts |
Posted - 01 August 2003 : 12:58:41
|
Remember, my decorated.asp is purely manual right now, not populated by the database. I only installed it to have something to look at for now. BTW, both image files do exist in the folder, and we can use either. |
Alfred The Battle Group CREDO
|
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 01 August 2003 : 18:26:06
|
OK, but you can't use either if they are not both noted in the database (does that make sense?) or at least have a standard for the name of the bigger files.
So what's wrong with decorated.txt ? You're just missing a few Response.Write's at the end. Try inserting this line just before the movenext :
Response.Write mymedals("medal_ID") & DisplayMedalIcon & "<br>"
and also, just after your while, put this :
DisplayMedalIcon = ""
You might want to rename this to decorated2.asp until we get it working fully. |
 |
|
Alfred
Senior Member
   
USA
1527 Posts |
Posted - 01 August 2003 : 19:09:46
|
Ok, I made the changes, named it decorated2.asp for localhost, but got this error: quote: Microsoft VBScript runtime (0x800A01F5) Illegal assignment: 'DisplayMedalIcon' /BG/forums/decorated2.asp, line 14
Browser
line 14 is this one, which I just added: DisplayMedalIcon = ""
I also updated the decorated.txt. |
Alfred The Battle Group CREDO
|
Edited by - Alfred on 01 August 2003 19:11:54 |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 01 August 2003 : 19:30:52
|
ummm ... maybe just put a space between the two " then  |
 |
|
Alfred
Senior Member
   
USA
1527 Posts |
Posted - 01 August 2003 : 19:55:13
|
quote: Originally posted by laser
ummm ... maybe just put a space between the two " then 
Nope- same error! |
Alfred The Battle Group CREDO
|
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
|
Alfred
Senior Member
   
USA
1527 Posts |
Posted - 01 August 2003 : 21:26:54
|
I wondered about that as well! But who am I to think, or doubt! I just carry out instructions, and hope that sooner or later it gets me there!  |
Alfred The Battle Group CREDO
|
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 02 August 2003 : 03:28:04
|
quote: Originally posted by Nikkol
I thought DisplayMedalIcon was a function that had a required variable to be passed to it (namely the member id)??
OF COURSE !!!! (Thanks Nikkol !! )
Alfred, can you remove your inc line at the top - you're not really using the function at the moment and your current code replaces the function anyway  |
 |
|
Alfred
Senior Member
   
USA
1527 Posts |
Posted - 02 August 2003 : 10:31:46
|
Yes, we are not using the function as such in this page, but put the actual code in. Ok, after taking the display DisplayMedalIcon out, I got this error:
quote: Error Type: Microsoft VBScript runtime (0x800A01C2) Wrong number of arguments or invalid property assignment: 'DisplayMedalIcon' /BG/forums/decorated2.asp, line 24
Line 24 is the red one in here: quote: while not myMedals.bof and not myMedals.eof
if mymedals("medal_ID") = 8 then DisplayMedalIcon = DisplayMedalIcon & "<img border=""0"" src=""../images/gold.gif"" width=""19"" height=""28"">" end if if mymedals("medal_ID") = 7 then DisplayMedalIcon = DisplayMedalIcon & "<img border=""0"" src=""../images/silver.gif"" width=""19"" height=""28"">" end if
if mymedals("medal_ID") = 6 then DisplayMedalIcon = DisplayMedalIcon & "<img border=""0"" src=""../images/bronze.gif"" width=""19"" height=""28"">" end if
Why would it object just to this one and not the others before it? |
Alfred The Battle Group CREDO
|
Edited by - Alfred on 02 August 2003 10:33:37 |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 02 August 2003 : 11:01:43
|
I don't know what could cause that error. Try deleting that line and creating again.
|
 |
|
Alfred
Senior Member
   
USA
1527 Posts |
Posted - 03 August 2003 : 00:19:12
|
I retyped it, then deleted the old line - same result.
When I comment that line out it picks another one with the same error: line 74, then line 16, then line 32. Each time it is the middle line of this statement, with the medal ID number changing: quote: if mymedals("medal_ID") = 6 then DisplayMedalIcon = DisplayMedalIcon & "<img border=""0"" src=""../images/bronze.gif"" width=""19"" height=""28"">" end if
So I wondered what would happen if I just leave one of the different medal number statements, and take all others out. It gave a blank page. |
Alfred The Battle Group CREDO
|
Edited by - Alfred on 03 August 2003 00:21:15 |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 03 August 2003 : 01:32:44
|
... and you've removed this line ?
<!--#INCLUDE FILE="inc_medalsfunction.asp"-->
Can you update the txt file please ? |
 |
|
Alfred
Senior Member
   
USA
1527 Posts |
|
Topic  |
|