How do I check that the today's date is = a date

I have a form on my site that is designed to only come live after a certain date to avoid people plaguing me with false claims.
It is accessed by a link from another page.
I want the link to only be shown after that date.
Working in asp, of which I have not a lot of knowledge, how would I set up asp code for the following logic, the date being the one that I need to use:
If the system date is > 26 February 2011 then write "Here is the link to the prize draw claim form"
else write "The link to the claim form will not be available until the 27th February"
Would this be able to be placed in line on a Dreamweaver template page and would it just fit on the page in line with the other code?
Seems simple enough to most people but its got me totally baffled!

No answers from anyone yet but here is my first rough attempt:
<html>
<head>
<title>How to make a claim</title>
<script language="JScript" type="text/jscript">
   function dateComp() {
// Get today's date
    var s = new Date();
    // Create the date of the draw
var td = new Date('2/26/2011')
if (s > td )
  s = "The draw will take place on the 26 February 2011" ;
else
  s= " Go to http://www.lottery/claims.asp to make a claim.";
    return (s);
</script>
</body>
</html>
<script language="JScript" type="text/jscript">
document.write(dateComp())
</script>
</html>
</body>
>>>>>>>>>>>>>>>>>
This works fine in that it outputs a message on the screen. However, whilst it looks like a link on this page, all it does on a live page is print the text, rather than inject the code into the page.
What do I use instead of document.write(dateComp) to inject the code and create a link?

Similar Messages

  • How do I check that the flashplayer installed onto my Mac is a geniune Flashplayer?

    System Using
    Macbook Pro 2010, with OS X Mavericks 10.9.03
    Version of flash
    14.0.0.125 (updated by the official website "get adobe . com" )
    After getting popups from http update4.new-flash-players.us
    on some occaision (some video sites as dailymotion and blogs
    with advert/commerical videos at the bottom)
    and reading  about the possibility of the Flashback Trojan,
    I have become very paranoid about my flash player.
    Although I didn't install it from the update4news-flash website
    I have become paranoid about if I have a genuine copy of flash-player installed.
    I have followed the instruction on an article from the  "cult of mac" to
    type in specific commands on the terminal app but found no sign of infection.
    How do I double check if the copy I have currently installed onto my mac
    and browser is genuine?

    Thank you for your reply
    Sorry the  "pop-ups" wasn't the right word to use.
    "re-directing" was the right word, the browser will turn grey in blogs saying that
    "this page cannot be displayed, to display you need to install a new version of flashplayer"
    (This is not always, just once in a while and I have never had these problems on websites
    like Youtube, or my banking websites, google searching etc)
    and in Dailymotion the browser will attempt to redirect into the flash-us (which will be then blocked by avast)
    ( I haven't attempted to use the website)
    I have run scripts downloaded from The Safe Mac,
    http://www.reedcorner.net/arg/
    and found no infections, (but as you have said, if they have used a drive-by load into the system I guess it's useless)
    I also have run these commands on my terminal following instructions on this website
    How to remove the Flashback malware from OS X - CNET
    defaults read /Applications/Safari.app/Contents/Info LSEnvironment
    defaults read /Applications/Firefox.app/Contents/Info LSEnvironment
    defaults read ~/.MacOSX/environment DYLD_INSERT_LIBRARIES
    (ALL 3 came back with "does not exist")
    So How can I identify and remove the malware if I was infected? (I have backups of my data on the time-machine so formatting my whole drive
    is the last resort I rather not take)

  • HT201250 how can I check that all photos have been backed up in time machine

    I have used Time Machine for the first time to back up my Macbook Air. Macbook Air's iPhoto shows approx 5200 pictures on file.
    How can I check that the external hard drive (Time Machine) has all 5200 saved correctly before deleting the photos from the Macbook Air ?

    The only way to check a back up is to do a restore of it.
    However, why are you deleting your photos from the MBA? If you do they will also be deleted from Time Machine eventually. TM keeps a rolling back up of your machine. It copies and maintains your additions and deletions. Eventually, these photos will be deleted from TM too. It's not an archiving app.
    Regards
    TD

  • How can I check on the delivery of an photo but that I created and sent to a friend.  I have the order number but I can't find the tracking information.

    How can I check on the delivery of a photo book that I created and sent to a friend.  I have the order number but I can't find the tracking information.

  • I had bought a Mac PRE 13 in,  in 7th Sep,but it is 15th Sep today,how doesn't my computer come to me? So,how can I check where the computer is at this moment?

    I had bought a Mac PRE 13 in,  in 7th Sep in the online Apple Store,
    but it is 15th Sep today,how doesn't my computer come to me yet?
    So,how can I check where the computer is at this moment?

    Call the online Apple Store.  You should have received an email with a FedEx tracking # if you are in the US.
    There is nothing anyone can do for you on a message board!  We are all end users just like yourself.

  • How can i check that who end the session

    Hi to all ,
    my query is that how can i check that who end the session.
    through SM04 user who have the authontication can end the session so how can i check that who end the session being a BASIS admin.
    Thanks & Regards

    It's wrotes in system log, check in sm21.
    Regards.

  • How I can check on the existence of a client ActiveX, so that if there is no download begins?

           
    How
    I can check on
    the existence of a client
    ActiveX, so that
    if there is no download begins?
    example:
    I want tocheck for:
    EditDocumentButton = new ActiveXObject "SharePoint.OpenDocuments.2");
    if (EditDocumentButton) {
    EditDocumentButton.EditDocument (strDocument);
    and ifthere is nowarning andlaunch aURLto startthe
    download
    as is?
    thanks

    Hello,
    This control is defined in the OWSSUPP.dll file, a dynamic-link library (DLL) that is installed in the %ProgramFiles%\Microsoft Office\Office14\ directory on the client computer during Microsoft Office Setup. (Read
    full article on MSDN)
    Based on my understanding this below link can help you to open file if activex is not found.
    http://blog.scosby.com/post/2011/08/22/Remotely-Opening-Office-Files-From-SharePoint-2010.aspx
    Now to detect the activex please look this code:
    http://www.andrewshough.com/sharepoint/multiple-office-version-support-in-sharepoint-services-3-0/
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • The DNS server has encountered a critical error from the Active Directory. Check that the Active Directory is functioning properly. The extended error debug information (which may be empty) is "". The event data contains the error.

    got event ID 4015 and source DNS-Server-Service. please suggest how to fix this issue
    The DNS server has encountered a critical error from the Active Directory. Check that the Active Directory is functioning properly. The extended error debug information (which may be empty) is "". The event data contains the error.
    Raj

    Hi
     first run "ipconfig /flushdns" and then "ipconfig /registerdns" finally restart dns service and check the situation,also you can check dns logs computer management ->Event viewer->Custom Views->Server roles->DNS.

  • HT1766 I have manually back up my iphone few days back, and my contact got missing the next day. i restored my back up from iTunes, however, my contact did not get restored. How do i check if the manual back up did actually back up my contact or not?

    I have manually back up my iphone few days back, and my contact got missing the next day. i restored my back up from iTunes, however, my contact did not get restored. How do i check if the manual back up did actually back up my contact or not? How do i get back my old contact in my phone?

    Your entire second paragraph is so confusing I am going to ignore it.
    But I may be able to answer your first and third paragraphs, which seem to address the same question.
    I wonder where your iPhone states it was backed up yesterday.  I am going to assume that you see this under Settings > iCloud > Storage & Backup.
    If that is true, then the backup from yesterday is in iCloud.  The one and only way to restore an iCloud backup is to do this on your iPhone:
    Settings > General > Reset > Erase All Content and Settings
    That will cause your iPhone to begin a setup process.  As part of that process, assuming you enter the same Apple ID you used when you created the iCloud backup, you will be offered the opportunity to restore from it.

  • What do i do after downloading iOS 3.1 software and "There was a problem downloading iOS 3.1.1 software update for ipod touch. an unknown error occurred (8288). Please check that the connection to the network is active and try again." comes up?

    what do i do after downloading iOS 3.1 software and "There was a problem downloading iOS 3.1.1 software update for ipod touch. an unknown error occurred (8288). Please check that the connection to the network is active and try again." comes up?

    Hello, I hope by now you have resolved the upgrade issue, but if not, here is what I ended up having to do:
    “SUCCESS!!! I took my iPod to a friend who is a computer programmer/genius. He turned off his wireless, hooked the ethernet cable directly into his computer, and the download went through without a hitch. YAY!”
    Here is my original post explaining what I had already tried:
    “Hi all,
    I got an iPod Touch 1st gen for my youngest son for Christmas as a starter. It has the 2.1.2 ios on it, but after I paid for the upgrade to 3.1.1, I keep getting an error message (8288) saying there was a problem with the network connection. I have called customer service, and they suggested I try on a different computer, and if that didn't work, try connecting to a different network, and then trying the update. None of this has worked. It seems that tech support is clueless with this issue.
    I have installed and unistalled iTunes 10.5, 10.3, 10.4, and now I am back with 10.5. I have tried looking up the issue from several search engines but no one seems to have a universal solution and I have tried several.
    I really want to have this thing updated for himw hwne he opens it, but I am starting to worry that my purchase was a bust. I know this is the oldest version, but I don't want to buy a newer, more expensive iPod and him still not be mature enough to really take care of it. As I said, this one is a starter.
    Can anyone help? Please?!
    Thank you!!!
    P.S. We have a PC, with Windows XP Home.”
    Now, there seem to be a lot of different ways to solve the 8288 error, none of which are universal. Best of luck getting yours upgraded!
    Tiffany
    P.S. The post by Sparkhi is a link to his blog going into a long story about how he wanted Apple to pay him for “solving” the issue….the one that apparently has been solved by multiple solutions. I’m not trying to bash, it just bothers me that he put up this whole story and finally, at the very end of his blog post, posts his solution.

  • There was a problem downloading iOS 3.1.1 software update for ipod touch. an unknown error occurred (8288). Please check that the connection to the network is active and try again.

    The error
    Therewas a problem downloading iOS 3.1.1 software update for ipod touch. an unknownerror occurred (8288). Please check that the connection to the network is active and tryagain.
              Keeps coming up when I try upgrading iOs 3.1.1 software to my 8gb 1st generation iPod touch! Please help! I've looked at all other posts related and none helped.

    Hello, I hope by now you have resolved the upgrade issue, but if not, here is what I ended up having to do:
    “SUCCESS!!! I took my iPod to a friend who is a computer programmer/genius. He turned off his wireless, hooked the ethernet cable directly into his computer, and the download went through without a hitch. YAY!”
    Here is my original post explaining what I had already tried:
    “Hi all,
    I got an iPod Touch 1st gen for my youngest son for Christmas as a starter. It has the 2.1.2 ios on it, but after I paid for the upgrade to 3.1.1, I keep getting an error message (8288) saying there was a problem with the network connection. I have called customer service, and they suggested I try on a different computer, and if that didn't work, try connecting to a different network, and then trying the update. None of this has worked. It seems that tech support is clueless with this issue.
    I have installed and unistalled iTunes 10.5, 10.3, 10.4, and now I am back with 10.5. I have tried looking up the issue from several search engines but no one seems to have a universal solution and I have tried several.
    I really want to have this thing updated for himw hwne he opens it, but I am starting to worry that my purchase was a bust. I know this is the oldest version, but I don't want to buy a newer, more expensive iPod and him still not be mature enough to really take care of it. As I said, this one is a starter.
    Can anyone help? Please?!
    Thank you!!!
    P.S. We have a PC, with Windows XP Home.”
    Now, there seem to be a lot of different ways to solve the 8288 error, none of which are universal. Best of luck getting yours upgraded!
    Tiffany
    P.S. The post by Sparkhi is a link to his blog going into a long story about how he wanted Apple to pay him for “solving” the issue….the one that apparently has been solved by multiple solutions. I’m not trying to bash, it just bothers me that he put up this whole story and finally, at the very end of his blog post, posts his solution.

  • Using PL/SQL Block how do you check if the character string value is aA-zZ

    I have a pl/sql block that I prompt the user for password and I load the string into an array and interrogate each index(entry) to see if it is "aA-zZ".
    How can I check if the value entered is Alpha.
    I need to do the same for number and Special character. Please advise. Thanks

    Thanks to All of you. The desired solution to verify complex password that enforces desired security policies. An example that I am using is the following:
    IF NOT (regexp_like(sz_complex_pw,'[[:digit:]]') AND regexp_like(sz_complex_pw,'[[:alpha:]]') AND regexp_like(sz_complex_pw,'[[:punct:]]') AND regexp_like(sz_complex_pw,'[[:upper:]]'))
    THEN
    --dbms_output.put_line('Password is not complex...');
    RAISE sz_err_pw_complex; -- Complex Password is not compliant
    END IF;
    DBMS_OUTPUT.PUT_LINE('Complex Password is in Compliance...');
    EXCEPTION
    This was helpful to me and I trust others will find helpful.
    Edited by: yakub21 on Oct 16, 2010 9:05 PM

  • How do I check if the associated PageItem is there/exists from a XMLElement ?

    Hi,
    I have the following structure:
    Extension Builder 1.5;
    InDesign 5.0;
    Image (Rectangule Frame);
    XML tag associated with the Image.
    The following scenario:
    I do have an application that checks if this strucuture is available and intact, that is, the user has not deleted the tag (XMLElement) and/or the Rectangule Frame(PageItem);
    I do not want loop through allPageItems (the page should have many of them - more than 1000) and get the XMLElement;
    So, I loop over the XMLElements and get the associated PageItem through xmlElement.xmlContent property;
    The document images properties (image, epss, etc) never are populated (document.epss.length = 0);
    I can validate if the tag was deleted or untaged easy.
    The problem:
    User deletes the Image/Rectangule Frame (PageItem) and keep the xml tag (untag the XMLElement);
    The isValid property (xmlElement.isValid = true) is true;
    The associated PageItem becomes a Text and is valid as well;
    The question:
    How do I check if the associated PageItem is there/exists from a XMLElement ?
    Regards
    Marcos

    Found it, I think
        e.isControlDown()

  • How do you check if the input is empty?

    Hello,
    I am asked to write a program which gets as input in the command line a number of strings, and is to print out the first of these string.
    but if the input is empty it must print our an error message.
    how do i check if the input is empty?
    i guessed
    public static void main (String[] args){
         if (args == null)
         ........but thats wrong.
    Thanks,
    iris

    If no arguments were passed, it means that there are zero arguments entered. So the args array will have a length of zero.

  • How can I check that second hand macbook air is not stolen?

    How can I check that second hand macbook air is not stolen?

    Ask for the original purchase receipts.
    Take it to the Apple store  and make sure that the computer is not stolen
    provided they have any such information.
    Best.

Maybe you are looking for

  • Swappable external hard drive format pc/mac for atv2

    i would like to point itunes on a mac and pc to a single swappable external hd for use with atv2. the storage will be mainly used for atv2 encoded sd home video, stored sd movies, and music. all individual files will be less than 2gb. connection will

  • Utilization of Cenvat Credit through J1IH (Plz. Guide)

    Practice followed by co. is to Utilize Cenvat Credit through J1IH T.Code - In J1IH, Tab Other Adjustment is used (i.e ETT-MRDY) for this purpose. Accounting entry ideally should get  passed through J1IH is - ED Payable A/C Dr. To RG23A BED A/C ED Ces

  • How advanced is this.....

    Hi everyone, I came across a really good site and was wondering how difficult it would be to do something simialr in Flash. Here is the swf file url: http://www.frooition.com/files/swf/ebaydesignclients.swf Is this really advanced flash? I'm quite a

  • I am trying to empty my trash and keep getting error code -8003

    I am trying to empty my trash and keep getting error code -8003...how do I get it to empty?

  • Need suggestions about synonyms

    We are using Oracle 10g (10.2.0.5). I have few doubts about synonyms. Please find the below.. 1.What is schema based synonym switching? 2. How it will work and to understand explain with the example... 3. what are advantages and disadvantages of sche