Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8091871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:09:50+00:00 2026-06-05T20:09:50+00:00

1)I had a set of .js files in a particular Directory structure. 2)I NEED

  • 0

1)I had a set of “.js” files in a particular Directory structure.
2)I NEED to store them locally with my smalltalk image and need not want to host them seperately.
3) I DONT need to keep them inside the smalltalk image, with the WAFileLibrary.

Please let me know how the following code needs to be modified for my requirement.

anHtmlRoot javascript url: ‘http://www.google.com/jsapi’.

Something like the following..?

anHtmlRoot javascript url: “/myfolder/MyFile.js”

Help

Varun Isac

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:09:51+00:00Added an answer on June 5, 2026 at 8:09 pm

    You can indeed write:

    anHtmlRoot javascript url: '/myfolder/MyFile.js'
    

    but it’s better to use:

        anHtmlRoot javascript resourceUrl: 'MyFile.js'
    

    Which allows you to setup the path as a configuration parameter. More on that in the Seaside book.

    To serve the actual file, there are two options:

    • serve the file from disk with an external webserver (on the same
      machine)
    • serve the file from disk using the internal Smalltalk
      webserver

    For the latter option, you can load the Seaside-Filesystem package from the Seaside30LGPL repository. Once loaded, you can define an ‘external directory’ handler for your ‘myFolder’ directory using the Seaside config tool and that handler will serve the files from the disk.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had a problem with set not working in a batch file; it took
On my web application, I had configured my web.config file to set customerrors to
I had set up a bunch of NUnit unit tests using the Test connection
I had set up the MvcBuildViews element to true so my MVC 3 project
I've been developing a project on my local machine and had set up a
Due to some rather bizarre architectural considerations I've had to set up something that
When I looked at: http://replicaisland.googlecode.com/svn/trunk/res/drawable/ and found it only had one set of images,
If you had two snippets: (global-set-key \C-d delete-char) and (define-key global-map \C-d delete-char) Is
If a set of controls on a WinForm have had DataBindings created and attached
I have had some difficulties in using extended classes in rails, in particular extending

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.