[Proto-Scripty] Re: problem with Prototye and linux/apache2, php

2019-01-28 Thread william drescher

On 1/28/2019 6:46 AM, william drescher wrote:

On 1/25/2019 6:43 AM, Alastair Young wrote:
If you enter the URL of the php script directly into the 
browser address bar does the server parse it as php?

Can you share the javascript that is making the ajax request?
In developer mode on your browser do you see any javascript 
errors?


cheers al


I fired up the Firefox web console and found no errors (a few
warnings).

As I was looking at the main.php code I saw a missing semicolon
after a  heredoc closing identifier and put it in.

The next time I invoked the login script all went well.

Thanks for the suggestions.



I have no idea why it started working would rather be puzzled 
than banging my head against the wall.

-bill

--
You received this message because you are subscribed to the Google Groups "Prototype 
& script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at https://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


[Proto-Scripty] Re: problem with Prototye and linux/apache2, php

2019-01-28 Thread william drescher

On 1/25/2019 6:43 AM, Alastair Young wrote:
If you enter the URL of the php script directly into the browser 
address bar does the server parse it as php?

Can you share the javascript that is making the ajax request?
In developer mode on your browser do you see any javascript errors?

cheers al


I fired up the Firefox web console and found no errors (a few
warnings).

As I was looking at the main.php code I saw a missing semicolon
after a  heredoc closing identifier and put it in.

The next time I invoked the login script all went well.

Thanks for the suggestions.

--
Bill Drescher
william {at} TechServSys {dot} com

On Fri, 25 Jan 2019 at 11:26, william drescher 
> wrote:


On 1/24/2019 6:36 PM, Walter Lee Davis wrote:
 > Can you try adding a debug page in your web root?
Something like . Name that debug.php and
visit it in a browser. See if it loads as php, and if it
does, see if it runs as php. It sounds to me as though your
apache server is not currently configured to use mod_php and
interpret the code.
 >
 > Walter

Thank you.  The login page is php and the main page is php and
both load and are interpreted.  The pages loaded through AJAX
are
the ones not being interpreted.
bill
 >
 >> On Jan 24, 2019, at 8:05 AM, william drescher
 wrote:
 >>
 >> I have a large application that runs on a Ubuntu server
and uses prototype 1.7 and scriptaculous.js 1.9.0.
 >>
 >> I just updated The OS from ubuntu 16.04 LTS to ubuntu
18.04 LTS. The login page loads fine, but when the main page
loads it displays the php script that is loaded via AJAX as
text, ie it is not interpreted.
 >> Then. after about 1 second, the page exits and goes back
to the login page.
 >>
 >> A login failure redirects to the login page without
displaying any of the main page.  So this is not a login failure.
 >>
 >> Everything was fine under ubuntu 16.04 LTS.
 >>
 >> Any thought as to what might be happening and/or any
thoughts on debugging it.
 >>
 >> Here is the Apache2 error log:
 >> ...
 >> [Wed Jan 23 09:50:18.803176 2019] [core:notice] [pid
1603] AH00094: Command line 
  : '/usr/sbin/apache2'

 >> [Wed Jan 23 14:53:09.818285 2019] [mpm_prefork:notice]
[pid 1603] AH00169: caugh                                   t
SIGTERM, shutting down
 >> [Wed Jan 23 14:53:09.949489 2019] [mpm_prefork:notice]
[pid 2933] AH00163: Apach 
  e/2.4.29 (Ubuntu) configured -- resuming normal operations

 >> [Wed Jan 23 14:53:09.949550 2019] [core:notice] [pid
2933] AH00094: Command line 
  : '/usr/sbin/apache2'

 >> [Wed Jan 23 15:02:24.216059 2019] [mpm_prefork:notice]
[pid 2933] AH00169: caugh                                   t
SIGTERM, shutting down
 >> [Wed Jan 23 15:03:17.252870 2019] [mpm_prefork:notice]
[pid 1426] AH00163: Apach 
  e/2.4.29 (Ubuntu) configured -- resuming normal operations

 >>
 >> -bill
 >>
 >> --
 >> You received this message because you are subscribed to
the Google Groups "Prototype & script.aculo.us
" group.
 >> To unsubscribe from this group and stop receiving emails
from it, send an email to
prototype-scriptaculous+unsubscr...@googlegroups.com
.
 >> To post to this group, send email to
prototype-scriptaculous@googlegroups.com
.
 >> Visit this group at
https://groups.google.com/group/prototype-scriptaculous.
 >> For more options, visit https://groups.google.com/d/optout.
 >


-- 
You received this message because you are subscribed to the

Google Groups "Prototype & script.aculo.us
" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to
prototype-scriptaculous+unsubscr...@googlegroups.com
.
To post to this group, send email to
prototype-scriptaculous@googlegroups.com
.
Visit this group at
https://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the 
Google Groups "Prototype & script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, 
send an email to 
prototype-scriptaculous+unsubscr...@googlegroups.com 
.
To post to this group, send email to 
prototype-scriptaculous@googlegroups.com 

[Proto-Scripty] Re: problem with Prototye and linux/apache2, php

2019-01-27 Thread william drescher

On 1/25/2019 6:43 AM, Alastair Young wrote:
If you enter the URL of the php script directly into the browser 
address bar does the server parse it as php?

Can you share the javascript that is making the ajax request?
In developer mode on your browser do you see any javascript errors?

cheers al


Thanks AL

--
You received this message because you are subscribed to the Google Groups "Prototype 
& script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at https://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


[Proto-Scripty] Re: problem with Prototye and linux/apache2, php

2019-01-25 Thread william drescher

On 1/24/2019 6:36 PM, Walter Lee Davis wrote:

Can you try adding a debug page in your web root? Something like . Name that debug.php and visit it in a browser. See if it loads as php, and if 
it does, see if it runs as php. It sounds to me as though your apache server is not 
currently configured to use mod_php and interpret the code.

Walter


Thank you.  The login page is php and the main page is php and 
both load and are interpreted.  The pages loaded through AJAX are 
the ones not being interpreted.

bill



On Jan 24, 2019, at 8:05 AM, william drescher  wrote:

I have a large application that runs on a Ubuntu server and uses prototype 1.7 
and scriptaculous.js 1.9.0.

I just updated The OS from ubuntu 16.04 LTS to ubuntu 18.04 LTS. The login page 
loads fine, but when the main page loads it displays the php script that is 
loaded via AJAX as text, ie it is not interpreted.
Then. after about 1 second, the page exits and goes back to the login page.

A login failure redirects to the login page without displaying any of the main 
page.  So this is not a login failure.

Everything was fine under ubuntu 16.04 LTS.

Any thought as to what might be happening and/or any thoughts on debugging it.

Here is the Apache2 error log:
...
[Wed Jan 23 09:50:18.803176 2019] [core:notice] [pid 1603] AH00094: Command 
line   : '/usr/sbin/apache2'
[Wed Jan 23 14:53:09.818285 2019] [mpm_prefork:notice] [pid 1603] AH00169: 
caugh   t SIGTERM, shutting down
[Wed Jan 23 14:53:09.949489 2019] [mpm_prefork:notice] [pid 2933] AH00163: 
Apach   e/2.4.29 (Ubuntu) configured -- 
resuming normal operations
[Wed Jan 23 14:53:09.949550 2019] [core:notice] [pid 2933] AH00094: Command 
line   : '/usr/sbin/apache2'
[Wed Jan 23 15:02:24.216059 2019] [mpm_prefork:notice] [pid 2933] AH00169: 
caugh   t SIGTERM, shutting down
[Wed Jan 23 15:03:17.252870 2019] [mpm_prefork:notice] [pid 1426] AH00163: 
Apach   e/2.4.29 (Ubuntu) configured -- 
resuming normal operations

-bill

--
You received this message because you are subscribed to the Google Groups "Prototype 
& script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at https://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.





--
You received this message because you are subscribed to the Google Groups "Prototype 
& script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at https://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


[Proto-Scripty] Re: Game with prototype

2017-11-27 Thread Max
Very nice but your tetris is slow. And please can you make it downloadable 
so we can also host it on our website and give you credentials ?

On Sunday, September 3, 2017 at 12:23:10 PM UTC, Mickael Lucas wrote:
>
>
> 
> Hi all,
>
> I created game online with prototype :
> - Connect 4 : http://www.mickael.pusku.com/mickael.pusku.com/p4/p4.php
>
> - Tetris : http://www.mickael.pusku.com
>
> I search people for try it. And can you give me your opinion.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at https://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


[Proto-Scripty] Re: Your favourite rich text editor?

2016-10-23 Thread Max
Hi

The beast I have found so far and have been using for years is 
inPlaceRichEditor which works with prototypejs and Tinymce and it is quite 
awesome when you configure it well. It has even become my default system

http://inplacericheditor.box.re/demos


On Thursday, April 23, 2015 at 3:00:41 PM UTC, code_bloke wrote:
>
> Anyone suggest their favourite rich text editor that sits nicely with 
> prototype ?
>
> ta muchly
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at https://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


[Proto-Scripty] Re: How is the MIME boundary set with HTML5 FormData and Ajax.Request()?

2016-07-18 Thread Adam Nielsen

>
> How can I get the contentType set to include the MIME boundary used by the 
> HTML5 FormData object?
>

I've done a little more investigating, and if I make this change to 
prototype.js then it fixes the problem:

diff --git a/js/prototype.js b/js/prototype.js
index cc89daf..70e2e58 100644
--- a/js/prototype.js
+++ b/js/prototype.js
@@ -1762,8 +1762,6 @@ Ajax.Request = Class.create(Ajax.Base, {
 };
 
 if (this.method == 'post') {
-  headers['Content-type'] = this.options.contentType +
-(this.options.encoding ? '; charset=' + this.options.encoding : ''
);
 
   /* Force "Connection: close" for older Mozilla browsers to work
* around a bug where XMLHttpRequest sends an incorrect


Is there any way to tell Prototype to leave the HTTP Content-Type unset?  
It looks like jQuery handles this by having contentType set to false, but I 
can't see how Prototype handles it.

Thanks,
Adam.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at https://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


[Proto-Scripty] Re: Converting classical JS to PrototypeJS

2015-12-28 Thread stanly123
Ioksan i have the same homework,did you find the solution?and can you post 
it her?
thanks!

On Monday, 23 February 2015 16:28:10 UTC+1, ioksan wrote:
>
> Hy guys.
>
>  
>
> I have a homework that says something like that:
>
>  
>
> "Create a class called Person with the attributes id, name, surname. 
> Create another class called Student that inherits the class Persons and 
> also has it`s own two attributes: id_card and average.
> Implement at least 2 methods in Person class and 1 method in Student class.
> Call all 3 methods after creating the instance of Student class."
>
>  
>
> I managed to create this:
>
>  
>
> "
> 
> 
> // Definim clasa persoana
> function persoana(nume, prenume, cnp) {
> this.nume = nume;
> this.prenume = prenume;
> this.cnp = cnp;
> }
>
> // definim o metoda pentru afisarea numelui complet
> persoana.prototype.arataNume = function() {
> return this.nume + " " + this.prenume;
> };
>
> // definim o metoda pentru afisarea cnp-ului
> persoana.prototype.arataCNP = function() {
> return this.cnp;
> };
>
> // Definim clasa student
> function student(nume, prenume, cnp, nr_carnet, medie) {
> // constructor parinte
> persoana.call(this, nume, prenume, cnp);
>
> // proprietati publice si proprii pentru student
> this.nr_carnet = nr_carnet;
> this.medie = medie;
> }
>
> // Mostenim de la clasa persoana
> student.prototype = Object.create(persoana.prototype);
>
> // Definim o metoda pentru clasa student metoda prin care de fapt 
> suprascriem metoda parinte arataNume si afisam in plus si numarul de carnet
> student.prototype.arataNume = function() {
> return "Student: " + this.nume + " " + this.prenume + " - Numar carnet: " 
> + this.nr_carnet;
> };
>
> // Definire metoda pentru afisare medie student
> student.prototype.medieStudent = function() {
> return this.medie;
> };
>
> // instantiem si rulam metodele
> var unStudent = new student("xyz","abc","7432943929393", "122", "8");
> alert(unStudent.arataNume());
> alert("CNP student: " + unStudent.arataCNP());
> alert("Medie student: " + unStudent.medieStudent());
> 
> 
>
> 
> 
> "
>
>  
>
> The problem is that my professor refused my homework because I didn`t use 
> PrototypeJS.
>
> Can you help me converting this code? I didn`t understood his request and 
> by browsing this page I could`t understand much:
>
> "http://prototypejs.o...nheritance.html 
> "
>
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at https://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


[Proto-Scripty] Re: Draggables inside div with overflow:scroll

2015-02-03 Thread Tcl Tien
Thanks u a lot . I have problem with it and i use your solution to fixed it 
. Good man! 

really thanks .

Vào 18:30:01 UTC+7 Thứ Ba, ngày 07 tháng 5 năm 2013, ayso...@gmail.com đã 
viết:

 I have created two divs. One is for draggable objects. Another for the 
 area where they should be dropped.
 The both divs should have the same height and if there are large number of 
 draggables to have scrollbar.

 When I add *overflow: scroll* to the div with draggable objects, then 
 drag-and-drop functionality is screwed up.
 Please see an example here http://jsfiddle.net/nB8PC/1/
 To reproduce my issue just enable *overflow:scroll* in CSS window (upper 
 right, it is commented out) and run the script again.

 Is there any solution for it?


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


[Proto-Scripty] Re: NaN value crash showing up in slider.js script

2014-07-31 Thread SivaPrakash Thulasi
Is there any answer for this? This NaN issue happening for me only on 
Android mobile. This is happening for me when I tried to move the slider.

Thanks in Advance 

Siva

On Wednesday, October 15, 2008 12:46:08 AM UTC+5:30, sbarker wrote:

 In script.aculo.us v1.8.1 I'm getting a javascript NaN triggered error 
 in IE6 in the slider.js (Line 143).  Tracking it down with the basic 
 debugger,  I've discovered that offsetX and offsetY values are both 
 NaN when the draw function is called. 

 Sounds a lot like this bug: http://dev.rubyonrails.org/ticket/3020 

 I haven't studied this all the way through,  and opted to extend the 
 normalizing function, getNearestValue to convert a NaN to a number. 

 Basically I've got this as a workaround at line 105: 

   getNearestValue: function(value){ 
 +   if (isNaN(value)) { 
 +   value = 0; 
 +   } 
 if (this.allowedValues){ 
   if (value = this.allowedValues.max()) 
 return(this.allowedValues.max()); 
   if (value = this.allowedValues.min()) 
 return(this.allowedValues.min()); 

 It seems to me that it makes sense to do this, but it also makes it 
 harder to locate the real bugs when they come up.  I'm just posting 
 this so that someone a little more familiar with this project might 
 take a look. 

 Thanks, 
 Jim 


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


[Proto-Scripty] Re: NaN value crash showing up in slider.js script

2014-07-31 Thread SivaPrakash Thulasi
This Same issue still occurs for me while using slider with two handles for 
price range. That also occurs in mobile browsers. When I touch and move Max 
price handle I got NaN and the functionality is not working.

Is there any fix for this? The above fix seems not working for me

Regards
Siva

On Wednesday, October 15, 2008 12:46:08 AM UTC+5:30, sbarker wrote:

 In script.aculo.us v1.8.1 I'm getting a javascript NaN triggered error 
 in IE6 in the slider.js (Line 143).  Tracking it down with the basic 
 debugger,  I've discovered that offsetX and offsetY values are both 
 NaN when the draw function is called. 

 Sounds a lot like this bug: http://dev.rubyonrails.org/ticket/3020 

 I haven't studied this all the way through,  and opted to extend the 
 normalizing function, getNearestValue to convert a NaN to a number. 

 Basically I've got this as a workaround at line 105: 

   getNearestValue: function(value){ 
 +   if (isNaN(value)) { 
 +   value = 0; 
 +   } 
 if (this.allowedValues){ 
   if (value = this.allowedValues.max()) 
 return(this.allowedValues.max()); 
   if (value = this.allowedValues.min()) 
 return(this.allowedValues.min()); 

 It seems to me that it makes sense to do this, but it also makes it 
 harder to locate the real bugs when they come up.  I'm just posting 
 this so that someone a little more familiar with this project might 
 take a look. 

 Thanks, 
 Jim 


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


[Proto-Scripty] Re: Error: Support for eval(code, scopeObject) has been removed. Use |with (scopeObject) eval(code);| instead.

2014-05-05 Thread Rafael
Thank you dude! Your fix resolved many issues in my web site.
This post was very helpfull.
Bad english? Mine is worst. 

The staff will fix this code someday I hope
Have a nice week!

Em sexta-feira, 23 de agosto de 2013 10h01min21s UTC-3, javi68yt2 escreveu:

 Hello all

 Please, excuseme my very bad English.

 I'm using a legacy version of prototype.js (1.4.0) and I cannot upgrade 
 yet.

 Since I've upgraded FF to the last version (23.0 beta), my scripts fail 
 with above message when I issue:

 new Ajax.Updater(destiny, URL, {evalScripts: 'yes' });

 After googling a lot, *I've fixed* :

   evalScripts: function() {
 return this.extractScripts().map(eval);
   },

 like this:

   evalScripts: function() {
 return this.extractScripts().map(function(script) { with(this){ return 
 eval(script);} }); // function(script) came from v1.5.0, the rest is 
 suggested by FF
   },


 PS:
 Sorry for this naive solution or if it is fixed in some other place but in 
 last version of prototype.js (1.7.1) still remains:

   function evalScripts() {
 return this.extractScripts().map(function(script) { return 
 eval(script); });
   }

 Does this help someone else?
 Cheerio!


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


[Proto-Scripty] Re: Is it vulnerable to Code Injection ? How is the risk level here?

2014-02-05 Thread ka222jm
Hello, 
I have been working with Prototype.js these days and beside the project i 
am working in i also need some  theoritical  answers...since i am new i 
hope someone out there can help me.
I need to know about the rendering technology the PrototypeJS uses and 
something about Internationalization

Thank you in advance :)

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/groups/opt_out.


[Proto-Scripty] Re: Chrome 32 and Scriptaculous Drag and Drop

2014-01-28 Thread epoch
Thank Jason!

On Tuesday, January 28, 2014 7:20:15 PM UTC+2, Jason wrote:


 Hi All

 Just a fair warning Chome 32 deprecated document.body.scrollTop/scollLeft 
 -- so when implementing Draggables and Droppables in Scriptaculous the 
 location of the element that is dragged will not be in the correct place as 
 well as won't fire the dropped correctly.


 I've added the logic/polyfill to the Element#cumulativeScrollOffset() 
 method (where the problem is) and submitted the Pull request. The Pull 
 request was merged in to main trunk a week ago.

 If you are having problems with 
 Draggables/Droppables/Element#cumulativeScrollOffset() please update to the 
 latest github version. If you cannot build from the github repo - there are 
 built versions in my github repo here - 
 https://github.com/jwestbrook/prototype


 Walter also has a CDN setup and the latest build from my repo is hosted 
 there as well

 http://cdnadmin.freewaypro.com/libraries/16

 Thanks everyone!


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/groups/opt_out.


[Proto-Scripty] Re: ajax call

2013-07-22 Thread tab1ta
ok, i've choosen the right piece of software, (the one that seem to trigger 
the submit event), but still the ajax call is missing something. I'm 
pasting the final version:

html
head
meta http-equiv=Content-Type content=text/html; charset=utf-8/
link rel='stylesheet' type='text/css' href='/static/style.css'/
script
var lin={% raw line %}
function str_to_obj(o){ 
document.write('bodydiv id=up-bar/divdiv 
id=logoimg class=logo src=/static/logo-admantx.png 
alt=logo/divform id=myform onsubmit=chiam-ajax() 
action=/myform/ method=post')
document.write('div id=myFormContainer')
for(item in o.Form) {
document.write(o.Form[item].Description + ' 
brhrbr');
for(i in o.Form[item].Response){
document.write('label for=' + 
o.Form[item].Response[i].Name + '');
document.write('input type=radio 
name=message' + item +' value=' + o.Form[item].Response[i].Name + '' + 
o.Form[item].Response[i].Name + '/labelbr');
};
};
document.write('input type=submit 
value=Submit/div/form')
};
str_to_obj(lin);
/script
script type=text/javascript src=/static/prototype.js/script
script

function chiam-ajax() {
var url = '/myform/';
var pars = document.forms[0].message0.value + '' + 
document.forms[0].message1.value ;
var target = 'myAdmantContainer';
var myAjax = new Ajax.Updater(target, url, {method: 'post', parameters: 
pars});
};
/script
/headdiv id=myAdmantContainer/div/body/html


Where do i write the code to add to 'myAdmantContainer'? I am kind of 
cofused
Agnese

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Proto-Scripty] Re: addClassName and removeClassName don´t work

2013-07-17 Thread Joseph Lust
Ran into this issue on Prototype 1.5.1 and IE8.

The error is in the array without() function in IE8. without() should 
return an empty array if the array sans element is empty, or the array with 
that element removed.

In IE8, if there are no elements left in the array after the target element 
is removed, *undefined* is returned, breaking anything chained after that.

  remove: function(classNameToRemove) {
if (!this.include(classNameToRemove)) return;
this.set($A(this).*without(classNameToRemove)*.join(' '));
  },

The actual source was that without() internally uses each() to iterate 
across the elements, but the DOMAssistant library have overwritten 
Element.each(). The new version could not catch the breaks that are thrown 
by Prototype to escape from deep nested iterators, and hence the error. 
Thus, the two libs should not be used in conjunction. It seems that other 
browsers don't overwrite the Element.each() method when loading the two 
libs like IE does.



Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/groups/opt_out.




[Proto-Scripty] Re: Need Help With Prototype Selectors API

2013-07-16 Thread Ubik
I guess you need to include Prototype in the parent document too.
BTW, use $$ to select elements in your document: $$('div') will give you 
any DIV element in your current document, almost like 
document.querySelectorAll; use $( id ) as a replacement of 
document.getElementById( id )

On Monday, July 15, 2013 10:14:05 PM UTC+2, Balaram Das Mahant wrote:

 I am new to Prototype, I have a webpage and an iframe in it. I am loading 
 Prototype in my iframe and am trying to use Selector API to get DOM 
 references for elements of my parent window.
 Eg:
 Selector.findChildElements(document,['div']) is returning references to 
 DIV elements of iframe's document. 
 But,Selector.findChildElements(parent.document,['div']) 
 is not returning any references to DIV elements of parent's document. 
 Instead, giving an error TypeError: Cannot call method 'identify' of null. 
 When I deep dive into code, I find 'Element' is actually adding 'identify' 
 method (which is in my iframe context, which is addigning a dummy 'id' 
 attribute). First of all my understanding of Prototype and its Selector API 
 is poor, please suggest a way I can use Selector API to fetch references to 
 DOM elements of my parent document.

 Thanks in Advance.
 -Balaram.


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Proto-Scripty] Re: Need Help With Prototype Selectors API

2013-07-16 Thread Jason Westbrook
If you want to select any elements that are child of a specific element you
can do so like this

$('myparentelement').select('span');

will select all spans that are children of the element with id
myparentelement

Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com


On Tue, Jul 16, 2013 at 1:13 AM, Ubik emiliano.lepor...@gmail.com wrote:

 I guess you need to include Prototype in the parent document too.
 BTW, use $$ to select elements in your document: $$('div') will give you
 any DIV element in your current document, almost like
 document.querySelectorAll; use $( id ) as a replacement of
 document.getElementById( id )


 On Monday, July 15, 2013 10:14:05 PM UTC+2, Balaram Das Mahant wrote:

 I am new to Prototype, I have a webpage and an iframe in it. I am loading
 Prototype in my iframe and am trying to use Selector API to get DOM
 references for elements of my parent window.
 Eg:
 Selector.findChildElements(**document,['div']) is returning references
 to DIV elements of iframe's document. But,Selector.**
 findChildElements(parent.**document,['div']) is not returning any
 references to DIV elements of parent's document. Instead, giving an error 
 TypeError:
 Cannot call method 'identify' of null. When I deep dive into code, I
 find 'Element' is actually adding 'identify' method (which is in my iframe
 context, which is addigning a dummy 'id' attribute). First of all my
 understanding of Prototype and its Selector API is poor, please suggest a
 way I can use Selector API to fetch references to DOM elements of my parent
 document.

 Thanks in Advance.
 -Balaram.

  --
 You received this message because you are subscribed to the Google Groups
 Prototype  script.aculo.us group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to prototype-scriptaculous+unsubscr...@googlegroups.com.
 To post to this group, send email to
 prototype-scriptaculous@googlegroups.com.
 Visit this group at http://groups.google.com/group/prototype-scriptaculous
 .
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/groups/opt_out.




[Proto-Scripty] Re: Prototype Slider not sliding in IE8, 9 and 10

2013-06-20 Thread kakorot
I figured it out, there was a .js conflict with another script.

On Thursday, June 20, 2013 12:39:00 PM UTC+1, kak...@gmail.com wrote:

 Hi i a using an example from 
 http://preview.moveable.com/jm/jameslab/superslider/ but where I have 
 made some changes to the layout and look, 
 http://webdev.brownsmart.co.uk/mwh/evaluate-yourself 
 but it does not slide in IE (all versions)

 I tried updating the versions of the Prototype.js and Scriptaculous.js 
 which allow customised version to show, (only changes have been in HTML CSS 
 and range values in the javascript) but it will not slide to the values, in 
 IE (all versions) 

 Has anyone come across this problem in previous use of Prototype.js and 
 Scriptaculous.js ?? 

 I think it has something to do with the use of multiple sliders, (going to 
 test my theory on this now) but any other suggestions would be helpful.

 Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/groups/opt_out.




[Proto-Scripty] Re: Ajax.Request - can't get to work in Firefox, Chrome

2013-06-10 Thread Pam

Thank you very much !!!

Without *addHeader* the following code only worked on IE, but adding this 
line also works in Chrome and Firefox.

The problem was Chrome and Firefox html page didn't receive xmlhttp.status 
== 200, only xmlhttp.readyState == 4, only received status == 0.


public void doGet(HttpServletRequest request, 
  HttpServletResponse response)
  throws IOException{

*response.addHeader(Access-Control-Allow-Origin, *);*

PrintWriter out = response.getWriter();
java.util.Date today = new java.util.Date();
out.write(html\n +
body\n +
h1 align=centerEjemplo1 de Servlet/h1\n +
br\n + today + /body\n+
/html
);

}

-- Pam



On Tuesday, March 16, 2010 1:08:00 PM UTC-4, Ronen wrote:

 Excellent.  Thanks very much T.J.. your idea worked.

 In my servlet, I overrided the doOptions() method from HttpServlet and
 returned the response headers that you suggested:

  response.addHeader(Access-Control-Allow-Origin, *);
  response.addHeader(Access-Control-Allow-Methods, 
 request.getHeader(Access-Control-Request-Methods));
  response.addHeader(Access-Control-Allow-Headers, 
 request.getHeader(Access-Control-Request-Headers));

 and Firefox and Chrome both started working beautifully (also verified
 that IE still works).

 In the end, my overall intent is to package this HTML file with my web
 application, so it sounds like I won't need to have this doOptions()
 in my servlet.  It's just that in the beginning, I figured I would
 test the HTML file outside of the web app and I guess I didn't realize
 I would run into this kind of trouble.  Still, it's always good to
 know how to go about fixing something like this in the future.

 Thanks for everyone's help.

 --Ronen



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Proto-Scripty] Re: проверить подключена ли библиотека Prototype

2013-06-02 Thread Александр Павленко
придумал

function assay_prototype()
{if(window.Prototype  Prototype.Version) console.log(Prototype.Version)
else console.log('no') 
}
window.onload=function()
{assay_prototype()
} 

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Proto-Scripty] Re: IE7

2013-05-12 Thread Александр Павленко
так в других браузерах работает...в том числе IE8...IE7 не работает 
...не пойму чему...
Jason те ошибки ,что Вы указали проблему не решают

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Proto-Scripty] Re: IE7

2013-05-12 Thread Александр Павленко
все нашел решение  ...таблица в ИЕ должна содержать tbody в обязательном 
порядке.
var cont=$('div');
var t=new Element('table',{'width':'200px'});
var tb=new Element('tbody')
var tr=new Element('tr');
var td=new Element('td').update('hello');
cont.insert(t);
t.insert(tb)
tb.insert(tr);
tr.insert(td);

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Proto-Scripty] Re: Draggables inside div with overflow:scroll

2013-05-08 Thread Phil Petree
Neither the original example or Jasons worked in IE9 with or without
compatibility view

On Tue, May 7, 2013 at 8:48 PM, ayson...@gmail.com wrote:

 Thank you both! I will give it a try. The example in jsfiddle is basic. I
 have more functionality in my actual script and will look how the solution
 interferes with other parameters. But the Jason's example in jsfiddle looks
 very promising ;)

 Am Dienstag, 7. Mai 2013 13:30:01 UTC+2 schrieb ayso...@gmail.com:

 I have created two divs. One is for draggable objects. Another for the
 area where they should be dropped.
 The both divs should have the same height and if there are large number
 of draggables to have scrollbar.

 When I add *overflow: scroll* to the div with draggable objects, then
 drag-and-drop functionality is screwed up.
 Please see an example here 
 http://jsfiddle.net/**nB8PC/1/http://jsfiddle.net/nB8PC/1/
 To reproduce my issue just enable *overflow:scroll* in CSS window (upper
 right, it is commented out) and run the script again.

 Is there any solution for it?

  --
 You received this message because you are subscribed to the Google Groups
 Prototype  script.aculo.us group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to prototype-scriptaculous+unsubscr...@googlegroups.com.
 To post to this group, send email to
 prototype-scriptaculous@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/prototype-scriptaculous?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Proto-Scripty] Re: Draggables inside div with overflow:scroll

2013-05-07 Thread aysonway
Thank you both! I will give it a try. The example in jsfiddle is basic. I 
have more functionality in my actual script and will look how the solution 
interferes with other parameters. But the Jason's example in jsfiddle looks 
very promising ;)

Am Dienstag, 7. Mai 2013 13:30:01 UTC+2 schrieb ayso...@gmail.com:

 I have created two divs. One is for draggable objects. Another for the 
 area where they should be dropped.
 The both divs should have the same height and if there are large number of 
 draggables to have scrollbar.

 When I add *overflow: scroll* to the div with draggable objects, then 
 drag-and-drop functionality is screwed up.
 Please see an example here http://jsfiddle.net/nB8PC/1/
 To reproduce my issue just enable *overflow:scroll* in CSS window (upper 
 right, it is commented out) and run the script again.

 Is there any solution for it?


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Proto-Scripty] Re: Unterminated string constant whens tring contains a trailing dot

2013-04-26 Thread Cardinal
First of all, thank you for the response Walter!

I tested a bit around with the W3C validator and i have noticed that my 
plugin page throws almost the same warnings / errors as any other (default) 
plugin page (or rather the entity selection site). So i have included 
prototye into one of the default plugins, and that resulted in the same 
error message when clicking on the object history button.

So i'm now pretty sure that anything of the core architecture of Novell 
iManager collidates with any functionality of the prototype framework, and 
the behaviour seems to not depending on the individual functionalities of 
my plugin.

Regarding the source code - i'm not sure if i was able to get the relevant 
contents of the page as the error only appear when clicking on a button 
(which opens a popup window, and the error only appear when this windows 
contains an object with trailing dot, and only when prototype is 
included...). IE don't allow me to extract the source code of a popup 
window.

I will now try to customize the prototye script as it seems to contain much 
more functionalitys as i need for my plugin..




-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Proto-Scripty] Re: Unterminated string constant whens tring contains a trailing dot

2013-04-22 Thread Cardinal
Unfortunately i can't provide a live demo as i am talking about a plugin 
for Novell / NetIQs iManager.

Attached please find the SelectEntity.jsp file and some of its includes.

 

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




SelectEntity.jsp
Description: Binary data


mandator.js
Description: JavaScript source


OS_inc.jsp
Description: Binary data


OSFooter_inc.jsp
Description: Binary data


cvFooter.inc.jsp
Description: Binary data


[Proto-Scripty] Re: Prototype.Selector is undefined

2013-04-08 Thread msc
I found the error at last! 

Turns out, that deep within the included codefiles, Prototype.js was 
included a second time.
Once I removed that second inclusion, all was well :-)

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Proto-Scripty] Re: How to prevent doubleclicking on links

2013-03-18 Thread Maciej Zaleski


Ok, thanks for your advice.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Proto-Scripty] Re: How to prevent doubleclicking on links

2013-03-15 Thread Maciej Zaleski


 Ok, seems to be fixed in about 80%.

   I added line ondblclick = javascript:location.reload() to my div,
and every time user is doubleclicking on menu, page doesn't break but 
its being refreshed instead.
It's not perfect solution but it works. If u have better one , plese write.





-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Proto-Scripty] Re: Prototype Ajax.Request POST failure in Internet Explorer 8

2013-03-15 Thread Rachid B.
Hi Parikshit Tiwari ,

Have you found a solution to this problem? I searched on the web for 2 days 
but I found nothing.
I'm completely stuck.

Thx



Le jeudi 6 décembre 2012 02:58:30 UTC+1, Parikshit Tiwari a écrit :

 epoch,
 How were you able to send the handshake? what did you do to send out 
 the handshake was it something in the json packet that caused the browser 
 to think that it was a response from the auth server? Please let me know, 
 because I am facing a similar issue with IE8 and my server also uses LDAP 
 server for authentication. 

 Thanks,
 Parik

 On Thursday, April 22, 2010 1:58:07 AM UTC-7, epoch wrote:

 Hi Again 

 I have finally completed my debugging session and found the problem, 
 the problem was the NTLM authentication, seems like IE 
 needs a handshake from the server when it sends the blank request, as 
 soon as i send the handshake, the original Ajax.Request gets executed 
 again automatically 

 So consider this question closed, hope this thread helps other people 
 aswell. 

 Cheers everyone 

 On Apr 21, 9:58 am, epoch williescho...@gmail.com wrote: 
  Hi Again 
  
  Just an update, i have done further debugging and have finally found 
  the problem after looking at the request headers with fiddler. 
  the problem is that our system uses LDAP, the server is challenged 
  with WWW-Authenticate at the login page only once. 
  
  now only in internet explorer if I wait more than 30 seconds IE seems 
  to add an Authorization header to the Prototype request and drops 
  the query string. 
  So in other words i do not think that this is a prototype error but 
  rather a server side error, i will now try to remove that header 
  before the request. 
  
  If anybody else has any input, please share. 
  
  Thanks guys! 
  
  On Apr 20, 4:12 pm, epoch williescho...@gmail.com wrote: 
  
  
  
   Hi Guys 
  
   This is my first post. firstly i would like to congratulate everyone 
   who helped make prototype awesome! 
  
   Secondly I have a very strange problem, I would consider myself very 
   well versed with Prototype (been using it more than one year) 
  
   It appears my ajax request's stop executing after 20-30 seconds of 
 the 
   previous ajax request (not page load). 
   I have debugged this and found out that prototype does indeed have 
 the 
   parameters and sends it successfully (without errors), but my server 
   side handler (a jsp) returns all request.getParameter(variable) 
   calls null. 
  
   if I then start clicking the button that makes the ajax request 
   quickly in succession, it starts receiving the parameters again? 
  
   this only happens when using the post method which in turn sends 
 using 
   xmlhttp.send(postBody). also if i manually append the parameters to 
   the url and use xmlhttp.send(null), everything works as expected 
  
   This only affects internet explorer, other browsers work perfectly. 
   this made me think that the underlying XMLHttpRequest object has a 
   problem. 
  
   Unfortuntally i do not have the neccesarry skill to continue 
 debugging 
   further. Can anyone please assist me with this? 
  
   here is a code example of how I can create the problem automatically 
   (with IE) : 
  
   var xu = function(o) { 
   new Ajax.Request('AjaxComponentServlet', { 
   parameters: { 
   action: 'TESTER ' + o + ' ' + new Date(), 
   random: Math.random() 
   }, 
   method: 'post' 
   }); 
   window.setTimeout('xu(' + (o + 1) + ')', (o*1)); 
   } 
  
   Event.observe(window, 'load', function() { 
   window.setTimeout('xu(1)', 1 * (1000 * 10)); 
   }); 
  
   -- 
   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-s...@googlegroups.com. 

   To unsubscribe from this group, send email to 
 prototype-scriptaculous+unsubscr...@googlegroups.com. 
   For more options, visit this group athttp://
 groups.google.com/group/prototype-scriptaculous?hl=en. 
  
  -- 
  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-s...@googlegroups.com. 
  To unsubscribe from this group, send email to 
 prototype-scriptaculous+unsubscr...@googlegroups.com. 
  For more options, visit this group athttp://
 groups.google.com/group/prototype-scriptaculous?hl=en. 

 -- 
 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-s...@googlegroups.com. 
 To unsubscribe from this group, send email to 
 prototype-scriptaculous+unsubscr...@googlegroups.com. 
 For more options, visit this group at 
 

Re: [Proto-Scripty] Re: Prototype Ajax.Request POST failure in Internet Explorer 8

2013-03-15 Thread Rachid B.
Hi Epoch,

I have the same problem with IE8. I use NTLM authentication. All my POST 
request are just ignored by the server.

Please what did you do to solve this ?

Thx.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Proto-Scripty] Re: How to prevent doubleclicking on links

2013-03-15 Thread Jason Westbrook
What you are probably detecting is not just the double click event but a
second click event that is delayed enough from the original click to cause
a new click event

so what I propose is to identify if you are currently running the click
handler then either stop() the 2nd event or return inside the handler




Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com


On Fri, Mar 15, 2013 at 4:38 AM, Maciej Zaleski mzjadame...@gmail.comwrote:


 Ok, seems to be fixed in about 80%.

I added line ondblclick = javascript:location.reload() to my div,
 and every time user is doubleclicking on menu, page doesn't break but
 its being refreshed instead.
 It's not perfect solution but it works. If u have better one , plese write.



  --
 You received this message because you are subscribed to the Google Groups
 Prototype  script.aculo.us group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to prototype-scriptaculous+unsubscr...@googlegroups.com.
 To post to this group, send email to
 prototype-scriptaculous@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/prototype-scriptaculous?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Proto-Scripty] Re: .morph has stopped working - it now says Object [object Object] has no method 'morph'

2013-03-14 Thread Gretsch
*Thanks Walter*
- by going through the issues top-down, as you suggested, I eventually 
uncovered the problem.
It wasn't in the page-code itself, but a result of an update to the site 
template - and there's a conflict between two types of effects - which I 
will now have to solve.
 
You also enlightened me to Firefoxes debugging, etc.  I wasn't using it, 
but will do now!
 
*Thanks Jason*
- you've highlighted my misunderstanding of how to link to scriptaculous 
libraries.  I'll re-read the instructions ;-!
 
.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Proto-Scripty] Re: inPlaceEditor changes from single line to multiline

2013-02-01 Thread yannis . rossetto
Hi Mr. Williams, I came across your code script and would like to adapt it 
to an open source project I'm involved-in. The project name is Tuleap and 
the website is http://Tuleap.net
Would it be ok for me to do so?
Thanks,

Yannis

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Proto-Scripty] Re: Toggle opacity

2013-01-23 Thread Köd
Thanks for your replies. I will look into them, though I have tried to get 
multiple to work - without success. I was wondering if you had read my post 
on stackoverflow? Maybe you could see if there was a different solution to 
my little issue, it's driving me mad!

Den onsdag den 23. januar 2013 13.48.43 UTC+1 skrev Köd:

 Hi guys
 *
 To get a full view of my problem, please read: 
 http://stackoverflow.com/questions/14478903/script-aculo-us-toggle-appear-on-multiple-divs
 *_

 *I have a simple question to ask you:*
 Is it possible to use effect.opacity as a toggle effect?

 The reason why I'm asking this is because when using effect.opacity the 
 assigned function can be spammed, hence making the div appear/fade over and 
 over. I was thinking that it might would be possible to do so by changing 
 something in the scriptaculous.js or effects.js file.


 If this is not possible, I would like to ask how you can use Effect.Toggle 
 (appear) on multiple div's within an a href containing an onclick. An 
 example:

 lia href=# onclick=Effect.toggle('DIV1, DIV2, DIV3', 'appear'); return 
 false;/a


 Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/4HT0A3QJPDYJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Toggle opacity

2013-01-23 Thread Köd
Thanks for the quick replies guys, I really appreciate it, +1 for that!

I was just wondering if you have read my post on stackoverflow? You might 
have a different way of handling this problem.

Anyway, I tried to use the Effect.multiple for Appear, without any luck. I 
guess I tried it completely wrong.. since I did something in the lines of:

a href=# 
onclick=Effect.multiple(['portfolioDiv','slideDiv'],function(el){Effect.toggle(el,'appear');});/a



Den onsdag den 23. januar 2013 13.48.43 UTC+1 skrev Köd:

 Hi guys
 *
 To get a full view of my problem, please read: 
 http://stackoverflow.com/questions/14478903/script-aculo-us-toggle-appear-on-multiple-divs
 *_

 *I have a simple question to ask you:*
 Is it possible to use effect.opacity as a toggle effect?

 The reason why I'm asking this is because when using effect.opacity the 
 assigned function can be spammed, hence making the div appear/fade over and 
 over. I was thinking that it might would be possible to do so by changing 
 something in the scriptaculous.js or effects.js file.


 If this is not possible, I would like to ask how you can use Effect.Toggle 
 (appear) on multiple div's within an a href containing an onclick. An 
 example:

 lia href=# onclick=Effect.toggle('DIV1, DIV2, DIV3', 'appear'); return 
 false;/a


 Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/4MbUaIo5pyoJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Toggle opacity

2013-01-23 Thread Köd
Guys!

It works! I don't know what was wrong with my code before - but I made the 
Effect.Multiple work, thanks for your guidance! Weee, now I can continue 
being happy :D

Den onsdag den 23. januar 2013 13.48.43 UTC+1 skrev Köd:

 Hi guys
 *
 To get a full view of my problem, please read: 
 http://stackoverflow.com/questions/14478903/script-aculo-us-toggle-appear-on-multiple-divs
 *_

 *I have a simple question to ask you:*
 Is it possible to use effect.opacity as a toggle effect?

 The reason why I'm asking this is because when using effect.opacity the 
 assigned function can be spammed, hence making the div appear/fade over and 
 over. I was thinking that it might would be possible to do so by changing 
 something in the scriptaculous.js or effects.js file.


 If this is not possible, I would like to ask how you can use Effect.Toggle 
 (appear) on multiple div's within an a href containing an onclick. An 
 example:

 lia href=# onclick=Effect.toggle('DIV1, DIV2, DIV3', 'appear'); return 
 false;/a


 Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/QXlygE0x3SIJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Toggle opacity

2013-01-23 Thread Köd
I did the following:

a href=# 
onclick=Effect.multiple(['portfolioDiv','slideDiv'],function(el){Effect.toggle(el,'appear');});

both of my divs had the obvious style=display:none

Using the same code to close them, since it's a toggle.

Den onsdag den 23. januar 2013 13.48.43 UTC+1 skrev Köd:

 Hi guys
 *
 To get a full view of my problem, please read: 
 http://stackoverflow.com/questions/14478903/script-aculo-us-toggle-appear-on-multiple-divs
 *_

 *I have a simple question to ask you:*
 Is it possible to use effect.opacity as a toggle effect?

 The reason why I'm asking this is because when using effect.opacity the 
 assigned function can be spammed, hence making the div appear/fade over and 
 over. I was thinking that it might would be possible to do so by changing 
 something in the scriptaculous.js or effects.js file.


 If this is not possible, I would like to ask how you can use Effect.Toggle 
 (appear) on multiple div's within an a href containing an onclick. An 
 example:

 lia href=# onclick=Effect.toggle('DIV1, DIV2, DIV3', 'appear'); return 
 false;/a


 Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/c-F-3vlBWAsJ.
To post to this group, send email to prototype-scriptaculous@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.



Re: [Proto-Scripty] Re: Object doesn't support property or method but then kinda works...

2013-01-17 Thread Phil Petree
Hi Greg!

Thanks for looking at this...

Turns out that if I remove the submit handler from the wizard class and
stop trapping the submit button it works just fine...

Not sure why this oddity is but it is and it works...

P~

On Wed, Jan 16, 2013 at 8:57 PM, greg i...@wildanimaltracks.com wrote:

 Off the top of my head, I think the target of your form should be the id
 of the iframe.

  --
 You received this message because you are subscribed to the Google Groups
 Prototype  script.aculo.us group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/prototype-scriptaculous/-/sJgH4TRvAu8J.
 To post to this group, send email to
 prototype-scriptaculous@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.


-- 
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 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.



[Proto-Scripty] Re: Object doesn't support property or method but then kinda works...

2013-01-16 Thread greg
Off the top of my head, I think the target of your form should be the id of 
the iframe.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/sJgH4TRvAu8J.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Re: Prototype itself throws errors in IE7

2013-01-16 Thread souprgenious
Thanks Lukas!  I somehow did the same thing and your post saved me pulling 
my hair out.  I am not sure how I included it twice but I did.

On Monday, August 29, 2011 3:37:52 AM UTC-4, Luke wrote:

 Ok, thank you guys but the problem was something different. It's almost 
 emberassing ^^. I simply included prototype.js twice. While every normal 
 Browser doesn't care, IE7 throws the above mentioned errors. Thanks though 
 for your responses and sorry for having wasted your time ;)

 Lukas


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/kAa-HnMJ9FkJ.
To post to this group, send email to prototype-scriptaculous@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.



Re: [Proto-Scripty] Re: event on leaving page

2013-01-10 Thread sreekala . a
I tried this code before window close.But again i get a pop up like  This 
page is asking you to confirm that you want to leave - data you have 
entered may not be saved.Two pop-ups are not needed.
window.onbeforeunload = function() {
var r=confirm(Are you sure you want to navigate away?);
if (r==false)
  {
 return false;
  }
 
 }



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/o0lXyGlNh4cJ.
To post to this group, send email to prototype-scriptaculous@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.



Re: [Proto-Scripty] Re: Future of Prototyp.js

2012-12-31 Thread Jason Westbrook
I was able to dig this one out of archive.org and I rewrote it a bit -
added a jsfiddle so that people can play with it etc


https://github.com/jwestbrook/Prototype.3DImageReflection


Just look at all of my github repos - they are all PrototypeJS libraries



Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com


On Sun, Dec 30, 2012 at 4:22 PM, Phil Petree phil.pet...@gmail.com wrote:

 Amen... that would definately be a good move!  There are a number of
 things on scripteka that are dead and gone (broken links)


 On Sun, Dec 30, 2012 at 5:37 PM, Victor vkhomyac...@gmail.com wrote:


 I'm actually planning on taking whatever is still available on scripteka
 and rehosting it on github so that others can find it, see examples of it
 working, post issues and comment on the scripts

 Good idea! Do you have something to show already? Examples and issue
 tracking sounds good.

 --
 You received this message because you are subscribed to the Google Groups
 Prototype  script.aculo.us group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/prototype-scriptaculous/-/OvY44Z4adecJ.
 To post to this group, send email to
 prototype-scriptaculous@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.


  --
 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 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.


-- 
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 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.



Re: [Proto-Scripty] Re: AJAX Tabs Widget

2012-12-31 Thread Phil Petree
Victor,

Thanks for the links... I'd already seen control.tabs and it doesn't appear
to support ajax (if it does its not documented and the api makes no
reference to it).

The one on sourceforge appears to be a fork of the control.tabs and also I
do see references to ajax in the source, it has no documentation or
examples and I'm afraid its beyond my abilities to decipher it.

The tabs.js I was using was working well but I hit a snag in it in that it
has no callback after the ajax onSuccess so I have no ability to trigger
other events... not sure what the workaround is... the author has an
afterOpen: callback but it doesn't get called on new tabs with an ajax load.

Not sure where I will go from here... may switch the entire project to
jq... may have to in order to meet the lauch date (2/1/2013) this seems
to be the sticking point however as all the other functionality is stubbed
in.



On Sun, Dec 30, 2012 at 4:49 PM, Victor vkhomyac...@gmail.com wrote:



 I'm now looking for/at tab controls that support ajax calls.  The few
 that I've found are pretty static in that you can assign tab A to a
 specific AJAX request but you have no ability to dynamically create/destroy
 tabs.


 LivePipe Control.Tabs: http://livepipe.net/control/tabs + somewhere on
 github is extended AJAXified version

 or (based on LivePipe, added possibility to load content into tab via AJAX
 request)

 http://javascripts.svn.sourceforge.net/viewvc/javascripts/javascripts/js.ui/js/ui/control.tabs.js?revision=322view=markup
 (it isn't self-sufficient, it requires CSS and other JS files from the
 same project - ask me for details if you want)

  --
 You received this message because you are subscribed to the Google Groups
 Prototype  script.aculo.us group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/prototype-scriptaculous/-/e6ESu2NmfY4J.
 To post to this group, send email to
 prototype-scriptaculous@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.


-- 
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 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.



[Proto-Scripty] Re: AJAX Tabs Widget

2012-12-30 Thread Victor
 

 I'm now looking for/at tab controls that support ajax calls.  The few that 
 I've found are pretty static in that you can assign tab A to a specific 
 AJAX request but you have no ability to dynamically create/destroy tabs.


LivePipe Control.Tabs: http://livepipe.net/control/tabs + somewhere on 
github is extended AJAXified version

or (based on LivePipe, added possibility to load content into tab via AJAX 
request)
http://javascripts.svn.sourceforge.net/viewvc/javascripts/javascripts/js.ui/js/ui/control.tabs.js?revision=322view=markup
(it isn't self-sufficient, it requires CSS and other JS files from the same 
project - ask me for details if you want)



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/e6ESu2NmfY4J.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: The buzz is MVC

2012-12-30 Thread Victor
Nobody answered... so I'll try to explain my point of view. In short words: 
I don't need full JavaScript MVC framework.

I am working on Java web applications (J2EE or Spring based, running on 
JBoss or Tomcat respectively). There are already MVC stacks on server side 
(Struts + JSP, JSF + XHTML, Wicket + HTML, Spring MVC etc.) - they have 
Java objects for Model, another Java objects for Controller, and HTML-based 
markup files for View which is rendered into HTML and returned to client. 
Another (pure JavaScript) MVC framework on client side is redundant - 
rendering of Model into View (HTML) is perfectly done on server.

Client needs Controller (to work with UI widgets) and part of Model (object 
identifiers etc.). Controller sends AJAX requests with needed parameters to 
the server, and server returns rendered HTML, which can be inserted into 
DOM, and optionally script with Model changes.

No Model to View rendering is done on the client side, all View templates 
are stored in HTML-based text files (JSP, HTML).

This way gives possibility to describe few basic AJAX workflow templates 
and implement them in single place using event delegation and single global 
observer 
(http://javascripts.svn.sourceforge.net/viewvc/javascripts/javascripts/js.ui/js/ui/behavior.ajaxify.js?revision=303view=markup):

1. User clicks on a link. AJAX request is sent to the server. Result is 
inserted into desired container. (AJAX tabs, product descriptions, gallery 
next/prev links etc.)
2. User clicks on a link. AJAX request is sent to the server. Result is 
shown in modal box (lightbox, full-sized images, dialogs).
3. User submits form. Submission is intercepted, form data is sent via 
AJAX. Result is inserted into desired container (votes, comments, etc.)

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/QnnQdDupFmYJ.
To post to this group, send email to prototype-scriptaculous@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.



Re: [Proto-Scripty] Re: Future of Prototyp.js

2012-12-30 Thread Victor



 I'm actually planning on taking whatever is still available on scripteka 
 and rehosting it on github so that others can find it, see examples of it 
 working, post issues and comment on the scripts

 Good idea! Do you have something to show already? Examples and issue 
tracking sounds good.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/OvY44Z4adecJ.
To post to this group, send email to prototype-scriptaculous@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.



Re: [Proto-Scripty] Re: Future of Prototyp.js

2012-12-30 Thread Phil Petree
Amen... that would definately be a good move!  There are a number of things
on scripteka that are dead and gone (broken links)

On Sun, Dec 30, 2012 at 5:37 PM, Victor vkhomyac...@gmail.com wrote:


 I'm actually planning on taking whatever is still available on scripteka
 and rehosting it on github so that others can find it, see examples of it
 working, post issues and comment on the scripts

 Good idea! Do you have something to show already? Examples and issue
 tracking sounds good.

 --
 You received this message because you are subscribed to the Google Groups
 Prototype  script.aculo.us group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/prototype-scriptaculous/-/OvY44Z4adecJ.
 To post to this group, send email to
 prototype-scriptaculous@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.


-- 
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 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.



[Proto-Scripty] Re: AJAX Tabs Widget

2012-12-28 Thread Phil Petree
I managed to get Rolands tabs.js to work.  Essentially I added another
parameter to the addPanel function called relationship and then used that
in the new Element(). After Roland adds the Panel (creates a new tab) he
calls openPanel which will inturn call the AJAX call back.  Once there it
was easy to supply an AJAX script which then worked just like an existing
tab... actually pretty cool.

On Fri, Dec 28, 2012 at 10:10 AM, Phil Petree phil.pet...@gmail.com wrote:

 Hi All!

 I'm now looking for/at tab controls that support ajax calls.  The few that
 I've found are pretty static in that you can assign tab A to a specific
 AJAX request but you have no ability to dynamically create/destroy tabs.

 Think of the problem like this: you have a list of items (kits) and you
 want to view the contents of one of these kits so you click on the kit name
 and a user would expect a new tab to open and the contents of the kit to be
 displayed. The contents of the new tab will be a list of parts. Users will
 want to have more than one kit open at a time and, obviously, you don't
 want to download the contents of 10,000 kits.

 Another, simplier example might be like an inbox that list your emails and
 when you want to view one you click it and a new tab opens displaying the
 contents of the email.

 I found a great implementation by Rolan Franssen located here:
 http://roland.devarea.nl/work/tabs/
 and you can easily assign ajax calls to tabs, dynamically create / delete
 tabs etc. which is perfect for what I need except for one small, seemingly
 simple thing... I can't figure out how to get it to create a tab AND load
 the content via an ajax request and his code is a little out of my league.

 Does anyone know of a good tab control that can do this or has anyone
 modified Rolands code to do this?

 Thanks!

 Pete
 P.S. http://scripteka.com/ seems broken just like Walters scroll bars
 were... using ie9, you can't scroll the widgets list down.





-- 
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 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.



[Proto-Scripty] Re: Cast a Class to Object

2012-12-20 Thread petrob
A class instance is an object, the result of the process when a Class is 
instantiated. I don't understand your question! Do you want to do something 
to a defined class constructor, or what?

2012. december 19., szerda 7:57:52 UTC+1 időpontban kstubs a következőt 
írta:

 Is there any way to take an insantiated Class and cast it to an Object?

 Karl..


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/BitAX2ZlhW8J.
To post to this group, send email to prototype-scriptaculous@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.



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

2012-12-20 Thread MadDog
Bumping this. I am using 1.7. I have tried using writeAttribute on a single 
html element and seems to be doing the same thing mentioned. This only 
happens after I actually click on the checkbox if a refresh the page it 
works as normal, but once I click it stops working.

Here is my code:

$('adminSubContractorPopActiveInput').writeAttribute({checked:jsonSubContractor['active']});
'active' is a boolean

got around this by doing this:
$('adminSubContractorPopActiveInput').checked = jsonSubContractor['active'];

Why would the first not work? Second works even after clicking on element.

Any help would br appreciated.

On Thursday, September 9, 2010 8:31:38 AM UTC-5, RQuadling wrote:

 Hi.

 I'm having all sorts of fun with dynamically setting the check in a 
 checkbox.

 Which way should I do things?

 Initially I thought something like this should work.

 $$('#container label
 input[type=checkbox][checked]').invoke('writeAttribute', 'checked',
 false);

 It doesn't.

 Instead it seems I have to ...

 $$('#container label

 input[type=checkbox]').findAll(function(el){!!el.checked;}).each(function(el{el.checked
 = false;});

 Having worked out this setting the grid became a LOT easier ...

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

 Any ideas what is happening?
 -- 
 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 view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/5pT1usKQb5sJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Maybe missing an other document observe listener?

2012-12-20 Thread tab1ta
*I should probably add*...

Il giorno giovedì 20 dicembre 2012 22:29:41 UTC+1, tab1ta ha scritto:

 The code of the page is a bit confusing cause i made it by myself, but 
 anyway, i have to make the mouseover and the mouseout event work together 
 so i should probably had an event listener.
 Without it i tried to make it work but without success. 
 The code is below:

 ?php
 require_once(tabs.php);
 ?
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
 head
 style type=text/css
 @import url(styles.css);
   /style
   script type=text/javascript src=
 http://ajax.googleapis.com/ajax/libs/prototype/1.7/prototype.js;/script
   script type=text/javascript
   function showResult1()
 {

$('thing_1').replace('div id=thing_1 class=gallerylinkpa href=
 http://tinyurl.com/cwtt2yq;See Photo/a/p/div');
  
 }
   function showResult2()
 {

$('thing_2').replace('div id=thing_2 class=gallerylinkpa href=
 http://tinyurl.com/cwtt2yq;See Photo/a/p/div');
  
 }
   function showResult3()
 {

$('thing_3').replace('div id=thing_3 class=gallerylinkpa href=
 http://tinyurl.com/cwtt2yq;See Photo/a/p/div');
  
 }
   function showResult4()
 {

$('thing_4').replace('div id=thing_4 class=gallerylinkpa href=
 http://tinyurl.com/cwtt2yq;See Photo/a/p/div');
  
 }
   function showResult5()
 {

$('thing_5').replace('div id=thing_5 class=gallerylinkpa href=
 http://tinyurl.com/cwtt2yq;See Photo/a/p/div');
  
 }
   function showResult6()
 {

$('thing_6').replace('div id=thing_6 class=gallerylinkpa href=
 http://tinyurl.com/cwtt2yq;See Photo/a/p/div');
  
 }

 function hideResult1()
 {
 $('thing_1').replace('img id=thing_1 class=galleryitem 
 src=images/gallery1.jpg.jpg onmouseover=showResult1(); 
 style=position:relative; top:0px; left: 0px;/');
 }
 function hideResult2()
 {
 $('thing_2').replace('img id=thing_2 class=galleryitem 
 src=images/3188832812_573db43c7d.jpg onmouseover=showResult2();/');
 }
 function hideResult3()
 {
 $('thing_3').replace('img id=thing_3 class=galleryitem 
 src=images/3188858500_3437070b8f.jpg onmouseover=showResult3();/');
 }
 function hideResult4()
 {
 $('thing_4').replace('img id=thing_4 class=galleryitem 
 src=images/3188063503_e2b752444f.jpg onmouseover=showResult4();/');
 }
 function hideResult5()
 {
 $('thing_5').replace('img id=thing_5 class=galleryitem 
 src=images/3188039487_5fa50f0d02.jpg onmouseover=showResult5();/');
 }
 function hideResult6()
 {
 $('thing_6').replace('img id=thing_6 class=galleryitem 
 src=images/3188061317_d7a4bb7c27.jpg onmouseover=showResult6();/');
 }
 /script
 titlePython Speculative Interface/title

 /head
 body
 
 
 div class=maindiv id=header
 ?php tabs_start(); ?div class=main
 img class=logo src=images/psi.png //div
 ?php tab( Concept); ?
 
 div class=containere
 div class=boxtab
 form action=
 http://joy.indivia.net/py/cgi-bin/OOpoetry.cgi; method=get

 hPython from a theoretical point of view/h
 pThis interface aims to show and explain some 
 communicative and theoretical aspects 
 inscribed in the mechanisms behind a programming 
 language. The programming language named 
 Python is useful to achieve this goal as it provides 
 an interpreter but it can even run 
 source code as object code./p
 pIf you search for a command of the python 
 programming language in the form below you 
 will get the description of the logical and 
 communicative process executed by it in the 
 machine. The explanation can be of a logical, 
 mathematical or semiological nature./p
 p This is an attempt to enhance python programming 
 language as a signifying language, 
 which can execute not only algebrical processes but 
 even what could be defined as meaning./pbr /
 p
 input id=example name=stringx value=type 
 here/nbsp;nbsp;input id=submit type=submit 
 value=search//form/p
 /div
 ?php tab( Wiki ); ?
 img class=logo src=images/psi.png /
 div class=main
 div class=containere
 div class=boxtab
 hDiscussing about code and poetry/h
 pThe various aspects of python programming language, 
 and more in general of the object 
 oriented programming paradigm as a poetry, are 
 discussed inside this 
 a href=http://joy.indivia.net/wiki/index.php
 wiki/a/p
 

Re: [Proto-Scripty] Re: Prototype Ajax.Request POST failure in Internet Explorer 8

2012-12-16 Thread Parikshit Tiwari
epoch,
How were you able to send the handshake? what did you do to send out 
the handshake was it something in the json packet that caused the browser 
to think that it was a response from the auth server? Please let me know, 
because I am facing a similar issue with IE8 and my server also uses LDAP 
server for authentication. 

Thanks,
Parik

On Thursday, April 22, 2010 1:58:07 AM UTC-7, epoch wrote:

 Hi Again 

 I have finally completed my debugging session and found the problem, 
 the problem was the NTLM authentication, seems like IE 
 needs a handshake from the server when it sends the blank request, as 
 soon as i send the handshake, the original Ajax.Request gets executed 
 again automatically 

 So consider this question closed, hope this thread helps other people 
 aswell. 

 Cheers everyone 

 On Apr 21, 9:58 am, epoch williescho...@gmail.com wrote: 
  Hi Again 
  
  Just an update, i have done further debugging and have finally found 
  the problem after looking at the request headers with fiddler. 
  the problem is that our system uses LDAP, the server is challenged 
  with WWW-Authenticate at the login page only once. 
  
  now only in internet explorer if I wait more than 30 seconds IE seems 
  to add an Authorization header to the Prototype request and drops 
  the query string. 
  So in other words i do not think that this is a prototype error but 
  rather a server side error, i will now try to remove that header 
  before the request. 
  
  If anybody else has any input, please share. 
  
  Thanks guys! 
  
  On Apr 20, 4:12 pm, epoch williescho...@gmail.com wrote: 
  
  
  
   Hi Guys 
  
   This is my first post. firstly i would like to congratulate everyone 
   who helped make prototype awesome! 
  
   Secondly I have a very strange problem, I would consider myself very 
   well versed with Prototype (been using it more than one year) 
  
   It appears my ajax request's stop executing after 20-30 seconds of the 
   previous ajax request (not page load). 
   I have debugged this and found out that prototype does indeed have the 
   parameters and sends it successfully (without errors), but my server 
   side handler (a jsp) returns all request.getParameter(variable) 
   calls null. 
  
   if I then start clicking the button that makes the ajax request 
   quickly in succession, it starts receiving the parameters again? 
  
   this only happens when using the post method which in turn sends using 
   xmlhttp.send(postBody). also if i manually append the parameters to 
   the url and use xmlhttp.send(null), everything works as expected 
  
   This only affects internet explorer, other browsers work perfectly. 
   this made me think that the underlying XMLHttpRequest object has a 
   problem. 
  
   Unfortuntally i do not have the neccesarry skill to continue debugging 
   further. Can anyone please assist me with this? 
  
   here is a code example of how I can create the problem automatically 
   (with IE) : 
  
   var xu = function(o) { 
   new Ajax.Request('AjaxComponentServlet', { 
   parameters: { 
   action: 'TESTER ' + o + ' ' + new Date(), 
   random: Math.random() 
   }, 
   method: 'post' 
   }); 
   window.setTimeout('xu(' + (o + 1) + ')', (o*1)); 
   } 
  
   Event.observe(window, 'load', function() { 
   window.setTimeout('xu(1)', 1 * (1000 * 10)); 
   }); 
  
   -- 
   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-s...@googlegroups.comjavascript:. 

   To unsubscribe from this group, send email to 
 prototype-scriptaculous+unsubscr...@googlegroups.com javascript:. 
   For more options, visit this group athttp://
 groups.google.com/group/prototype-scriptaculous?hl=en. 
  
  -- 
  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-s...@googlegroups.comjavascript:. 

  To unsubscribe from this group, send email to 
 prototype-scriptaculous+unsubscr...@googlegroups.com javascript:. 
  For more options, visit this group athttp://
 groups.google.com/group/prototype-scriptaculous?hl=en. 

 -- 
 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-s...@googlegroups.comjavascript:. 

 To unsubscribe from this group, send email to 
 prototype-scriptaculous+unsubscr...@googlegroups.com javascript:. 
 For more options, visit this group at 
 http://groups.google.com/group/prototype-scriptaculous?hl=en. 



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this 

[Proto-Scripty] Re: Prototype test cases

2012-12-10 Thread Ahmed Ashour
Hi all,

Were the Prototype test cases removed?

Ahmed


On Wednesday, November 21, 2012 2:04:29 PM UTC+3, Ahmed Ashour wrote:

 Hi all,

 I built Prototype 1.7.1 and tried to execute the test cases, however there 
 is no HTML in /test/unit as hinted in http://prototypejs.org/contribute

 Appreciate your response,

 Ahmed


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/eHmVKP26nWkJ.
To post to this group, send email to prototype-scriptaculous@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.



Re: [Proto-Scripty] Re: Future of Prototyp.js

2012-12-02 Thread Jason Westbrook
I'm actually planning on taking whatever is still available on scripteka
and rehosting it on github so that others can find it, see examples of it
working, post issues and comment on the scripts

Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com



On Sat, Dec 1, 2012 at 7:21 AM, kstubs kst...@gmail.com wrote:

 ..and related to all of this is a site like this:
 http://scripteka.com

 Where a ton of the script that use to be available, well the
 underlying/host site for the code have dropped off the WWW universe.
 Very sad :(  A lot of broken links.

 Karl..


 On Saturday, December 1, 2012 6:54:42 AM UTC-7, isurge wrote:

 We let our IE 6 clients go.

 On 12/1/12 1:48 AM, petrob wrote:
  I understood why a lot of companies still insist on using IE6 when at
  a large hypermarket chain the accounting staff pointed out that their
  very expensive accounting software can only be run on IE6 or on IE9+.
  The cost efficient solution for them is to go on running their legal
  copies of XP on some hundreds of computers with IE6 and ban any
  acive-x objects and script (java, javascript, flash etc) on the
  company server. So, it is the operating system that is behind the
  longevity of IE in the corporate field and , unfortunately, it will
  remain the same for a long time.
  --
  You received this message because you are subscribed to the Google
  Groups Prototype  script.aculo.us group.
  To view this discussion on the web visit
  https://groups.google.com/d/**msg/prototype-scriptaculous/-/**
 --r_rxEpnswJhttps://groups.google.com/d/msg/prototype-scriptaculous/-/--r_rxEpnswJ.

  To post to this group, send email to
  prototype-s...@**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=enhttp://groups.google.com/group/prototype-scriptaculous?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Prototype  script.aculo.us group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/prototype-scriptaculous/-/mmHzcI7zWxMJ.

 To post to this group, send email to
 prototype-scriptaculous@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.


-- 
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 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.



[Proto-Scripty] Re: Prototype old documentation

2012-12-01 Thread petrob
The old documentation must have just been replace by the new one... The 
bigger problem is that the most recent one is still far the weakest part of 
the whole project, as it is laconic, incomplete, even faulty in some cases 
and it does not encourage any deeper understanding of the code base.  Just 
search for some keywords like 'error tickets / mistakes in the code base / 
in the documentation', and the like, and you will be quickly up-to date 
about it, but I will leave it now...

The need for using the $break object is based on how iteration is handled 
in Prototype in the 'each' method where any iterator functions are passed 
on to be called in the _each method in a  try- catch structure. 
In this way any errors in any bad function calls at any depth are caught by 
the high level catch branch.. Because the native boiler- plate iteration 
always only takes place in the high-level scope of the  _each method, you 
will get an error if you try to call the break command in an embedded 
method to try to step out of the high-level loop as there is no iteration 
taking place in that deeper scope, at all. Instead, Prototype throws a 
special error object to do exactly that.

In the any method - for instance- 
/*...cut...*/
this.each(function(value, index) {
  if (result = !!iterator.call(context, value, index, this))
throw $break;
}, this);
/*...cut..*/
the $break object is thrown when the iterator function returns a boolean 
true value for the first element. The loop is broken and the result 
variable is returned. In the catch branch of each the special $break error 
object is recognized and evaluated to do nothing then.
catch (e) {
  if (e != $break) throw e;
}


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/0YxJECvdIr8J.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Future of Prototyp.js

2012-12-01 Thread petrob
I understood why a lot of companies still insist on using IE6 when at a 
large hypermarket chain the accounting staff pointed out that their very 
expensive accounting software can only be run on IE6 or on IE9+. The cost 
efficient solution for them is to go on running their legal copies of XP on 
some hundreds of computers with IE6 and ban any acive-x objects and script 
(java, javascript, flash etc) on the company server. So, it is the 
operating system that is behind the longevity of IE in the corporate field 
and , unfortunately, it will remain the same for a long time.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/--r_rxEpnswJ.
To post to this group, send email to prototype-scriptaculous@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.



Re: [Proto-Scripty] Re: Future of Prototyp.js

2012-12-01 Thread James Brake

We let our IE 6 clients go.

On 12/1/12 1:48 AM, petrob wrote:
I understood why a lot of companies still insist on using IE6 when at 
a large hypermarket chain the accounting staff pointed out that their 
very expensive accounting software can only be run on IE6 or on IE9+. 
The cost efficient solution for them is to go on running their legal 
copies of XP on some hundreds of computers with IE6 and ban any 
acive-x objects and script (java, javascript, flash etc) on the 
company server. So, it is the operating system that is behind the 
longevity of IE in the corporate field and , unfortunately, it will 
remain the same for a long time.

--
You received this message because you are subscribed to the Google 
Groups Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/--r_rxEpnswJ.
To post to this group, send email to 
prototype-scriptaculous@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.


--
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 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.



Re: [Proto-Scripty] Re: Future of Prototyp.js

2012-12-01 Thread kstubs
..and related to all of this is a site like this:
http://scripteka.com

Where a ton of the script that use to be available, well the 
underlying/host site for the code have dropped off the WWW universe.
Very sad :(  A lot of broken links.

Karl..

On Saturday, December 1, 2012 6:54:42 AM UTC-7, isurge wrote:

 We let our IE 6 clients go. 

 On 12/1/12 1:48 AM, petrob wrote: 
  I understood why a lot of companies still insist on using IE6 when at 
  a large hypermarket chain the accounting staff pointed out that their 
  very expensive accounting software can only be run on IE6 or on IE9+. 
  The cost efficient solution for them is to go on running their legal 
  copies of XP on some hundreds of computers with IE6 and ban any 
  acive-x objects and script (java, javascript, flash etc) on the 
  company server. So, it is the operating system that is behind the 
  longevity of IE in the corporate field and , unfortunately, it will 
  remain the same for a long time. 
  -- 
  You received this message because you are subscribed to the Google 
  Groups Prototype  script.aculo.us group. 
  To view this discussion on the web visit 
  https://groups.google.com/d/msg/prototype-scriptaculous/-/--r_rxEpnswJ. 
  To post to this group, send email to 
  prototype-s...@googlegroups.com javascript:. 
  To unsubscribe from this group, send email to 
  prototype-scriptaculous+unsubscr...@googlegroups.com javascript:. 
  For more options, visit this group at 
  http://groups.google.com/group/prototype-scriptaculous?hl=en. 



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/mmHzcI7zWxMJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Prototype old documentation

2012-12-01 Thread kstubs
This is the link to the old documentation, which has been available for a 
long time but is no longer available
http://prototypejs.org/api

What I like more about the old documentation was there were better examples 
inline with the API code.  The new API, albeit a much better interface, is 
suited more for advanced coders I think.  

Now, having said that, there looks like some additional work has been done 
to these pages:
http://prototypejs.org/learn/

I have been working on an icon factory helper script, which, given an icon 
image sprite lets you pick an icon and gives you back the correct static 
icon factory get method for use in your code, and well I found the *Measuring 
Elements and Offsets* section very useful!
I think we should focus on expanding these articles and I think the API 
should reference these articles wherever possible.  

Karl..

On Saturday, December 1, 2012 2:17:24 AM UTC-7, petrob wrote:

 The old documentation must have just been replace by the new one... The 
 bigger problem is that the most recent one is still far the weakest part of 
 the whole project, as it is laconic, incomplete, even faulty in some cases 
 and it does not encourage any deeper understanding of the code base.  Just 
 search for some keywords like 'error tickets / mistakes in the code base / 
 in the documentation', and the like, and you will be quickly up-to date 
 about it, but I will leave it now...

 The need for using the $break object is based on how iteration is handled 
 in Prototype in the 'each' method where any iterator functions are passed 
 on to be called in the _each method in a  try- catch structure. 
 In this way any errors in any bad function calls at any depth are caught 
 by the high level catch branch.. Because the native boiler- plate iteration 
 always only takes place in the high-level scope of the  _each method, you 
 will get an error if you try to call the break command in an embedded 
 method to try to step out of the high-level loop as there is no iteration 
 taking place in that deeper scope, at all. Instead, Prototype throws a 
 special error object to do exactly that.

 In the any method - for instance- 
 /*...cut...*/
 this.each(function(value, index) {
   if (result = !!iterator.call(context, value, index, this))
 throw $break;
 }, this);
 /*...cut..*/
 the $break object is thrown when the iterator function returns a boolean 
 true value for the first element. The loop is broken and the result 
 variable is returned. In the catch branch of each the special $break error 
 object is recognized and evaluated to do nothing then.
 catch (e) {
   if (e != $break) throw e;
 }




-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/PpEtc7HOjkQJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: domo and protoype.js

2012-11-26 Thread kstubs
Agreed!  I'm not too keen on this idea but have been searching for a 
solution to better encapsulate my code and assets.  I do not consider domo 
the answer, but was an interesting idea.
Something we are doing in prototype with the Template class does put HTML 
markup directly into the JS code.  I am trying to mediate this though by 
collecting all of my template markup in a separate JS namespaced object. 
 This is helping a lot.  And if you don't mind inline style markup in the 
result, you can do the same thing, keep all of your style together in a 
separate JS object.

Karl..



On Tuesday, November 20, 2012 2:53:18 AM UTC-7, Victor wrote:

 Domo

 http://domo-js.com/


 From the J2EE developer's point of view it looks like return back to 
 2000s, to Servlets and tons of HTML/CSS markup in code. IMHO all advanced 
 Java developers agree that moving HTML markup from Java code into separate 
 JSP files was great step forward.



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/vCndJz-CfJAJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: setStyle after clonePosition not working

2012-11-26 Thread kstubs
I appreciate the follow up petrob.  I am not new to Prototype, I've been 
using if for 3-4 years now.
Yes, I have stepped through the code, have invoked setStyle from the 
console, etc.. to no evail.   
This particular issue has slipped away a bit, when it comes around again 
and is high priority I will put together that sample code and investigate 
further.

Karl..

On Friday, November 16, 2012 2:18:56 AM UTC-7, petrob wrote:

 Ok.Yes, I have made mistakes in my code that caused Prototype methods not 
 to work. Prototype methods do not work on unextended elements - if you lose 
 the reference to your element in a variable, for whatever reason-, if you 
 try to call element methods on non-elements, or you are calling an element 
 method with a typo in the argument, for instance. Have you checked all 
 these by placing break points in firebug at some critical points in your 
 code? Do you get any error messages in the console? Have you tried setting 
 some style properties on your element directly through the native style 
 declaration object? I would do this latter one first!
 There are always people here to help beginners (in Prototype!)  out if 
 they see an effort.



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/VnYxXpYW_QIJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Future of Prototyp.js

2012-11-26 Thread kstubs
Great followup T.J., much appreciated.

On Sunday, October 21, 2012 12:06:02 AM UTC-7, T.J. Crowder wrote:

 On Sunday, 23 October 2011 17:43:39 UTC+1, T.J. Crowder wrote:

 Hi, 

 On Oct 23, 5:35 pm, wwwboy www...@pochta.ru wrote: 
  With the speed of which modern browsers release updates and move toward 
 HTML5 - 
  I think there will be no significant differences between them in a 
 year. 
  IE8 will not be alive in a year in the light of Windows8 with IE10 and 
 canceling 
  support XP - so there will be IE9 and IE10 which a close to other 
 browsers. 

 I think you're being very optimistic there, particularly with regard 
 to how quickly Windows users will upgrade. 


 And here we are, a year later, and guess what? IE8 still has more market 
 share (24%) than IE9 (20%). :-)

 http://marketshare.hitslink.com/browser-market-share.aspx?qprid=2qpcustomd=0

 -- T.J.


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/w1I0Q58Fr9QJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: domo and protoype.js

2012-11-26 Thread Marc
At Mad Mimi I created an extension to Template which looks something like 
this:

Template.from = function(id) {
  if(!$(id)) {
console.warn(Missing template for  + id);
  } else {
return new Template($(id).innerHTML.replace(/%23%7B(.*)%7D/g, #{$1}));
  }
};

Then in your HTML you'd have script blocks that look something like this:

script id=my_template type=text/template
  This is a #{template}.
/script

And in your JS you'd simply go:

Template.from('my_template').evaluate({ template: Template in my HTML 
where it should be });

-- Marc

On Monday, November 26, 2012 5:57:27 PM UTC+2, kstubs wrote:

 Agreed!  I'm not too keen on this idea but have been searching for a 
 solution to better encapsulate my code and assets.  I do not consider domo 
 the answer, but was an interesting idea.
 Something we are doing in prototype with the Template class does put HTML 
 markup directly into the JS code.  I am trying to mediate this though by 
 collecting all of my template markup in a separate JS namespaced object. 
  This is helping a lot.  And if you don't mind inline style markup in the 
 result, you can do the same thing, keep all of your style together in a 
 separate JS object.

 Karl..



 On Tuesday, November 20, 2012 2:53:18 AM UTC-7, Victor wrote:

 Domo

 http://domo-js.com/


 From the J2EE developer's point of view it looks like return back to 
 2000s, to Servlets and tons of HTML/CSS markup in code. IMHO all advanced 
 Java developers agree that moving HTML markup from Java code into separate 
 JSP files was great step forward.



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/bBsjG76ML9gJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Safe way to access head style element

2012-11-21 Thread kstubs
Excellent.  Thanks for the replies.


On Tuesday, November 20, 2012 3:07:44 AM UTC-7, Victor wrote:

 Get head element in pure JS:
 var head = document.head || document.getElementsByTagName(head)[0];

 Get first style element in pure JS:
 var style = document.getElementsByTagName(style)[0];

 Get first style element in Prototype JS:
 var style = $$(style).first();

 Modification of text in existing style element IMHO may be different in IE 
 and W3C-compliant browsers - IE can modify content of style via property 
 style.styleSheet.cssText, W3C browsers via DOM style.childNodes[0] or 
 property style.innerText.



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/fPSf-7xkKN0J.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: domo and protoype.js

2012-11-20 Thread Victor
Domo

 http://domo-js.com/


From the J2EE developer's point of view it looks like return back to 2000s, 
to Servlets and tons of HTML/CSS markup in code. IMHO all advanced Java 
developers agree that moving HTML markup from Java code into separate JSP 
files was great step forward.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/OZ8N-sCXLCwJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: domo and protoype.js

2012-11-16 Thread Victor
What is domo? Share a link please.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/_0QkXgH3wG4J.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: setStyle after clonePosition not working

2012-11-16 Thread petrob
Ok.Yes, I have made mistakes in my code that caused Prototype methods not 
to work. Prototype methods do not work on unextended elements - if you lose 
the reference to your element in a variable, for whatever reason-, if you 
try to call element methods on non-elements, or you are calling an element 
method with a typo in the argument, for instance. Have you checked all 
these by placing break points in firebug at some critical points in your 
code? Do you get any error messages in the console? Have you tried setting 
some style properties on your element directly through the native style 
declaration object? I would do this latter one first!
There are always people here to help beginners (in Prototype!)  out if they 
see an effort.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/UCFqtqFJkVgJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: domo and protoype.js

2012-11-16 Thread kstubs
Domo
http://domo-js.com/

I'm also looking at Eyeballs and Choco as possible, MVC like, frameworks to 
sit on top of Prototype.

https://github.com/paulca/eyeballs.js
https://github.com/ahe/choco

On Friday, November 16, 2012 2:08:23 AM UTC-7, Victor wrote:

 What is domo? Share a link please.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/YYeBItP3oowJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: domo and protoype.js

2012-11-16 Thread kstubs
Here's sample code:
http://pastie.org/5388646

On Friday, November 16, 2012 8:28:33 AM UTC-7, kstubs wrote:

 Domo
 http://domo-js.com/

 I'm also looking at Eyeballs and Choco as possible, MVC like, frameworks 
 to sit on top of Prototype.

 https://github.com/paulca/eyeballs.js
 https://github.com/ahe/choco

 On Friday, November 16, 2012 2:08:23 AM UTC-7, Victor wrote:

 What is domo? Share a link please.



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/e3NTJdLi2KMJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: setStyle after clonePosition not working

2012-11-15 Thread kstubs
 if these are all right, provide a minimal-case code snippet that represents 
 the problem
 not expect other people to do all the job for you..

I was merely looking for verification on the behavior of the two methods in 
code, and wondering if anyone else had experienced similar.
Man I hate forum bashing.

At any rate: I'll try and get a sample together.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/ngXIRo80HKAJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: setStyle after clonePosition not working

2012-11-14 Thread petrob
The clone position method and setting style properties on an element have 
nothing to do with each -other.
Could you:

use firebug to place break points in your code to see the values of your 
variables before / on / after using these methods!
if these are all right, provide a minimal-case code snippet that represents 
the problem
not expect other people to do all the job for you..


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/BGL90LW3sgEJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Getting prototype javascript issue on Googl chrome - ripple emulator

2012-11-12 Thread Victor
Is your code working in Chrome and other browsers? IMHO error is not in 
Prototype - all tests and code for document.getElementsByClassName work in 
Ripple emulator. Maybe you are invoking document.getElementsByClassName() 
for wrong or non-existent object (not HTML element).

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/Wb3MuOgsz4kJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Customization event on click and when there is no characters

2012-11-09 Thread Victor
Try to format your code. It's an unreadable mess. Or, even better, try to 
make working example on jsfiddle.net.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/XL9k96yH4IQJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Getting prototype javascript issue on Googl chrome - ripple emulator

2012-11-09 Thread Victor
Which platform/runtime you have selected in Ripple?

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/Ap1D4ILwyLAJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Getting prototype javascript issue on Googl chrome - ripple emulator

2012-11-09 Thread Victor
document.body.getElementsByTagName exists in Ripple. Can you give more 
details (stack trace, small code sample etc.)?

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/zR7VhA2gyqcJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Getting prototype javascript issue on Googl chrome - ripple emulator

2012-11-09 Thread Victor
Which version of Prototype you use? As far as I can see almost all unit 
tests pass on this emulator. Maybe error is in your code.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/LhvTeIQ0TWMJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: anyone experiencing issues in IE10

2012-11-09 Thread Victor
1. Fix all markup errors (check in W3C validator).
2. Place CSS links before any scripts.
3. Move all scripts from onload, onmouseout and other attributes into 
script.
4. Move that script into separate file.
5. Do not use document.images, document.layers, document.forms. Use $() 
instead of document.getElementById(). Learn Prototype.

My Prototype 1.7 applications work fine in IE10 (as in all other Grade A 
browsers).

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/niQcB1qKBtMJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Old 1.6.1 library

2012-11-09 Thread Victor
Sizzle may need to escape special chars in CSS selector like this 
'[ui\:draggable=true]' or '[ui\\:draggable=true]' - not sure about 
count of backslashes, but I've already met similar error in Sizzle.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/hh5YibA7fxwJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Future of Prototyp.js

2012-10-21 Thread T.J. Crowder
On Sunday, 23 October 2011 17:43:39 UTC+1, T.J. Crowder wrote:

 Hi, 

 On Oct 23, 5:35 pm, wwwboy www...@pochta.ru wrote: 
  With the speed of which modern browsers release updates and move toward 
 HTML5 - 
  I think there will be no significant differences between them in a year. 
  IE8 will not be alive in a year in the light of Windows8 with IE10 and 
 canceling 
  support XP - so there will be IE9 and IE10 which a close to other 
 browsers. 

 I think you're being very optimistic there, particularly with regard 
 to how quickly Windows users will upgrade. 


And here we are, a year later, and guess what? IE8 still has more market 
share (24%) than IE9 (20%). :-)
http://marketshare.hitslink.com/browser-market-share.aspx?qprid=2qpcustomd=0

-- T.J.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/mbafvlZ3-egJ.
To post to this group, send email to prototype-scriptaculous@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.



Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-18 Thread Peter Sysko
Thanks Dave, I'm still not sure why my visible() comparison wrapper was 
registering as null when i originally first attempted to perform the 
functions, because that looks something like what I first tried.

Thanks again to Jason suggestions to use a Hash, I have since modified the 
interface to utilize two hashes, one for the systems, and one for the 8 
modules of each system. the relatively stable navigational interface is 
working mostly how I want it now. http://monkeypanelcom/demo

Sm:)e

On Tuesday, October 16, 2012 1:30:17 AM UTC-4, DaveK wrote:

 To answer your OP directly (not sure if it has been, I didn't notice it). 

open_div = 'system'+k+''; 
... 
if ($(open_div).visible()==true) { 

 if there is no item with id 'system'+k then $(open_div) returns null 
 (correctly) and so $(open_div).visible() throws an error. (for example 
 if nothing has id='system123' then when k-123 the error wiil throw) 

 You can avoid it with: 

if ($(open_div)) { 
if ($(open_div).visible()==true) { 


 Dave 


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/k3nbGQ3PkhgJ.
To post to this group, send email to prototype-scriptaculous@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.



Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-18 Thread Peter Sysko


  http://monkeypanel.com/demo http://monkeypanel.com/demo oops.. a dot 
 usually works before the 'com'  hehe



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/MOTNWle-MywJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Peter Sysko
Thanks for the suggestion, Jason. Most people don't run into this problem 
because they do not deal with dynamically assigned div ids from javascript 
variables. I found for what i am doing it was the most efficient way to go 
about referencing the divs. otherwise, switch statements with 33 cases 
would have to do, and that was pretty intensive.

It does appear that the $(element) wrapper doesn't play nice at all with 
javascript variables, you actually have to put the quotes exactly as they 
appear on the div. (unless I am still doing it wrong).. i tried .toString 
functions, parseInt's, double quotes, single quotes, with and without the 
$wrapers, etc.. and finally I looked into the prototype.js script and the 
visible method is really simple, just checks if the display: property of 
the style attribute is set to none and returns a boolean value, so the 
workaround is to get the element with the document.getElementbyID (which*does 
*work fine with javasscript variable as the ID), and do the conditional 
statement custom. In the process of researching this bug I made a series of 
alternative functions as a different way to skin the cat. Currently they 
keep track of which systems are closed, minimized or unopen with some 
innerHTML in a hidden div that references the index (100-133) with the 
letter U, M or O, then rewrites the entire string when it changes.
the initial div looks like this: (all systems unopened):

div id=mb_system_state_references 
style=display:none;100=U:101=U:102=U:103=U:104=U:105=U:106=U:107=U:108=U:109=U:110=U:111=U:112=U:113=U:114=U:115=U:116=U:117=U:118=U:119=U:120=U:121=U:122=U:123=U:124=U:125=U:126=U:127=U:128=U:129=U:130=U:131=U:132=U/div


I have got half of the functions working, you can see what I am working on 
here: http://monkeypanel.com/demo

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/OHJUzayk4UAJ.
To post to this group, send email to prototype-scriptaculous@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.



Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Jason Westbrook
I've never had a problem with putting variables into the $() function

but I do have a suggestion for keeping your open/minimized/closed panels
straight

try declaring a global array or hash and using that as the status variable
- all the javascript functions can use it natively and you don't have to do
the expensive splitting every time you want to know what panels are open

example

var panels = new Hash({system100 : M, system101:U}); //etc

//then

panels.get(system+id);
//or
panels.set(system+id,U);

you can even initialize it easily

for(var t = 100 ; t = 132 ; t++)
{
   panels.set(system+t,U);
}


Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com



On Mon, Oct 15, 2012 at 4:32 PM, Peter Sysko petersy...@gmail.com wrote:

 Thanks for the suggestion, Jason. Most people don't run into this problem
 because they do not deal with dynamically assigned div ids from javascript
 variables. I found for what i am doing it was the most efficient way to go
 about referencing the divs. otherwise, switch statements with 33 cases
 would have to do, and that was pretty intensive.

 It does appear that the $(element) wrapper doesn't play nice at all with
 javascript variables, you actually have to put the quotes exactly as they
 appear on the div. (unless I am still doing it wrong).. i tried .toString
 functions, parseInt's, double quotes, single quotes, with and without the
 $wrapers, etc.. and finally I looked into the prototype.js script and the
 visible method is really simple, just checks if the display: property of
 the style attribute is set to none and returns a boolean value, so the
 workaround is to get the element with the document.getElementbyID (which*does
 *work fine with javasscript variable as the ID), and do the conditional
 statement custom. In the process of researching this bug I made a series of
 alternative functions as a different way to skin the cat. Currently they
 keep track of which systems are closed, minimized or unopen with some
 innerHTML in a hidden div that references the index (100-133) with the
 letter U, M or O, then rewrites the entire string when it changes.
 the initial div looks like this: (all systems unopened):


 div id=mb_system_state_references
 style=display:none;100=U:101=U:102=U:103=U:104=U:105=U:106=U:107=U:108=U:109=U:110=U:111=U:112=U:113=U:114=U:115=U:116=U:117=U:118=U:119=U:120=U:121=U:122=U:123=U:124=U:125=U:126=U:127=U:128=U:129=U:130=U:131=U:132=U/div


 I have got half of the functions working, you can see what I am working on
 here: http://monkeypanel.com/demo

  --
 You received this message because you are subscribed to the Google Groups
 Prototype  script.aculo.us group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/prototype-scriptaculous/-/OHJUzayk4UAJ.

 To post to this group, send email to
 prototype-scriptaculous@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.


-- 
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 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.



[Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Peter Sysko
whoa i had no idea you could do that with javascript array. i just didn't 
think the data persistence was possible, even if the window was still open. 
but it makes perfect sense, and much simpler than what i'm doing now. I 
will have to give it a shot tomorrow, thank you!

On Monday, October 15, 2012 2:15:23 PM UTC-4, Peter Sysko wrote:

 I love prototype and scriptacualous. I don't combine with jquery so i know 
 i am not having a noclonflict headache,
 and I am just trying to get the visible() function (
 http://prototypejs.org/api/element/visible)
 to not throw null type error exceptions: here is the function I need to 
 fix, syntactically:
 the function creates an associative array to track which of 33 system 
 panels are either open, unopen, or minimized*:
 **(the systems are indexed from 100 to 132)*

 function get_system_states() { 
 var k=0; var sys_array = new Array(); var open_div=''; var min_div='';
 for(k=100;k132;k++){
 open_div = 'system'+k+'';
 min_div = open_div+'_minimized';
 if ($(open_div).visible()==true) {
 sys_array[k] = o; // o = open
 } 
 if ($(min_div).visible()==true) {
 sys_array[k] = m; // m = minimized
 }
 if (($(open_div).visible()==false)($(min_div).visible()==false)) 
 {
 sys_array[k] = c;// u = unopen
 }
 }
 return sys_array;
 }

 Javscript console error says : 

1. Uncaught TypeError: Cannot call method 'visible' of null
   1. 
   

 the first IF statement in the for loop is throwing the exception, but I 
 assume I am not assigning the div values correctly?
 i have found no answers in this group from a text search and from a 
 general google search. 
 is this a single quotation reference? my div id's are dynamically written 
 in php codeignite, which shouldnt really matter.

 any suggestions for how to properly get the visibility of each div in each 
 current state?
 thanks!!
 -pete



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/dodF3TNhKR0J.
To post to this group, send email to prototype-scriptaculous@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.



Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Jason Westbrook
to be clear - the example I put is not a javascript array but a Prototype
Hash

you should be able to do the same thing with a javascript array though

Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com



On Mon, Oct 15, 2012 at 5:25 PM, Peter Sysko petersy...@gmail.com wrote:

 whoa i had no idea you could do that with javascript array. i just didn't
 think the data persistence was possible, even if the window was still open.
 but it makes perfect sense, and much simpler than what i'm doing now. I
 will have to give it a shot tomorrow, thank you!


 On Monday, October 15, 2012 2:15:23 PM UTC-4, Peter Sysko wrote:

 I love prototype and scriptacualous. I don't combine with jquery so i
 know i am not having a noclonflict headache,
 and I am just trying to get the visible() function (
 http://prototypejs.org/api/**element/visiblehttp://prototypejs.org/api/element/visible
 )
 to not throw null type error exceptions: here is the function I need to
 fix, syntactically:
 the function creates an associative array to track which of 33 system
 panels are either open, unopen, or minimized*:
 **(the systems are indexed from 100 to 132)*

 function get_system_states() {
 var k=0; var sys_array = new Array(); var open_div=''; var min_div='';
 for(k=100;k132;k++){
 open_div = 'system'+k+'';
 min_div = open_div+'_minimized';
 if ($(open_div).visible()==true) {
 sys_array[k] = o; // o = open
 }
 if ($(min_div).visible()==true) {
 sys_array[k] = m; // m = minimized
 }
 if 
 (($(open_div).visible()==**false)($(min_div).visible()=**=false))
 {
 sys_array[k] = c;// u = unopen
 }
 }
 return sys_array;
 }

 Javscript console error says :

1. Uncaught TypeError: Cannot call method 'visible' of null
   1.


 the first IF statement in the for loop is throwing the exception, but I
 assume I am not assigning the div values correctly?
 i have found no answers in this group from a text search and from a
 general google search.
 is this a single quotation reference? my div id's are dynamically written
 in php codeignite, which shouldnt really matter.

 any suggestions for how to properly get the visibility of each div in
 each current state?
 thanks!!
 -pete

  --
 You received this message because you are subscribed to the Google Groups
 Prototype  script.aculo.us group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/prototype-scriptaculous/-/dodF3TNhKR0J.

 To post to this group, send email to
 prototype-scriptaculous@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.


-- 
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 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.



Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Peter Sysko
right, i found it: http://api.prototypejs.org/language/dollar-H/
i am used to the idea of assuming zero data persistence in a runtime 
environment
so i'm not sure how this works outside the function scope. in php you have 
to serialize variables,
use a global or superglobal array, use database, files, etc. on a client im 
used to seeing cookies
being used, I am just wondering what the scope limit of this use is, as i 
am used to treating 
javacsript variables scope at function level only, passing them being 
required with get and setter methods
 I'll try the $H idea and see how it works. Thanks again

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/lqdbv0kJ5NoJ.
To post to this group, send email to prototype-scriptaculous@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.



Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Peter Sysko
fpr what its worth, these are some the handler functions I have created.
 the logic s fine, but your suggestion is much less work, it seems, 
and there are a few bugs which i commented out. i am not an expert in JS, 
its not veryintuitive for me


 function get_system_states() {
var ref = document.getElementById('mb_system_state_references');
var systemz = [];
systemz = ref.innerHTML.split(:,33); 
// innerHTML default state reference (U=Unopen, O=Open, M=Minimized) :
//100=U:101=U:102=U:103=U:104=U:105=U:106=U:107=U:108=U:109=U:
//110=U:111=U:112=U:113=U:114=U:115=U:116=U:117=U:118=U:119=U:
//120=U:121=U:122=U:123=U:124=U:125=U:126=U:127=U:128=U:129=U:
//130=U:131=U:132=U   
var mb_statez = [];
for(k=100;k133;k++) {
var n = k-100; // system 100 should be index 0, system 132 should 
be index 32
var sys_string = systemz[n];
var system_statez = sys_string.split(=,2);
var state = system_statez[1]; // index 0 should be the system 
number, index 1 is the letter U, M or O
mb_statez[n] = state;
} // end loop
return mb_statez;
 } // end function
 
 function get_system_state(system_index) {
 system_index+='';
 var s = get_system_states();
 var n = (parseInt(system_index)-100);
 return s[n];
 } 
 
 function set_system_state(system_index,new_state){
 var s = []; s=get_system_states(); var n = 0;
 system_index+=''; var new_ref_string=;
 //alert('setting new system state: '+new_state);
 for(k=100;k133;k++) { n = k-100;
 //if not the setting we are setting, write its current state 
 if ((system_index)==k.toString()) {
 new_ref_string+=k+'='+new_state;
 } else {  // else, write the new one
  new_ref_string+=k+'='+s[n]; 
 } // end else
 new_ref_string+=:;
} // end for loop

document.getElementById('mb_system_state_references').innerHTML=new_ref_string;
//alert('writing new innerHTML as: '+new_ref_string);
  return false;
 } // function

function minimize_mb_system(system_index) {
//if (get_system_state(system_index)==M)
 //{  
system_index+='';
var sp_div_id = 'system'+system_index+'';
var min_div_id = 'system'+system_index+'_minimized';
Effect.SwitchOff(sp_div_id);
Effect.Appear(min_div_id);
set_system_state(system_index,M);
return false;
//}
//else { var warning = system display state is already minimized. 
did not collapse.; return warning; }
}
function restore_mb_system(system_index) {
//if (get_system_state(system_index)==O)
 //{  
system_index+='';
var sp_div_id = 'system'+system_index;
var min_div_id =  'system'+system_index+'_minimized';
Effect.Appear(''+sp_div_id+'');
Effect.SwitchOff(''+min_div_id+'');
set_system_state(system_index,O);
return false;
//}
//else { var warning = system display state is already open. did 
not restore.; return warning; }
}

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/dQqsVP_C75wJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Peter Sysko
for what its worth, these are some the handler functions I have created.
 the logic is fine, but your suggestion is much less work, it seems, 
and there are a few bugs which i commented out. there are other functions
which will utilize the current state of system panels, namely opening a 
module
that is in a system panel that is not currently open, requires first 
opening the panel via ajax.updater 
i am not an expert in JS,  its not very intuitive for me.

 function get_system_states() {
var ref = document.getElementById('mb_system_state_references');
var systemz = [];
systemz = ref.innerHTML.split(:,33); 
// innerHTML default state reference (U=Unopen, O=Open, M=Minimized) :
//100=U:101=U:102=U:103=U:104=U:105=U:106=U:107=U:108=U:109=U:
//110=U:111=U:112=U:113=U:114=U:115=U:116=U:117=U:118=U:119=U:
//120=U:121=U:122=U:123=U:124=U:125=U:126=U:127=U:128=U:129=U:
//130=U:131=U:132=U   
var mb_statez = [];
for(k=100;k133;k++) {
var n = k-100; // system 100 should be index 0, system 132 should 
be index 32
var sys_string = systemz[n];
var system_statez = sys_string.split(=,2);
var state = system_statez[1]; // index 0 should be the system 
number, index 1 is the letter U, M or O
mb_statez[n] = state;
} // end loop
return mb_statez;
 } // end function
 
 function get_system_state(system_index) {
 system_index+='';
 var s = get_system_states();
 var n = (parseInt(system_index)-100);
 return s[n];
 } 
 
 function set_system_state(system_index,new_state){
 var s = []; s=get_system_states(); var n = 0;
 system_index+=''; var new_ref_string=;
 //alert('setting new system state: '+new_state);
 for(k=100;k133;k++) { n = k-100;
 //if not the setting we are setting, write its current state 
 if ((system_index)==k.toString()) {
 new_ref_string+=k+'='+new_state;
 } else {  // else, write the new one
  new_ref_string+=k+'='+s[n]; 
 } // end else
 new_ref_string+=:;
} // end for loop

document.getElementById('mb_system_state_references').innerHTML=new_ref_string;
//alert('writing new innerHTML as: '+new_ref_string);
  return false;
 } // function

function minimize_mb_system(system_index) {
//if (get_system_state(system_index)==M)
 //{  
system_index+='';
var sp_div_id = 'system'+system_index+'';
var min_div_id = 'system'+system_index+'_minimized';
Effect.SwitchOff(sp_div_id);
Effect.Appear(min_div_id);
set_system_state(system_index,M);
return false;
//}
//else { var warning = system display state is already minimized. 
did not collapse.; return warning; }
}
function restore_mb_system(system_index) {
//if (get_system_state(system_index)==O)
 //{  
system_index+='';
var sp_div_id = 'system'+system_index;
var min_div_id =  'system'+system_index+'_minimized';
Effect.Appear(''+sp_div_id+'');
Effect.SwitchOff(''+min_div_id+'');
set_system_state(system_index,O);
return false;
//}
//else { var warning = system display state is already open. did 
not restore.; return warning; }
}

 
function open_mb_system(system_index) {
system_index+='';var k=0; var state = get_system_states();
// if system we are opening is minimized, restore it
var n = parseInt(system_index);
if (state[n]==M) { 
var restore = restore_mb_system(system_index); 
if (restore!=false) { alert(restore); }
}
// for every other system taht might be open above it, minimize it
for(k=n-1;k=0;k--){
if (k+''==system_index) { continue; }
 if (state[k] == O) { 
  var minimize = minimize_mb_system(k); 
 if (minimize!=false) { alert(minimize); }   
 
 }
} // end for loop
//preload module image rollovers for the system we are opening
   
 MM_preloadImages('../../../img/mb_module/black/'+system_index+'_01_MO.jpg',
 
'../../../img/mb_module/black/'+system_index+'_02_MO.jpg',
  
'../../../img/mb_module/black/'+system_index+'_03_MO.jpg',
 
'../../../img/mb_module/black/'+system_index+'_04_MO.jpg',
 
'../../../img/mb_module/black/'+system_index+'_05_MO.jpg',
 
'../../../img/mb_module/black/'+system_index+'_06_MO.jpg',
 
'../../../img/mb_module/black/'+system_index+'_07_MO.jpg',
 
'../../../img/mb_module/black/'+system_index+'_08_MO.jpg');
// get the system HTML from the monkeypanel server

Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Dave Kibble
To answer your OP directly (not sure if it has been, I didn't notice it).

   open_div = 'system'+k+'';
   ...
   if ($(open_div).visible()==true) {

if there is no item with id 'system'+k then $(open_div) returns null
(correctly) and so $(open_div).visible() throws an error. (for example
if nothing has id='system123' then when k-123 the error wiil throw)

You can avoid it with:

   if ($(open_div)) {
   if ($(open_div).visible()==true) {


Dave

-- 
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 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.



[Proto-Scripty] Re: CSS Selector documentation

2012-10-14 Thread kstubs
Ahh, tucked away under $$.  Thanks.  What is the reference to Sizzle?  I 
don't understand.

On Saturday, October 13, 2012 9:10:57 PM UTC-7, kstubs wrote:

 Where is CSS Selector language documented?  I see some examples in the 
 API, but no link to the complete documentation.
 Thanks,
 Karl..


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/xRZCHzjFLngJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Event.observe problem with IE8

2012-10-12 Thread Michael Huber
the problem occurred in combination with google maps api v3. i deactivated 
google maps for ie9 and it works. not a solution, but a workaround until i 
have time to fix it (or google fixes it!?)

cheers,
Mike

Am Montag, 1. Oktober 2012 12:32:53 UTC+2 schrieb Michael Huber:

 I've a problem with Event.observe on the following site:
 http://www.seminardmc.at/de/menu10/seminare21/?termin=65

 Sorry, the website is in German only. The problem occurs when I'm clicking 
 the button Jetzt anmelden / vormerken on the left side of the page. In
 http://www.seminardmc.at/templates/dmc/functions/javascript/seminare.js
 on line 13 I'm defining an event handler as follows:
 $('anmeldenOpen').setStyle({cursor:'pointer'}).observe('click', 
 this.open.bindAsEventListener(this));

 The code before and after line 13 is working normally. But the method 
 called open never gets triggered in IE8. It works, if I use IE9 and 
 switching to IE8 by pressing F12. Using the IE8 directly, no error is 
 thrown and nothing happens by clicking on the button.

 I've already tried other websites with IE8 with the same prototype version 
 (1.7) where I also use the same notation for assigning an event handler: 
 and it works! So something in www.seminardmc.at happens so Event.observe 
 doesn't trigger and I absolutely don't know what to do! I've been testing 
 for hours, even tried the newest prototype version. I've been using 
 prototype.js since 2008 (I think), but this kind of behaviour never 
 occurred. Please help!

 Thanks in advance,
 Mike


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/fAFXCLQPOikJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Emulating css position static with Prototype

2012-09-29 Thread kstubs
Correction, I mean the CSS position is fixed.

On Saturday, September 29, 2012 9:23:16 AM UTC-7, kstubs wrote:

 The problem with position static, that I can see, is not only is the 
 content static in the y-space, but also in the x-space.  This means that if 
 a user scrolls the page left and right, well then the item(s) that you have 
 fixed in a left hand gutter (as an example) do not remain fixed in this 
 space, they end up sliding over the top of your content.

 I'm looking for a Prototype.js alternative for this.  Any tips?
 I can think of an alternative approach that might be suitable would be a 
 scrollable div container.  I see these more and more, I'm not sure if these 
 are coded with JavaScript or just using CSS overflow style on the div 
 container.

 Karl..


-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/JMj7jt3Ow0MJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Adding a new method 'getSubmitButton' to Form

2012-09-28 Thread Victor


 I am planning to add a new method to Form Element named 'getSubmitButton' 
 to easily access the submit button of a form. I am ready to provide the 
 patch and tests for it.
 Will that be useful?

 Which submit button? Form may have many submit buttons simultaneously, 
either input type=submit / or button type=submit. Also form may not 
have submit buttons at all, then pressing Enter in input field will submit 
form, and clicking on input type=image / will work as submit button.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/o8YeLmolMs4J.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Big problem in Explorer 8

2012-09-28 Thread Victor
In global_utils.js progressbar stuff has wrong width 
(progressBarWrapperInternalWidth===NaN), because of this IE cannot set 
element.style.width to NaNpx.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/w2SC078Zq5cJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Big problem in Explorer 8

2012-09-28 Thread Victor
this._progressBar.getStyle() returns null for marginLeft and marginRight - 
parseInt(null) === NaN - setStyle({width:NaNpx}) throws error.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/Nq4_OhFD46cJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: Big problem in Explorer 8

2012-09-28 Thread Alessio Mattiuzzo
THANK YOU!!! 
I modified the CSS after your advice and now everything works!

Il giorno venerdì 28 settembre 2012 09:45:27 UTC+2, Victor ha scritto:

 this._progressBar.getStyle() returns null for marginLeft and marginRight 
 - parseInt(null) === NaN - setStyle({width:NaNpx}) throws error.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/_rjvz8A6j-QJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: pluck.pluck.pluck

2012-09-26 Thread kstubs
Pluck just says, for the array, return the given item/property of the array 
for every item in the array.  So really, the idea of 
pluck.pluck.pluck isn't really going to happen.  I retract my question. 
 Something like Victor is demonstrating is about what I need to do anyhow.

Karl..

On Tuesday, September 25, 2012 1:32:40 AM UTC-7, Victor wrote:

 Something like
 function getUrls(tweet) {
   return tweet.mediaActivityJSON.entities.urls;
 }
 tweets.each(getUrls);



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/rq3Hyr2RrRwJ.
To post to this group, send email to prototype-scriptaculous@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.



[Proto-Scripty] Re: pluck.pluck.pluck

2012-09-25 Thread Victor
Something like
function getUrls(tweet) {
  return tweet.mediaActivityJSON.entities.urls;
}
tweets.each(getUrls);

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/vMk3MTge27cJ.
To post to this group, send email to prototype-scriptaculous@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.



  1   2   3   4   5   6   7   8   9   10   >