[Proto-Scripty] new with question about dom:loaded on ie

2008-11-17 Thread Jay
Hi, I'm just new to the group - it is proper to ask support questions here? I'm having trouble with dom:loaded on IE6, any ideas where to look? Everything is fine on Firefox. Another area of trouble seems to be on Safari (Windows) getting at selectors like $$ ('table#tblTMRoster'). Again, any idea

[Proto-Scripty] Intellisense for prototype with Visual Studio 2008??

2008-11-17 Thread uniquegodwin
Hello, Is there any signs of having intellisense for prototype in Visual Studio??...the same way it works for Jquery?? Is there any prototype.vsdoc.js file available?? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Proto-Scripty] Re: new with question about dom:loaded on ie

2008-11-17 Thread T.J. Crowder
Hi Jay, Yup, this is the place. Can you post your dom:loaded code, and also the selector code that doesn't seem to be working on Safari? Ideally, a complete but small self-contained example posted to Pastie[1] is good. Also, what version of Prototype (and Safari) are you using? [1] http://pas

[Proto-Scripty] Updater from within an iframe

2008-11-17 Thread ronman
I've seen postings similar to my problem, but they didn't answer my question. Within an iframe, I've defined a The getElementById() finds the target div OK. But Ajax.Updater doesn't. Since prototype is loaded by the parent window, and I don't want to load the whole thing again just for a li

[Proto-Scripty] Re: dropOnEmpty:true causing flickering ?

2008-11-17 Thread gwineman
Great Fix - I had the same problem - works perfect On Nov 8, 8:05 am, Tobias Gassmann <[EMAIL PROTECTED]> wrote: > Hi, > > I applied a quick and dirty hack to the "onEmptyHover"-function to get > rid of the flickering when using dropOnEmpty > -->  onEmptyHover: function(element, dropon, overlap)

[Proto-Scripty] Re: Event.observe doesn't work on window scroll event

2008-11-17 Thread kangax
On Nov 17, 12:16 pm, Joe Moore <[EMAIL PROTECTED]> wrote: > I'm trying to use the bind to the windows.onscroll event with > Event.observe, but it doesn't work. No error is reported. > > Here is a small bit of JavaScript I am using: > > function initPage() > { > Event.observe("window", "scroll",

[Proto-Scripty] Event.observe doesn't work on window scroll event

2008-11-17 Thread Joe Moore
I'm trying to use the bind to the windows.onscroll event with Event.observe, but it doesn't work. No error is reported. Here is a small bit of JavaScript I am using: function initPage() { Event.observe("window", "scroll", function() { alert("Hello World"); }); } document.observe('dom:loaded',

[Proto-Scripty] Re: simple problem

2008-11-17 Thread kangax
On Nov 17, 12:13 pm, badgerduke <[EMAIL PROTECTED]> wrote: > Hello: > > I've been trying to use Ajax.Request().  The following is my code: > > function retrieveProjectPermissions(stateDataID, projectID) { > >     new Ajax.Request('/gallupFaith/me25/ > ProjectPermissionsAjaxAction.action', >     {

[Proto-Scripty] simple problem

2008-11-17 Thread badgerduke
Hello: I've been trying to use Ajax.Request(). The following is my code: function retrieveProjectPermissions(stateDataID, projectID) { new Ajax.Request('/gallupFaith/me25/ ProjectPermissionsAjaxAction.action', { method:'get', parameters: {statedataid: stateDataID, proje

[Proto-Scripty] Re: private methods/variables declaration

2008-11-17 Thread Alex Mcauley
on teh same ish subject, this cropped up on ajaxian today !!... might be worth a read http://ajaxian.com/archives/trying-to-be-private-in-javascript - Original Message - From: "Mona Remlawi" <[EMAIL PROTECTED]> To: Sent: Monday, November 17, 2008 3:43 PM Subject: [Proto-Scripty] Re:

[Proto-Scripty] Re: private methods/variables declaration

2008-11-17 Thread Mona Remlawi
Super, I like the word "shared". I'll keep an eye not to have any state in the private block :-) cheers -- mona [EMAIL PROTECTED] On Mon, Nov 17, 2008 at 4:23 PM, kangax <[EMAIL PROTECTED]> wrote: > > On Nov 17, 4:13 am, "Mona Remlawi" <[EMAIL PROTECTED]> wrote: > [...] >> I'm wondering if this

[Proto-Scripty] Re: private methods/variables declaration

2008-11-17 Thread kangax
On Nov 17, 4:13 am, "Mona Remlawi" <[EMAIL PROTECTED]> wrote: [...] > I'm wondering if this is a good practice. Are there any insights that > i should be aware of? Are the private methods/functions being > duplicated for each of myclass instance? If what you need is to create private static ("cla

[Proto-Scripty] Re: Can't call a function within a class using each or invoke

2008-11-17 Thread Mona Remlawi
Good call George, I'll do the same :) cheers -- mona [EMAIL PROTECTED] On Mon, Nov 17, 2008 at 4:13 PM, George <[EMAIL PROTECTED]> wrote: > > T.J. - Mona, > > Thank you both very much for your solutions, recommended reading lists > and T.J, for your event delegation suggestion. FYI Mona's sol

[Proto-Scripty] Re: Can't call a function within a class using each or invoke

2008-11-17 Thread George
T.J. - Mona, Thank you both very much for your solutions, recommended reading lists and T.J, for your event delegation suggestion. FYI Mona's solution worked out of the box but T.J. your event delegation suggestion makes a lot of sense - I suspect I will add a new method to my class to handle al

[Proto-Scripty] Re: Sending Json to the server

2008-11-17 Thread Alex Mcauley
No problems here. - Original Message - From: "Tobie Langel" <[EMAIL PROTECTED]> To: "Prototype & script.aculo.us" Sent: Monday, November 17, 2008 2:48 PM Subject: [Proto-Scripty] Re: Sending Json to the server Guys, please stay courteous (and that includes avoiding shorthand). Thank

[Proto-Scripty] Re: Sending Json to the server

2008-11-17 Thread Tobie Langel
Guys, please stay courteous (and that includes avoiding shorthand). Thank you! Tobie On Nov 17, 3:33 pm, "Alex Mcauley" <[EMAIL PROTECTED]> wrote: > okay m8 calm down lol its no biggie .. > > - Original Message - > From: "T.J. Crowder" <[EMAIL PROTECTED]> > To: "Prototype & script.aculo.

[Proto-Scripty] Re: Sending Json to the server

2008-11-17 Thread Alex Mcauley
okay m8 calm down lol its no biggie .. - Original Message - From: "T.J. Crowder" <[EMAIL PROTECTED]> To: "Prototype & script.aculo.us" Sent: Monday, November 17, 2008 2:01 PM Subject: [Proto-Scripty] Re: Sending Json to the server > Also the code you quote me on was psuedo code just

[Proto-Scripty] Re: Sending Json to the server

2008-11-17 Thread T.J. Crowder
> Also the code you quote me on was psuedo code just to try to give an idea of > what i am trying to achieve - i know it was unworking ! Alex, you've said that several times now. If you post code that's not code, please say it's not code to avoid wasting people's time. Looking at: var p

[Proto-Scripty] Re: Javascript error in IE6 for Effect.Highlight

2008-11-17 Thread Alex Mcauley
true / flase should usually be not in quotes ... try removing the quotes - Original Message - From: "scripter" <[EMAIL PROTECTED]> To: "Prototype & script.aculo.us" Sent: Monday, November 17, 2008 1:35 PM Subject: [Proto-Scripty] Javascript error in IE6 for Effect.Highlight > > Hi, > >

[Proto-Scripty] Javascript error in IE6 for Effect.Highlight

2008-11-17 Thread scripter
Hi, I just started with Scriptaculous. I tried using Effect Highlight property in the below piece of code. I tested it with IE6 and Firefox 3. It is working fine in both except that i am getting an javascript error in IE6 status bar. This error states 'Invalid Property value' at line 1909, cha

[Proto-Scripty] Re: Can't call a function within a class using each or invoke

2008-11-17 Thread T.J. Crowder
Doh! I missed he was doing all of this in an invoke, what I get for skimming. Wow, that's convoluted. Good answer, though. George, AFAICS Mona's solution will work for your _editField function as defined. But FWIW, I'd probably define a separate function intended as an event handler. (The re

[Proto-Scripty] Re: Ajax.Responders

2008-11-17 Thread Alex Mcauley
No it is a bug in chrome! as i stated - Original Message - From: "T.J. Crowder" <[EMAIL PROTECTED]> To: "Prototype & script.aculo.us" Sent: Monday, November 17, 2008 1:33 PM Subject: [Proto-Scripty] Re: Ajax.Responders Hi, What Alex posted wasn't a bug -- or at least, wasn't a bug in

[Proto-Scripty] Re: Sending Json to the server

2008-11-17 Thread Alex Mcauley
fixed the problem incase anyone was wondering a solution its simply done like this var data={}; $$('.jsonForm').each(function(e) { data[$(e).lang] = $(e).value; }); var params=Object.toJSON(data); params is now json decodible on the serverside - if using php and magic_quotes is set to o

[Proto-Scripty] Re: Ajax not working with IE

2008-11-17 Thread ColinFine
IE is picky about commas at the end of object literals. Try removing the comma at the end of this line: parameters: {query: this.value}, Colin On Nov 17, 1:27 am, bejitto101 <[EMAIL PROTECTED]> wrote: > My ajax works with FF but fails with IE. The code is quite simple:

[Proto-Scripty] Re: Can't call a function within a class using each or invoke

2008-11-17 Thread Mona Remlawi
great readings suggested. when you finish, you can try the following :) $$('.editable').each(function(e) {e.observe('click', (function() {this._editField(e)}).bind(this))}, this); the problem is that when you iterate, you have to specify the context. On Mon, Nov 17, 2008 at 2:15 PM, T.J. Crowd

[Proto-Scripty] Re: Ajax.Responders

2008-11-17 Thread T.J. Crowder
Hi, What Alex posted wasn't a bug -- or at least, wasn't a bug in Prototype. What's this other bug you're speaking of? Can you post an example? -- T.J. Crowder tj / crowder software / com On Nov 17, 9:07 am, bluezehn <[EMAIL PROTECTED]> wrote: > Incidentally, I believe there is a similar bug i

[Proto-Scripty] Re: private methods/variables declaration

2008-11-17 Thread T.J. Crowder
Hi Mona, > Are the private methods/functions being > duplicated for each of myclass instance? No, there is a single copy of each private variable and private method, contained within the outer closure, which is referenced by public methods you define because they, too, are closures. That means

[Proto-Scripty] Re: Sending Json to the server

2008-11-17 Thread Alex Mcauley
I suppose what i need is a push into my json object method ... though i cant seem to find a working one in prototypejs .. merge(); and update(); both seem to want to be used with $H() but it updates with my var ... Something like {"l" : "doe"} when it should be {"surname" : "doe"}; plus it

[Proto-Scripty] Re: Can't call a function within a class using each or invoke

2008-11-17 Thread T.J. Crowder
Hi George, Go back to school! ;-) No, seriously, you don't need to wrap the call to bindAsEventListener () in a function; that's its job. You also don't have to pass the event object to it. (And you probably want bind()[1] rather than bindAsEventListener().) [1] http://prototypejs.org/api/fun

[Proto-Scripty] Re: Sending Json to the server

2008-11-17 Thread Alex Mcauley
because i need to evaluate each one and i need to send other post data that does not need evaluating .. the other post data is not allways static so i cant put if/else clauses on my serverside code to accomidate it ... what i need is the data from the each loop send as 1 post parameter and my o

[Proto-Scripty] Can't call a function within a class using each or invoke

2008-11-17 Thread George
Hi Folks, I'm pretty sure that I'm going to be told to go back to school here, but I've wasted a whole morning trying to figure this out - now it's time to ask the experts. I've simplified my code here to demonstrate what I'm trying to do: [CODE] var buildPage = {}; buildPage = Class.create();

[Proto-Scripty] Re: Sending Json to the server

2008-11-17 Thread T.J. Crowder
Alex, Why send it to the server in JSON format as opposed to standard POST encoding? If all you want is key/value pairs, just sending POST data seems much more straight-forward. Separately, on the code: > $$('.formJson').each(function(e) { > var p=$(e).dbCol + $(e).value; > var d=p.toJSON(); >

[Proto-Scripty] Re: Sending Json to the server

2008-11-17 Thread Mona Remlawi
here's what i will do to send the json to server --- new Ajax.Request(url, { postBody: Object.toJSON(params), contentType: "text/javascript", onSuccess: function(xhr) { }, onFailure: function(xhr) { }, onComplete: functio

[Proto-Scripty] Re: Sending Json to the server

2008-11-17 Thread Alex Mcauley
can i send all that into json afterwards to send it to the server ? Thanks Alex - Original Message - From: "Mona Remlawi" <[EMAIL PROTECTED]> To: Sent: Monday, November 17, 2008 12:52 PM Subject: [Proto-Scripty] Re: Sending Json to the server > > ok what about this: > > var params =

[Proto-Scripty] Re: Sending Json to the server

2008-11-17 Thread Mona Remlawi
ok what about this: var params = {}; $$('.formJson').each(function(e) { params[$(e).dbCol] = $(e).value; } cheers -- mona [EMAIL PROTECTED] On Mon, Nov 17, 2008 at 1:43 PM, Alex Mcauley <[EMAIL PROTECTED]> wrote: > > cant use it as it needs to be custom as stipulated ... i need to get certai

[Proto-Scripty] Re: Sending Json to the server

2008-11-17 Thread Alex Mcauley
cant use it as it needs to be custom as stipulated ... i need to get certain fields from the input elements .. merge() seems to want to do it but is not working as expected Thanks Alex - Original Message - From: "Mona Remlawi" <[EMAIL PROTECTED]> To: Sent: Monday, November 17, 2008 1

[Proto-Scripty] Re: Sending Json to the server

2008-11-17 Thread Mona Remlawi
hmm just out of the top of my head here, did you try using $H(form.serialiaze()) ? cheers -- mona [EMAIL PROTECTED] On Mon, Nov 17, 2008 at 1:13 PM, Alex Mcauley <[EMAIL PROTECTED]> wrote: > > basically i think i need a push method to push values into a json object > > then i can try to decode

[Proto-Scripty] Re: Sending Json to the server

2008-11-17 Thread Alex Mcauley
basically i think i need a push method to push values into a json object then i can try to decode it on the server!! - Original Message - From: "Jeztah" <[EMAIL PROTECTED]> To: "Prototype & script.aculo.us" Sent: Monday, November 17, 2008 11:51 AM Subject: [Proto-Scripty] Sending Json

[Proto-Scripty] Re: new AjaxRequest.....

2008-11-17 Thread Alex Mcauley
you can assign the request to a variable myRequest = new Ajax.Request(.. - Original Message - From: "Manish" <[EMAIL PROTECTED]> To: "Prototype & script.aculo.us" Sent: Monday, November 17, 2008 9:09 AM Subject: [Proto-Scripty] new AjaxRequest. > > Whenever we do new AjaxReq

[Proto-Scripty] Sending Json to the server

2008-11-17 Thread Jeztah
Morning Guys ... I am having a real headache trying to send json data to the server and have php decode it so i can do something with the data .. . Basically what i am trying to do is... I have a form and i would like to send data to the server in Json form (key/value pairs) so i can go over it

[Proto-Scripty] new AjaxRequest.....

2008-11-17 Thread Manish
Whenever we do new AjaxRequest a new activeX object is created and sent to the url. Suppose you click multiple times, multiple request objects are sent to the url. If 5 requests sent 5 responses come back. My data on the page refreshes 5 times. Is there a way so that if I send multiple requests th

[Proto-Scripty] Re: Popup window

2008-11-17 Thread Mona Remlawi
take a look at [http://prototype-window.xilinus.com/] prototype based window class that does confirm windows and others. .. On Mon, Nov 17, 2008 at 11:48 AM, Cristisor <[EMAIL PROTECTED]> wrote: > > Hi! I'm trying to build a popup window, something like the "confirm" > box, but with more than O

[Proto-Scripty] Popup window

2008-11-17 Thread Cristisor
Hi! I'm trying to build a popup window, something like the "confirm" box, but with more than Ok and Cancel. Can someone give me a start, I don't know how to make everything behind it read only so that the user can't click another link before he confirms his option? Thank you! --~--~-~--~--

[Proto-Scripty] private methods/variables declaration

2008-11-17 Thread Mona Remlawi
Dear Prototypers, I've been using the following technique for separating private and public methods/variables in a class declaration. --- Object.extend(myclass.prototype, function() { //private variables var attr1; var attr2; ... //private methods f

[Proto-Scripty] Re: Ajax.Responders

2008-11-17 Thread bluezehn
Incidentally, I believe there is a similar bug if you use the onSuccess/onFailure callbacks - if you do, then the Ajax.Responder's onSuccess/onFailure's don't fire On Nov 15, 9:40 am, "T.J. Crowder" <[EMAIL PROTECTED]> wrote: > Alex, > > You're incrementing and decrementing Ajax.activeRequestCoun

[Proto-Scripty] Re: Ajax not working with IE

2008-11-17 Thread Mona Remlawi
tested your page and it works on my IE6! -- mona [EMAIL PROTECTED] On Mon, Nov 17, 2008 at 9:23 AM, T.J. Crowder <[EMAIL PROTECTED]> wrote: > > Fails how? Nothing happens? An error message? > -- > T.J. Crowder > tj / crowder software / com > > On Nov 17, 1:27 am, bejitto101 <[EMAIL PROTECTED]>

[Proto-Scripty] Re: Ajax not working with IE

2008-11-17 Thread T.J. Crowder
Fails how? Nothing happens? An error message? -- T.J. Crowder tj / crowder software / com On Nov 17, 1:27 am, bejitto101 <[EMAIL PROTECTED]> wrote: > My ajax works with FF but fails with IE. The code is quite simple: > > Code: > > document.observe("dom:loaded", load); > > function load() { >  

[Proto-Scripty] Ajax not working with IE

2008-11-17 Thread bejitto101
My ajax works with FF but fails with IE. The code is quite simple: Code: document.observe("dom:loaded", load); function load() { //$$(".tab-controls").invoke('observe', 'click', showControls) $("venue-search").observe('keyup', venue_search); } function venue_search() {

[Proto-Scripty] Re: Vertical Effect.Shake?

2008-11-17 Thread [EMAIL PROTECTED]
Hector Virgen wrote: > Is there a vertical equivalent to Effect.Shake, or a way to make it shake > vertically instead of horizontally? > -Hector Demo http://scriptaculous.jakewendt.com/effects.html Code http://scriptaculous.jakewendt.com/scriptaculous_files/tc_effects.js I found this tonight.