Positioning of content

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

  1. #1

    Default Positioning of content

    Hi everyone got this following code - and when i try to add the template
    -<cfinclude template="resultarticle links.cfm"> it doesn't appear at the bottom
    of the content but instead at the top no matter where i put it in the code. Can
    anyone tell what to do? I want it to appear after the results.


    <div id="column2">
    <h1><span class="style1">health</span> <span class="style2"><span
    class="style4">sapporo</span></span> </h1>



    <cfif isdefined("id")>
    <cfif isnumeric(id)>
    <cfquery name="qGetItem" datasource="#application.ds#">
    select * from products
    where productid = #id#
    </cfquery>

    <cfif qGetItem.recordcount eq 1>

    <cfoutput query="qGetItem">

    <table class="symtable">
    <tr>
    <td><cfinclude template="addButton.cfm"></td>
    <td><form action="showCart.cfm">
    <input type="submit" value="view list" class="addbutton"/>
    </form>
    </td>
    </tr>
    <tr>
    <td>#ProductName#</td>
    <td>#productDescription#</td>
    </tr>

    </cfoutput>
    </cfif>
    </cfif>
    </cfif>
    <cfinclude template="resultarticle_links.cfm">
    </div>

    </body>

    </html>


    quiero mas Guest

  2. Similar Questions and Discussions

    1. CSS Content Box Positioning - Help Please
      Hello! I'm currently working on a website for a client of mine. This is the first time I'm using CSS for positioning, and came across some issues...
    2. CSS Div Positioning
      Anybody know how to cause a DIV to be aligned to the bottom of the page? If you go to: http://www.tilaru.com/NewSite/index.php you'll see that my...
    3. Content positioning when browser is resized
      I asked this question before but didn't get any responses... Lets see if I reword it maybe I'll get more positive results :) Does anyone know how...
    4. Need help with Content-Disposition Content-Type
      I am trying to use the following script to allow users to download files with some of the file name stripped off. This script is for use on my...
    5. industry positioning for flash MX using dynamic content
      hello there have your say or any great links would be great santhi
  3. #2

    Default Re: Positioning of content

    Hi try this HTML

    <div id="column2">
    <h1><span class="style1">health</span> <span class="style2"><span
    class="style4">sapporo</span></span> </h1>



    <cfif isdefined("id")>
    <cfif isnumeric(id)>
    <cfquery name="qGetItem" datasource="#application.ds#">
    select * from products
    where productid = #id#
    </cfquery>

    <cfif qGetItem.recordcount eq 1>
    <table class="symtable">
    <cfoutput query="qGetItem">
    <tr>
    <td><cfinclude template="addButton.cfm"></td>
    <td><form action="showCart.cfm">
    <input type="submit" value="view list" class="addbutton"/>
    </form>
    </td>
    </tr>
    <tr>
    <td>#ProductName#</td>
    <td>#productDescription#</td>
    </tr>

    </cfoutput>
    </table>
    </cfif>
    </cfif>
    </cfif>
    <br>
    <cfinclude template="resultarticle_links.cfm">
    </div>

    </body>

    </html>

    reenaroy Guest

  4. #3

    Default Re: Positioning of content

    Thanks very much is there a hard and fast rule to using the </table> - b/c
    sometimes it doesnt get used other times we can

    when to and when not to? Any hints
    is it best to use it when using cfinclude?

    many thanks Mark

    quiero mas Guest

  5. #4

    Default Re: Positioning of content

    hi,

    your error was not due to </table>. For the exact error you can see the bold part of the above code. Also It is a good practice to close the table everytime. It is necessary also.
    reenaroy 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