[Proto-Scripty] Re: Need help for performantly creating tooltips

2009-07-21 Thread Richard Quadling
2009/7/21 Alex McAuley : > > Good thing he said "performant" then init !! :P > > And even then it is a neologism and proscribed [1]. [1] http://en.wiktionary.org/wiki/performant -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&am

[Proto-Scripty] Re: Masked Input in Prototype

2009-07-24 Thread Richard Quadling
the spacing would be automatic. BO 52 91 91 V for example OR Are you talking about hiding the input? Like ? Regards, Richard. [1] http://www.google.co.uk/search?q=define:+input+mask -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474

[Proto-Scripty] Re: compatibility prototype_scriptaculos et mootools

2009-07-24 Thread Richard Quadling
).functionDoSomething(); >> >> > }); >> >> > // >> >> > I would like only use sound.js of prototype. [ Not another library >> > propose this fonctionality(?)] >> >> > How can i do to resolve the $ conflict ? >> >> &g

[Proto-Scripty] Re: what causes this? prototype/javascript/php ?!

2009-07-27 Thread Richard Quadling
artValue; >> > params["lastnum"] = endValue; >> > params["groupname"] = group; >> > params["usercode"] = code_given; >> >> > p1[1] = 10; >> > p1[2] = 20; >> > p1[3] = 30; >&g

[Proto-Scripty] Re: Firefox v3.5

2009-08-04 Thread Richard Quadling
on) in your ids. >> > > > This has been fixed, but not yet released. You can manually change in >> > > > prototype.js line:3338 to match >> > > > id = id.replace(/([\.:])/g, "\\$1"); // NOTE the $1 instead of $0 >> >> > > > Th

[Proto-Scripty] Re: Responders

2009-08-13 Thread Richard Quadling
> > My solution was to use responders. As part of the response object, I add a spinner property and a form property. In the responder, if these were present, then I processed them accordingly (onCreate : spinner on , form elements disabled and onComplete/onException/onError the setting

[Proto-Scripty] Re: Automatically Converting HTML to DOM (e.g. new Element ...)

2009-08-18 Thread Richard Quadling
also). > > Thanks! > > > > Once you've converted it to JS, what do you intend to do with it? If you are going to re-use it (say with different content), then maybe the Template mechanism within Prototype [1] would be what you are looking for. Richard. [1] http://prot

[Proto-Scripty] Re: How do I use AjaxRequest to POST checkboxes which is an array, not a variable?

2009-08-24 Thread Richard Quadling
uot;involved=whatever". > > PHP has a nifty wrinkle whereby if a control in your page has a name > ending in '[]' then it will give you back an array. > > BUT, where checkboxes are involved, I don't think an array is usefu

[Proto-Scripty] Re: Strict mode?

2009-08-27 Thread Richard Quadling
this.context.moveTo(xPos, yPos); Adding a debug at this line, both xPos and yPos are undefined. This is caused by the use for for(in). Use ... for (i = 0 ; i < lineCoords.length ; ++i) { instead. http://prototypejs.org/api/array covers this issue. -- - Richard Qu

[Proto-Scripty] Re: Prototype 1.6.1 Released!

2009-09-03 Thread Richard Quadling
the team! >> >> And separate kudos to Tobie & Andrew, who now officially take up the >> reins: >> http://prototypejs.org/2009/9/1/core-team-update-andrew-and-tobie-take-the-reins >> >> Congrats! >> -- >> T.J. Crowder >> tj / crowder software / com >>

[Proto-Scripty] Re: checkboxes

2009-09-14 Thread Richard Quadling
nside the div holding the checkboxes. If this number is equal to or greater than 4, then don't bubble the event / ignore the event. If it is less than 4, then do nothing as the event will bubble and the checkbox will get its click. -- - Richard Quadling "Standing on the shoulders of s

[Proto-Scripty] Re: YSlow's rule "JavaScript at the bottom" w/Prototype

2009-09-16 Thread Richard Quadling
>>>> Now, I want to adhere to this rule as well as eliminate "onevent" >>>> attributes on HTML tags on a given product. >>>> >>>> My colleague thinks this is going to result in "bugs" when perplexed >>>> users are c

[Proto-Scripty] Re: YSlow's rule "JavaScript at the bottom" w/Prototype

2009-09-16 Thread Richard Quadling
erivative of http://rakaz.nl/2006/12/make-your-pages-load-faster-by-combining-and-compressing-javascript-and-css-files.html -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html Zend Certified Engineer

[Proto-Scripty] Re: YSlow's rule "JavaScript at the bottom" w/Prototype

2009-09-17 Thread Richard Quadling
gt;> >http://odesign.fi > > > If I only need to download the entire set of JS once, then EVERY single page will benefit. No matter how much of the library I use. Even if I don't use any. But, assuming that I do have different sets (and with a large amount of redundancy), I would o

[Proto-Scripty] Re: "space dust" particles flying like fireflies?

2009-09-21 Thread Richard Quadling
ht or contact info. Nor does the js code on the demo page. A link on the tuts site has an alternative version [1]. Regards, Richard. [1] http://mattkirman.com/2009/05/20/jquery-plugin-rfsparks/ -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : h

[Proto-Scripty] Re: Unassociated page elements disappearing after inclusion of prototype 1.6.1 in Firefox 3.5.2

2009-09-22 Thread Richard Quadling
2009/9/22 rs21 : > > Figured it out. I had to go line-by-line through Prototype but there > was a function defined that used the same name as one of the functions > that already existed within the site. Updating the original function > to a new name resolved this bizzare behavior. > > On Sep 18, 2

[Proto-Scripty] Re: object.each problem

2009-10-02 Thread Richard Quadling
valuating the X-JSON response header, if any (can be null)." So, ... onSuccess : function(xhr, json) { // Use json. to access json's properties. } [1] http://api.prototypejs.org/ajax_section.html -- - Richard Quadling "Standing on the shoulders of some very clever gian

[Proto-Scripty] Re: object.each problem

2009-10-02 Thread Richard Quadling
P, I use Content-type: application/javascript For JSON, I use Content-type: X-JSON These work great for me. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html Zend Certified Engineer : http://zend.com/

[Proto-Scripty] Re: object.each problem

2009-10-02 Thread Richard Quadling
2009/10/2 Dave : > > On Oct 2, 10:46 am, Richard Quadling wrote: >> >> What headers are you supplying with the JSON'd data from the server? >> >> For JSONP, I use Content-type: application/javascript >> For JSON, I use Content-type: X-JSON >> >&

[Proto-Scripty] Re: prevent space bar jump on keypress observe

2009-10-02 Thread Richard Quadling
e bar >> > button that causing a jump scroll on the page. looks like this is a >> > browser function, is it possible to catch and prevent? would be >> > grateful for any tips on how to stop this. >> >> > maybe add the observe to "window" or "docu

[Proto-Scripty] Re: Forms

2009-10-29 Thread Richard Quadling
hod’ error.  I get the same error when I try to submit the > form with ‘document.createPDF.submit();’ is there something wrong with my > form? > > > > $F() returns the element. So, alert($F('A_ACCOIUNT').value); should be what you are looking for, -- - Richard Quadling

[Proto-Scripty] Re: Forms

2009-10-29 Thread Richard Quadling
2009/10/29 Richard Quadling : > 2009/10/29 Russell Keith : >> Ok, maybe I’m just being dense, but I am reading the API for forms and I am >> getting nothing from it. >> >> >> >> What is proper use of the $F utility and what can it do for me?  I have read &g

[Proto-Scripty] Re: Effect.Morph to enlarge images

2009-11-03 Thread Richard Quadling
t.Morph may > not be the most stable or correct ways of going about this. > > Can anyone point me in the right direction? > > Thanks, > Ryan > > > I think you have to know if you are scaling an image and if so, not perform any other scaling on that image. -- - Ric

[Proto-Scripty] Re: Prototype gadget for client side translation

2009-11-04 Thread Richard Quadling
gt; Cheers, >         Matt > > > That looks very impressive. How accurate are the translations though? Human translation still beats machine translation. But, even with that, a very nice example! -- - Richard Quadling "Standing on the shoulders of some very clever gia

Re: [Proto-Scripty] Assistance with clicks

2010-01-06 Thread Richard Quadling
prototypejs.org/dom/event.html#pointer-class_method, http://api.prototypejs.org/dom/event.html#pointerx-class_method and http://api.prototypejs.org/dom/event.html#pointery-class_method can come to your rescue. -- - Richard Quadling "Standing on the shoulders of some very clever giants!&quo

Re: [Proto-Scripty] how to check is the function = Prototype.emptyFunction ?

2010-02-01 Thread Richard Quadling
then don't assign the emptyFunction, leave it as null and then test if it is null. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engine

Re: [Proto-Scripty] Re: how to check is the function = Prototype.emptyFunction ?

2010-02-01 Thread Richard Quadling
>> >>> x + ""; >> "function () { }" >> >>> y + ""; >> >> "function () { alert("foo"); }" >> >> Best, >> Alex >> >> >> >> On Mon, Feb 1, 2010 at 10:29 AM, buda

[Proto-Scripty] $$() for a specific root.

2010-03-29 Thread Richard Quadling
on't know how to use $$ in this way. I think I need to use Selector, but I don't know the proper CSS rules in this instance. Regards, Richard. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html E

[Proto-Scripty] Firing a click event.

2010-04-08 Thread Richard Quadling
fy this? I initially thought that Element.fire() would help, but that is for custom events only. Essentially, whilst setting the click handler, I want to be able to call the handler also. Regards, Richard. -- - Richard Quadling "Standing on the shoulders of some very clever giants!&q

[Proto-Scripty] Re: Firing a click event.

2010-04-08 Thread Richard Quadling
On 8 April 2010 12:20, Richard Quadling wrote: > Hi. > > Brain has gone to sleep. > > I've got a form where I'd like to be able to allow some controls to be > disabled by a checkbox. > > Working code ... > > > function handleHideClick(e

[Proto-Scripty] Adding an effect to AJAX'd data.

2010-06-08 Thread Richard Quadling
either. What options do I have for this? Essentially, the data comes in via AJAX and I want it to appear one wheel at a time, with each wheel being slightly delayed so that they appear smoothly. Regards, Richard Quadling. -- - Richard Quadling "Standing on the shoulders of some very cle

[Proto-Scripty] Setting the focus on an input after an effect to show the input.

2010-06-10 Thread Richard Quadling
){el.focus();} myFocus.defer('requestVehicle'); But nope. What would be nice is if there was a way to chain the focus call to the end of the Effect.Parallel code. If Effect.Parallel fired an event when the job was finished (for example). Any ideas? -- - Richard Quadling &qu

[Proto-Scripty] Setting the focus on an input after an effect to show the input.

2010-06-10 Thread Richard Quadling
, $('requestVehicle').focus(); would do the trick, and if I type that into the console (chrome, firefox, IE -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchan

Re: [Proto-Scripty] Re: Setting the focus on an input after an effect to show the input.

2010-06-11 Thread Richard Quadling
to > prototype-scriptacul...@googlegroups.com. > To unsubscribe from this group, send email to > prototype-scriptaculous+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > > The afterFinish

Re: [Proto-Scripty] Re: Setting the focus on an input after an effect to show the input.

2010-06-15 Thread Richard Quadling
first one with that ID will gain focus. > > Walter > > It is a violation of the spec to have 2 elements with the same ID.  IDs are > supposed to be unique in a page. > > bill > > On Jun 11, 2010, at 4:57 PM, Richard Quadling wrote: > > The afterFinish is what I need

[Proto-Scripty] Need an enhanced type control.

2010-06-29 Thread Richard Quadling
s selected. A nice touch would be to have the collapsed element show ... "Item A, Item B, ..." sort of thing. Anyway, anyone know of such a beast before I spend any time on this? Regards, Richard. -- - Richard Quadling "Standing on the shoulders of some very clever giant

Re: [Proto-Scripty] Need an enhanced type control.

2010-06-29 Thread Richard Quadling
> > Alex Mcauley > http://www.thevacancymarket.com > - Original Message - From: "Richard Quadling" > To: > Sent: Tuesday, June 29, 2010 3:00 PM > Subject: [Proto-Scripty] Need an enhanced type control. > > >> Hi. >> >> I'm looking

Re: [Proto-Scripty] Need an enhanced type control.

2010-06-29 Thread Richard Quadling
> >>> I tackled a similar problem with checkboxes and a fixed height size div >>> containing them... >>> >>> My list is 200+ checkboxes with labels and only 5 or so are displayed >>> until >>> you scroll >>> >>> perhaps somehting

Re: [Proto-Scripty] morph effects on menu roll-over.. better way?

2010-07-01 Thread Richard Quadling
On 1 July 2010 03:53, Matt wrote: > Hey, i am pretty new to prototype and script.aculo.us and have decided > to develop a menu that utilizes the morph feature. It works in this > manner; when a menu item is mouseover it causes 2 morphs to occur, and > reverses the morph when the menu item is mouse

[Proto-Scripty] Sorting some spans.

2010-07-01 Thread Richard Quadling
Hi. I've got a containing a set of sort of thing. Using some CSS and JS I've got all the checkboxes to line up in a grid and it all looks very nice. The labels are from a DB and are ordered alphabetically. But when rendered, the list reads across and then down, rather than down and then acros

Re: [Proto-Scripty] Sorting some spans.

2010-07-01 Thread Richard Quadling
On 1 July 2010 21:28, Alex McAuley wrote: > If I was tackling this I would attach a class and id to the spans and select > them all then find out all of the widths of each span as a number then sort > them into high to low / low to high then redraw them all .. Prolly not the > most efficient but i

Re: [Proto-Scripty] Sorting some spans.

2010-07-02 Thread Richard Quadling
.thevacancymarket.com > - Original Message - From: "Richard Quadling" > To: > Sent: Thursday, July 01, 2010 11:57 PM > Subject: Re: [Proto-Scripty] Sorting some spans. > > >> On 1 July 2010 21:28, Alex McAuley >> wrote: >>> >>> I

Re: [Proto-Scripty] Re: Sorting some spans.

2010-07-02 Thread Richard Quadling
On 2 July 2010 09:34, T.J. Crowder wrote: > Hi Richard, > >> I've got a containing a set of >> sort of thing. > > OT, and not to throw a spanner in, but I assume if you're doing that, > you have an ID on every checkbox and a `for` on every label (so the > labels know what checkbox they relate to

Re: [Proto-Scripty] Sorting some spans.

2010-07-02 Thread Richard Quadling
On 2 July 2010 22:37, Richard Quadling wrote: > On 2 July 2010 11:22, Alex McAuley wrote: >> But richard... Font sizes and styles aside... the span with the largest >> amount of text will still be the widest and vice versa!!... >> >> ABCDEFG is still wider than AB

Re: [Proto-Scripty] .innerHTML Undefined form name error

2010-07-13 Thread Richard Quadling
On 12 July 2010 18:02, Hariz Soleminio wrote: > Hi, > > I would like to ask about using innerHTML in forms. > I use it to change form every time the user change the form by select box. > > When I post it in other page using Firefox i keep having error : > Notice: Undefined index: nameofform in C:\

Re: [Proto-Scripty] Re: .innerHTML Undefined form name error

2010-07-13 Thread Richard Quadling
On 13 July 2010 10:10, ColinFine wrote: > Please DO NOT change the name of an existing discussion. If you have a > new topic, start a new discussion. > ? > > On Jul 12, 6:02 pm, Hariz Soleminio > wrote: >> Hi, >> >> I would like to ask about using innerHTML in forms. >> I use it to change form

Re: [Proto-Scripty] Re: .innerHTML Undefined form name error

2010-07-13 Thread Richard Quadling
On 13 July 2010 10:59, Lemmi wrote: > On Jul 13, 11:28 am, Richard Quadling wrote: >> ? > > http://groups.google.com/group/prototype-scriptaculous/post I meant what had been hijacked? What subject had been changed? I wonder if someone got mixed up between Hariz's and Ha

Re: [Proto-Scripty] Re: .innerHTML Undefined form name error

2010-07-14 Thread Richard Quadling
On 14 July 2010 13:46, ColinFine wrote: > > > On Jul 13, 11:44 am, Richard Quadling wrote: >> On 13 July 2010 10:59, Lemmi wrote: >> >> > On Jul 13, 11:28 am, Richard Quadling wrote: >> >> ? >> >> >http://groups.google.com/group/prototyp

Re: [Proto-Scripty] Issue after hiding divs on load

2010-07-15 Thread Richard Quadling
On 11 July 2010 05:01, Acryte wrote: > Hi, I'm working on a site where I have it load the page, and then I > have a content box containing a textfield and customized scrollbar > (custom images,width, etc) for the field. I have multiple content > boxes and I used script.aculo.us to basically make t

Re: [Proto-Scripty] Element.select works wrong when select tag a

2010-07-16 Thread Richard Quadling
On 16 July 2010 07:37, Quyết Tiến wrote: > rel="dhtmlwindow">content Is that a typo? content -- 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 uns

Re: [Proto-Scripty] Re: Element.select works wrong when select tag a

2010-07-17 Thread Richard Quadling
On 16 July 2010 15:42, Quyết Tiến wrote: > yes > > On Jul 16, 8:42 pm, Richard Quadling wrote: >> On 16 July 2010 07:37, Quyết Tiến wrote: >> >> > rel="dhtmlwindow">content >> >> Is that a typo? >> >> content > > -- &g

Re: [Proto-Scripty] not send data in URL?

2010-07-20 Thread Richard Quadling
On 20 July 2010 06:24, geoffcox wrote: > Hello > > I have this php code > > for ($count=0;$count echo " target='content'>BTEC First - Unit " . $units[$count] . "\n"; > } > > which sends the data to file index.php as part of the URL. > > Is it possible to use POST instead so that the path info is n

Re: [Proto-Scripty] Effect.multiple and toggle

2010-07-20 Thread Richard Quadling
On 20 July 2010 15:55, Febo wrote: > Hello, > I'd like to use the toggle effect on multiple object at the same time > I tried with > > Effect.multiple(['id_1','id_2','id_n'], Effect.toggle) > > but it doesn't work, also I don't know where/how to pass the 'appear' > parameter > > I'm used to call t

Re: [Proto-Scripty] Effect.multiple and toggle

2010-07-20 Thread Richard Quadling
each item and all effects... On each > > Sent from my iPhone > > On Jul 20, 2010, at 9:08 AM, Richard Quadling wrote: > >> On 20 July 2010 15:55, Febo wrote: >>> Hello, >>> I'd like to use the toggle effect on multiple object at the same time >

Re: [Proto-Scripty] Re: not send data in URL?

2010-07-20 Thread Richard Quadling
On 20 July 2010 20:58, geoffcox wrote: > >> You could have to create a form with am for each >> unit and folder and a bit of JS to turn an into a form submitter - >> or just use a button. >> >> If you want to use ajax, then the same mechanism - create the form, >> but use an ajax submitter to pr

Re: [Proto-Scripty] Re: Effect.multiple and toggle

2010-07-21 Thread Richard Quadling
so good in JS > so I didn't catch the concept of curry. > If you have a better solution, let me know. > > The problem with the class solution is that I have a table and I want > to hide some rows of this table, I set the class of each row to odd/ > even for zebra colouring.

Re: [Proto-Scripty] Re: Effect.multiple and toggle

2010-07-21 Thread Richard Quadling
On 21 July 2010 13:10, Richard Quadling wrote: > On 20 July 2010 23:37, Febo wrote: >> Thanks Richard and Ralph, >> >> I'm studing the code but my feeling is that Effect.toggle can't handle >> the Object which is always passed by Effect.multiple as l

[Proto-Scripty] Touch screen / mouse gesturing.

2010-07-29 Thread Richard Quadling
difference in the vertical movement, do nothing extra. Assuming something like the above is right, how does highlight/cut/paste mechanism work? For this app, the content is pretty generic and no real need for cut and paste. Any ideas/suggestions/etc. would be gratefully received. Regards, Richar

Re: [Proto-Scripty] $$()

2010-07-30 Thread Richard Quadling
On 30 July 2010 10:51, Yozefff wrote: > Question .. > > Let's say I have 100 input fields, type = text. I want to put a onblur > on all of them and pointing to the same function. > > So I've used > > $$("input") and invoke a blur. > > This works .. but my question is .. will this generate 100 even

Re: [Proto-Scripty] Form.serialize and unchecked checkboxes

2010-08-01 Thread Richard Quadling
On 30 July 2010 18:56, strimp099 wrote: > Greetings all: > > When sending form variables as a hash using Form.serialize(true), the > value attribute of unchecked checkboxes is sent to the POST page. This > of course is contrary to how HTML treats checkbox form variables. > > for example, I have th

Re: [Proto-Scripty] Re: Touch screen / mouse gesturing.

2010-08-05 Thread Richard Quadling
On 4 August 2010 18:08, Eric wrote: > I would be surprised that any company owning a fleet of vehicles > nowadays would not having already sticked on them some barcode ID for > maintainability purpose. You _would_ be surprised then ... But, an excellent idea. Thanks. -- You received this messa

Re: [Proto-Scripty] Re: $$()

2010-08-05 Thread Richard Quadling
On 4 August 2010 18:20, Eric wrote: > > On Jul 30, 1:26 pm, Richard Quadling wrote: >> $('form_id').observe('blur', function(ev) { >>  var el = ev.findElement('input[type=text]'); >>  if (el) { >>   // el is the element that trigger

[Proto-Scripty] 4 different browsers - 4 different responses

2010-08-13 Thread Richard Quadling
(and it seems IE is the only one obeying it this time around!). So. How do I do this? The real url is supplied at runtime via an AJAX request. I can assign it to whatever is needed. I could just style the as a button ... is that possible? Any suggestions? Regards, Richard Quadling. -- You

Re: [Proto-Scripty] Re: 4 different browsers - 4 different responses

2010-08-16 Thread Richard Quadling
hese (in that order of preference). But it seems I was testing the wrong code. Doh! -- Richard Quadling. -- 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...@

[OT] Use the list properly. Please [WAS] Re: [Proto-Scripty] Re: 4 different browsers - 4 different responses

2010-08-17 Thread Richard Quadling
se accept my apologies. As my school reports always said ... "Could try harder.". Richard. -- Richard Quadling. -- 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

[Proto-Scripty] Appending a template evaluation to an HTML element.

2010-08-17 Thread Richard Quadling
template is a element with all the 's needed. var tmpl_NewUser = new Template('Select contracts'); I'm thinking no. Regards, Richard. -- Richard Quadling. -- You received this message because you are subscribed to the Google Groups "Prototype & script.

Re: [Proto-Scripty] Appending a template evaluation to an HTML element.

2010-08-17 Thread Richard Quadling
On 17 August 2010 12:01, Phil Petree wrote: > That's in the expando example that comes with prototype.js 1.6x > > On Tue, Aug 17, 2010 at 6:35 AM, Richard Quadling > wrote: >> >> Hi. >> >> I've implemented a simple "add new user" button to

Re: [Proto-Scripty] Appending a template evaluation to an HTML element.

2010-08-17 Thread Richard Quadling
t', parameters: > $('myform').serialize() } ); > } > > > > ======= > Serverside PHP save as add.php: > > Post Result: > > === > On Tue, Aug 17, 2010 at 7:30

Re: [Proto-Scripty] scriptaculous causes body background to fail on safari and chrome

2010-08-17 Thread Richard Quadling
> > Hello > > Oh strange. I've just loaded Safari V5.01 (7533.17.8) and got the same issue. White hello in a black banner. White remainder of page. Right click and choose inspect, background is now all black as expected. Works fine in Chrome V6.0.472.36 beta, IE 8 and FireFox

Re: [Proto-Scripty] scriptaculous causes body background to fail on safari and chrome

2010-08-17 Thread Richard Quadling
On 17 August 2010 16:29, Richard Quadling wrote: > On 17 August 2010 16:13, Guillaume Lepicard > wrote: >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> >> http://www.w3.org/1999/xhtml";> >> >> BG fail >&g

Re: [Proto-Scripty] Re: Appending a template evaluation to an HTML element.

2010-08-17 Thread Richard Quadling
e.org/521342 > > HTH, > -- > T.J. Crowder > Independent Software Consultant > tj / crowder software / com > www.crowdersoftware.com > > On Aug 17, 2:09 pm, Phil Petree wrote: >> I would think that Creating elements is less limiting...  but I have no id

[Proto-Scripty] Dragging 's around the display.

2010-08-19 Thread Richard Quadling
mousedown x/y 3 - on mouse up ... nothing Seems simple enough. What have I missed? -- Richard Quadling. -- 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

[Proto-Scripty] Re: Dragging 's around the display.

2010-08-19 Thread Richard Quadling
On 19 August 2010 12:33, Richard Quadling wrote: > Hi. > > Is there a simple way to drag a div around the screen and simply > dropping it where it stands. > > Top of my head ... > > 1 - on mouse down record ev.pointer() and ev.findElement('#draggable'). > 2 -

[Proto-Scripty] Would like to convert my little checkbox grid into a component of some sort.

2010-08-20 Thread Richard Quadling
r have I just re-invented the wheel? Regards, Richard Quadling. -- Richard Quadling. -- 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. T

Re: [Proto-Scripty] Javascript + regex

2010-08-24 Thread Richard Quadling
and line breaks) «\s» Or match regular expression number 2 below (the entire group fails if this one fails to match) «/» Match the character “/” literally «/» Created with RegexBuddy -- Richard Quadling. -- You received this message because you are subscribed to t

Re: [Proto-Scripty] Javascript + regex

2010-08-24 Thread Richard Quadling
, send email to > prototype-scriptaculous+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > > http://pastebin.com/0E5MDkk2 is the same, but hopefully a little easier to read. -- Richard Quadlin

Re: [Proto-Scripty] Javascript + regex

2010-08-24 Thread Richard Quadling
On 24 August 2010 16:23, Richard Quadling wrote: > On 22 August 2010 14:52, johnwerry wrote: >> Trying to get the following gsub call working to replace text of url >> with link of the url.  I know I have to add slashes, but I am >> apparently missing some, somewhere as I ca

[Proto-Scripty] Re: Parameters whose intent is to identify elements.

2010-08-27 Thread Richard Quadling
On 27 August 2010 12:23, Richard Quadling wrote: > Hi. > > What is the best way to handle an option that could be ... > > 1 - An elements ID : 'id' > 2 - An extended element : $('id') > 3 - A CSS rule : 'div#locked' > 4 - An array for a CSS

[Proto-Scripty] Parameters whose intent is to identify elements.

2010-08-27 Thread Richard Quadling
teract with. Essentially, I want to be able to call invoke... this.options.before.invoke(); this.options.after.invoke(...); sort of thing. -- Richard Quadling. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this grou

[Proto-Scripty] Delaying the execution of an AJAX Request.

2010-08-31 Thread Richard Quadling
n the wrong track entirely! Any ideas/suggestions/examples/etc. Regards, Richard Quadling. -- 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...@googlegroup

Re: [Proto-Scripty] Delaying the execution of an AJAX Request.

2010-08-31 Thread Richard Quadling
t; That was pretty much it. I couldn't find a way to put the Ajax.Request "on hold" as such. Seems obvious now. Just build/run the request when needed. Thanks. Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- You received this me

Re: [Proto-Scripty] Object extend magic

2010-08-31 Thread Richard Quadling
.extend. Taking the code inside out ... document.createElement(name || "div") // Create an element based of the type defined by the value of name or a div, if no name is supplied. Object.extend(..., options || {}) // Extend the object created about with the name/value pairs in options

Re: [Proto-Scripty] Re: Object extend magic

2010-09-01 Thread Richard Quadling
that options is null? > > Karl.. > > > On Aug 31, 10:19 am, Richard Quadling wrote: >> On 31 August 2010 17:49, kstubs wrote: >> >> >> >> >> >> > Hello, >> > Full credit to: Matthew Foster for the code below.  I'd like an

Re: [Proto-Scripty] Re: Object extend magic

2010-09-01 Thread Richard Quadling
for your answer on this!  Question regarding this: >> >> > Object.extend(..., options || {}) // Extend the object created about >> >> Is it necessary to || {} (empty object) so as to not break the >> Object.extend in the event that options is null? >> >> K

[Proto-Scripty] Is there a way to determine if a parameter to a function is a Template?

2010-09-01 Thread Richard Quadling
Hi. I can't find a way to determine the type of object being supplied to a function. I can check if it is a string ... if (Object.isString(param)) { var tmpl = new Template(param); } else if (Object.type(param) = 'Template') { var tmpl = param; } sort of thing. -- Richard Q

Re: [Proto-Scripty] Re: Object extend magic

2010-09-02 Thread Richard Quadling
All good points Rob! -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- 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 protot

Re: [Proto-Scripty] Is there a way to determine if a parameter to a function is a Template?

2010-09-05 Thread Richard Quadling
n Wed, Sep 1, 2010 at 5:20 PM, Richard Quadling > wrote: >> >> Hi. >> >> I can't find a way to determine the type of object being supplied to a >> function. >> >> I can check if it is a string ... >> >> if (Object.isString(param)) { >&g

Re: [Proto-Scripty] Re: Is there a way to determine if a parameter to a function is a Template?

2010-09-06 Thread Richard Quadling
Thank you TJ. Another 'starred' email from you. Thanks. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To

[Proto-Scripty] Just before I go home ...

2010-09-06 Thread Richard Quadling
lement[y]; container.childElement[y] = holdingElement; sort of thing. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" grou

[Proto-Scripty] Re: Just before I go home ...

2010-09-06 Thread Richard Quadling
On 6 September 2010 17:25, Richard Quadling wrote: > Hi. > > I'm about to go home and have a question for tomorrow's work. > > 1 - Take a container. > > 2 - Use AJAX to add a bunch of labels/checkboxes. The labels are > supplied alphabetically sorted. > >

[Proto-Scripty] Keeping a draggable item within the viewport.

2010-09-07 Thread Richard Quadling
gards, Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- 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...@googlegr

[Proto-Scripty] Difference between $(el).writeAttribute('checked', true) and $(el).checked = true

2010-09-09 Thread Richard Quadling
removeClassName', 'cbGridChecked'); $$(this.cssRuleName + ' input[type=checkbox]') .each( function(el_Checkbox){ el_Checkbox.checked = (-1 != this.IDs.indexOf(parseInt(el_Checkbox.value, 10))); },

Re: [Proto-Scripty] Chrome 5 refused to get unsafe header xjson

2010-09-15 Thread Richard Quadling
unsubscribe from this group, send email to > prototype-scriptaculous+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > > What type is the response for http://x.x.x.x:3000/posts.js -- Rich

Re: [Proto-Scripty] Re: Chrome 5 refused to get unsafe header xjson

2010-09-15 Thread Richard Quadling
a Rails server. Webrick outputs the following when I use > the code from my first post: > > Processing ApplicationController#index (for y.y.y.221 at 2010-09-15 > 14:59:22) [OPTIONS] > > But by directly keying in the url to chrome Rails responds with: > > Processing PostsContro

[Proto-Scripty] Updating Google's AJAX API repository to Prototype 1.7RC2

2010-09-16 Thread Richard Quadling
ry? On a side note, does anyone have any idea how far 1.7 is away from being ready for release? As always, my sincere thanks to all of you for your generosity in providing such a world class library. (Hmmm, laying it on a bit thick, maybe?! But meant!) Regards, Richard. -- Richard Quadling Twitt

Re: [Proto-Scripty] Re: Updating Google's AJAX API repository to Prototype 1.7RC2

2010-09-16 Thread Richard Quadling
> T.J. Crowder > Independent Software Consultant > tj / crowder software / com > www / crowder software / com > > On Sep 16, 11:21 am, Richard Quadling wrote: >> Hi. >> >> I'm trying to demonstrate a problem I'm having. Embedding my own >> Prot

Re: [Proto-Scripty] Re: Chrome 5 refused to get unsafe header xjson

2010-09-16 Thread Richard Quadling
On 16 September 2010 11:21, nigeke...@googlemail.com wrote: > Content-Type: application/json; That's the important bit. So, now your JSON data will be in ... transport.responseJSON You don't need to evalJS() as JSON is JS. -- Richard Quadling Twitter : EE : Zend @RQuadl

[Proto-Scripty] Returning an array of results from an operation on an array.

2010-09-17 Thread Richard Quadling
Layout').invoke('get', 'left').uniq().each(function(val){return val = val - i_ContainerLeft;}).join(',') Alternatively, could the getLayout() method be extended to include leftParentOffset and topParentOffset? Which is what I'm calculating. Regards, Richar

Re: [Proto-Scripty] Returning an array of results from an operation on an array.

2010-09-17 Thread Richard Quadling
On 17 September 2010 13:26, Jarkko Laine wrote: > > On 17.9.2010, at 15.03, Richard Quadling wrote: > >> Hi. >> >> How do I do something like this (just an example) ... >> >> [1,2,3].each(function(val){return val * val;}); >> >> such that the res

Re: [Proto-Scripty] IE Issues

2010-09-21 Thread Richard Quadling
from the value in the element (utf-16). I will use the value from the HTTP header (utf-8) for this validation. Line 120, Column 18: document type does not allow element "OL" here; assuming missing "LI" start-tag -- Richard Quadling Twitter : EE : Zen

  1   2   3   >