I changed the <scriptsrc></scriptsrc> in the
"/opt/openbd/conf/bluedragon.xml" to "/bluedragon/scripts" and even
"$/bluedragon/scripts" and it still doesn't work. The scripts folder with
the "cfform.js" was already located in
"/opt/openbd/tomcat/webapps/ROOt/bluedragon" directory and I even made all
the .js scripts executable with no difference. I changed the ownership from
"root" which they were to "nobody" and "apache" with no difference. There is
a web.xml file under "ROOT/WEB-INF" but it didn't have an entry for mime
type for .js files or any other mime entry for any other type of files
anyways. I did verify that there is an entry in
"/opt/openbd/tomcat/conf/web.xml" for js files and it looks like this:

<extension>js</extension>
        <mime-type>text/javascript</mime-type>
    </mime-mapping>

I'm still in the same situation. An interesting thing is that IE tries to
download the file, while Firefox displays a bunch of text when I try to
browse to the cfform.js file.

On Wed, Mar 17, 2010 at 2:02 PM, Jordan Michaels <[email protected]>wrote:

> Hi Dino,
>
> First, thanks to Matt for bringing this to my attention.
>
> I was able to do some testing on this and I can confirm that the current
> version of the installers doesn't include the scripts directory. Thank you
> Dino for letting me know and helping to make the installers better!
>
> However, the workaround for it is pretty easy. You don't have to change any
> settings in the administrator, just make sure your bluedragon.xml file says
> "<scriptsrc>/bluedragon/scripts</scriptsrc>", in the "system" subset.
>
> From there, you can do what you've done already and grab the scripts folder
> from the Jetty distribution, and put it in
> /opt/openbd/tomcat/webapps/ROOT/bluedragon/ directory.
>
> I tested the example code you provided and didn't get any errors once I
> added the script directory here.
>
> The problem with your browser wanting to download the js file sounds like a
> mime type problem. In your Tomcat web.xml file, close to the bottom, make
> sure there's a mime type entry for .js that indicates text/javascript. Also
> check to make sure there's no web.xml file in the ROOT/WEB-INF/web.xml file
> that may be overriding the default mime type.
>
> The major mistake here was me forgetting to include the scripts folder into
> the installers. This will be corrected in the next release. I've been
> working very hard trying to get IIS6 to cooperate with me the past few days
> so that it can be supported by the installer. It's coming along nicely
> though and I expect to have it all ready by the time the next release is due
> in April.
>
> Hope this helps!
>
> Warm regards,
> Jordan Michaels
> Vivio Technologies
> http://www.viviotech.net/
> Open BlueDragon Steering Committee
> Railo Community Distributions
>
>
> Dino Edwards wrote:
>
>> I cannot hit cfform.js when I try to get to it using the URL below. I had
>> to create the "/bluedragon/scripts/" directory and manually put the scripts
>> in there cause it didn't exist originally. The only way I can hit the
>> cfform.js script is if I create a "/scripts" directory under:
>>
>> "/opt/openbd/tomcat/webapps/ROOT/bluedragon"
>>
>> So it looks like:
>>
>>
>> "/opt/openbd/tomcat/webapps/ROOT/bluedragon/scripts"
>>
>> and then I can browse to "http://host:8888/bluedragon/scripts/cfform.js";
>> and it prompts me to download "cfform.js". I guess another point of interest
>> is the fact that tomcast runs under port "8888" vs. "8080" like you
>> mentioned. This was the default using the installation.
>>
>> On Wed, Mar 17, 2010 at 10:08 AM, Matthew Woodward 
>> <[email protected]<mailto:
>> [email protected]>> wrote:
>>
>>    On Wed, Mar 17, 2010 at 3:25 AM, Dino Edwards
>>    <[email protected] <mailto:[email protected]>>
>> wrote:
>>
>>        I'm still having the "cfform_submit_status" is undefined error
>>        and I have not been able to get past it. Here's the code for the
>>        form field I'm trying to validate below, just in case it needs
>>        to be a little different for openbd:
>>
>>
>>    What happens when you try to hit cfform.js in a browser? In the WAR
>>    install running on Tomcat for example I can go to:
>>    http://localhost:8080/openbd/bluedragon/scripts/cfform.js
>>
>>    If you can't hit the equivalent URL for your configuration that
>>    would mean OpenBD can't see cfform.js.
>>
>>    The only other thing is do you have any other javascript involved on
>>    the page? Sometimes conflicts can arise if you have additional
>>    javascript in the mix.
>>
>>
>>    --     Matthew Woodward
>>    [email protected] <mailto:[email protected]>
>>    http://blog.mattwoodward.com
>>    identi.ca/Twitter <http://identi.ca/Twitter>: @mpwoodward
>>
>>
>>    Please do not send me proprietary file formats such as Word,
>>    PowerPoint, etc. as attachments.
>>    http://www.gnu.org/philosophy/no-word-attachments.html
>>
>>    --     Open BlueDragon Public Mailing List
>>    http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon
>>    mailing list - http://groups.google.com/group/openbd?hl=en
>>         !! save a network - please trim replies before posting !!
>>
>>
>> --
>> Open BlueDragon Public Mailing List
>> http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon
>> mailing list - http://groups.google.com/group/openbd?hl=en
>>  !! save a network - please trim replies before posting !!
>>
>
> --
> Open BlueDragon Public Mailing List
> http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
> mailing list - http://groups.google.com/group/openbd?hl=en
>
> !! save a network - please trim replies before posting !!
>

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 mailing list - http://groups.google.com/group/openbd?hl=en

 !! save a network - please trim replies before posting !!

Reply via email to