Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Location
    San Francisco
    Posts
    455
    Thanks
    19
    Thanked 15 Times in 15 Posts

    Rails URLs on Flash buttons

    I have a Flash menu that is accessing a page that is dynamically generated by a Rails, a real estate database. Currently I have the buttons set up wth the following absolute URL provided by the back-end developer:

    on release {
    getURL("http://www.brownandco.com/property/open_houses");
    }

    However, the menu is not communicating properly and is appending a ".html" to the request, as well as dropping out the /property portion of the address. Is there a different way to access pages with this type of structure generated by Rails??

    I tried asking at the Flash forum, with no luck.
    Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read. Groucho Marx

  • #2
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you need change the http header generated by a Rails.

    class RSSController < ApplicationController
    before_filter :set_xml_header

    # action to create rss xml file, but have to change
    # HTTP header before
    def rss
    end

    def set_xml_header
    @headers['Content-Type'] = 'text/xml; character=utf-8'
    end
    end

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Location
    San Francisco
    Posts
    455
    Thanks
    19
    Thanked 15 Times in 15 Posts
    Thanks. I'm going to forward this to my Rails person. Since we couldn't figure it out in time, we switched to a javascript-based menu.

    This will come in handy in the future.
    Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read. Groucho Marx

  • #4
    New to the CF scene
    Join Date
    Jul 2007
    Location
    USA
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by marilynn.fowler View Post
    I have a Flash menu that is accessing a page that is dynamically generated by a Rails, a real estate database. Currently I have the buttons set up wth the following absolute URL provided by the back-end developer:

    on release {
    getURL("http://www.brownandco.com/property/open_houses");
    }

    However, the menu is not communicating properly and is appending a ".html" to the request, as well as dropping out the /property portion of the address. Is there a different way to access pages with this type of structure generated by Rails??

    I tried asking at the Flash forum, with no luck.
    keep in mind also use correct charset in meta http-equiv="Content-Type" field.
    good luck

  • #5
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    useful info thanks


  •  

    Posting Permissions

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