Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Database to ASP

    Hello,

    I am building a page with a stats bar which can be dynamically updated (this
    is the best method, as every page uses the same bar). There are some stats
    (such as an ASP countdown to a date) that I would really like to use, but when
    I put in the VBScript <%response.write(DateDiff("d", Now(), x))%> all that is
    posted on the page is what you see. For example, if I manually place the
    script into the page it returns a value of 15, but when it is dynamically
    placed in by the database I just get the script appearing. Is it possible to
    fix this? The point is to have as little intervention into the website as
    possible (such as creating application variables), I would like to add a number
    of different functions like this in the future. Thanks for your help,

    Jason Farneth

    Just to cover the ground - ASP VBScript, DW8, Access Database

    JFarneth Guest

  2. Similar Questions and Discussions

    1. MySQL Database not retrieving the full database
      Hi, I am using MySQL and PHP for my repository. It has 500+ records. till now it was displayiing all records in the database, but since from one...
    2. Import Data from flat-database to relational-database
      Before I start I need some tips and pleas excuse my bad english. I have two databases, one is flat and one is a relational database. example ...
    3. NEWBIE HELP Import Data from flat-database to relational-database
      I want to import Data from a simple Database, which contains all Information in one big record into a relational Database and split up the big...
    4. Passing database info to page allow user input then pass into another database
      Hi I really am going crazy! I'm using VBScript, ASP, and SQL My page reminds me of a shopping cart but looking at shopping cart examples has not...
    5. Another user has modified the contents of this table or view; the database row you are modifying no longer exists in the database;
      Hi, I am testing a trigger that and I am getting this error message saying "Another user has modified the contents of this table or view; the...
  3. #2

    Default Re: Database to ASP

    You can't store server-side code in the database. As you're seeing,
    anything from the database is treated as output. You'll have to use a
    client-side javascript instead because javascript IS output and isn't
    executed until the page is loaded by the client.

    "JFarneth" <webforumsuser@macromedia.com> wrote in message
    news:e2n06a$7h5$1@forums.macromedia.com...
    > Hello,
    > I put in the VBScript <%response.write(DateDiff("d", Now(), x))%> all that
    > is
    > posted on the page is what you see. For example, if I manually place the
    > script into the page it returns a value of 15, but when it is dynamically
    > placed in by the database I just get the script appearing.

    Lionstone Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139