Need help with something

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Need help with something

    Hi folks, first time poster here although I've been around the message board
    scene for about 5 or 6 years now.

    Basicaly I need some help, and, while I hate to ask people I have never even
    spoken to before, I'm on a deadline and I've exhausted all of my options.

    What it pretty much boils down to is this; I've built, or rather modified, a
    page using a dreamweaver template and a cascading style sheet and them combined
    them with the existing pages, several of which include ColdFusion operations.

    I've been using the same template and css on every page and they all work
    fine, except when I try to access the statistics pages. Those pages call
    information from a database using a ColdFusion query but keep causing me
    problems.

    The following is the ColdFusion in use, besides for various <cfoutput> tags;

    <cfinclude template="../Connections/connSTEP.cfm">
    <cfparam name="URL.cArea" default="1">
    <cfparam name="rsCA_EC_AC__MMColParam" default="#URL.cArea#">
    <cfquery name="rsCA_EC_AC" datasource=#MM_connSTEP_DSN#
    username=#MM_connSTEP_USERNAME# password=#MM_connSTEP_PASSWORD#>
    SELECT Econ_Active_Males, Econ_Active_Females, Econ_Active_Total, Maps FROM
    CA_EC_AC
    WHERE Community_Area = '#rsCA_EC_AC__MMColParam#'
    </cfquery>
    <cfquery name="rsSUMCA_EC_AC" datasource=#MM_connSTEP_DSN#
    username=#MM_connSTEP_USERNAME# password=#MM_connSTEP_PASSWORD#>
    SELECT SUM(Econ_Active_Males), SUM(Econ_Active_Females),
    SUM(Econ_Active_Total)
    FROM CA_EC_AC
    </cfquery>
    <cfquery name="rsCArea" datasource=#MM_connSTEP_DSN#
    username=#MM_connSTEP_USERNAME# password=#MM_connSTEP_PASSWORD#>
    SELECT Community_Area FROM CA_by_Age_SNIPVPS99
    </cfquery>




    I've been able to identify the line which is the problem;

    <cfinclude template="../Connections/connSTEP.cfm">

    this calls the following;

    <!-- FileName="Connection_cf_dsn.htm" "" -->
    <!-- Type="CFDSN" -->
    <!-- Catalog="" -->
    <!-- Schema="" -->
    <!-- HTTP="true" -->
    <CFSET MM_connStep_DSN = "step">
    <CFSET MM_connStep_USERNAME = "">
    <CFSET MM_connStep_PASSWORD = "">

    when I remove the <cfinclude... the page works absolutely fine except that it
    comes up blank. However, when the link is in, the css seems to be completely
    ignored, almost as if it doesn't exist and the page, font sizes and spacing
    mainly, revert back to defaults.

    The following page works fine, the template and CSS are correct, all of the
    links work and each of the other pages look fine,
    [URL=http://a-web-01.bell.ac.uk/stepnew/Default.htm]clicky[/URL],
    until you get to this one,
    [URL=http://a-web-01.bell.ac.uk/stepnew/queries/CA_EC_AC.cfm?cArea=Blant
    yre]clicky[/URL]
    .

    If anyone can see whats wrong with this code, or if they have even just an
    inkling of what might be wrong I would greatly appreciate it if they could tell
    me, any and all help would be greatly appreciated.

    LangG Guest

  2. #2

    Default Re: Need help with something

    Hi

    i think when you are including the cfinclude, there may be a chance of
    changing the current folder.
    then at that time the CSS path may not be correct. then obviously it wont
    works.
    i too faced this similar problem. but after viweing it in the browser using
    view source then i realsed that
    its path problem

    check it once.



    vkunirs Guest

  3. #3

    Default Re: Need help with something

    Thankyou!

    Viewing the source eventualy led me to the problem; the comments on the page
    linked to in the <cfinclude> was what was causing the problems, deleting them
    solved it.

    Thanks again for your help :D

    LangG Guest

  4. #4

    Default Re: Need help with something

    FYI, if you want to keep the comments in your template, you should use ColdFusion comments <!--- ---> instead of HTML <!-- -->.

    Phil
    paross1 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