External path for skin files and .js files?

Last post 09-04-2008, 8:19 AM by carlb007. 2 replies.
Sort Posts: Previous Next
  •  09-01-2008, 4:19 AM 43408

    External path for skin files and .js files?

    Hi all.
     
    Im not sure if what i want to do it possible, but REALLY hope it is. Basically im in the process of making a CMS system that allows users to create a website 'on the fly' it does this by duplicating a whole load of config files etc to allow the site to run on its own domain name etc. the problem i have is that the 'on the fly website' also needs access to the Cute editor...
     
    After strippnig out as many files as i can, i still have some 550 files (aprox 4.6mb) that would require copying each time a new site is built. This isnt acceptable as it would requre way too much cpu and storage on the server to copy this amount of files each time.
     
    What id like to do ideally is to split the editor in 2. Make it so my system can duplicate the editors .asp files, but then reference everything else from an external and constant path. In theory this would mean id only have to copy the main file and the Dialog and Tag directories.
     
    For example the website running the editor might be on domain www.MyEditor.com but i then want that editor to load the 100's of skin files and .js files from www.CommonDataStore.com/Resources.
     
    Any ideas? Is this possible at all or am i living in a pipe dream? I guess my only other option would to be embed the Editor in an iframe from a remote server, and then when the form is submitted on the main url use javascript to read out the iframes contents and post that way.
     
    Any help would be appreciated....ive tried allsorts of stuff but its all made very problematic by the fact that not all lines of code seem to utilise a single common path variable.
     
    Cheers,
    Carl.
    Filed under: , ,
  •  09-03-2008, 4:21 PM 43529 in reply to 43408

    Re: External path for skin files and .js files?

    Carl,
     
    You have two options.
     
    1. Run Editor in a separate dialog:
     
     
    2. Copy the Editor files into a folder and set up virtual directory in each domain.
     
    Hope it helps.
     
    Keep me posted

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  09-04-2008, 8:19 AM 43556 in reply to 43529

    Re: External path for skin files and .js files?

    Cheers Adam....think im going to have to go for option 1 here....
     
    its a shame because one of the benefits i wanted to give users was the ability to stretch the input box to go full screen....cant really do that if its in a popup window as itll only stretch to the size of the window.
     
    Nevermind!
     
    Cheers anyway.
    Carl.
View as RSS news feed in XML