[Proto-Scripty] Re: execution order in IE

2009-09-03 Thread Alex McAuley
If you need to garuntee that a variable,function or method exists i would always wait until the dom is ready or in each function that gets called test the function,variable or method exists else timeout untill it does Alex Mcauley http://www.thevacancymarket.com - Original Message -

[Proto-Scripty] clonePosition not behaving accurately on spans

2009-09-03 Thread Tiago
Hello, I wrote the following HTML code: span id=1 input type=text value=Some text / /span span id=2 style=position: absolute input type=text value=Some text / /span And I would like to place span #2 on the same position as span #1. I tried to run the following command:

[Proto-Scripty] element.DispatchEvent is not a function

2009-09-03 Thread vaibhav
Hi , I am getting a problem , i have added a js function on onchange event of a drop-down box , which calls Ajax.Updater , now whenever i call this function i get an error element.DispatchEvent is not a function in error console . please help Waiting for prompt reply Vaibhav

[Proto-Scripty] Re: Prototype 1.6.1 Released!

2009-09-03 Thread Richard Quadling
2009/9/2 Alex McAuley webmas...@thecarmarketplace.com: Nice work guys... now i have the mamoth task of updating everything with the new version!!!.. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: T.J. Crowder t...@crowdersoftware.com To: Prototype

[Proto-Scripty] Re: Prototype 1.6.1 Released!

2009-09-03 Thread Alex McAuley
Dunno what any of that meant !! just seemed a complicated jumble of words to me! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: Richard Quadling rquadl...@googlemail.com To: prototype-scriptaculous@googlegroups.com Sent: Thursday, September 03, 2009 12:39

[Proto-Scripty] Re: onChange event when div content changed

2009-09-03 Thread RobG
On Sep 3, 12:07 am, Hipnotik pork...@gmail.com wrote: Hi How to call some action if content of the div element has changed? I'm talking about something like this: $(my-div).observe(change, function(e) {     alert(hello); }); Expecting behavior: I have this div id=my-divsome text/div

[Proto-Scripty] Re: onChange event when div content changed

2009-09-03 Thread Marko Zabcic
You could use prototype custom events. See example here: http://jsbin.com/ayiku But you will have to fire function manually after update or override default Element.update function to do it for you. Marko On Sep 2, 7:30 pm, Hipnotik pork...@gmail.com wrote: Thanks Walter! I would like to

[Proto-Scripty] Re: clonePosition not behaving accurately on spans

2009-09-03 Thread Tiago
T.J., Thanks for the help, but I tried replacing the numbers with valid IDs and the result was the same... Tiago On Sep 3, 5:09 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, This probably isn't the answer, but FWIW, those IDs are invalid. IDs cannot start with a digit.[1] It'd be

[Proto-Scripty] Re: accessing DOM of iFrame

2009-09-03 Thread Jim Higson
On Thursday 03 September 2009 06:51:19 kangax wrote: On Sep 2, 2:23 pm, Mojito tokyot...@gmail.com wrote: What's the Prototyped syntax equivalent of: window.frames['iFrameID'].document.getElementById ('elementInsideIFrame'); Current version of Prototype doesn't really support

[Proto-Scripty] Re: Favicon disappearing in Firefox?

2009-09-03 Thread Alex McAuley
I had a similar issue with caching once with firefox.. i had to delete the whole cache and it reverted the favicon back to the one i chose. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: Walter Lee Davis wa...@wdstudio.com To:

[Proto-Scripty] Re: Favicon disappearing in Firefox?

2009-09-03 Thread Walter Lee Davis
That's the odd thing. It was working, and now it's kinda working -- you see the favicon for a fraction of a second, then it disappears and is replaced with the generic globe. Walter On Sep 3, 2009, at 11:34 AM, Alex McAuley wrote: I had a similar issue with caching once with firefox.. i

[Proto-Scripty] Can I use Effect.toggle in a list box

2009-09-03 Thread Baskin, Avram S.
Can I use Effect.toggle in an HTML list box? I want the toggle effect to display when an item in the list box is clicked. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to

[Proto-Scripty] Re: execution order in IE

2009-09-03 Thread DJ Mangus
See this article: http://proto-scripty.wikidot.com/prototype:how-to-load-scripts-dynamically On Thu, Sep 3, 2009 at 9:25 AM, JoJo tokyot...@gmail.com wrote: Instead of loading JS in the head, how do I do includes like virtually all other languages? Isn't Scriptaculous loading Effects.js and

[Proto-Scripty] Re: execution order in IE

2009-09-03 Thread JoJo
^ great article! Now I have another question. Here is my new workflow in an attempt to execute files in the correct order across all browsers. It works in IE8, but not in IE7. In IE7 I get an error saying object expected on line 2 of main.js. This is not very descriptive; what does it mean?

[Proto-Scripty] Re: execution order in IE

2009-09-03 Thread Alex McAuley
Sometimes IE moans about the lack of a semi colon on the end of some Json'd code For example var foo ={bar:function(){alert('Hi');}} fails in some IE's (cant remember which one) but var foo ={bar:function(){alert('Hi');}; Works in every browser - i had to update some code to fix similar

[Proto-Scripty] 2 ajax calls

2009-09-03 Thread Bob
In the onSuccess function of one ajax call I am trying to perform an Ajax.Updater to get an fill in another portion of the screen. The server side program is not getting called Using firebug it looks like the call still thinks it is complete from teh previous call. I've only been doing JavaScript

[Proto-Scripty] Re: execution order in IE

2009-09-03 Thread JoJo
I added a semicolon to the end of my global wrapper var: var MYAPP = {class1: null, class2: null}; But I still get the same order. I believe that since this is executable code, IE doesn't care if it creates it AFTER I try to use it. On Sep 3, 12:56 pm, Alex McAuley

[Proto-Scripty] Re: 2 ajax calls

2009-09-03 Thread Bob
Sorry pulled this from a template /%libr%/ will actually get filled in with the correct path to that program on the server         Ajax.Updater('menu',                 '/%libr%//SYG938',                 {method: 'post',                 parameters:{USER: data.ASID,                          

[Proto-Scripty] Re: onChange event when div content changed

2009-09-03 Thread Hipnotik
@RobG I'm not sure that DOMSubtreeModified works in the IE. I tried to use it and I think it doesn't. @Marko That's the problem... I don't want to fire it manually. But thanks guys for help. --~--~-~--~~~---~--~~ You received this message because you are

[Proto-Scripty] Re: accessing DOM of iFrame

2009-09-03 Thread kangax
On Sep 3, 11:42 am, Jim Higson j...@wikizzle.org wrote: On Thursday 03 September 2009 16:29:33 Jim Higson wrote: On Thursday 03 September 2009 06:51:19 kangax wrote: On Sep 2, 2:23 pm, Mojito tokyot...@gmail.com wrote: What's the Prototyped syntax equivalent of:

[Proto-Scripty] Re: clonePosition not behaving accurately on spans

2009-09-03 Thread Tiago
This may not be Prototype's fault after all. I made a very simple test now. I compared the rendering of two pieces of HTML code separately: (1) span id=test input type=text value=Some text / /span (2) div id=test input type=text value=Some text / /div I measured both inputs with a pixel ruler