Jump to content

Pollux

Members
  • Posts

    102
  • Joined

  • Last visited

Posts posted by Pollux

  1. How the filetype is handled is down to the client browser, whether it chooses to play it from a temporary file or alternatively save it to a user specified location. If you zip the file as andersmoen says then the chance is the browser will give the user the option to save it.

  2. Since the '#' character has a special meaning in a URL, i.e. its used to locate an anchor within a page, you cannot use it within your querystring. Instead the character needs to be URL encoded, which I believe is %23 for '#'. So, try substituting that in.Hope that helps.

  3. Have a read of the ADO tutorial pages. You'll need to learn how to connect to the database, and then how to query it with SQL to test whether theres and entry in the table with the username and password. If you haven't already you'll also want to look at the ASP tutorials to see how to retrieve the username and password that were entered on the form.Have a go, then if you get stuck post a question requesting help.

  4. Easiest way is to do that with javascript. You'll need to write 2 functions: moveLeft() and moveRight() which are called onclick of the '<' and '>' buttons respectively.The functions will need to retrieve all the selected items from one select box and add them to the DOM in the other. You'll need to look up how to retrieve multiple values from a select, and also how to dynamically add items to a select box. Neither are very difficult so if you get stuck, or aren't sure where to start, post again in the javascript forum and I (or someone else) will give you a hand.

  5. As a hosting environment, ASP extends a web server's capability and makes available a set of objects which can be accessed with your programming language. You can think of ASP as a container for your program: your code runs inside this 'container' and communicates with the server through the objects the ASP 'container' makes available.

  6. Hi there,ASP is very different to javascript and vbscript. ASP is server side, meaning all the code gets run at the server before the page is sent to a client. Whereas javascript is normally client-side, meaning the code runs in your browser. Because server side code runs before the page is sent, it can influence what is actually sent to the client. This makes it possible to build extremely dynamic sites which run off of databases amongst other things. ASP isn't actually a language though, its a technique which allows you to run your vbscript (or javascript, but normally vbs) at the server, so you can do powerful things.They're just the very basic differences, but if you want to know more about ASP and how to use it, you should really read the ASP tutorial.

  7. I haven't read through your code there in too much detail, but as Blue says, your referencing doesn't look too pretty! Would be a nightmare to debug. You should probably try to refactor it; look for a simpler way of achieving the same thing.

  8. Javascript has no support for reading or writing files on either the server or local system. There are a couple of sketchy work arounds for IE using jscript and ActiveX but they're generally not very reliable and aren't cross browser. The exception is cookies which you can both read and write. This will be fine if you want to store some value or setting for each user, which you can reload on their next visit. Read the JS Cookies article for how to use them.

  9. Try putting a # before your colour codes. So "#996666" instead of "996666". Colour codes are hex values so the # should be there to tell the browser that, that is what it is. IE tends to overlook mistakes like that, but Firefox is more standards compliant.You may already be aware of this, but bgcolor is depreciated now, and it is advised that you use CSS styles instead. Since you appear to be using styles already you may feel comfortable changing.

  10. Generally you're expected to have a go at writing the code yourself before you request help, but I'll point you in the right direction. Euclid's algorithm is very simple so I suggest you use that. Here it is in pseudocode from wikipedia:

    function gcd(a, b)     if b = 0 return a     else return gcd(b, a mod b)

    I'll leave it up to you to convert it to vbscript to use in your ASP. If you get stuck, post again and someone will help you.

  11. That sounds like an ASP.Net error rather than ASP. If you don't intend to use .NET then you probably need to re-read the tutorials on ASP. Be aware that ASP and ASP.NET are different technologies and they don't mix too well.If you've just posted in the wrong forum though, then the problem is most likely that you've put <% %> around your functions rather than <script runat="server" language="vb"></script>Or alternatively, if I'm just plain wrong and this is an ASP error, then if you post your code someone might be able to point out where you've gone wrong.

  12. It sounds like you should be using ORDER BY rather than GROUP BY.By "the one that expires soonest first", I assume you mean the enddate that comes first? Therefore you'd want ORDER BY enddate.

  13. The same is true for ASP, infact it should be true for all server side code. The form data is passed to the web server in a http request regardless of server side technologies. Cold Fusion, or ASP, or PHP (etc.) will just extract the form fields and their values from the request, it won't really be aware of what's from a button and what's from an input field.So, basically, just put a value attribute on your button like Skemcin says and it should work :)

  14. Yup, thats perfectly valid CSS. It defines generated content to be displayed before/after the current element. It can only be set within the :before and :after pseudo-elements for a real element. So your code there will work fine to put <? before the each code element and ?> after.

×
×
  • Create New...