[Proto-Scripty] Prototype throwing exceptions with Ajax.Updater

2009-02-12 Thread michaelrod77
I have a page that calls Ajax.Updater to load external content (on the same server) into a DIV located on that same page... pretty standard stuff. Everything works fine when I call Ajax.Updater once. But if I call it twice on the same page (for a second DIV), I get the error: Cannot read property

[Proto-Scripty] Re: Javascript scope

2009-02-12 Thread T.J. Crowder
Hi again Doug, But, my question is, is there a way I can do some type of alert() and have it print out what scope it is executing in? I don't know of a reliable way to do that, no. But if you're using Firefox, it looks like the latest Firebug[1] now displays the scope chain on the watch

[Proto-Scripty] Re: Prototype throwing exceptions with Ajax.Updater

2009-02-12 Thread T.J. Crowder
Hi, I'm not seeing a problem. You said... Everything works fine when I call Ajax.Updater once. But if I call it twice on the same page (for a second DIV), I get the error: ...and your code fragment was a dom:loaded handler with just a single div, so I did a quick page using a dom:loaded

[Proto-Scripty] Re: Custom positioning for Autocompleter

2009-02-12 Thread david
Hi Robin, can you show us what you have modified in scriptaculous, because at least, extending the class should not be impossible. -- david On 11 fév, 23:47, watchout w4tch...@gmail.com wrote: Hi, I've been stuck at this for 2 full days now and am getting fairly annoyed by the fact I'm not

[Proto-Scripty] Re: Ajax.request is not sending back the response with Safari browser using Iframe. The same works perfectly with IE and firefox.

2009-02-12 Thread david
Hi, Atif, is it possible to have the code, because it could be a problem in Safari. Safari have some hidden bug, it could be that. -- david On 12 fév, 10:58, Atif atif.siddiq...@gmail.com wrote: Hi, I am using prototype and scriptaculous in my application. Normally all the functionalities

[Proto-Scripty] Re: Custom positioning for Autocompleter

2009-02-12 Thread watchout
Hi David, I've tried to extend the class using the methods shown on these two websites: http://techno-weenie.net/2006/1/30/extending_autocompleter http://tetlaw.id.au/view/blog/adding-a-local-cache-to-ajaxautocompleter/ This is what I tried, but doesn't seem to work:

[Proto-Scripty] Re: AJAX

2009-02-12 Thread disccomp
I usually respond with a JSON object that at least provides some debug info like: {msg:'panel_X removed from col1'} {msg:'panel_X inserted in col2, position Y'} or {msg:'panel_X moved to position Y'} On the client I pass the debug string to a logging function that I use to output all my

[Proto-Scripty] Re: Drag and Drop - odd annoyance

2009-02-12 Thread Offspring2099
Got it. Thanks David. On Feb 9, 3:55 am, david david.brill...@gmail.com wrote: Hi Offspring2009, The problem is in the function moveItem, because you just do    draggable.parentNode.removeChild(draggable);    droparea.appendChild(draggable); And you did not take care of relative

[Proto-Scripty] Builder.js not loading?

2009-02-12 Thread Andrew Albrechtsen
I'm having trouble with Scriptaculous' builder.js not loading in IE. My site works fine in Safari, Firefox, and Opera, but in IE builder.js is getting hung up and causing the site not to display. Take a look... www.photographyavenue.com If it's any help - this just started happening, it was

[Proto-Scripty] Re: Builder.js not loading?

2009-02-12 Thread Ryan Gahl
The problem is that you are using defer in your script include tags, which in IE makes the order they load an indeterminate thing. So what's happening is scriptaculous is trying to load before Prototype, which causes the error to be thrown when scriptaculous does its check for Prototype... Remove

[Proto-Scripty] Re: Builder.js not loading?

2009-02-12 Thread Ryan Gahl
BTW... very nice looking site there :) On Thu, Feb 12, 2009 at 1:39 PM, Ryan Gahl ryan.g...@gmail.com wrote: The problem is that you are using defer in your script include tags, which in IE makes the order they load an indeterminate thing. So what's happening is scriptaculous is trying to

[Proto-Scripty] IE error with unload event

2009-02-12 Thread Loc Nguyen
IE is returning an error when I click cancel on the confirmation message. You can view the source here: http://radiantcube.com/unload.html The happy path: 1) fill out a proper url in the text box 2) click go 3) page returns a confirmation message asking if you're sure you want to leave 4) click

[Proto-Scripty] Re: Builder.js not loading?

2009-02-12 Thread Andrew
Thank you very much for the help, as well as the compliment! :-p --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: Taboo Subject

2009-02-12 Thread RobG
On Feb 10, 8:29 pm, Lars Schwarz lars.schw...@gmail.com wrote: well, it's like fixing IE6 bugs. i mostly double-code functions like form-checks that are done pre-posting in javascript, to be checked again on server side again for the case javascript is turned off. The reason to check on

[Proto-Scripty] Re: Javascript scope

2009-02-12 Thread RobG
On Feb 11, 11:21 am, doug douglass_da...@earthlink.net wrote: I have read about Javascript and scope and I still don't really understand it completely, particularly when it comes to Ajax.Updater. I don't really understand, for example why, if there is a variable window.myvar, some