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 3998178
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:29:37+00:00 2026-05-20T07:29:37+00:00

I have a small problem which I can’t seem to find a solution to.

  • 0

I have a small problem which I can’t seem to find a solution to. The problem is that the following code works in FF but doesn’t in Safari. Probably it is a rookie mistake, but I have been struggling now for two days and it is really getting on my nerves.

<script type="text/javascript">
 var settings = functionToReadSettings();
 document.observe('dom:loaded', function () {   
  functionToInit(settings);             
 });
</script>

The error I get in Safari is in functionToInit. It says that settings in undefined. I tried changing the places – both the settings definition and the call to functionToInit to be in the dom:loaded and both to be outside of it, but then it doesn’t work in FF also.

Any help will be greatly appreciated.

Edit: Here is the functionToReadSettings :

functionToReadSettings: function () {
 new Ajax.Request('readSettings.php', {
  method:'get',
  onSuccess: function(transport){
   settings = transport.responseText.evalJSON(true);
  }
 });
 return settings;
}
  • 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-05-20T07:29:37+00:00Added an answer on May 20, 2026 at 7:29 am

    Well, syncrhonisation isn’t trivial task in js.
    I don’t know, whether such features are implemented in prototype, but there’s another interesting library for such things:
    http://onilabs.com/presentations/OSCON2010/par-fork-join.html

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

Sidebar

Related Questions

I've got a seemingly small problem using LaTeX, which i can't find the answer
I have a small problem with interfaces. Here it is in Pseudo code :
SQL to find duplicate entries (within a group) I have a small problem and
I have a small problem - I want to decrease code duplication in my
I have a small problem, which I think it will be easy for you
I have a small multiplayer Flash game in which you can display a player
I have small problem with my .net 2.0 winforms application. I want to embed
I have a small problem with a script. I want to have a default
I have a small problem with how should i think a... problem. I want
I have a small math problem I am trying to solve Given a number

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.