Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error

 Post Reply Post Reply Page  12>
Author
pilot99 View Drop Down
Groupie
Groupie


Joined: 05 July 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote pilot99 Quote  Post ReplyReply Direct Link To This Post Topic: Error
    Posted: 16 October 2005 at 5:21pm
i am currently making an online editable media player but i ran into a problem i keep getting this erorr.
 

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/testing/mediaplayer/Mediaplayer.asp, line 32

var streams = new Array();
-----------------------^
 
i get that from this code what should id o to fix it?
 
var streams = new Array();
in bold red is the error line


Edited by pilot99 - 16 October 2005 at 7:18pm
Back to Top
dfrancis View Drop Down
Senior Member
Senior Member


Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote dfrancis Quote  Post ReplyReply Direct Link To This Post Posted: 16 October 2005 at 5:49pm
YOEW... that was way more complicated than I think it needed to be.
 
(You post was hard to read)
 
var streams = new Array();
It seems like JavaScript sytax instead of VB... ??
 
 
Back to Top
pilot99 View Drop Down
Groupie
Groupie


Joined: 05 July 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote pilot99 Quote  Post ReplyReply Direct Link To This Post Posted: 16 October 2005 at 7:23pm
ok i encased it in <script language="javascript"></script> and it now shows and the first song starts to play. but now my buttons dont work and my dropdown box doesnt show my songs selections.Cry
Back to Top
dfrancis View Drop Down
Senior Member
Senior Member


Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote dfrancis Quote  Post ReplyReply Direct Link To This Post Posted: 17 October 2005 at 3:10pm
Just rewrite the array declaration for VB instead of adding the js tags.
 
Dim streams()
 
streams = Array(recordset)
 
 
 
 
Back to Top
pilot99 View Drop Down
Groupie
Groupie


Joined: 05 July 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote pilot99 Quote  Post ReplyReply Direct Link To This Post Posted: 17 October 2005 at 6:31pm
now i get this error
 

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/testing/mediaplayer/Mediaplayer.asp, line 38

streams[(rsGuestbook("ID_no"))] = new makeStream"(rsGuestbook("URL")", "(rsGuestbook("Info"))");
------------------------------------------------^
Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Post Options Post Options   Thanks (0) Thanks(0)   Quote ub3rl337ch3ch Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2005 at 6:14pm
You're  getting a problem with the delimeters. i know jack about streams, but check your syntax.... the " is what's killing it...
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2005 at 7:02pm
Shouldn't
streams[(rsGuestbook("ID_no"))]

Be

streams[(rsGuestbook("ID_no")]
Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Post Options Post Options   Thanks (0) Thanks(0)   Quote ub3rl337ch3ch Quote  Post ReplyReply Direct Link To This Post Posted: 01 November 2005 at 5:10pm
i think that 2nd bracket closes the one opened just before the 'r'...
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.