[Proto-Scripty] Need help for performantly creating tooltips

2009-07-22 Thread Chris Sansom
At 22:35 +0100 21/7/09, Alex McAuley wrote: >I love semantical arguments !! Especially if you can pass them to a function. -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ I'm on a seafood diet - I see food, I eat it. -- Dolly Parton --~--~-~--~~---

[Proto-Scripty] Need help for performantly creating tooltips

2009-07-22 Thread Chris Sansom
At 15:25 -0700 21/7/09, Chris wrote: >If I have about 60 tooltips on page (that could load another subset of >elements, that maybe have tooltips too), I would have about 120 >listeners (each tooltip needs at least a mouseover and one mouseout, >right?). Is it the right way to just add two listener

[Proto-Scripty] Need help for performantly creating tooltips

2009-07-22 Thread Chris Sansom
At 03:07 -0700 22/7/09, Chris wrote: >There are some problems with this. As far as I know the title- >Attribute is limited to about 255 Chars (at least in some browsers). >As it is just plain text, you cant format it (like use strongs etc). >Next thing is that you cant style its overall appearance

[Proto-Scripty] POSTing a form via AJAX

2009-08-22 Thread Chris Sansom
At 10:54 -0400 22/8/09, bill wrote: >Putting it all together (apparently wrongly) I have: > > >$('messageProcessForm').observe('submit',function(event) { >new Ajax.Updater('showMessageDiv', mail/process_message.php, { > parameters: $('showMessageDiv').down('form').serialize(true), >

[Proto-Scripty] POSTing a form via AJAX

2009-08-22 Thread Chris Sansom
At 11:21 -0400 22/8/09, bill wrote: >now > >$('messageProcessForm').observe('submit',function(event) { >new Ajax.Updater('showMessageDiv', mail/process_message.php, { > parameters: $('showMessageDiv').down('form').serialize(true), > onFailure: function(response) { > alert

[Proto-Scripty] How can this be done in Drag & Drop?

2009-09-09 Thread Chris Sansom
At 14:39 -0400 9/9/09, Rick Waldron wrote: >Since you say your are just learning, I'd like to impart a tip :) > > >Instead of... > >Droppables.add('DropDiv_G1', { > hoverclass: 'hover', > accept: 'G1', > onDrop: DropHandler >}); > >Droppables.add('DropDiv_G2', { > h

[Proto-Scripty] Dynamic test after ajax call

2009-09-19 Thread Chris Sansom
At 05:21 -0700 19/9/09, T.J. Crowder wrote: >"View source" will only show you the original source of the document, >not any later modifications you make to the DOM (e.g., via >Ajax.Updater or any of several other means). Why does it matter? >What is it you're trying to achieve looking at the sour

[Proto-Scripty] subscribing to event with element name starting with a certain text string

2009-09-28 Thread Chris Sansom
At 11:08 +0100 28/9/09, Alex McAuley wrote: >I am sure that its a regex in the "name=" bit so a regilar expression >something like >(0-9Aa-Zz) would do it In that case, surely just (\w)? -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ Anything played wrong twice in a r

[Proto-Scripty] Re: How to fire a custom/synthetic "Control key + mouse scroll wheel movement" event?

2009-10-01 Thread Chris Sansom
At 19:47 -0700 30/9/09, tcupolo wrote: >Turning the scroll wheel on the mouse while holding down the control >key on the keyboard will "enlarge/shrink" the entire document image >displayed in the window with focus. Surely this is more of a system-wide thing, at least on the Mac. If I do this, th

[Proto-Scripty] Re: Many Ajax requests, after bih sql query there are no responses

2009-10-10 Thread Chris Sansom
At 10:59 -0700 9/10/09, Dusko Sobic wrote: >In brief - I have a table with 250 rows of data and I am trying to >fill in 2 columns with ajax calls. >-- >var sel_list_queue = new Array(# this is an array with more than 200 >IDs#); > >if(sel_list_queue.

[Proto-Scripty] My first post and an Ajax problem

2009-02-18 Thread Chris Sansom
Hello First a bit about me and my setup. I'm an entirely self-taught (the worst kind, I'm sure!) JavaScript, PHP and MySQL developer. I have a PowerMac G5 with Apache running on it purely for local development purposes, after which the code's all uploaded to a shared Linux host. I use the Pro

[Proto-Scripty] My first post and an Ajax problem

2009-02-19 Thread Chris Sansom
At 21:17 -0800 18/2/09, T.J. Crowder wrote: >You must have checked this, but... Are you _absolutely_ sure that >bookFormHandler() is being called at all? It sounds like it's just >not hooked up. Hi Yes, I am/was absolutely sure. In my somewhat crude debugging process I'd put a couple of alert

[Proto-Scripty] Another Prototype error?

2009-02-19 Thread Chris Sansom
I keep getting a message I don't understand, and I can't even pin down exactly when it's happening. Every now and then Firebug tells me there's 1 error which, when I look at it, says: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name]" nsres

[Proto-Scripty] Another Prototype error?

2009-02-19 Thread Chris Sansom
At 11:36 -0500 19/2/09, Jason Frisvold wrote: >Do you have any other tabs open, or maybe some extensions that gather >remote info? Firebug console reports errors for other scripts in other >tabs as well.. Might not even be related to what you're working on . Hmmm. Not sure about this. I'll have

[Proto-Scripty] Another Prototype error?

2009-02-19 Thread Chris Sansom
At 11:36 -0500 19/2/09, Jason Frisvold wrote: >Do you have any other tabs open, or maybe some extensions that gather >remote info? Firebug console reports errors for other scripts in other >tabs as well.. Might not even be related to what you're working on . Hi Jason I've tracked down exactly

[Proto-Scripty] Re: Modal Dialog question...

2009-03-06 Thread Chris Sansom
At 10:25 -0800 5/3/09, Daniel Israel wrote: >Is there some sort of add-on or control out there that will make a >modal dialog? I've got an application where I want a dialog to pop >up in the middle of the screen and allow the user to enter/edit >data, then do something if the user clicks OK.

[Proto-Scripty] Re: AJAX filtering data - best approach?

2009-03-18 Thread Chris Sansom
At 04:30 -0700 18/3/09, Matt wrote: >As I say, I've managed to produce the basics, but have no idea how to >use Prototype to a) build a complex WHERE query and b) 'toggle' the >data when the user checks/unchecks a box. Don't use prototype to build the WHERE clause. Use prototype to send the para

[Proto-Scripty] AJAX filtering data - best approach?

2009-03-18 Thread Chris Sansom
At 05:51 -0700 18/3/09, Matt wrote: >So, like, keep track of what options the user has selected and add >these to an array or something that I can then use to send a $_GET >request to my script? Specifically, use them to build a query string (and you can use GET or POST - that's up to you). --

[Proto-Scripty] Re: Prototype causes function with array/for...each to stop working

2009-03-23 Thread Chris Sansom
Oooh - don't say there's a post I can answer... At 02:12 -0700 23/3/09, jazzylicious wrote: >I might get some replys with: So you do use prototype, but don't use >it for everything??? I just couldn't find a way to do the same thing >in prototype. ... >var allDivs = new Array >("divreferenties",

[Proto-Scripty] Stopping submit event

2009-03-23 Thread Chris Sansom
Being a good citizen, I changed: $('venform').onsubmit = venFormHandler; to: $('venform').observe ('submit', venFormHandler); However, venFormHandler() has a 'return false;' at the end (it runs an Ajax script and shouldn't submit the form conventionally), and this no longer works. I can't qu

[Proto-Scripty] Stopping submit event

2009-03-23 Thread Chris Sansom
At 06:41 -0700 23/3/09, T.J. Crowder wrote: >function venFormhandler(event) { > > event.stop(); > > /* ...do your ajaxy goodness... */ >} That's the one! I was trying to be too complicated. Thank you. -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ A censor is

[Proto-Scripty] Re: Prototype Radio Box Question

2009-03-30 Thread Chris Sansom
At 04:20 -0700 30/3/09, simon.murgatr...@googlemail.com wrote: >The problem is it only registers the call back on the first of the >radio boxes. If I change the id on each input statement so each uses a >differenet name, I can register three callbacks. But I want the radio >boxes to operate as a s

[Proto-Scripty] Re: recommendations for tip / help type box

2009-05-02 Thread Chris Sansom
At 06:27 -0700 2/5/09, Jimmy Brake wrote: >Looking for recommendations for a good way to have tip / help boxes >where ever I need them on forms. > >Example: Enter >Your Name: > >If you moused over the div tag the help message would appear and if >you moved off the div the message would disappe

[Proto-Scripty] Re: SyntaxError: unterminated string literal

2009-05-21 Thread Chris Sansom
At 17:24 +0300 21/5/09, Vladimir Tkach wrote: >Prototype gsub error? > >$H({s:'\'}).toJSON() > >Result : SyntaxError: unterminated string literal I /think/, though the experts hereabouts will confirm or otherwise, that JavaScript thinks the \ is escaping the quote that comes after it. To do wha

[Proto-Scripty] Re: Trouble getting started with Prototype

2009-05-29 Thread Chris Sansom
At 22:10 -0700 28/5/09, Alex wrote: > ... >The Prototype functions are in javascriptPrototype.js. I am trying to >remove (or delete the contents of if someone has a better idea) the >div element with id="box". I get an error everytime in IE 7. > >Anyone have any tips or suggestions? Er, yes.

[Proto-Scripty] Trouble getting started with Prototype

2009-05-29 Thread Chris Sansom
At 06:07 -0700 29/5/09, Alex wrote: >What I downloaded from Prototype was titled: "prototype-1.6.0.3.js". >I renamed that file to "javascriptPrototype.js" so that I could use >it. I uploaded it into my directory. And from there I got to the >question I had above. > >Does that clear anything up o

[Proto-Scripty] Trouble getting started with Prototype

2009-05-29 Thread Chris Sansom
At 10:01 -0400 29/5/09, Mitchell McCulloch wrote: >Ah! I didn't look too closely at that I guess, whoops. Indeed that should >solve the problem for Chris. No problem for me - at least, not /that/ problem. :-) I was the one who suggested he had the filename wrong when he didn't. The original pr

[Proto-Scripty] Doctypes

2009-06-16 Thread Chris Sansom
I'm curious about the recent discussion that's arisen as a sideline from the 'Creating new lines and bypassing them through escapeHTML' thread. I've been using Prototype for a little while now (though not Scriptaculous - yet!). I'm not by any stretch of the imagination an expert and I'm sure

[Proto-Scripty] Problem with crossfading complex divs

2011-09-13 Thread Chris Sansom
Been off this list for ages, as I've not done any of this kind of work for some time. As a consequence I'm a bit rusty... OK, an explanation of what I'm trying to do. I have a which consists of a row of three nested s inside each of which are various elements, including links. The client wants

Re: [Proto-Scripty] Problem with crossfading complex divs

2011-09-13 Thread Chris Sansom
On 13 Sep 2011, at 15:29, Chris Sansom wrote: > I /think/ what's happening is that when you roll the mouse over various > elements inside the JS thinks it's mousing out and over repeatedly Just been out for a walk and had a think about this. I think what I need to do is som

Re: [Proto-Scripty] Problem with crossfading complex divs

2011-09-13 Thread Chris Sansom
On 13 Sep 2011, at 16:32, Pablo Aravena wrote: > I think your problem is because you are using mouseover/mouseout > instead of mouseenter/mouseleave Hi Pablo I told you I was rusty! That's exactly right - it now works beautifully. Well almost - it's still possible to mess it up by whipping the

Re: [Proto-Scripty] Problem with crossfading complex divs

2011-09-17 Thread Chris Sansom
> On 13 Sep 2011, at 16:32, Pablo Aravena wrote: > >> I think your problem is because you are using mouseover/mouseout >> instead of mouseenter/mouseleave And on 13 Sep 2011, at 16:52, I wrote: > I told you I was rusty! That's exactly right - it now works beautifully. Well > almost - it's still

[Proto-Scripty] Image cache problem with Ajax

2011-09-29 Thread Chris Sansom
I don't know if this is really something I can fix via Prototype, or if it's in any way a Prototype issue, but I'll try here first. Here is my problem - which unfortunately I can’t show you because I'm only developing it on my local system at the moment - slightly simplified: I have a pair of i

Re: [Proto-Scripty] Image cache problem with Ajax

2011-09-29 Thread Chris Sansom
On 29 Sep 2011, at 15:00, Chris Sansom wrote: > I've tried various things to stop it caching, such as loading the top image > via a tiny php script Forgot to mention, before anyone else does, that the first thing I tried, after Googling, was to put various query strings [such as

Re: [Proto-Scripty] Image cache problem with Ajax

2011-09-29 Thread Chris Sansom
On 29 Sep 2011, at 15:51, Richard Quadling wrote: > Does ALL the JS work take place inside the onSuccess callback? > > The "Back in JS" bit has to be part of the onSuccess callback > otherwise it will happen out of sequence. The A in AJAX is potentially > the hiccough here. That's what I suspect

Re: [Proto-Scripty] Image cache problem with Ajax

2011-09-30 Thread Chris Sansom
Right - time to deal with all these helpful answers I've been getting, but first, to save time, let me say... it's fixed! And a very simple fix it was too, which I /thought/ I'd already tried... On 29 Sep 2011, at 17:15, Richard Quadling wrote: > Create a test case where it goes wrong. Write new

Re: [Proto-Scripty] Image cache problem with Ajax

2011-09-30 Thread Chris Sansom
On 30 Sep 2011, at 12:32, Richard Quadling wrote: > onFailure / onSuccess is in response to a working result from the AJAX call. > > onComplete is in response to the AJAX mechanism shutting down. > > onComplete will always be called, but it isn't its job to deal with > the data from the call. Th

[Proto-Scripty] Ajax problem

2019-06-22 Thread Chris Sansom
With apologies in advance for the length... I retired a few years ago from web development, where I used Prototype quite a bit in the later years. I'm somewhat rusty now, but I'm trying to do some development for purely personal use. It won't be on the open web, just on our local server. It's a

Re: [Proto-Scripty] Ajax problem

2019-06-23 Thread Chris Sansom
n of the parent > }); > > If #parent_element_id is a , then the HTML you get from > /server/url?foo=bar should be: > > > > > > > > ... with all of the whitespace removed. > > Walter > >> On Jun 22, 2019, at 11:25 AM, Chris Sansom w

Re: [Proto-Scripty] Ajax problem

2019-06-24 Thread Chris Sansom
vailable to the pouter part of the code for the 'if (newhtml)’ block at the end. But I can’t figure out how to do it because it doesn’t meet my normal assumptions about global and local variables. I really feel I’m almost there with this problem - just this last hurdle to get over! -- C

Re: [Proto-Scripty] Ajax problem

2019-06-24 Thread Chris Sansom
nks a million for your help. Now I have to fix the next problem... -- Cheers... Chris Chris Sansom: composer and… whatnot http://www.chrissansom.net/ https://www.youtube.com/channel/UCVUKb7vK0KiIaiLhs7zht2Q https://soundcloud.com/mfthoad ‌As every parent of a small child knows, converting a large objec