Jump to content

Pollux

Members
  • Posts

    102
  • Joined

  • Last visited

Everything posted by Pollux

  1. Pollux

    Northwind Database

    I believe the NorthWind database is an example database that comes with MS Access. It don't know if it's available in SQL Server.
  2. 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.
  3. Pollux

    Query String

    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.
  4. W3Schools isn't really a java hub, try posting here: http://forum.java.sun.com.
  5. 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.
  6. Pollux

    2 Comboboxes

    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.
  7. Have a read of the ASP tutorial, particularly the forms page.
  8. Nope, he means First Page 2000 by evrsoft. I'm surprised if no-one else knows it, because its quite a popular free editor, pretty good too if I remember. 2006 is out now apparantly.
  9. Ah, I must have seen that error a hundred times. The problem is generally with the permissions on your database. This page should help you out:http://support.microsoft.com/kb/q175168/
  10. 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.
  11. 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.
  12. 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.
  13. Generally the way to send multiple values for one property over the querystring is to simply duplicate the property, e.g. http://www.w3schools.com/index.html?id=20&id=30 Obviously, whether this is suitable will depend on how you plan to retrieve the values though.
  14. Generally you can execute two queries at once in SQL by separating them with a semi-colon. Although different databases can be slightly different.
  15. Pollux

    HTML Form POST

    Try posting in the PHP forum.
  16. 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.
  17. 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.
  18. You're missing some quotes: <%@ language="javascript" %>
  19. 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.
  20. 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.
  21. Pollux

    Order By Usage

    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.
  22. Pollux

    HTML Form POST

    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
  23. Hi! A background on a table cell should work fine in firefox. Post your code and maybe someone can point out where you're going wrong.
  24. Pollux

    content property?

    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.
  25. You can download NT4 Option Pack, which contains PWS from the microsoft site:http://www.microsoft.com/ntserver/nts/down...tPk/default.aspSelect Windows 95 from the list, it should work fine on 98.
×
×
  • Create New...