[Proto-Scripty] Re: How combine addClassName() with morph()?

2009-06-05 Thread david
Hi celso, effectivelly, you have the removeClassName which remove the given class for an element, but what you could also do is having another class (say 'notchecked') that correspond to original style, and you want to revert the 'checked' just do $('tr-xxx').morph('notchecked'); Depending to

[Proto-Scripty] Re: Prototype and scriptaculous let IE crash

2009-06-05 Thread david
Hi Tobias, I have only IE6, and it works without crashes, just a different look than on FF. The first notice is that prototype / scriptaculous have no problem with IE 6 / 7 / 8. So the crash is somewhere else. To be sure, remove every script tag (inline and external files). Just reload the page

[Proto-Scripty] Re: How to initialize the super class in subclass

2009-06-05 Thread david
Hi lun.ashis, the first part, creating the Animal class is OK. For the Snake class, you'll create a new class based on Animal. So all Animal methods will be avalaible in the Snake class. This is done by this part: var Snake = Class.create(Animal, { ...}); Next, you want to modify the Initialize

[Proto-Scripty] Re: Working outside loop, but not inside

2009-06-05 Thread Alex McAuley
Chill out dude i wasn't arguing, As i said -again- that was a simple example. My bad on the 2 Ajax requests i forgot my original statement about making one or more on the initial page I also did not say inline handlers were OOP nor my code was OOP but Prototype JS is written in an OOP fashion

[Proto-Scripty] Re: How to initialize the super class in subclass

2009-06-05 Thread david
Hi lun.ashis, the first part, creating the Animal class is OK. For the Snake class, you'll create a new class based on Animal. So all Animal methods will be avalaible in the Snake class. This is done by this part: var Snake = Class.create(Animal, { ...}); Next, you want to modify the Initialize

[Proto-Scripty] Re: Strange IE6 Bug in Sortable.create

2009-06-05 Thread arianglan...@googlemail.com
Hi David, thanks for the tests. What do you mean with expand? Specify a width for the select box? If you load the page - change the window - come back to the window with the list, it also works. But I can't tell this my users ;) On 4 Jun., 19:21, david david.brill...@gmail.com wrote: Hi

[Proto-Scripty] Re: Strange IE6 Bug in Sortable.create

2009-06-05 Thread arianglan...@googlemail.com
I see now what you mean with expand. That cannot be a solution. There must be something else ;) On 4 Jun., 19:21, david david.brill...@gmail.com wrote: Hi Cyrus, I've made some test and can add some info. The link CAN be clicked, you just need to expand the select option, and it works now

[Proto-Scripty] Event.toggle

2009-06-05 Thread MIGhunter
I'm trying to use a script to hide and show user information. Right now I am just playing with it and here is what I have: http://migcfdesign.com/joani/index.html The problem is the map. I can't load the page with the map hidden. If I do chops off 1/2 of the map. Is there a way to initially

[Proto-Scripty] Re: Event.toggle

2009-06-05 Thread MIGhunter
Couldn't find the edit button. Here is an easier to read markup page: http://paste.windower.net/fb6f0e0c --~--~-~--~~~---~--~~ 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: HTML breaks JSON

2009-06-05 Thread Matt
Hi Alex, Still didn't work for me :( Just produced broken HTML output again. On Jun 4, 5:24 pm, Alex McAuley webmas...@thecarmarketplace.com wrote: You need to do it a bit differently with php json_encode/decode ... i had this problem when i first started using it where you send post

[Proto-Scripty] Re: HTML breaks JSON

2009-06-05 Thread Szymon Wilkołazki
Matt wrote: Hi Alex, Still didn't work for me :( Just produced broken HTML output again. If your html code is not broken on inside of php variable, then it won't break anything inside json_encode; [code] ?php $html = ' div id=someIdthis is correct html span

[Proto-Scripty] Last table row

2009-06-05 Thread Jeztah
Morning... Very silly and easy question but my brain isn't working today How can i get the last row of a table (table id=foo) ... The row is inserted dynamically via an ajax request so its not on the page at load time!. $('foo').select('tr:last'); Doesnt work as its returning more than

[Proto-Scripty] Re: HTML breaks JSON

2009-06-05 Thread Alex McAuley
very strange .. works for me with anything all the time - Original Message - From: Matt guitarroman...@gmail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Friday, June 05, 2009 10:05 AM Subject: [Proto-Scripty] Re: HTML breaks JSON Hi Alex, Still

[Proto-Scripty] Re: Event.toggle

2009-06-05 Thread Alex McAuley
You dont need all those Event.observe(window one will do !!!... If you want to toggle something after some time just do something like var timerOuting=setTimeout(function() { $('foo').toggle; },5000); // 5 seconds will toggle foo after 5 seconds of window loading if you put it in a

[Proto-Scripty] Re: Last table row

2009-06-05 Thread Szymon Wilkołazki
Jeztah wrote: Morning... Very silly and easy question but my brain isn't working today How can i get the last row of a table (table id=foo) ... The row is inserted dynamically via an ajax request so its not on the page at load time!. $('foo').select('tr:last'); Unlike jQuery,

[Proto-Scripty] Re: Last table row

2009-06-05 Thread Alex McAuley
TY muchly Regards Alex - Original Message - From: Szymon Wilkołazki wilkola...@gmail.com To: prototype-scriptaculous@googlegroups.com Sent: Friday, June 05, 2009 11:33 AM Subject: [Proto-Scripty] Re: Last table row Jeztah wrote: Morning... Very silly and easy question but my

[Proto-Scripty] Re: Event.toggle

2009-06-05 Thread MIGhunter
btw, this works in Firefox but in IE the window for the map doesn't show up at all. --~--~-~--~~~---~--~~ 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-Scripty] Re: Event.toggle

2009-06-05 Thread MIGhunter
oops sorry, I'm new to this. How do I combine it into one statement but keep everything separated? On Jun 5, 6:53 am, MIGhunter ad...@botdls.com wrote: btw, this works in Firefox but in IE the window for the map doesn't show up at all. --~--~-~--~~~---~--~~

[Proto-Scripty] Re: Need Help With Ordering Sortables

2009-06-05 Thread Daryl
Sorry I'm not sure how that works, can you please explain a bit more. Basically I have 4 divs in a row ordered 1,2,3,4 When I press a button I want them to re order themselves 4,1,2,3 --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Proto-Scripty] Re: OverLIB Clone - IE not appending to Style Tag - setStyle() sometimes not working

2009-06-05 Thread IMBI-Indie-Portal
Thanks Walter! Some good advice. I'll bare those methods in mind for future projects.. I guess the best practice would be as follows: If you have to use a 'name' which needs to be quoted, quote them all! I didn't know about the 'cssName' type, so I'll be trying those as well. If I find a

[Proto-Scripty] Re: Need Help With Ordering Sortables

2009-06-05 Thread Walter Lee Davis
Sure. What I'm doing is this -- removing them from the parent object in the order I want them to re-appear, then inserting them in that order at the bottom of the parent object. So if you start out like this: div#foo div#bar1 div#bar2 div#bar3 div#bar4 Then

[Proto-Scripty] Re: MySQL - order ID

2009-06-05 Thread WLQ
I have a hard time connecting your js with a database. Could you give an example of what I should write there? On May 31, 8:22 pm, Walter Lee Davis wa...@wdstudio.com wrote: I took another run up this hill, and got quite a bit further than the   last time. http://jsbin.com/itanu This is

[Proto-Scripty] Re: How combine addClassName() with morph()?

2009-06-05 Thread Celso
Thanks guys for your answers ! --~--~-~--~~~---~--~~ 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-scriptaculous@googlegroups.com To unsubscribe from

[Proto-Scripty] Re: Event.toggle

2009-06-05 Thread Rick Waldron
Alex is right ... I would even suggest not using Event.observe(window, 'load', function() {}); for this application at all... you can wrap all those other event handlers in one big document.observe('dom:loaded', function () { all your stuff goes here. }); On Fri, Jun 5, 2009 at 6:18

[Proto-Scripty] Re: Event.toggle

2009-06-05 Thread Matt Foster
Is there a way to initially load the page with the map open and then close it after a timed period? Better yet, is there some way to load it with it hidden but not chopped up? Yeah, having it display:none or visibility:hidden can muck up the calculations of the containers dimensions. I'd

[Proto-Scripty] Re: MySQL - order ID

2009-06-05 Thread WLQ
What I've meant is what kind of code should be in those update, create, remove php. P.S The page is freezing. On Jun 5, 3:46 pm, Walter Lee Davis wa...@wdstudio.com wrote: Naturally this won't run in jsbin, because it's trying to connect to a   non-existent server. Each of these Ajax calls

[Proto-Scripty] Re: MySQL - order ID

2009-06-05 Thread Walter Lee Davis
That's entirely up to your server, your framework (if you use one) etc. I've posted a very concise bit of code that does the update order part before, have a look through the archives at Google Groups. Walter Not sure what you mean by freezing -- you should simply see a page of code, it's

[Proto-Scripty] Re: Event.toggle

2009-06-05 Thread Rick Waldron
Simple fix, you need to put those observers inside the proper document.observe('dom:loaded') block for them to actually know when and what to start observing. i posted your demo - fixed: http://www.genevajs.com/misc/demo-ps-list-0013.php cope/paste as needed. be sure to update the script

[Proto-Scripty] Re: Event.toggle

2009-06-05 Thread Rick Waldron
Sorry, should've explained why IE is so dumb... Firefox knows to wait to execute, but it doesnt know everything all the time, so its safer to wrap everything in the document.observe(). IE doesnt know anything at all and tries to execute as the page loads... so if you start observing elements that

[Proto-Scripty] Re: Event.toggle

2009-06-05 Thread Rick Waldron
Whoops! Also... IE collapsed your wrapper div. i put 75% on that and then 100% on the inner div - worked like a charm. On Fri, Jun 5, 2009 at 9:27 PM, Rick Waldron waldron.r...@gmail.com wrote: Sorry, should've explained why IE is so dumb... Firefox knows to wait to execute, but it doesnt know