User Profile

Collapse

Profile Sidebar

Collapse
celery6541
celery6541
Last Activity: Mar 6 '09, 12:41 AM
Joined: Mar 22 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • celery6541
    started a topic urllib.urlencode multidimensional dictionary

    urllib.urlencode multidimensional dictionary

    Hi all,

    I am trying to use urllib.urlencod e to post a multidimensiona l dictionary to a php page.

    This is the code I am using

    Code:
    test = {}
    test['boom'] = {}
    test['boom']['zoom'] = "bang"
    
    server_params = urllib.urlencode(test)
    
    response = urllib2.urlopen(server_url, server_params).read()
    And if I do a print of the post variable...
    See more | Go to post

  • celery6541
    replied to XMLRPC binary file transfer
    I added the "b" into the code but I am still having the same problem. I tried the code on linux and mac and it worked fine, but when I tried it on another windows machine(I am also running on windows) the same problem occurred. I guess python on windows does not play with this binary transfer nicely?
    See more | Go to post

    Leave a comment:


  • celery6541
    started a topic XMLRPC binary file transfer

    XMLRPC binary file transfer

    Hi all,

    I am trying to transfer files via xmlrpc. I am following the example found here:
    http://docs.python.org/library/xmlrpclib.html
    under the binary objects section

    Server Code
    Code:
    from SimpleXMLRPCServer import SimpleXMLRPCServer
    import xmlrpclib
    
    def python_logo():
         handle = open("python_logo.jpg")
         return xmlrpclib.Binary(handle.read())
    ...
    See more | Go to post

  • celery6541
    started a topic Automatically login/pass credentials to page
    in PHP

    Automatically login/pass credentials to page

    Hi,

    I am trying to link to an image, but it is behind an https server so it asks me for
    a login and password every time I access the image. I have the login and password, but is there a way to automatically pass it in so that I don't have to
    type it in every time?

    Thanks.

    -Celery
    See more | Go to post

  • celery6541
    started a topic multiple images with php gd
    in PHP

    multiple images with php gd

    Hi All,

    I was wondering if it was possible to insert an image on top of another image with php gd? I am using php gd to draw a diagram and I have some jpg/gifs that I want to also put inside of that diagram, is this possible? Thanks.

    -celery
    See more | Go to post

  • celery6541
    started a topic Confirm navigating away with a url

    Confirm navigating away with a url

    Hi all, Is there a way to confirm that a user wants to navigate away from a page when they type something in the url bar and hit enter?
    See more | Go to post

  • celery6541
    started a topic show legend

    show legend

    Is there anyway to get showLegend in cfchart to only display some of the chart legends instead of all of them?
    See more | Go to post

  • celery6541
    replied to ScaleTo in cfchart
    I tried putting 7 in but instead of scaling it from 0 to 24 it scaled it from 0 to 30. The parameters I am using in cfchart are
    Code:
            <cfchart
                format="flash"
                chartHeight="150"
                chartWidth="1000"
                xAxisTitle="Day"
                yAxisTitle="Hours"
                ScaleTo="24"
    ...
    See more | Go to post

    Leave a comment:


  • celery6541
    started a topic ScaleTo in cfchart

    ScaleTo in cfchart

    I am having trouble getting the ScaleTo parameter in the cfchart to work properly. I am trying to get a graph to scale from 0 to 24 by doing a ScaleTo="24" but it keeps rounding it up to 25 for some reason. The only way I have gotten it to work is to do ScaleTo="24" and then a GridLines="2" but then I will only get 0 and 24 labeled with tick marks. Thanks.
    See more | Go to post

  • celery6541
    replied to graph tips and colors
    thanks! using two stacked charts worked perfectly!
    See more | Go to post

    Leave a comment:


  • celery6541
    started a topic graph tips and colors

    graph tips and colors

    Is there anyway to change what is displayed when you rollover graphs in coldfusion? Also is there anyway to change the color of the graph at a certain point? I have data produced per day as one graph and then I have a maximum storage available as another graph and I want to change the color of the data produced per day graph to red or something if it exceeds the maximum storage available. Thanks :)
    See more | Go to post

  • celery6541
    started a topic aligning text in a selext box

    aligning text in a selext box

    Hi all,

    This is a picture of what my select box looks like now.


    I was wondering if it is possible to line up the create dates so they all start
    at a same column? Also is it possible to put the headers Study Name
    and Create Date into the select box? Thanks....
    See more | Go to post

  • celery6541
    started a topic cffunctions

    cffunctions

    Hi all,

    I am using a function to check two dates to make sure that an end date comes after a start date. Right now I am trying to call it like this

    Code:
    <cfset date_check=check_date(#Form.startDate#,#Form.endDate#)>
    <cfoutput>#date_check#</cfoutput>
    <cfif NOT isDefined("date_check")>
        <li>Please make sure the end date comes after the start date.</li>
    ...
    See more | Go to post

  • celery6541
    replied to multiple inputs
    Thanks! :)
    See more | Go to post

    Leave a comment:


  • celery6541
    started a topic multiple inputs

    multiple inputs

    Hi all, I need to implement multiple input fields that change depending on selections from the user. For example, A user may be prompted to enter data for multiple inputs who's names are incremented by 1 each time. So there would be
    something like

    Code:
    <cfloop from="1" to="maxsize" index="i">
    <cfselect name="type#i#" size="1" query="get_type" value="ID"
    ...
    See more | Go to post
No activity results to display
Show More
Working...