0

I would like to implement the Galleon Forum on my website but my hosting company does not allow createObject tag. If someone has converted the Galleon coldfusion forum to use on goaddy hosting please let me know how.

Can someone please let me know how to convert this statement to use cfinvoke?

<cfset application.factory = createObject("component","cfcs.objectfactory").init(settings)>

Thanks for any help!

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by arrgh
0

Thanks for your help.
Do you know how I can replace createObject in javascript?

Here is my code but I cannot use createObject.

    switch(arguments.objName) {
            case "conference":
                obj = createObject('component','conference').init();
                    if (arguments.singleton) { // scope singleton
                        addSingleton(arguments.objName, obj);
                    }
                    // inject dependencies through setter
                    obj.setSettings( get('galleonSettings', arguments.singleton) );
                    obj.setForum( get('forum', arguments.singleton) );
                    obj.setUtils( get('utils', arguments.singleton) );
                return obj;
            break;

            case "forum":
                obj = createObject('component','forum').init();
                    if (arguments.singleton) { // scope singleton
                        addSingleton(arguments.objName, obj);
                    }
                    // inject dependencies through setter
                    obj.setSettings( get('galleonSettings', arguments.singleton) );
                    obj.setThread( get('thread', arguments.singleton) );
                    obj.setConference( get('conference', arguments.singleton) );                        
                    obj.setUtils( get('utils', arguments.singleton) );
                return obj;
            break;

Edited by mike_2000_17: Fixed formatting

0

That's not javascript. It's cfscript. You can't use CF <tags> in cfscript. Either rewrite the code to use tags OR write a wrapper cffunction that you can call from cfscript.

This isn't for cfinvoke. But here's an example of a wrapper function for a tag
http://www.cflib.org/udf/Abort

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.