Chart makes my page "inaccessible"

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Chart makes my page "inaccessible"

    I am almost done with the site I have been developing for the past week or so,
    and it seems that I saved the worst for last. When I add a dynamic chart to my
    index.cfm page, I get an error in MSIE: "The page cannot be displayed" (you
    know, the usual when you misspelled a url). Then when I comment out my chart
    and refresh, the page displays again. I am attaching my code, any idea why
    this might be happening???

    <cfchart rotated="yes" gridlines="11" scaleto="100">
    <cfchartseries type="bar" query="poll" itemcolumn="r.vote_text"
    valuecolumn="getpercent(vote_result, total)">
    </cfchart>

    getpercent() is defined as:
    <cfscript>
    function getpercent(num, total)
    {
    return (num/total)*100;
    }
    </cfscript>


    Where total is a SUM() function in the database:
    <cfquery name="poll" datasource="phpbb">
    SELECT d.vote_id, d.topic_id, d.vote_text, d.vote_start,
    r.vote_id, r.vote_option_id, r.vote_option_text, r.vote_result,
    SUM(r.vote_result) as total

    FROM phpbb_vote_desc d, phpbb_vote_results r
    WHERE d.vote_id = r.vote_id
    GROUP BY r.vote_option_id

    ORDER BY d.vote_start DESC

    LIMIT 1
    </cfquery>


    Any help would be awesomely apreciated....I am totally confused......

    PlastechFish Guest

  2. Similar Questions and Discussions

    1. "Page" and "Rect" props of the Field prop in Javascript API
      Page property of the Field property in Javascript Acrobat API returns an array of pages that this field exists in. On the other hand, "rect" property...
    2. #40717 [NEW]: date "01-01-1968" inaccessible via date function
      From: manuel dot pinhao at nvisible dot pt Operating system: Windows XP SP2 PHP version: 5.2.1 PHP Bug Type: Date/time...
    3. chart problem: set type="stacked"
      I wrote a cfc to return an array to flex. the content is : <cfset obj=StructNew()> <cfset obj = "1"> <cfset obj = "500"> <cfset obj = "400">...
    4. Inaccessible "search engine friendly" URL parameters (CF MX)
      Hi, I'm running developer edition of Macromedia MX using IIS and W2K server. MX is newly installed with default config options. I'm passing...
    5. DBD::Chart: DBI->connect fails "DBD/Chart.pm did not return a true value"
      Hello Group! I've got a problem with DBD::Chart (0.80). When I try to execute the following script: #!/usr/bin/perl -W use DBI; my $dbh =...
  3. #2

    Default Re: Chart makes my page "inaccessible"

    Okay, this is weird. After realizing that my SQL was clearly off from what I
    intended, I commented it and my chart out and replaced the dynamic chart with a
    static one. I STILL GET THE SAME ERROR! Does CFMX have to be configured a
    certain way to display charts?

    PlastechFish Guest

  4. #3

    Default Re: Chart makes my page "inaccessible"

    File this suggestion under the category of "it may not help...but it can't
    possibly hurt" ...

    You mentioned you're using Internet Explorer. Did you try turning off the
    option [Show friendly HTTP error messages], just to make sure it's not hiding
    the real error message?

    mxstu Guest

  5. #4

    Default Re: Chart makes my page "inaccessible"

    Good idea but no effect. I guess I could try reinstalling CF server tomorrow,
    but I am hesitant to since I already had to once (it got glitchy and stopped
    connecting to my DBs). Thanks for the idea though.

    PlastechFish Guest

  6. #5

    Default Re: Chart makes my page "inaccessible"

    Did you receive the same message when viewing the page with another browser as well?
    mxstu Guest

  7. #6

    Default Re: Chart makes my page "inaccessible"

    Mozilla: The document contains no data.

    Opera: Could not connect to remote server
    You tried to access the address [url]http://localhost:8500/DatingThreads/[/url], which is
    currently unavailable. Please make sure that the Web address (URL) is correctly
    spelled and punctuated, then try reloading the page.

    It seems to me that the server is running into an error when it hits the
    cfchart tag and is not returning anything to the browser. My other pages
    (which don't includ cfchart) work fine though!

    PlastechFish Guest

  8. #7

    Default Re: Chart makes my page "inaccessible"

    Did you check the CF logs for exceptions after you run the cfm page with the
    CFCHART? It might give you a better idea what the problem is. Also, there are
    a few entries in the macromedia knowledgebase, relating to CFCHART, so you may
    want to check there as well.

    mxstu Guest

  9. #8

    Default Re: Chart makes my page "inaccessible"

    Do you have a file called GraphData.cfm in your CFIDE directory? Cuz I just noticed......I don't.....
    PlastechFish Guest

  10. #9

    Default Re: Chart makes my page "inaccessible"

    Sorry, I don't have MX set up correctly on this box, so I can't check.
    mxstu Guest

  11. #10

    Default Re: Chart makes my page "inaccessible"

    Is there a way to get all the CFMX Dev edition files in zip format so I can extract what I need, or will I have to reinstall? Thank you so much for your help, man.
    PlastechFish Guest

  12. #11

    Default Re: Chart makes my page "inaccessible"

    Wish I could be of more help.

    Not that I know of. I believe the developer edition comes in an
    InstallAnywhere exe file, which I'm not that familar with. You could probably
    check the web to see if it even possible to view/unzip the contents of this
    type of file ( InstallAnywhere exe). Your best bet is probably a
    re-installation. However, I know that when you start the installer it does
    extract some files to the temp directory for your O/S. Exactly which files it
    extracts, I don't know, but you might want to check there.

    mxstu Guest

  13. #12

    Default Re: Chart makes my page "inaccessible"

    Hey try using <cfchart format="png"> or <cfchart format="jpeg">, if it works then it means you are having some problem with the "Flash" format of charts.
    prayank Guest

  14. #13

    Default Re: Chart makes my page "inaccessible"

    Prayank,

    You are brilliant. Thanks a million.
    PlastechFish 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