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

2009-06-04 Thread Alex McAuley
you have at least one syntax error here div id='blinddown.$count.'style='display:none; width:175px; height: 100px; background:#FFF;'Random Text that doesn't matter/div/td/ tr; There is no space between id='' and style=''. put a space in and try it again! - Original Message -

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

2009-06-04 Thread Alex McAuley
seeing Ricks reply... it is better to go with his method ... Obviously sometimes it is not allways viable to go with non-inline handlers but it is best to go with them when you dont need to get anymore information from an element that its ID or perhaps its next sibling etc etc also in PHP i

[Proto-Scripty] Re: Vertical menu with scrolls on top and bottom

2009-06-04 Thread Nikhil Saini
I did look at Scripteka but couldn't find what i was looking for. On Wed, Jun 3, 2009 at 11:50 PM, david david.brill...@gmail.com wrote: Hi nikhil, have you tried scripteka.com ?? I'm not sure there is something that could fit your need, but who never knows. -- david On 3 juin, 10:53,

[Proto-Scripty] Re: Vertical menu with scrolls on top and bottom

2009-06-04 Thread Nikhil Saini
Thanks Mona. I'll check this and see if it helps. On Wed, Jun 3, 2009 at 2:23 PM, Mona Remlawi mona.reml...@gmail.com wrote: hi nikhil, you might wanna take a look at http://livepipe.net/control there is a scrollbar control that you might adjust for your needs. -- mona On Wed, Jun 3,

[Proto-Scripty] Re: Prototype Xml representation

2009-06-04 Thread david
Hi confiteor, I did not find anything like that, but prototype have a format to be understood by pdoc. Perhaps you can try to modify output of pdoc to suite your need ?? Or pdoc have perhaps this kind of output. have a look at github: http://github.com/tobie/pdoc/tree/master -- david On 3

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

2009-06-04 Thread Cyrus
Hi, I found a bug in IE6 and Sortable.create. When you have a select box and a link within your sortable, the links are not clickable if you use the option tree: true Sortable.create('list', { tree : true }); ul id=list lia href=#test id=testtest/aselect/select/li lia

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

2009-06-04 Thread ColinFine
On Jun 3, 2:06 pm, Walter Lee Davis wa...@wdstudio.com wrote: Well, float is a kind of Number, so that's why you can't use that word   directly -- it's reserved by JavaScript, and 'you have to dance with   who brung ya'. In those cases, you can usually use css[the word] as a   substitute,

[Proto-Scripty] Re: IE 8 Prototype Issue

2009-06-04 Thread CMRstar430
Hey David, I believe I am using the newest version of lightwindow. The prototype that came with it was version 1.5. Thats why I thought maybe it needed the updated version, but the same issue is happening with both 1.5 and the new 1.6.1_rc2. It works perfect in Firefox and Chrome, only errors in

[Proto-Scripty] Re: IE 8 Prototype Issue

2009-06-04 Thread Walter Lee Davis
Lightwindow seems to have been abandoned quite some time ago, which is a shame. I've had to patch lots of things for IE6, there are scads of references on Google to other bits that people have changed to work around one problem or another. I really like LW, it does way more than any other

[Proto-Scripty] Re: IE 8 Prototype Issue

2009-06-04 Thread Walter Lee Davis
This little snippet I found on the Google fixes the teeny-tiny window problem. Search for the word naturalWidth in your source -- mine is so hacked up for my purposes that it doesn't have remotely matching line numbers. // We have to do this instead of .onload this.checkImage[i] = new

[Proto-Scripty] Re: IE 8 Prototype Issue

2009-06-04 Thread CMRstar430
I found that if you add the below code to the top or replace your old with this, it works in IE and doesn't mess up. Bu, of course this causes other issues. When I add that code, for some reason it makes everything centered in their tables or td's. Text images etc... I can manually go in a

[Proto-Scripty] Re: IE 8 Prototype Issue

2009-06-04 Thread CMRstar430
** !DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd” html xmlns=”http://www.w3.org/1999/xhtml” ** On Jun 4, 8:18 am, CMRstar430 cmrstar...@gmail.com wrote: I found that if you add the below code to the top or replace your old

[Proto-Scripty] Re: IE 8 Prototype Issue

2009-06-04 Thread david
Hi CMRstar430, Just one note about prototype 1.5 and 1.6. Some modification needs some lodification between this two versions. If just switch to the new version, take care other issue could be present. Effectivelly, it seems that Lightwindow is abandonned, why not switching to another ?? --

[Proto-Scripty] tricky Ajax.Updater and document.write problem

2009-06-04 Thread doug
I was having trouble with using Ajax.Updater with evalScripts=true and a javascript block with document.write in it. What I am trying to do is, run some JS, and display the result of that JS inline. However, it seems to only display the results of the document.write, and none of the other

[Proto-Scripty] document.write Ajax.Updater alternative

2009-06-04 Thread doug
I think I'm gonna go with my previous solution. Here's part of the code I have so far. It works with PHP and the smarty framework. it hides email addresses to those not using Javascript (hopefully bots). $text = $address; global $smarty_mailto_span_count; $span_id=

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

2009-06-04 Thread Celso
Hello ! I needed something like this: $('tr').addClassName('checked'); $('tr').morph('checked'); and remove too. Thanks, Celso. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

[Proto-Scripty] Re: When are is final 1.6.1 going to be released?

2009-06-04 Thread kangax
On Jun 3, 4:09 am, KHelal karim.he...@gmail.com wrote: Hi all, Do you have any ETA on the final version of 1.6.1? IE8 is being force- fed by Microsoft and is starting to show usage for some of our customers. Hopefully, within a week or two. -- kangax

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

2009-06-04 Thread Rick Waldron
A quick google for php single quotes vs double quotes will help you understand the difference and what it means to the overhead and scalability of your code. I picked this article from said google results: http://andrewgatenby.com/single-quotes-and-double-quotes-in-php @Alex, I honestly can't

[Proto-Scripty] Re: IE 8 Prototype Issue

2009-06-04 Thread CMRstar430
David, Do you know of any good ones that allow for rich media? On Jun 4, 9:10 am, david david.brill...@gmail.com wrote: Hi CMRstar430, Just one note about prototype 1.5 and 1.6. Some modification needs some lodification between this two versions. If just switch to the new version, take

[Proto-Scripty] Re: IE 8 Prototype Issue

2009-06-04 Thread CMRstar430
David, Do you know of any good ones that allow for rich media?? On Jun 4, 9:10 am, david david.brill...@gmail.com wrote: Hi CMRstar430, Just one note about prototype 1.5 and 1.6. Some modification needs some lodification between this two versions. If just switch to the new version, take

[Proto-Scripty] Re: HTML breaks JSON

2009-06-04 Thread Matt
Hi again, I've been running addslashes() on the input before running json_encode () and it still creates problems when I pass it through AJAX - breaks HTML tags etc. If I turn addslashes() off, any occurence of in the body text (eg quotes from speakers etc) breaks the code again. Does anyone

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

2009-06-04 Thread Alex McAuley
@Rick -- Okay here is a good one. A very dynamic site where you need to pull varying variables -- excuse the psudeo code !! just proving its needed sometimes !! funciton doSomething({options}) { new Ajax.Updater(options.element,options.url, {

[Proto-Scripty] Re: HTML breaks JSON

2009-06-04 Thread Alex McAuley
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 data (JSON) as p $post=str_replace('\', '', $_POST['p']); $json=$post; $d=json_decode($json,true); foreach($d as $key=$val) { .. do what you will

[Proto-Scripty] Re: tricky Ajax.Updater and document.write problem

2009-06-04 Thread david
Hi doug, you could do something like that: div id=myGlobalContainer/div script type='text/javascript' var counter=1; //... computations here return computationsResult if(computationsResult){ $('myGlobalContainer').innerHTML+='span id=mailto_+'(counter++) +''+computationsResult+'/span';

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

2009-06-04 Thread david
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 for all other links. If you move one of the list element to another position, the link could be accessible after the move too. But both are strange behaviour.

[Proto-Scripty] Re: Revert sortable on return value true? Possible?

2009-06-04 Thread terry-5-
I am a bit desperate now. I have tried to work this over and over to the point where I think I have to give up. I tried 2 different revert declarations: 1. revert:changeClass Sortable.create('blank_1',{tag:'span',dropOnEmpty: true, constraint:true, containment:sections,

[Proto-Scripty] Re: IE 8 Prototype Issue

2009-06-04 Thread david
Hi CMRstart430, Go here: http://planetozh.com/projects/lightbox-clones/ and select what you need, and you'll find THE script ... -- david On 4 juin, 17:18, CMRstar430 cmrstar...@gmail.com wrote: David, Do you know of any good ones that allow for rich media? On Jun 4, 9:10 am, david

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

2009-06-04 Thread david
Hi Celso, could you be more precise, because if you add className checked and morph to class name checked, there is no animation ! -- david On 4 juin, 16:26, Celso cels...@gmail.com wrote: Hello ! I needed something like this: $('tr').addClassName('checked');

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

2009-06-04 Thread craig
I've implemented what Rick (Thank You!) suggested, and it seems to have solved the recognition problem. The only minor problem I'm still having is that instead of a sliding effect, the div just abruptly appears without sliding. It's as if it knows the div needs to be displayed onclick, but not

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

2009-06-04 Thread Rick Waldron
Yeah, i discovered the same gotcha... the JS should actually look like this: document.observe('dom:loaded', function () { $$('.blinders').each(function (b) { b.observe('click', function () { Effect.toggle(this.next(), 'blind'); // or like this if you used

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

2009-06-04 Thread Celso
My app uses zebra table. Each tr have a checkbox, when the checkbox is checked, the morph effect is enabled css: .checked {font-weight: bold; background:#fb5126; color:#fff;} zebra: tr id=tr-577 class= /tr tr id=tr-587 class=fundo /tr tr id=tr-592 class= with a checked: tr id=tr-577

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

2009-06-04 Thread Walter Lee Davis
Aha. Well, $('tr') returns one element that has the ID of 'tr', it does not return a collection of elements with that tag name. $$('tr') will return a collection of extended elements with the tag name TR. If you want to be more specific (maybe you use tables for something else on the same

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

2009-06-04 Thread Alex McAuley
That was a very basic example i wrote !!... Plus your code is not re-usable which was kinda my point and its about 50 lines where as mine would fit into perhaps 10 or so... inline is alot more flexible... In basic examples yes this way does work but is memory expensive and alot of work !!!...

[Proto-Scripty] Retrieve deeper value from json

2009-06-04 Thread worthy456
Hi, somehow I am stuck with the following problem. var skill = { 1: { ... ... ... level_dump: [{ id: 1, ... reqland: 1, ... ... }, { ... ... }] }, 2: {

[Proto-Scripty] Prototype and scriptaculous let IE crash

2009-06-04 Thread Tobias Schikora
Hallo! When I include the javascript to load prototype and scriptaculous, the ie (7) first hangs and then crashes and I don't know why. I use the following code: --- script type=text/javascript src=/lib/prototype.js/script script type=text/javascript src=/lib/scriptaculous.js/script --- The

[Proto-Scripty] Possible Bug: Youtube in a Draggable DIV

2009-06-04 Thread jevchance
Hi everyone. I'm experiencing some possible bugs with a Scriptaculous draggable DIV and Youtube. The first issue is with Firefox. The issue arises when I put a Youtube video inside a div, inside a draggable div. If I click the play button in FF, the div binds to my mouse in a semi-transparent

[Proto-Scripty] $$ behavior in IE ?

2009-06-04 Thread Christian P
I am using the latest prototype.js from git HTML !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head titleMy Prototype test bench/title script type=text/javascript

[Proto-Scripty] Re: $$ behavior in IE ?

2009-06-04 Thread Rick Waldron
That still wont work... console.log( $$('#gridRow').last().down().innerHTML ); # --- is for IDs you need: console.log( $$('.gridRow').last().down().innerHTML ); And i PROMISE that wont work either, you need to iterate through $$('.gridRow') if you want to output both rows. Like so:

[Proto-Scripty] Re: Possible Bug: Youtube in a Draggable DIV

2009-06-04 Thread Rick Waldron
1.Your link is 404, I guessed and added an L to htm (.html) 2. Use the option 'handle'... take a look: http://www.genevajs.com/misc/drag-handle.php dig it. On Thu, Jun 4, 2009 at 10:47 AM, jevchance john.va...@gmail.com wrote: Hi everyone. I'm experiencing some possible bugs with a

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

2009-06-04 Thread Alex McAuley
My point still stands that it is a simple example... when we delve deeper into more complex examples it becomes garder and harder!!... Also fom what i can remember about the code it took 2 requests to complete as opposed to 1 surely that is not memory efficient... I dont deny it can

[Proto-Scripty] Re: Retrieve deeper value from json

2009-06-04 Thread worthy456
I solved it. Typos during debugging can be tricky ^^ and cost me about 1.5h today. On Jun 4, 7:30 am, worthy456 worthy...@googlemail.com wrote: Hi, somehow I am stuck with the following problem. var skill = {     1: {         ...         ...         ...         level_dump: [{          

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

2009-06-04 Thread Rick Waldron
The first ajax request was following your variable's name as a guidleline :) $myVeryDynamicVariableIJustRecievedFromAnotherAjaxRequestThatTheDocumentCouldNotPossiblyKnowWithoutUpdatingLotsOfHiddenVariables Just recieved from another ajax request (how do you intend to update the value of the

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

2009-06-04 Thread lun.ashis
In prototype i found these example of the class inheritance. var Animal = Class.create({ initialize: function(name, sound) { this.name = name; this.sound = sound; }, speak: function() { alert(this.name + says: + this.sound + !); } }); // subclassing Animal var Snake =