Results 1 to 9 of 9

Thread: This thread is now about ASP

  1. #1
    Cable Guy Jonny M's Avatar
    Join Date
    Jul 2003
    Location
    Loughborough Uni
    Posts
    4,263
    Thanks
    0
    Thanked
    4 times in 1 post

    This thread is now about ASP

    Was wondering if anyone could help me out with this, all I require is a word/image which a user clicks on, and is presented with a list of say videos which they can click on, and go to the chosen page. I've seen it done a lot with a JavaScript form drop-down element, but I'd like to avoid that if possible (and I'm sure it is possible). One thing which may screw things up is that I need the thing to scroll if there's a lot of content in it, as it will be in a pop-up media player style page with limited vertical space for a long menu, but I think this can be achieved by messing with the overflow property.

    Can anyone start me off with what's needed to do this? Thanks

  2. #2
    Kirstie Allsopp Theo's Avatar
    Join Date
    Jul 2003
    Location
    Sunny Bolton
    Posts
    2,777
    Thanks
    17
    Thanked
    23 times in 20 posts
    • Theo's system
      • Motherboard:
      • Asus P5B Wifi deluxe
      • CPU:
      • E6600 @ 3150Mhz
      • Memory:
      • 2x2GB OCZ 6400
      • Storage:
      • 1x80GB Maxtor
      • Graphics card(s):
      • 640MB 8800GT
      • Monitor(s):
      • ASUS M221u
      • Internet:
      • Be Value
    Have a look at www.alistapart.com

    Excellent website regarding CSS and design, I think someone from Hexus actually sent me over there last time I had a query! I'm quite sure that there is an article on three on there that will help you chap

    This one may help a bit:

    http://www.alistapart.com/articles/dropdowns

  3. #3
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts
    If you use PHP, you might be able to do it using a form and a drop down list. You might need a 'Go' button - once you click it, the PHP script for the next page knows what option was selected in the list, and can act accordingly.
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

  4. #4
    Cable Guy Jonny M's Avatar
    Join Date
    Jul 2003
    Location
    Loughborough Uni
    Posts
    4,263
    Thanks
    0
    Thanked
    4 times in 1 post
    Quote Originally Posted by mike_w
    If you use PHP, you might be able to do it using a form and a drop down list. You might need a 'Go' button - once you click it, the PHP script for the next page knows what option was selected in the list, and can act accordingly.
    Yeah, that's my problem, it's an IIS server that I don't have access to for installing PHP etc, I think having a seperate page for the programme choices is going to work better than 30+ items in a menu anyway, and it gives me more freedom to explain things as well. I'll bear the links in mind in case I need to go for a dropdown anyway, thanks guys.

    Now to just learn about ASP If statements I guess, I want mediaplayer.asp?show=bla to include different text files in my code, but that seems pretty simple.
    Last edited by Jonny M; 23-10-2005 at 10:32 PM.

  5. #5
    Cable Guy Jonny M's Avatar
    Join Date
    Jul 2003
    Location
    Loughborough Uni
    Posts
    4,263
    Thanks
    0
    Thanked
    4 times in 1 post
    This thread is now about ASP.

    Why if I use the code:

    Code:
    videos/<%Response.Write(Show)&Response.Write(Ep)%>.wmv
    With Show="tottytv" and Ep="6"

    I get the output 6tottytv.wmv rather than tottytv6.wmv?

    I've solved it by using:

    Code:
    videos/<%Response.Write(Show)%><%Response.Write(Ep)%>.wmv
    But i'd like to know why it does this.

    However, more important is this:

    <!--#include file="programmes/Response.Write(Show).txt"-->

    Which I know will not work due to the includes being inserted before any scripting is processed. How can I achieve the same effect as what I'm trying to do above (including a file programmes/(variable).txt?

    Thanks

  6. #6
    IBM
    IBM is offline
    there but for the grace of God, go I IBM's Avatar
    Join Date
    Dec 2003
    Location
    West London
    Posts
    4,187
    Thanks
    149
    Thanked
    244 times in 145 posts
    • IBM's system
      • Motherboard:
      • Asus P5K Deluxe
      • CPU:
      • Intel E6600 Core2Duo 2.40GHz
      • Memory:
      • 2x2GB kit (1GBx2), Ballistix 240-pin DIMM, DDR2 PC2-6400
      • Storage:
      • 150G WD SATA 10k RAPTOR, 500GB WD SATA Enterprise
      • Graphics card(s):
      • Leadtek NVIDIA GeForce PX8800GTS 640MB
      • PSU:
      • CORSAIR HX 620W MODULAR PSU
      • Case:
      • Antec P182 Black Case
      • Monitor(s):
      • Dell 2407WPF A04
      • Internet:
      • domestic zoom
    I don't know if it's right, but perhaps because you're using & instead of + ... no idea why it might do this, but it's the only thing I can think of...

    Are includes done before scripting? Really? Aren't includes outside of script, so your line would have to read <!--#include file="programmes/<%=Response.Write(Show)%>.txt"--> to be correct?

    If you're sure it's processed before code (which is odd, 'cause it certainly comes after my 'option explicit declarations) then I can't help, and if you're not, then I'd try the statement above, or an If Else conditional...

    So that could have been a lot of help, or no help at all...
    sig removed by Zak33

  7. #7
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts
    because ASP.net is safe, secure.

    It discourages naughty things like loading a file explicitly by a user suplied variable (because thats just asking for trouble!)

    which IDE are you using?

    Also have you tried any ASP.net tutorials?

    I used to be a hudge PHP fan, but the performance, and security of IIS6 + .net just blow my mind. You can always use phalanger and go back to your syntax botchalisism ways, http://www.php-compiler.net/ but it is beta.
    throw new ArgumentException (String, String, Exception)

  8. #8
    Cable Guy Jonny M's Avatar
    Join Date
    Jul 2003
    Location
    Loughborough Uni
    Posts
    4,263
    Thanks
    0
    Thanked
    4 times in 1 post
    No IDE, just typing stuff into EditPlus, it's pretty simple code at the moment.

  9. #9
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts
    http://lab.msdn.microsoft.com/express/vwd/default.aspx

    apparently u can use that to make 1.0 code too.
    throw new ArgumentException (String, String, Exception)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. CSS presentation in FF and IE
    By ikonia in forum Software
    Replies: 10
    Last Post: 30-01-2005, 06:41 PM
  2. divs and CSS
    By Kezzer in forum Software
    Replies: 11
    Last Post: 18-11-2003, 12:51 PM
  3. CSS + Other Language Questions
    By Jonny M in forum Software
    Replies: 7
    Last Post: 11-10-2003, 11:17 PM
  4. CSS Help
    By Basher in forum Software
    Replies: 19
    Last Post: 10-09-2003, 08:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •