[Proto-Scripty] Re: Mouse coods

2009-05-18 Thread jk
That code is nothing short of perfect. Thanks for the pointer. I learned a lot reading it. --jk On May 18, 6:57 pm, david wrote: > Hi jk, > > the mouse position could be retrieve from the event object with > Event.pointerX and Event.pointerY. > so you first need to observe the mousedown event,

[Proto-Scripty] Re: Mouse coods

2009-05-18 Thread david
Hi jk, the mouse position could be retrieve from the event object with Event.pointerX and Event.pointerY. so you first need to observe the mousedown event, and observe the mousemove event. you could get from this event the the mouse position. Don't forget when the mousedown happend to observe the

[Proto-Scripty] Mouse coods

2009-05-18 Thread jk
How do you detect a drag coord (mousedown + move). I don't see documentation on the site. Thanks. --JK --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send

[Proto-Scripty] Re: Adding properties to native objects

2009-05-18 Thread T.J. Crowder
Hi, Expanding on Gabriel's answer, mostly if you just fix your Object.extend calls to point to the prototype rather than the constructor, you should be fine. E.g.: Object.extend(Date.prototype, { ... }); Look at the Prototype source and how it extends String, for instance, for examples. HTH,

[Proto-Scripty] Re: Form.Serialize issue in Firefox 3.5

2009-05-18 Thread T.J. Crowder
Hi, The bug (well, *a* bug) is in your form markup: You're using $('contact_form') ...to reference the form. Referring to the $() docs[1]: "If provided with a string, returns the element in the document with matching ID". That's the (or at least *a*) problem, your form has a name,

[Proto-Scripty] prototype 1.6.1_rc2 causes nonsecure page warning message on SSL in IE 6

2009-05-18 Thread Rubens
prototype.js (version 1.6.1_rc2) causes SSL nonsecure warning dialog to popup on Internet Explorer 6. This problem has been verified using fidler on IE 6 running on Windows XP. And it occurs as soon as IE 6 loads the prototype.js file. I have added the following line around line 2098, and the p

[Proto-Scripty] Form.Serialize issue in Firefox 3.5

2009-05-18 Thread luellaj99
I am experiencing a problem with the Form.Serialize in Firefox 3.5. (I upgraded from Vers 2, because it wasn't working either!) It's working fine in Internet Explorer 7, but in Firefox it just hangs. I've tried this with prototype version 1.6.0.2 and 1.6.0.3. Same results. function queryRecord(

[Proto-Scripty] Auto Submit on AutoComplete Selection Help

2009-05-18 Thread Scott Z
Can anyone point me in the right direction to making my form submit when a selection is made from the autocomplete suggestions? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" gr

[Proto-Scripty] Re: toColorPart

2009-05-18 Thread Gabriel Gilini
On Mon, May 18, 2009 at 12:35 PM, Alaa wrote: > > look, it is like: > > Var s= 10; > alert(s.toColorPart()); // it works and prints 0a > > var a = $('valuesList').value; > alert (a); // prints 10 as in the textbox > > alert(a.toColorPart()); // does not work Try `window.alert(typeof a)' -, I b

[Proto-Scripty] Re: Adding properties to native objects

2009-05-18 Thread Gabriel Gilini
You don't have to chance its constructor, and anyway you can't. Just assign the functions to its prototype. >>> Date.prototype.isEaster = function isEaster(){ return true; } isEaster() >>> (new Date).isEaster() true Gabriel Gilini www.usosim.com.br gabr...@usosim.com.br On Mon, May 18, 2009 at

[Proto-Scripty] Adding properties to native objects

2009-05-18 Thread joe t.
i haven't had much luck finding what i'm looking for, so maybe i'm not looking for it correctly. i want to add several properties (booleans indicating special dates) to the native Date object that are assigned when the date is instantiated. However, i'm not sure how i can do that. i know i can e

[Proto-Scripty] Re: toColorPart

2009-05-18 Thread T.J. Crowder
Hi, Reiterating Colin's point, "does not work" is not useful. HOW does it not work? Do you get an error? Do you get the wrong result? Help people to help you. In this case I'm guessing it doesn't work because s is a String, not a Number. But it's a guess. -- T.J. Crowder tj / crowder softwa

[Proto-Scripty] Re: How to start with one input field and the add more as required?

2009-05-18 Thread T.J. Crowder
Hi, Input fields are DOM elements, so you can insert them with Element#insert[1]. [1] http://prototypejs.org/api/element/insert HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On May 18, 1:44 pm, expat101 wrote: > How can i presen

[Proto-Scripty] Re: toColorPart

2009-05-18 Thread Alaa
look, it is like: Var s= 10; alert(s.toColorPart()); // it works and prints 0a var a = $('valuesList').value; alert (a); // prints 10 as in the textbox alert(a.toColorPart()); // does not work --~--~-~--~~~---~--~~ You received this message because you are sub

[Proto-Scripty] Re: toColorPart

2009-05-18 Thread Walter Lee Davis
Did you try alert ( s.toColorPart() ); Not sure, but I think you needed the parentheses around the number 10 to disambiguate how you wanted to treat it (as an object of the class Number). Walter On May 18, 2009, at 10:36 AM, Alaa wrote: > > it works means > alert ((10).toColorPart() );// g

[Proto-Scripty] Re: toColorPart

2009-05-18 Thread Alaa
it works means alert ((10).toColorPart() );// gives a message with text "0a" but var s=10; alert ((s).toColorPart() );// gives even no message, because it is wrong > What do you mean by 'works' and 'doesn't work'? What result are you > getting? > > Colin --~--~-~--~~~---

[Proto-Scripty] How to start with one input field and the add more as required?

2009-05-18 Thread expat101
How can i present an input formfield and then have function to add new fields in order to add data to mysql? please provide and example cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.acul

[Proto-Scripty] Re: clonePosition

2009-05-18 Thread T.J. Crowder
@OP: I don't think clonePosition works on inline-positioned elements, I think they have to have the style "position: absolute". You may be able to use Element#absolutize[1] to make them absolutely positioned, but that will take them out of the flow (and so other things may move). Separately, ca

[Proto-Scripty] Re: onExeption event only. Where's the problem?

2009-05-18 Thread T.J. Crowder
Hi, At a glance, I see three problems: 1. There's no opening quote on the URL. 2. You've misspelled onException. 3. You're calling the alert method immediately (when you create the request) and saving its return value as the value for the onExeption (sic) parameter. You want to define, not ca

[Proto-Scripty] onExeption event only. Where's the problem?

2009-05-18 Thread Labs
Hi, I can't find the probles with code to save html table data. Can anybody help? I get onExeption event only. The code is below default.asp (Path www.comp.com/defailt.asp): == params='email=t...@comp.com&User=UserName' new Ajax.Request (Scripts/ajaxSaveBala

[Proto-Scripty] Re: toColorPart

2009-05-18 Thread ColinFine
On May 15, 12:39 pm, Alaa wrote: > Hi, > > I am trying to use toColorPart function, but > > (10).toColorPart()   it works > s=10; > (s).toColorPart()//  Doesnot work !!! > > Help please What do you mean by 'works' and 'doesn't work'? What result are you getting? Colin --~--~-~--

[Proto-Scripty] Re: clonePosition

2009-05-18 Thread Marslander
No, you did. == this.function(). On May 15, 3:34 pm, Alaa wrote: > Thank u for reply, But I did not use "this" word in my code!!! > > On May 14, 3:13 pm, Marslander wrote: > > > > > That is because you call Prototype method 'this.clonePosition' by > > clicking your button. In this case 'this'

[Proto-Scripty] Re: toColorPart

2009-05-18 Thread Alaa
Thanks for reply, But I also tried it and it is also not working On May 15, 6:02 pm, Tobie Langel wrote: > try: > var s = 10; > s.toColorPart(); > > On May 15, 1:39 pm, Alaa wrote: > > > Hi, > > > I am trying to use toColorPart function, but > > > (10).toColorPart()   it works > > s=10; >

[Proto-Scripty] Re: How make what a invalid dom tree look correct?

2009-05-18 Thread ColinFine
On May 16, 1:25 am, "Miguel Beltran R." wrote: > Hi list > > Using Ajax.Updater to a retrive the follow > > (Using firebug) >     >       >           >           2 >           >               >           >         >       >     > > > but no show nothing on screen , because is inside >

[Proto-Scripty] Re: Custom JS breaking in IE6,7 - Tips on debugging?

2009-05-18 Thread ColinFine
Crockford's book (referenced in a previous reply) is only 150 pages long including the appendices, so it is really not a big read. Colin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us"

[Proto-Scripty] Re: Help

2009-05-18 Thread T.J. Crowder
Hi, > ...I'm looking PHP as the tool to go ahead. I would > appreciate if anyone tells me how to start PHP. This group is for discussing Prototype[1], not PHP. For help with PHP, you probably want the comp.lang.php newgroup[2]. [1] http://prototypejs.org [2] http://groups.google.com/group/com

[Proto-Scripty] Help

2009-05-18 Thread MadhuTVPM
Hi Everybody, I'm from India and new to this group. I happen to see this group while search for drag drop in google. I have around 10+ years of experience in microsoft technologies, especially windows application. The reason for joining this group is I have a great Idea of an Enterprise applica

[Proto-Scripty] Droppable double click and onUpdate problem in firefox and ie

2009-05-18 Thread terry-5-
Hi, I hope someone here can point me into the right direction. I worked on this for weeks and can't find a solution. I created span boxes which can be filled by dropping words on them. However two things are very bothersome for the user, first the words are following the mouse in Firefox (works f