[Proto-Scripty] Re: prototype 1.6.1, IE6: Object doesn't support this property or method, typeof Element=unknown

2010-03-15 Thread T.J. Crowder
Hi, As said in the original post: It is the $() functions itsself which fails. $() calls Element.extent, and IE6 complains about Element to not support the method request. You've said Element.extent in two different posts now. Just to be absolutely sure we're not overlooking something

[Proto-Scripty] Re: IE6 cannot run dynamicly inserted script tag

2010-03-15 Thread T.J. Crowder
Hi, Your code is working fine for me with IE6 (and I'm making sure that the script comes from a different domain; I even had it created by PHP using exactly your code, and did nothing to make sure that the PHP result was being served with the correct content-type, although I'd recommend doing

[Proto-Scripty] Re: Switch statement bugged with safari inside document.observe

2010-03-15 Thread T.J. Crowder
Hi, Safari's JavaScript engine handles switch just fine as far as I know, and there's nothing special about the switch being inside the function you're using for the dom:loaded handler. Since you haven't quoted your actual code, I don't think folks will be able to help you figure it out, but my

[Proto-Scripty] Re: Ajax.Request - can't get to work in Firefox, Chrome

2010-03-15 Thread T.J. Crowder
Hi, From IE, it works just fine (probably because it's using ActiveX rather than XMLHttpRequest) Not *rather than* -- it's using XMLHttpRequest regardless. On older versions of IE, the way you get one is via ActiveX, but that's irrelevant (and only older versions); it's an XMLHttpRequest

[Proto-Scripty] Re: Ajax.Request - can't get to work in Firefox, Chrome

2010-03-15 Thread Ronen
Thanks for correcting me on ActiveX... I didn't know that internally, an XMLHttpRequest object gets used in the end. In response to disccomp, I'm not sure how I would use a relative URL. Could you give an example? I've tried using a value such as /MyApp/ MyServlet, but this doens't work at all

[Proto-Scripty] Re: Ajax.Request - can't get to work in Firefox, Chrome

2010-03-15 Thread Scott
I have had similar issues before in my applications. I have always assumes that they were caching issues. With the method as 'post' and adding the current date and time in the parameters field (or query string), I've been able to get past this issue. This is to make sure the url being called is

[Proto-Scripty] Re: is there a way to get an event type?

2010-03-15 Thread Pranav
The event object has a property called type. ... if(event.type == 'click'){ //click stuff } ... On Mar 14, 5:40 pm, patrick patrick99...@gmail.com wrote: Hi, I am using low pro's event behaviors, and currently am doing something like this: '#blah:click': function() {   // click stuff

[Proto-Scripty] sleep or wait function

2010-03-15 Thread albert kao
Is there any sleep or wait function in Prototype? -- 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-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to

[Proto-Scripty] Re: Ajax.Request - can't get to work in Firefox, Chrome

2010-03-15 Thread Ronen
Thanks for the suggestion Scott. I've tried to add the current timestamp (via the javascript expression new Date().getTime() ) to the parameters and the query string (in all the combinations such as first adding it only to parameters, then only to query string, and then to both) and

[Proto-Scripty] How to use php functions return value in prototype.js

2010-03-15 Thread Zahid
Hi iam new to prototype .My question is that iam having a php file helper.php which is having a single functions : function content_body() which returns value according to action variable comming with $_GET request. Function is given below

[Proto-Scripty] Prototype breaks tilesloaded event (Google Maps API)

2010-03-15 Thread HadiS78
Hi, i am using Prototype on one of my Rails projects and also using google maps. What i needed to use now very much is the tilesloaded event of the google maps api. But somehow prototype breaks the tilesloaded event so that it is not fired. Just to be sure i created a new Rails project without

[Proto-Scripty] Re: prototype 1.6.1, IE6: Object doesn't support this property or method, typeof Element=unknown

2010-03-15 Thread clupprich
I had similiar problems once with Prototype and IE6. My workaround was to not trust $() but use the Element.foo methods instead (which worked quite well, however, I needed to patch some of those to use Element.bar internally). I'll try to come up with some source code for this. Christoph On Mar

[Proto-Scripty] Re: sleep or wait function

2010-03-15 Thread T.J. Crowder
Hi, On Mar 15, 4:41 pm, albert kao albertk...@gmail.com wrote: Is there any sleep or wait function in Prototype? There's Function#delay[1] and Function#defer[2]. JavaScript doesn't have any support for yielding in the middle of a function, but you can easily break up a function into different

[Proto-Scripty] Re: How to use php functions return value in prototype.js

2010-03-15 Thread T.J. Crowder
Hi, Write your PHP page to *only* output what you want to receive. So for instance: ?php echo only what you want here ? Anything you output from PHP will be received by the client-side stuff (this is a Good Thing[tm]), but that just means you need to make sure your PHP is returning only what

Re: [Proto-Scripty] make the Tablekit library to sort with the current sort order after page refresh

2010-03-15 Thread Walter Lee Davis
Since the sort order is a client preference, I would imagine you could stash the client's preferred order in a cookie and use that for return visits. Otherwise, each visitor could override the previous visitor's preference, and you're no further ahead. Take a look at the LivePipe Cookie

[Proto-Scripty] Ajax.Updater not working in IE, works fine in FF Chrome and Safari

2010-03-15 Thread David Behler
Hey folks, maybe you can help me out with this. I got a simple function that I use to load sub-categories when clicking on a parent category: function toggleSubCats(cat, id) { /* Vars and stuff */ catObj = $(cat); var send=null; /* Now figure out the status of the element and

[Proto-Scripty] Re: Ajax.Request - can't get to work in Firefox, Chrome

2010-03-15 Thread disccomp
Are you sure your servlet is responding with the proper headers. Try creating a small self-contained minimum test case which fails. Using a relative URL ensures that it is from the same origin as the loading page. -Mark -- You received this message because you are subscribed to the Google Groups