[Proto-Scripty] Re: Scriptaculous 1.8.2 not loading library files

2009-01-30 Thread mcrawford

Yeah, I just found the same thing after almost throwing my computer
out of the window after trying to upgrade scripty to 1.8.2. The
update breaks everything if you don't have the scripts in the head.

It's strange that it was changed from 1.8.1 to only look in the head.

On Dec 11 2008, 1:21 am, Alejo alej...@gmail.com wrote:
 Hi George,

 Thank you very much for your answer. Yes, it did help me a bit!
 -
 The problem is that I don'tloadthose libraries directly, but using
 the google.load() functionality. So my question was: where does
 google.load() insert the scripts I call?

 Thanks a lot!

 On 10 dic, 14:53, George george.bea...@googlemail.com wrote:

  Hi There,

  I use the google API loader, just above the closing body tag like
  this:

  scripttype=text/javascript src=http://ajax.googleapis.com/ajax/
  libs/prototype/1.6.0.3/prototype.js/script
  scripttype=text/javascript src=http://ajax.googleapis.com/ajax/
  libs/scriptaculous/1.8.1/scriptaculous.js?
 load=effects,dragdrop,builder/script

  The javascript declarations for theScriptaculousdependent files are
  inserted directly under the original call in 1.8.1.  I also noticed
  that in 1.8.2 it only works if you have the declaration in the page
  head.

  At the moment, I'm sticking with 1.8.1 but to be honest, there's no
  reason why I couldn't move the declarations to the head of the
  document.

  Sorry that's not an answer, but hopefully it helps a bit.

  George

  On Dec 9, 9:06 am, Alejo alej...@gmail.com wrote:

   I'm sorry to re-open this thread, but no-one has told me anything
   about it.

   Does anyone use Google Ajax Loader API with Prototype Scriptaculous?
   Have you got the same problem? How can I solve it?

   Thank you in advance.

   On 1 dic, 17:18, Alejo alej...@gmail.com wrote:

I also have the same problem, but I use Google Ajax API Loader, so I
don't know if the loader puts the javascript files in the head or
somewhere else. How can I solve this problem??

Thank you in advance.

On 1 dic, 09:27, joe.roback joe.rob...@gmail.com wrote:

  So, why can't your scripts be in the head? Do you know you can add
  scripts to the head dynamically? Like this:

 for example, pixelpost photoblog, you want to onlyloadthese in the
 image_template.html, and have a header.html+footer.html defined, the
 scripts will have to go in the body.

 I also found issues with xhtml1.1 and the DOM. Had to use these
 insteaad

 function createElement(element) {
         if (typeof document.createElementNS != 'undefined') {
                 return 
 document.createElementNS('http://www.w3.org/1999/xhtml',
 element);
         }
         else if (typeof document.createElement != 'undefined') {
                 return document.createElement(element);
         }
         return false;

 }

 function setAttribute(element, name, value) {
         if (typeof element.setAttributeNS != 'undefined') {
                 return 
 element.setAttributeNS('http://www.w3.org/1999/xhtml', name,
 value);
         }
         else if (typeof element.setAttribute != 'undefined') {
                 return element.setAttribute(name, value);
         }
         return false;

 }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Scriptaculous 1.8.2 not loading library files

2008-12-11 Thread Alejo

Hi George,

Thank you very much for your answer. Yes, it did help me a bit!
-
The problem is that I don't load those libraries directly, but using
the google.load() functionality. So my question was: where does
google.load() insert the scripts I call?

Thanks a lot!

On 10 dic, 14:53, George [EMAIL PROTECTED] wrote:
 Hi There,

 I use the google API loader, just above the closing body tag like
 this:

 script type=text/javascript src=http://ajax.googleapis.com/ajax/
 libs/prototype/1.6.0.3/prototype.js/script
 script type=text/javascript src=http://ajax.googleapis.com/ajax/
 libs/scriptaculous/1.8.1/scriptaculous.js?
 load=effects,dragdrop,builder/script

 The javascript declarations for the Scriptaculous dependent files are
 inserted directly under the original call in 1.8.1.  I also noticed
 that in 1.8.2 it only works if you have the declaration in the page
 head.

 At the moment, I'm sticking with 1.8.1 but to be honest, there's no
 reason why I couldn't move the declarations to the head of the
 document.

 Sorry that's not an answer, but hopefully it helps a bit.

 George

 On Dec 9, 9:06 am, Alejo [EMAIL PROTECTED] wrote:

  I'm sorry to re-open this thread, but no-one has told me anything
  about it.

  Does anyone use Google Ajax Loader API with Prototype  Scriptaculous?
  Have you got the same problem? How can I solve it?

  Thank you in advance.

  On 1 dic, 17:18, Alejo [EMAIL PROTECTED] wrote:

   I also have the same problem, but I use Google Ajax API Loader, so I
   don't know if the loader puts the javascript files in the head or
   somewhere else. How can I solve this problem??

   Thank you in advance.

   On 1 dic, 09:27, joe.roback [EMAIL PROTECTED] wrote:

 So, why can't your scripts be in the head? Do you know you can add
 scripts to the head dynamically? Like this:

for example, pixelpost photoblog, you want to only load these in the
image_template.html, and have a header.html+footer.html defined, the
scripts will have to go in the body.

I also found issues with xhtml1.1 and the DOM. Had to use these
insteaad

function createElement(element) {
        if (typeof document.createElementNS != 'undefined') {
                return 
document.createElementNS('http://www.w3.org/1999/xhtml',
element);
        }
        else if (typeof document.createElement != 'undefined') {
                return document.createElement(element);
        }
        return false;

}

function setAttribute(element, name, value) {
        if (typeof element.setAttributeNS != 'undefined') {
                return 
element.setAttributeNS('http://www.w3.org/1999/xhtml', name,
value);
        }
        else if (typeof element.setAttribute != 'undefined') {
                return element.setAttribute(name, value);
        }
        return false;

}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Scriptaculous 1.8.2 not loading library files

2008-12-09 Thread Alejo

I'm sorry to re-open this thread, but no-one has told me anything
about it.

Does anyone use Google Ajax Loader API with Prototype  Scriptaculous?
Have you got the same problem? How can I solve it?

Thank you in advance.

On 1 dic, 17:18, Alejo [EMAIL PROTECTED] wrote:
 I also have the same problem, but I use Google Ajax API Loader, so I
 don't know if the loader puts the javascript files in the head or
 somewhere else. How can I solve this problem??

 Thank you in advance.

 On 1 dic, 09:27, joe.roback [EMAIL PROTECTED] wrote:

   So, why can't your scripts be in the head? Do you know you can add
   scripts to the head dynamically? Like this:

  for example, pixelpost photoblog, you want to only load these in the
  image_template.html, and have a header.html+footer.html defined, the
  scripts will have to go in the body.

  I also found issues with xhtml1.1 and the DOM. Had to use these
  insteaad

  function createElement(element) {
          if (typeof document.createElementNS != 'undefined') {
                  return 
  document.createElementNS('http://www.w3.org/1999/xhtml',
  element);
          }
          else if (typeof document.createElement != 'undefined') {
                  return document.createElement(element);
          }
          return false;

  }

  function setAttribute(element, name, value) {
          if (typeof element.setAttributeNS != 'undefined') {
                  return 
  element.setAttributeNS('http://www.w3.org/1999/xhtml', name,
  value);
          }
          else if (typeof element.setAttribute != 'undefined') {
                  return element.setAttribute(name, value);
          }
          return false;

  }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Scriptaculous 1.8.2 not loading library files

2008-12-01 Thread joe.roback

 So, why can't your scripts be in the head? Do you know you can add
 scripts to the head dynamically? Like this:



for example, pixelpost photoblog, you want to only load these in the
image_template.html, and have a header.html+footer.html defined, the
scripts will have to go in the body.

I also found issues with xhtml1.1 and the DOM. Had to use these
insteaad

function createElement(element) {
if (typeof document.createElementNS != 'undefined') {
return document.createElementNS('http://www.w3.org/1999/xhtml',
element);
}
else if (typeof document.createElement != 'undefined') {
return document.createElement(element);
}
return false;
}

function setAttribute(element, name, value) {
if (typeof element.setAttributeNS != 'undefined') {
return element.setAttributeNS('http://www.w3.org/1999/xhtml', 
name,
value);
}
else if (typeof element.setAttribute != 'undefined') {
return element.setAttribute(name, value);
}
return false;
}



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Scriptaculous 1.8.2 not loading library files

2008-12-01 Thread Alejo

I also have the same problem, but I use Google Ajax API Loader, so I
don't know if the loader puts the javascript files in the head or
somewhere else. How can I solve this problem??

Thank you in advance.


On 1 dic, 09:27, joe.roback [EMAIL PROTECTED] wrote:
  So, why can't your scripts be in the head? Do you know you can add
  scripts to the head dynamically? Like this:

 for example, pixelpost photoblog, you want to only load these in the
 image_template.html, and have a header.html+footer.html defined, the
 scripts will have to go in the body.

 I also found issues with xhtml1.1 and the DOM. Had to use these
 insteaad

 function createElement(element) {
         if (typeof document.createElementNS != 'undefined') {
                 return 
 document.createElementNS('http://www.w3.org/1999/xhtml',
 element);
         }
         else if (typeof document.createElement != 'undefined') {
                 return document.createElement(element);
         }
         return false;

 }

 function setAttribute(element, name, value) {
         if (typeof element.setAttributeNS != 'undefined') {
                 return element.setAttributeNS('http://www.w3.org/1999/xhtml', 
 name,
 value);
         }
         else if (typeof element.setAttribute != 'undefined') {
                 return element.setAttribute(name, value);
         }
         return false;

 }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Scriptaculous 1.8.2 not loading library files

2008-11-26 Thread laurin1

So, why can't your scripts be in the head? Do you know you can add
scripts to the head dynamically? Like this:

var fileref = document.createElement('script');
fileref.setAttribute(type,text/javascript);
fileref.setAttribute(src, '/javascript/common20.js');

if (typeof fileref != undefined)
document.getElementsByTagName(head)[0].appendChild(fileref);
On Nov 26, 4:50 pm, Glen [EMAIL PROTECTED] wrote:
 Hi,

 The latest version of Scriptaculous will not correctly load if the
 main file (scriptaculous.js) is not loaded in the HEAD of the page.

 The new version only looks in the Head for the Script tag.

 On some of my pages, that is not an option, and the script tags are
 in the body.

 To fix it, I had to change line 49 and change  $$('head script[src]')
 to  $$('script[src]')

 Hope this can be fixed in the next version...

 Glen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---