Re: [Proto-Scripty] Any patch/fix available for CVE-2020-27511

2022-06-11 Thread Walter Lee Davis
There is a PR in Github since January 2021 to fix this, but it hasn't made its 
way through the process yet. The last update was 22 days ago, but I don't know 
what the timeline will be for this. 
https://github.com/prototypejs/prototype/pull/349

Walter

> On Jun 11, 2022, at 12:56 AM, Vinay Kumar  wrote:
> 
> Hi All,
> 
> Is there any fix/patch available for the vulnerability  CVE-2020-27511 in 
> Prototype 1.7.3?
> 
> Regards,
> Vinay Kumar
> 
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/prototype-scriptaculous/2e6bc7d2-241c-4eb2-8246-bf5165343a86n%40googlegroups.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/prototype-scriptaculous/FF2F8735-5DE8-40E7-A03D-9BD6CB5AD36A%40wdstudio.com.


[Proto-Scripty] Any patch/fix available for CVE-2020-27511

2022-06-11 Thread Vinay Kumar
Hi All,

Is there any fix/patch available for the vulnerability  CVE-2020-27511 in 
Prototype 1.7.3?

Regards,
Vinay Kumar

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/prototype-scriptaculous/2e6bc7d2-241c-4eb2-8246-bf5165343a86n%40googlegroups.com.


[Proto-Scripty] Starting guide

2022-01-27 Thread Peter M.
Hi,

I'm starting in software developing and I want to learn about this 
language, anyone please? :) 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/prototype-scriptaculous/182ac6e2-0d14-40cd-80e5-901af06beefbn%40googlegroups.com.


[Proto-Scripty] Uri Error

2021-10-08 Thread Mr. Premium
Hi, 

I want add  symbol "%" in my table row but when i save my data I get ERROR 

URIERROR :malformed URI sequence 
var value = par[1] ? decodeURIComponent (par[1])
:undefined;


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/prototype-scriptaculous/5af9a181-9f10-4fd5-b995-a442b26ea52an%40googlegroups.com.


Re: [Proto-Scripty] End of life ?

2021-09-29 Thread Walter Lee Davis
I don't speak with any authority for either Thomas Fuchs or Andrew Dupont, but 
both of these projects are effectively out of date. If you look at the latest 
commit dates on GitHub, you'll see that very little has been added/changed over 
the past couple of years. I recognize that this is not a real metric, since a 
finished, working thing often doesn't need lots of changing. But it's a hint 
that security needs may be going unmet.

I desperately love Prototype. Full stop. I think it is the way that JavaScript 
should work. But that opinion is increasingly out of step with "modern" JS. I 
was forced by [day job] to learn jQuery, and now I've been relying on various 
"you may not need jQuery" conversion hint sites to make my work more "vanilla".

I have been having a very good time with Stimulus.js, though, and that has been 
really refreshing.

As far as animation and transition effects go, I don't know of anything that 
even approaches what Script.aculo.us does/did.

Walter

> On Sep 29, 2021, at 2:44 AM, PrototypeFanClub  wrote:
> 
> Hi,
> 
> I am new to this community. I am using an older version of script.aculo.us 
> and prototype in my work. I need an answer to following question before I 
> plan to upgrade the library to a later version.  
> 
> a) I do not see a release for script.aculo.us (last release in 2010) and 
> prototype (last release in 2015). Shall I consider these libraries End of 
> Life or are there a replacement for these libraries which are actively 
> supported by community and do not have any reported security issues.
> 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/prototype-scriptaculous/07f87009-1e53-4264-a17f-c931a5bc3898n%40googlegroups.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/prototype-scriptaculous/8107D459-B720-4CC5-8508-F66BAF1D9589%40wdstudio.com.


[Proto-Scripty] End of life ?

2021-09-29 Thread PrototypeFanClub
Hi,

I am new to this community. I am using an older version of script.aculo.us 
and prototype in my work. I need an answer to following question before I 
plan to upgrade the library to a later version.  

a) I do not see a release for script.aculo.us (last release in 2010) and 
prototype (last release in 2015). Shall I consider these libraries End of 
Life or are there a replacement for these libraries which are actively 
supported by community and do not have any reported security issues.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/prototype-scriptaculous/07f87009-1e53-4264-a17f-c931a5bc3898n%40googlegroups.com.


Re: [Proto-Scripty] Thiking to revive the prototype helpers from Rails 2.3 for Rails 5+

2020-02-29 Thread Walter Lee Davis
I have used Prototype.js in Rails up to 4.2, and it worked well there. Goodies 
like the sortable list and other Script.aculo.us bits were usable there as 
well. I didn't try very hard to use them in 5, because by that time I was also 
working to use Bootstrap, and that was harder to use without jQuery. While it 
is possible to use both at once, I refuse to do that to my visitors.

It's ironically quite a bit easier to use Prototype in Rails >= 6, because 
there is no longer a hard dependency on jQuery. And the next Bootstrap will no 
longer require jQuery either.

As far as the Rails bits, I agree, it would be nice to have some of that back. 
Perhaps we could start by writing some helpers first, and then extract them out 
to a gem.

Walter

> On Feb 28, 2020, at 7:27 PM, Mathieu Jobin  wrote:
> 
> I think the JS world as gone bad... I really like how things were with 
> prototype JS and friends.
> especially the helpers in ruby...
> 
> I wonder if there would be other people interested in using them.
> I believe the last version was in rails 2.3.18, and prototype 1.6.0 was 
> included at the time.
> 
> so I would try to make this work with rails 5 and 6, first.
> then upgrading the library to 1.7.3+
> 
> would anyone else uses them? or would like to participate?
> 
> cheers,
> 
> Mathieu
> 
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/prototype-scriptaculous/fba2902f-c375-4c62-9419-747654cb12be%40googlegroups.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/prototype-scriptaculous/014E450A-2421-4511-A4F6-DF9A4B54C903%40wdstudio.com.


[Proto-Scripty] Thiking to revive the prototype helpers from Rails 2.3 for Rails 5+

2020-02-29 Thread Mathieu Jobin
I think the JS world as gone bad... I really like how things were with 
prototype JS and friends.
especially the helpers in ruby...

I wonder if there would be other people interested in using them.
I believe the last version was in rails 2.3.18, and prototype 1.6.0 was 
included at the time.

so I would try to make this work with rails 5 and 6, first.
then upgrading the library to 1.7.3+

would anyone else uses them? or would like to participate?

cheers,

Mathieu

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/prototype-scriptaculous/fba2902f-c375-4c62-9419-747654cb12be%40googlegroups.com.


[Proto-Scripty] Web Architect (London)

2019-09-24 Thread James Tobin
Hello, I'm working with an employer that is looking to hire a permanent 
front end architect to join their London office.  You should have 
experience with Javascript and frameworks such as (but not only) React.  
Consequently, I had hoped that some members of this mailing list may like 
to discuss further off-list using "JamesBTobin (at) Gmail (dot) Com".  Kind 
regards, James

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/prototype-scriptaculous/d80d8656-5009-47f7-9063-9ccf5d298ad0%40googlegroups.com.


Re: [Proto-Scripty] Ajax problem

2019-06-24 Thread Chris Sansom
On 24 Jun 2019, at 22:51, Walter Lee Davis  wrote:
> 
> Yup. That will stop a JavaScript insertion like you want to do cold. Try 
> replacing all of the newlines [and carriage returns, if any] with a single 
> space before you pass that value back to the Ajax request. It doesn't matter 
> how long the line is, as long as it's one line. I generally substitute 
> /[\n\r]+/ with ' ‘.

Thanks, Walter, but I’ve just this minute found the problem, and it was, as I 
knew it would be, a stupid one. Where I had "$('thisid').up('ul').insert 
(newhtml);”, all I had to do was take the quotes away from round ‘thisid’! I 
was sending a literal string to $ instead of the value represented by the 
variable and, oddly enough, there isn’t an element in the DOM with the id 
‘thisid’!

And btw, it does work with a few ‘\r's in it.

Thanks a million for your help. Now I have to fix the next problem...

-- 
Cheers... Chris
Chris Sansom: composer and… whatnot
http://www.chrissansom.net/
https://www.youtube.com/channel/UCVUKb7vK0KiIaiLhs7zht2Q
https://soundcloud.com/mfthoad

‌As every parent of a small child knows, converting a large object into small 
fragments is considerably easier than the reverse process.‌
— Andrew S. Tanenbaum‌

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prototype-scriptaculous/8C59F928-105C-459A-A646-ABAB4BC27438%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Proto-Scripty] Ajax problem

2019-06-24 Thread Walter Lee Davis



> On Jun 23, 2019, at 12:22 PM, Chris Sansom  wrote:
> 
> Hi Walter
> 
> Thanks for your long and thoughtful response… some of which I understood! (I 
> did say I was rusty, and I was never extremely advanced - never got into OOP 
> for instance unless it was laid out on a plate for me as prototype does).
> 
> Just a quick question - do you know whether there’s some limit to the length 
> of a string that can be returned via Ajax, and whether it can contain 
> carriage returns, tabs or whatever? What I’m returning here is politely 
> formatted and indented html with 76 options in the select.

Yup. That will stop a JavaScript insertion like you want to do cold. Try 
replacing all of the newlines [and carriage returns, if any] with a single 
space before you pass that value back to the Ajax request. It doesn't matter 
how long the line is, as long as it's one line. I generally substitute 
/[\n\r]+/ with ' '.

Walter

> 
>> On 23 Jun 2019, at 16:09, Walter Lee Davis  wrote:
>> 
>> One of the best ways to work this out is to build a cut-down example, in one 
>> page, that tries to do what you're after here. If you can get that to fail, 
>> post it as a Gist or similar. From your description, you're going about 
>> things the right way.
>> 
>> One other piece of advice. Rather than using a numerical index to get the 
>> first of some collection, try making your method iterate over the found 
>> results and operate conditionally. This will give you another place to put 
>> console.log statements to further refine exactly what is going on inside:
>> 
>>> var newhtml = xml.getElementsByTagName('newhtml')[0].firstChild.nodeValue;
>> 
>> When you say that the correct code to insert is there in the Ajax response, 
>> that cuts that part of the problem out, and your example page can just do 
>> something dumb like this:
>> 
>> var data_to_insert = $('some_example_element').remove().innerHTML.toString();
>> 
>> ...where you have a DOM element like > ... your element here ...>
>> 
>> I have found over the years that when you have the correct element (legally 
>> possible to insert into a given container), then Prototype (and the browser) 
>> just does what you'd expect. But if what you are getting back from the 
>> server doesn't make any sense in terms of your DOCTYPE (say you are trying 
>> to insert raw text into a , rather than trying to insert a , then 
>> the browser will just ignore you. It's not a Prototype error, in other 
>> words, just the browser being pedantic when being called in a JS update 
>> mode. 
>> 
>> Finally, see if you can get your server to return the HTML of the picker, 
>> fully rendered. Then you should be able to do this:
>> 
>> new Ajax.updater('parent_element_id', '/server/url', {
>> parameters: { foo: 'bar', ...}, // optional, pass to your server some 
>> parameters
>> insertion: 'bottom' // this lets you put the rendered element at the bottom 
>> of the existing children of the parent
>> });
>> 
>> If #parent_element_id is a , then the HTML you get from 
>> /server/url?foo=bar should be:
>> 
>> 
>> 
>>   
>> 
>> 
>> 
>> ... with all of the whitespace removed.
>> 
>> Walter
>> 
>>> On Jun 22, 2019, at 11:25 AM, Chris Sansom  wrote:
>>> 
>>> With apologies in advance for the length...
>>> 
>>> I retired a few years ago from web development, where I used Prototype 
>>> quite a bit in the later years. I'm somewhat rusty now, but I'm trying to 
>>> do some development for purely personal use. It won't be on the open web, 
>>> just on our local server. It's all been going fine (if slowly!), but now 
>>> I've hit a brick wall with Ajax.
>>> 
>>> Here's what I'm trying to do:
>>> *  I have a form with one or more s, each within its own , all 
>>> in the one .
>>> *  Each  contains the same list of items from a table in a MySQL 
>>> database.
>>> *  The last  has nothing selected and has the class "addselect".
>>> *  The idea is that if I select something from that last , an 
>>> onChange event is triggered which calls an Ajax script to add a new 
>>>  (containing the same items). This is set up on page load in a 
>>> "document.observe ('dom:loaded', function()..." at the top of the 
>>> javascript file.
>>> *  Each  has a sequential name and id, eg 'name="country[0]" 
>>> id="country_0"', the next country[1] and country_1, and so on. The newly 
>>> created  would have the next name and id in sequence.
>>> I hope that all makes some sense.
>>> 
>>> So...
>>> The handler function set up in 'dom:loaded...' gets the next index number 
>>> for the name and id of the new , and sends this ('entryindex') and 
>>> the name of the table to search ('list') to the Ajax script, and off we go:
>>> 
>>> var pars = 'list=' + list + '=' + newIndex;
>>> var url = base + 'ajaxgetmenu';
>>> 
>>> // send request to do the business
>>> var myAjax = new Ajax.Request (url, {
>>> method: 'post',
>>> parameters: pars,
>>> onSuccess: function (req) {
>>>  

Re: [Proto-Scripty] Ajax problem

2019-06-24 Thread Chris Sansom
Hi again Walter

> On 23 Jun 2019, at 16:09, Walter Lee Davis  wrote:
> 
> One of the best ways to work this out is to build a cut-down example, in one 
> page, that tries to do what you're after here. If you can get that to fail, 
> post it as a Gist or similar. From your description, you're going about 
> things the right way.

I’ve followed your advice to make a stripped-down version of the problem 
(though I’m afraid I’ve no idea what a Gist is), and it answered one of my two 
problems: there was something wrong with my XML (it may have been as basic as 
the wrong Content-type), so js ignored the response. However, it still won’t 
insert the new code where I want it (or indeed anywhere). I’ve narrowed it 
down, I’m pretty sure, to a problem of scope - and I’m sure it’s basic stuff. I 
don’t need to bore you with the very simple initial html or the even simpler 
code executed by the Ajax call, because I know that’s all fine now, but here’s 
the relevant js:



var base = 'http://10.0.1.2:90/~dvds/';

// initialization routines
document.observe ('dom:loaded', function() {
// set up handler for variable numbers of selects
var addselects = $$('.addselect');
for (var i = 0; i < addselects.length; i++) {
var addselect = addselects[i];
addselect.onchange = newSelect;
}
});

// handler for adding new field to array
function newSelect() {
//  var thisid = this.id;
var newhtml;

var url = base + 'ajaxtest';
// send request to do the business
var myAjax = new Ajax.Request (url, {
method: 'post',
onSuccess: function (req) {
var xml = req.responseXML;
var id = 
xml.getElementsByTagName('id')[0].firstChild.nodeValue;

if (id) {
newhtml = '\t\t\r\t\t\t\r\t\t\t\t\r';
// loop
var newid, newname;
var ids = xml.getElementsByTagName('id');
var names = xml.getElementsByTagName('name');
for (var i = 0; i < ids.length; i++) {
newid = ids[i].firstChild.nodeValue;
newname = names[i].firstChild.nodeValue;
newhtml += '\t\t\t\t' + newname + '\r';
}
newhtml += '\t\t\t\r\t\t\r';
//  $('thisid').up('ul').insert (newhtml);
}
else {
alert (’ng');
newhtml = 'No good.';
}
},
onFailure: function() {
alert ('Script failure.');
newhtml = 'No good.';
}
});

// alert (newhtml);
if (newhtml) {
this.up('ul').insert (newhtml);
}
}



What I need to do is /either/ make the value of the original ‘this' available 
to the inner part of the code (the line that’s commented out immediately after 
the last html += …) /or/ make newhtml available to the pouter part of the code 
for the 'if (newhtml)’ block at the end. But I can’t figure out how to do it 
because it doesn’t meet my normal assumptions about global and local variables.

I really feel I’m almost there with this problem - just this last hurdle to get 
over!

-- 
Cheers... Chris
Chris Sansom: composer and… whatnot
http://www.chrissansom.net/
https://www.youtube.com/channel/UCVUKb7vK0KiIaiLhs7zht2Q
https://soundcloud.com/mfthoad

‌Goodness is about what you do. Not who you pray to.‌
— Terry Pratchett‌

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prototype-scriptaculous/5B879D02-856C-4BC0-B20D-3C6A039BC0B9%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Proto-Scripty] Ajax problem

2019-06-23 Thread Chris Sansom
Hi Walter

Thanks for your long and thoughtful response… some of which I understood! (I 
did say I was rusty, and I was never extremely advanced - never got into OOP 
for instance unless it was laid out on a plate for me as prototype does).

Just a quick question - do you know whether there’s some limit to the length of 
a string that can be returned via Ajax, and whether it can contain carriage 
returns, tabs or whatever? What I’m returning here is politely formatted and 
indented html with 76 options in the select.

> On 23 Jun 2019, at 16:09, Walter Lee Davis  wrote:
> 
> One of the best ways to work this out is to build a cut-down example, in one 
> page, that tries to do what you're after here. If you can get that to fail, 
> post it as a Gist or similar. From your description, you're going about 
> things the right way.
> 
> One other piece of advice. Rather than using a numerical index to get the 
> first of some collection, try making your method iterate over the found 
> results and operate conditionally. This will give you another place to put 
> console.log statements to further refine exactly what is going on inside:
> 
>> var newhtml = xml.getElementsByTagName('newhtml')[0].firstChild.nodeValue;
> 
> When you say that the correct code to insert is there in the Ajax response, 
> that cuts that part of the problem out, and your example page can just do 
> something dumb like this:
> 
> var data_to_insert = $('some_example_element').remove().innerHTML.toString();
> 
> ...where you have a DOM element like  ... your element here ...>
> 
> I have found over the years that when you have the correct element (legally 
> possible to insert into a given container), then Prototype (and the browser) 
> just does what you'd expect. But if what you are getting back from the server 
> doesn't make any sense in terms of your DOCTYPE (say you are trying to insert 
> raw text into a , rather than trying to insert a , then the browser 
> will just ignore you. It's not a Prototype error, in other words, just the 
> browser being pedantic when being called in a JS update mode. 
> 
> Finally, see if you can get your server to return the HTML of the picker, 
> fully rendered. Then you should be able to do this:
> 
> new Ajax.updater('parent_element_id', '/server/url', {
>  parameters: { foo: 'bar', ...}, // optional, pass to your server some 
> parameters
>  insertion: 'bottom' // this lets you put the rendered element at the bottom 
> of the existing children of the parent
> });
> 
> If #parent_element_id is a , then the HTML you get from 
> /server/url?foo=bar should be:
> 
> 
>  
>
>  
> 
> 
> ... with all of the whitespace removed.
> 
> Walter
> 
>> On Jun 22, 2019, at 11:25 AM, Chris Sansom  wrote:
>> 
>> With apologies in advance for the length...
>> 
>> I retired a few years ago from web development, where I used Prototype quite 
>> a bit in the later years. I'm somewhat rusty now, but I'm trying to do some 
>> development for purely personal use. It won't be on the open web, just on 
>> our local server. It's all been going fine (if slowly!), but now I've hit a 
>> brick wall with Ajax.
>> 
>> Here's what I'm trying to do:
>> *  I have a form with one or more s, each within its own , all 
>> in the one .
>> *  Each  contains the same list of items from a table in a MySQL 
>> database.
>> *  The last  has nothing selected and has the class "addselect".
>> *  The idea is that if I select something from that last , an 
>> onChange event is triggered which calls an Ajax script to add a new  
>> (containing the same items). This is set up on page load in a 
>> "document.observe ('dom:loaded', function()..." at the top of the javascript 
>> file.
>> *  Each  has a sequential name and id, eg 'name="country[0]" 
>> id="country_0"', the next country[1] and country_1, and so on. The newly 
>> created  would have the next name and id in sequence.
>> I hope that all makes some sense.
>> 
>> So...
>> The handler function set up in 'dom:loaded...' gets the next index number 
>> for the name and id of the new , and sends this ('entryindex') and 
>> the name of the table to search ('list') to the Ajax script, and off we go:
>> 
>>  var pars = 'list=' + list + '=' + newIndex;
>>  var url = base + 'ajaxgetmenu';
>>  
>>  // send request to do the business
>>  var myAjax = new Ajax.Request (url, {
>>  method: 'post',
>>  parameters: pars,
>>  onSuccess: function (req) {
>>  var xml = req.responseText;
>>  ...
>> 
>> This far, everything is hunkydory. Safari's Web Inspector shows exactly the 
>> correct result - a nice new  with the correct name and contents - 
>> under 'XHRs' in its Resources tab. So I know the script is being called and 
>> is operating correctly. But where it falls over is with what comes next:
>> 
>>  var newhtml = 
>> xml.getElementsByTagName('newhtml')[0].firstChild.nodeValue;
>> 
>> 

Re: [Proto-Scripty] Ajax problem

2019-06-23 Thread Walter Lee Davis
Sorry, typo here:

> On Jun 23, 2019, at 11:09 AM, Walter Lee Davis  wrote:
> 
> If #parent_element_id is a , then the HTML you get from 
> /server/url?foo=bar should be:


I meant, if the parent element is a .

Walter

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prototype-scriptaculous/9F766ECE-3263-40FE-8D44-4F04FDC48490%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Proto-Scripty] Ajax problem

2019-06-23 Thread Walter Lee Davis
One of the best ways to work this out is to build a cut-down example, in one 
page, that tries to do what you're after here. If you can get that to fail, 
post it as a Gist or similar. From your description, you're going about things 
the right way.

One other piece of advice. Rather than using a numerical index to get the first 
of some collection, try making your method iterate over the found results and 
operate conditionally. This will give you another place to put console.log 
statements to further refine exactly what is going on inside:

> var newhtml = xml.getElementsByTagName('newhtml')[0].firstChild.nodeValue;

When you say that the correct code to insert is there in the Ajax response, 
that cuts that part of the problem out, and your example page can just do 
something dumb like this:

var data_to_insert = $('some_example_element').remove().innerHTML.toString();

...where you have a DOM element like 

I have found over the years that when you have the correct element (legally 
possible to insert into a given container), then Prototype (and the browser) 
just does what you'd expect. But if what you are getting back from the server 
doesn't make any sense in terms of your DOCTYPE (say you are trying to insert 
raw text into a , rather than trying to insert a , then the browser 
will just ignore you. It's not a Prototype error, in other words, just the 
browser being pedantic when being called in a JS update mode. 

Finally, see if you can get your server to return the HTML of the picker, fully 
rendered. Then you should be able to do this:

new Ajax.updater('parent_element_id', '/server/url', {
  parameters: { foo: 'bar', ...}, // optional, pass to your server some 
parameters
  insertion: 'bottom' // this lets you put the rendered element at the bottom 
of the existing children of the parent
});

If #parent_element_id is a , then the HTML you get from /server/url?foo=bar 
should be:


  

  


... with all of the whitespace removed.

Walter

> On Jun 22, 2019, at 11:25 AM, Chris Sansom  wrote:
> 
> With apologies in advance for the length...
> 
> I retired a few years ago from web development, where I used Prototype quite 
> a bit in the later years. I'm somewhat rusty now, but I'm trying to do some 
> development for purely personal use. It won't be on the open web, just on our 
> local server. It's all been going fine (if slowly!), but now I've hit a brick 
> wall with Ajax.
> 
> Here's what I'm trying to do:
> *  I have a form with one or more s, each within its own , all in 
> the one .
> *  Each  contains the same list of items from a table in a MySQL 
> database.
> *  The last  has nothing selected and has the class "addselect".
> *  The idea is that if I select something from that last , an 
> onChange event is triggered which calls an Ajax script to add a new  
> (containing the same items). This is set up on page load in a 
> "document.observe ('dom:loaded', function()..." at the top of the javascript 
> file.
> *  Each  has a sequential name and id, eg 'name="country[0]" 
> id="country_0"', the next country[1] and country_1, and so on. The newly 
> created  would have the next name and id in sequence.
> I hope that all makes some sense.
> 
> So...
> The handler function set up in 'dom:loaded...' gets the next index number for 
> the name and id of the new , and sends this ('entryindex') and the 
> name of the table to search ('list') to the Ajax script, and off we go:
> 
>   var pars = 'list=' + list + '=' + newIndex;
>   var url = base + 'ajaxgetmenu';
>   
>   // send request to do the business
>   var myAjax = new Ajax.Request (url, {
>   method: 'post',
>   parameters: pars,
>   onSuccess: function (req) {
>   var xml = req.responseText;
>   ...
> 
> This far, everything is hunkydory. Safari's Web Inspector shows exactly the 
> correct result - a nice new  with the correct name and contents - 
> under 'XHRs' in its Resources tab. So I know the script is being called and 
> is operating correctly. But where it falls over is with what comes next:
> 
>   var newhtml = 
> xml.getElementsByTagName('newhtml')[0].firstChild.nodeValue;
> 
> This, incidentally, is taken from a script I developed back in my 
> professional days which I know worked perfectly. But something is failing 
> here, cuz it don't work! If I put an alert in ('ok') before this line, it 
> pops up, but if I put it after this line it doesn't. And yet no errors are 
> reported. And of course the next line doesn't work either:
> 
>   $('thisid').up('ul').insert (newhtml);
> 
> (And I know "$('thisid')" is right because I put that in an alert to check 
> it.)
> 
> So I simplified it. I abandoned XML and made the result plain text instead, 
> to be inserted verbatim. Again, the script produces a perfect result in 
> Safari's Web Inspector, but even when newhtml is plain text (and I skip 

[Proto-Scripty] Ajax problem

2019-06-22 Thread Chris Sansom
With apologies in advance for the length...

I retired a few years ago from web development, where I used Prototype 
quite a bit in the later years. I'm somewhat rusty now, but I'm trying to 
do some development for purely personal use. It won't be on the open web, 
just on our local server. It's all been going fine (if slowly!), but now 
I've hit a brick wall with Ajax.

Here's what I'm trying to do:
*  I have a form with one or more s, each within its own , all 
in the one .
*  Each  contains the same list of items from a table in a MySQL 
database.
*  The last  has nothing selected and has the class "addselect".
*  The idea is that if I select something from that last , an 
onChange event is triggered which calls an Ajax script to add a new 
 (containing the same items). This is set up on page load in a 
"document.observe ('dom:loaded', function()..." at the top of the 
javascript file.
*  Each  has a sequential name and id, eg 'name="country[0]" 
id="country_0"', the next country[1] and country_1, and so on. The newly 
created  would have the next name and id in sequence.
I hope that all makes some sense.

So...
The handler function set up in 'dom:loaded...' gets the next index number 
for the name and id of the new , and sends this ('entryindex') and 
the name of the table to search ('list') to the Ajax script, and off we go:

var pars = 'list=' + list + '=' + newIndex;
var url = base + 'ajaxgetmenu';
// send request to do the business
var myAjax = new Ajax.Request (url, {
method: 'post',
parameters: pars,
onSuccess: function (req) {
var xml = req.responseText;
...

This far, everything is hunkydory. Safari's Web Inspector shows exactly the 
correct result - a nice new  with the correct name and contents - 
under 'XHRs' in its Resources tab. So I know the script is being called and 
is operating correctly. But where it falls over is with what comes next:

var newhtml = xml.getElementsByTagName('newhtml')[0].firstChild.nodeValue;

This, incidentally, is taken from a script I developed back in my 
professional days which I know worked perfectly. But something is failing 
here, cuz it don't work! If I put an alert in ('ok') before this line, it 
pops up, but if I put it after this line it doesn't. And yet no errors are 
reported. And of course the next line doesn't work either:

$('thisid').up('ul').insert (newhtml);

(And I know "$('thisid')" is right because I put that in an alert to check 
it.)

So I simplified it. I abandoned XML and made the result plain text instead, 
to be inserted verbatim. Again, the script produces a perfect result in 
Safari's Web Inspector, but even when newhtml is plain text (and I skip the 
xml.getElementsByTagName line altogether), it fails. And again, an alert 
before the insert line works, but not one after it.

I've tried everything I can think of, so if anyone has any wisdom on this 
I'd be very grateful indeed. It's probably something dead obvious staring 
me in the face...

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prototype-scriptaculous/fb84d882-af7d-45f8-a400-b98701228f19%40googlegroups.com.
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/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] problem with Prototye and linux/apache2, php

2019-01-24 Thread william drescher
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.


Re: [Proto-Scripty] document.write() warnings from Chrome with scriptaculous

2018-03-05 Thread Walter Lee Davis

> On Mar 5, 2018, at 4:21 PM, Steevithak  wrote:
> 
> I'm doing some maintenance on an older site that was developed using 
> something called prototype.js and scriptaculous. The scriptaculous website 
> pointed me to this Google group for support. 
> 
> When pages load I see lots of warnings from Chrome about document.write() 
> being used. Like so:
> 
> [Violation] Avoid using document.write()  scriptaculous.js:31
> [Violation] Parser was blocked due to 

[Proto-Scripty] document.write() warnings from Chrome with scriptaculous

2018-03-05 Thread Steevithak
I'm doing some maintenance on an older site that was developed using 
something called prototype.js and scriptaculous. The scriptaculous website 
pointed me to this Google group for support. 

When pages load I see lots of warnings from Chrome about document.write() 
being used. Like so:

[Violation] Avoid using document.write()  scriptaculous.js:31
[Violation] Parser was blocked due to 

[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] Game with prototype

2017-09-03 Thread mlucasir



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.


Re: [Proto-Scripty] Future of prototype.js?

2017-08-04 Thread Jason Westbrook
Actually the github version is kinda pre 1.7.4 which drops support for old
browsers, fixes some bugs, and other enhancements. Its currently waiting on
Andrew to pull the trigger and get it tested and released.

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

On Fri, Aug 4, 2017 at 7:50 AM,  wrote:

> Are there plans or progress, however slow or delayed, for release(s) of
> prototype.js beyond 1.7.3?  I've been working with prototype for years and
> just recently updated our appliance with the version from September 2015.
> Just curious if it's still being actively (if sporadically) developed and,
> if so, what the future might hold.
>
> --
> 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] Future of prototype.js?

2017-08-04 Thread bullmore
Are there plans or progress, however slow or delayed, for release(s) of 
prototype.js beyond 1.7.3?  I've been working with prototype for years and 
just recently updated our appliance with the version from September 2015.  
Just curious if it's still being actively (if sporadically) developed and, 
if so, what the future might hold.

-- 
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] Prototype js onComplete not working for sortable

2016-12-23 Thread Max
Hi everybody. I am using prototype js and scriptaculous sortable but when i 
do an oncomplete alert or anything, it does not work
Here is mycode


Event.observe(window,'load',init,false);
function init() {

Sortable.create('listContainer',{tag:'div',onUpdate:updateList});
}
function updateList(container) {
var url = 'ajax.php';
var params = Sortable.serialize(container.id);
var ajax = new Ajax.Request(url,{
method: 'post',
parameters: params,
onLoading: function(){$('workingMsg').show()},
onLoaded: function(){$('workingMsg').hide()},

 onComplete: function(){ alert('good'); }

 });
}
function handleResponse(req) {
// this function will fire after the ajax request is 
complete...but we have nothing to do here
}


Everything works perfectly when i launch the function except the fact that 
onComplete the alert is not sent. How to fix that ?


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


Re: [Proto-Scripty] could some some one build the latest version of prototype.js for me???

2016-10-10 Thread Pong Mok
thank you so much for your support.

Jason於 2016年10月9日星期日 UTC+8上午10時10分25秒寫道:
>
> Walter Davis has a CDN that he runs
>
> I added 1.7.3 and the current github build to that CDN. The current build 
> is tagged 1.7.4-dev
>
> http://cdnadmin.freewaypro.com/libraries/16
>
> Jason Westbrook | T: 313-799-3770 | jwest...@gmail.com  
>
> On Fri, Oct 7, 2016 at 1:42 AM, Pong Mok  > wrote:
>
>> I spend whole date to build the latest version of prototypejs but still 
>> fail
>>
>> I get SSL error when using gem install rake and rake fail again.
>>
>> so could someone do me a favour, please share your last build file if you 
>> not mind, thank you so much
>>
>> -- 
>> 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-s...@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.


Re: [Proto-Scripty] could some some one build the latest version of prototype.js for me???

2016-10-08 Thread Jason Westbrook
Walter Davis has a CDN that he runs

I added 1.7.3 and the current github build to that CDN. The current build
is tagged 1.7.4-dev

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

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

On Fri, Oct 7, 2016 at 1:42 AM, Pong Mok  wrote:

> I spend whole date to build the latest version of prototypejs but still
> fail
>
> I get SSL error when using gem install rake and rake fail again.
>
> so could someone do me a favour, please share your last build file if you
> not mind, thank you so much
>
> --
> 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] could some some one build the latest version of prototype.js for me???

2016-10-07 Thread Pong Mok
I spend whole date to build the latest version of prototypejs but still fail

I get SSL error when using gem install rake and rake fail again.

so could someone do me a favour, please share your last build file if you 
not mind, thank you so much

-- 
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] How is the MIME boundary set with HTML5 FormData and Ajax.Request()?

2016-07-18 Thread Adam Nielsen
Hi all,

I am struggling a bit to get a HTML5 FormData object submitting with 
Prototype's Ajax.Request().

Because the form data needs to be submitted as multipart/form-data, I need 
to set the Content-Type to include the MIME boundary, otherwise the 
receiving end can't decode the multipart/form-data content.

I am doing something like this:

var d = new FormData();
d.append('name', $F('name'));
d.append('type', 'blah');
d.append('filecontent', $('file').files[0]);

new Ajax.Request('url', {
method: 'post',
//contentType: 'multipart/form-data', // need MIME boundary
postBody: d,
onSuccess: function(r) { }
});

If I leave out the contentType parameter, then the form gets submitted as 
application/x-www-form-urlencoded, but the content is in 
multipart/form-data so it is not possible to decode it.  If I set the 
contentType to multipart/form-data then the recipient complains that the 
MIME boundary is missing from the HTTP Content-Type header.

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

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


Re: [Proto-Scripty] Where is the Ajax.Request options documentation?

2016-07-15 Thread Adam Nielsen

>
> Just click on the « Ajax section » header in the left column (the black 
> one). That will link you to : http://prototypejs.org/doc/latest/ajax/
>
> In there, you’ll find what you’re looking for…
>

Ah, that's what I'm looking for!  Many thanks.

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


Re: [Proto-Scripty] Where is the Ajax.Request options documentation?

2016-07-11 Thread Christophe Decaux
Hi there,

Just click on the « Ajax section » header in the left column (the black one). 
That will link you to : http://prototypejs.org/doc/latest/ajax/ 


In there, you’ll find what you’re looking for…


Ajax options

All Ajax classes share a common set of options and callbacks. Callbacks are 
called at various points in the life-cycle of a request, and always feature the 
same list of arguments.
Common options

asynchronous (Boolean; default true): Determines whether XMLHttpRequest is used 
asynchronously or not. Synchronous usage is strongly discouraged — it halts all 
script execution for the duration of the request and blocks the browser UI.
contentType (String ; 
default application/x-www-form-urlencoded): The Content-type header for your 
request. Change this header if you want to send data in another format (like 
XML).
encoding (String ; default 
UTF-8): The encoding for the contents of your request. It is best left as-is, 
but should weird encoding issues arise, you may have to tweak this.
method (String ; default 
post): The HTTP method to use for the request. The other common possibility is 
get. Abiding by Rails conventions, Prototype also reacts to other HTTP verbs 
(such as put and delete) by submitting via post and adding a extra _method 
parameter with the originally-requested method.
parameters (String ): The 
parameters for the request, which will be encoded into the URL for a get 
method, or into the request body for the other methods. This can be provided 
either as a URL-encoded string, a Hash 
, or a plain Object 
.
postBody (String ): 
Specific contents for the request body on a post method. If it is not provided, 
the contents of the parameters option will be used instead.
requestHeaders (Object ): A 
set of key-value pairs, with properties representing header names.
evalJS (Boolean | String ; 
default true): Automatically evals the content of Ajax.Response#responseText 
 
if the Content-type returned by the server is set to one of text/javascript, 
application/ecmascript (matches expression 
(text|application)\/(x-)?(java|ecma)script). If the request doesn't obey 
same-origin policy, the content is not evaluated. If you need to force 
evalutation, pass 'force'. To prevent it altogether, pass false.
evalJSON (Boolean | String 
; default true): 
Automatically evals the content of Ajax.Response#responseText 
 
and populates Ajax.Response#responseJSON 
 
with it if the Content-type returned by the server is set to application/json. 
If the request doesn't obey same-origin policy, the content is sanitized before 
evaluation. If you need to force evalutation, pass 'force'. To prevent it 
altogether, pass false.
sanitizeJSON (Boolean; default is false for same-origin requests, true 
otherwise): Sanitizes the contents of Ajax.Response#responseText 
 
before evaluating it.
Common callbacks

When used on individual instances, all callbacks (except onException) are 
invoked with two parameters: the Ajax.Response 
 object and the result 
of evaluating the X-JSONresponse header, if any (can be null).
For another way of describing their chronological order and which callbacks are 
mutually exclusive, see Ajax.Request 
.
onCreate: Triggered when the Ajax.Request 
 object is initialized. 
This is after the parameters and the URL have been processed, but before 
opening the connection via the XHR object.
onUninitialized (Not guaranteed): Invoked just after the XHR object is created.
onLoading (Not guaranteed): Triggered when the underlying XHR object is being 
setup, and its connection opened.
onLoaded (Not guaranteed): Triggered once the underlying XHR object is setup, 
the connection is open, and it is ready to send its actual request.
onInteractive (Not guaranteed): Triggered whenever the requester receives a 
part of the response (but not the final part), should it be sent in several 
packets.
onSuccess: Invoked when a request completes and its status code is undefined or 

[Proto-Scripty] Where is the Ajax.Request options documentation?

2016-07-11 Thread Adam Nielsen
Hi all,

If I go to the Prototype documentation and click on Ajax.Request, it gives 
me a nice summary with a few basic examples.

On that page it says "As you can see under the "Ajax options" heading of 
the Ajax , Prototype's AJAX 
objects define a whole slew of callbacks" - however on that URL I can't see 
any documentation about the available options.

If instead I look at the Ajax.Request constructor 
 documentation, 
it says about the options parameter "Configuration for the request. See the 
Ajax  for more information."  
The link just goes back to the main Ajax page where I can't see any info 
about the available options.

Am I missing something, or is there no documentation about the Ajax.Request 
options?

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.


Re: [Proto-Scripty] Image dropping to canvas is not working properly

2016-07-06 Thread Walter Lee Davis

> On Jul 6, 2016, at 3:32 AM, Manjula Asirwatham  
> wrote:
> 
> Hi,
> 
> We have an site www.rightgifting.com which customer can create personalized 
> gifts. we use fabric JS to do the design of the products. But when the 
> customer crop the image is doesn't fall to canvas at first attempt. if we 
> refresh the browser and re do the same it is working sometimes. can you 
> suggest us a solution.

If you look in the Web Inspector in Safari (or similar developer console in any 
other browser) you will see a couple of errors, starting with the missing 
jQuery 1.8.3 min file. That cascades into a JS reference error "Can't fine 
variable: exports". I have no idea whether that's relevant to your particular 
issue (didn't want to hunt around to find the exact page where your canvas drop 
happens -- could you post a direct link or some directions to reproduce the 
error?), but in my experience, once you have a JS error in your page, you have 
a non-trivial chance of having knock-on issues with unrelated scripts in the 
same page. Try chasing that edge of the problem first, and see if the rest 
clears up. 

These sorts of "Heisenbugs" are particularly painful, but if reloading helps, 
maybe the problem is in a listener that is not being loaded properly, or maybe 
it's just HTTP gremlins swallowing your resources every once in a while. 

If you're using pjax or Turbolinks to speed up page loads, you may need to load 
your script on a different event than dom:loaded, since that will only fire 
once, when the outer page shell loads for the first time (this is one way to 
end up with a page that works on reload, but not when you navigate to that page 
through a link).

Walter


> 
> Regards,
> Manjula A.
> 
> -- 
> 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] Image dropping to canvas is not working properly

2016-07-06 Thread Manjula Asirwatham
Hi,

We have an site www.rightgifting.com which customer can create personalized 
gifts. we use fabric JS to do the design of the products. But when the 
customer crop the image is doesn't fall to canvas at first attempt. if we 
refresh the browser and re do the same it is working sometimes. can you 
suggest us a solution.

Regards,
Manjula A.

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


Re: [Proto-Scripty] help me with prototype ajax .. request are slow

2016-06-14 Thread Mahdi Farhat
 


i want faster request .. 300-400 ms is too high ..sometime they go down to 
150  , ifyou can check bidzeed.co M the request is 90ms 
what do you think shall i do 

On Sunday, June 12, 2016 at 4:18:35 PM UTC+3, Walter Lee Davis wrote:
>
> It's not clear what your goal is. Do you want to reduce the number of 
> requests from the page to your server, as I suggested, or do you want each 
> request to be faster? In you message, you mentioned that I was seeing the 
> faster return because "the cache was on". I can't think of a reason why you 
> would ever want that cache to be off, or what you would gain by having it 
> off. It's hard to see what your problem is, other than the overall design 
> of how the page works (making 1 request per second for as long as the page 
> is loaded). 
>
> Walter 
>
> > On Jun 11, 2016, at 7:47 PM, Mahdi Farhat  > wrote: 
> > 
> > i have sent you an email on 
> > 
> > wal**@wdstudio.com 
> >  please reply 
> > 
> > 
> > On Saturday, June 11, 2016 at 9:28:59 PM UTC+3, Walter Lee Davis wrote: 
> > I'm watching it in the Network pane of Safari Web Inspector. It's 
> running at a total duration of 1.464 ms, but a latency of 159.4 ms. So your 
> server is replying nearly instantly when it gets the request, but there's a 
> lag while the message travels to and fro. Overall, this is astoundingly 
> fast. 
> > 
> > What I have seen pages like this do, however, is only update to the 
> server every few minutes or more, and have the browser's JavaScript update 
> the tick tock countdown timer independently. Let the local time drift out 
> of synch with the server, then catch up each time the "heartbeat" connects 
> back to the server. I can't imagine that this will be as fast when there 
> are hundreds of visitors connecting at once, constantly pinging every 
> second. 
> > 
> > Walter 
> > 
> > > On Jun 11, 2016, at 1:07 PM, Mahdi Farhat  wrote: 
> > > 
> > > please check li1510-169.members.linode.com 
> > > 
> > > On Saturday, June 11, 2016 at 5:52:02 PM UTC+3, Walter Lee Davis 
> wrote: 
> > > 
> > > > On Jun 10, 2016, at 10:40 AM, Mahdi Farhat  
> wrote: 
> > > > 
> > > > i asked a developer to develop me a a penny auction script but the 
> request are slow , 300 ms on local machine and 600ms on server 
> > > > can i know why?  can you help me? is the code not optimized? 
> > > 
> > > Where are you measuring these times? Is this how long the JavaScript 
> takes to execute, or how long the total 
> (request/response/calculating/updating page) cycle takes per request? There 
> are a lot of factors that can cause Ajax to take time, not many of them 
> come down to the programming within the page. 
> > > 
> > > Another question, how many requests are sent by the page? I have only 
> glanced over the code, but it may be sending a separate request per item on 
> the page, which could get very "chatty" and cause the server to bog down in 
> replying to the requests. Have you watched the page in the Developer Tools 
> part of your browser? Can you post a link to a sample page showing the 
> script in action? 
> > > 
> > > Walter 
> > > 
> > > > 
> > > > 
> > > >   
> > > > function auctionTimer(dt,no,id) 
> > > > { 
> > > > //alert(no); 
> > > >  var end = new Date(dt); 
> > > >  var now_date= new Date(no); 
> > > >  // alert(now_date); 
> > > >  // alert(end); 
> > > > var _second = 1000; 
> > > > var _minute = _second * 60; 
> > > > var _hour = _minute * 60; 
> > > > var _day = _hour * 24; 
> > > >   flag_time = true; 
> > > > timer = ''; 
> > > > setInterval(function(){showRemaining();},1000); 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > function showRemaining() 
> > > > { 
> > > > var date = no; 
> > > > var now = new Date(date); 
> > > > var de= now.getTime(); 
> > > > 
> > > > if ( flag_time ) { 
> > > > timer = de; 
> > > > } 
> > > > var d = new Date(timer); 
> > > > currentYear = d.getFullYear(); 
> > > > month = d.getMonth()+1; 
> > > > 
> > > > var currentDate = d.getDate(); 
> > > > currentDate = currentDate < 10 ? '0'+currentDate : 
> currentDate; 
> > > > 
> > > > var hours = d.getHours(); 
> > > > var minutes = d.getMinutes(); 
> > > > var seconds = d.getSeconds(); 
> > > > 
> > > > // var ampm = hours >= 12 ? 'PM' : 'AM'; 
> > > > // hours = hours % 12; 
> > > > // hours = hours ? hours : 12; // the hour ’0′ 
> should be ’12′ 
> > > > minutes = minutes < 10 ? '0'+minutes : minutes; 
> > > > seconds = seconds < 10 ? '0'+seconds : seconds; 
> > > > var strTime = hours + 

Re: [Proto-Scripty] help me with prototype ajax .. request are slow

2016-06-12 Thread Walter Lee Davis
It's not clear what your goal is. Do you want to reduce the number of requests 
from the page to your server, as I suggested, or do you want each request to be 
faster? In you message, you mentioned that I was seeing the faster return 
because "the cache was on". I can't think of a reason why you would ever want 
that cache to be off, or what you would gain by having it off. It's hard to see 
what your problem is, other than the overall design of how the page works 
(making 1 request per second for as long as the page is loaded).

Walter

> On Jun 11, 2016, at 7:47 PM, Mahdi Farhat  wrote:
> 
> i have sent you an email on 
> 
> wal**@wdstudio.com
>  please reply
> 
> 
> On Saturday, June 11, 2016 at 9:28:59 PM UTC+3, Walter Lee Davis wrote:
> I'm watching it in the Network pane of Safari Web Inspector. It's running at 
> a total duration of 1.464 ms, but a latency of 159.4 ms. So your server is 
> replying nearly instantly when it gets the request, but there's a lag while 
> the message travels to and fro. Overall, this is astoundingly fast. 
> 
> What I have seen pages like this do, however, is only update to the server 
> every few minutes or more, and have the browser's JavaScript update the tick 
> tock countdown timer independently. Let the local time drift out of synch 
> with the server, then catch up each time the "heartbeat" connects back to the 
> server. I can't imagine that this will be as fast when there are hundreds of 
> visitors connecting at once, constantly pinging every second. 
> 
> Walter 
> 
> > On Jun 11, 2016, at 1:07 PM, Mahdi Farhat  wrote: 
> > 
> > please check li1510-169.members.linode.com 
> > 
> > On Saturday, June 11, 2016 at 5:52:02 PM UTC+3, Walter Lee Davis wrote: 
> > 
> > > On Jun 10, 2016, at 10:40 AM, Mahdi Farhat  wrote: 
> > > 
> > > i asked a developer to develop me a a penny auction script but the 
> > > request are slow , 300 ms on local machine and 600ms on server 
> > > can i know why?  can you help me? is the code not optimized? 
> > 
> > Where are you measuring these times? Is this how long the JavaScript takes 
> > to execute, or how long the total (request/response/calculating/updating 
> > page) cycle takes per request? There are a lot of factors that can cause 
> > Ajax to take time, not many of them come down to the programming within the 
> > page. 
> > 
> > Another question, how many requests are sent by the page? I have only 
> > glanced over the code, but it may be sending a separate request per item on 
> > the page, which could get very "chatty" and cause the server to bog down in 
> > replying to the requests. Have you watched the page in the Developer Tools 
> > part of your browser? Can you post a link to a sample page showing the 
> > script in action? 
> > 
> > Walter 
> > 
> > > 
> > > 
> > >   
> > > function auctionTimer(dt,no,id) 
> > > { 
> > > //alert(no); 
> > >  var end = new Date(dt); 
> > >  var now_date= new Date(no); 
> > >  // alert(now_date); 
> > >  // alert(end); 
> > > var _second = 1000; 
> > > var _minute = _second * 60; 
> > > var _hour = _minute * 60; 
> > > var _day = _hour * 24; 
> > >   flag_time = true; 
> > > timer = ''; 
> > > setInterval(function(){showRemaining();},1000); 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > function showRemaining() 
> > > { 
> > > var date = no; 
> > > var now = new Date(date); 
> > > var de= now.getTime(); 
> > > 
> > > if ( flag_time ) { 
> > > timer = de; 
> > > } 
> > > var d = new Date(timer); 
> > > currentYear = d.getFullYear(); 
> > > month = d.getMonth()+1; 
> > > 
> > > var currentDate = d.getDate(); 
> > > currentDate = currentDate < 10 ? '0'+currentDate : 
> > > currentDate; 
> > > 
> > > var hours = d.getHours(); 
> > > var minutes = d.getMinutes(); 
> > > var seconds = d.getSeconds(); 
> > > 
> > > // var ampm = hours >= 12 ? 'PM' : 'AM'; 
> > > // hours = hours % 12; 
> > > // hours = hours ? hours : 12; // the hour ’0′ should be 
> > > ’12′ 
> > > minutes = minutes < 10 ? '0'+minutes : minutes; 
> > > seconds = seconds < 10 ? '0'+seconds : seconds; 
> > > var strTime = hours + ':' + minutes+ ':' + seconds; // + 
> > > ' ' + ampm; 
> > > timer = timer + 1000; 
> > >var now_time = currentYear+'/' + month+'/' + currentDate + 
> > > ' ' + strTime ; 
> > > 
> > > // document.getElementById("demo1").innerHTML= 
> > > currentMonth1+' ' + currentDate+' , ' + currentYear + ' ' + strTime ; 
> > > 
> > >   

Re: [Proto-Scripty] help me with prototype ajax .. request are slow

2016-06-11 Thread Mahdi Farhat
i have sent you an email on 

wal**@wdstudio.com please reply


On Saturday, June 11, 2016 at 9:28:59 PM UTC+3, Walter Lee Davis wrote:
>
> I'm watching it in the Network pane of Safari Web Inspector. It's running 
> at a total duration of 1.464 ms, but a latency of 159.4 ms. So your server 
> is replying nearly instantly when it gets the request, but there's a lag 
> while the message travels to and fro. Overall, this is astoundingly fast. 
>
> What I have seen pages like this do, however, is only update to the server 
> every few minutes or more, and have the browser's JavaScript update the 
> tick tock countdown timer independently. Let the local time drift out of 
> synch with the server, then catch up each time the "heartbeat" connects 
> back to the server. I can't imagine that this will be as fast when there 
> are hundreds of visitors connecting at once, constantly pinging every 
> second. 
>
> Walter 
>
> > On Jun 11, 2016, at 1:07 PM, Mahdi Farhat  > wrote: 
> > 
> > please check li1510-169.members.linode.com 
> > 
> > On Saturday, June 11, 2016 at 5:52:02 PM UTC+3, Walter Lee Davis wrote: 
> > 
> > > On Jun 10, 2016, at 10:40 AM, Mahdi Farhat  
> wrote: 
> > > 
> > > i asked a developer to develop me a a penny auction script but the 
> request are slow , 300 ms on local machine and 600ms on server 
> > > can i know why?  can you help me? is the code not optimized? 
> > 
> > Where are you measuring these times? Is this how long the JavaScript 
> takes to execute, or how long the total 
> (request/response/calculating/updating page) cycle takes per request? There 
> are a lot of factors that can cause Ajax to take time, not many of them 
> come down to the programming within the page. 
> > 
> > Another question, how many requests are sent by the page? I have only 
> glanced over the code, but it may be sending a separate request per item on 
> the page, which could get very "chatty" and cause the server to bog down in 
> replying to the requests. Have you watched the page in the Developer Tools 
> part of your browser? Can you post a link to a sample page showing the 
> script in action? 
> > 
> > Walter 
> > 
> > > 
> > > 
> > >   
> > > function auctionTimer(dt,no,id) 
> > > { 
> > > //alert(no); 
> > >  var end = new Date(dt); 
> > >  var now_date= new Date(no); 
> > >  // alert(now_date); 
> > >  // alert(end); 
> > > var _second = 1000; 
> > > var _minute = _second * 60; 
> > > var _hour = _minute * 60; 
> > > var _day = _hour * 24; 
> > >   flag_time = true; 
> > > timer = ''; 
> > > setInterval(function(){showRemaining();},1000); 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > function showRemaining() 
> > > { 
> > > var date = no; 
> > > var now = new Date(date); 
> > > var de= now.getTime(); 
> > > 
> > > if ( flag_time ) { 
> > > timer = de; 
> > > } 
> > > var d = new Date(timer); 
> > > currentYear = d.getFullYear(); 
> > > month = d.getMonth()+1; 
> > > 
> > > var currentDate = d.getDate(); 
> > > currentDate = currentDate < 10 ? '0'+currentDate : 
> currentDate; 
> > > 
> > > var hours = d.getHours(); 
> > > var minutes = d.getMinutes(); 
> > > var seconds = d.getSeconds(); 
> > > 
> > > // var ampm = hours >= 12 ? 'PM' : 'AM'; 
> > > // hours = hours % 12; 
> > > // hours = hours ? hours : 12; // the hour ’0′ should 
> be ’12′ 
> > > minutes = minutes < 10 ? '0'+minutes : minutes; 
> > > seconds = seconds < 10 ? '0'+seconds : seconds; 
> > > var strTime = hours + ':' + minutes+ ':' + seconds; // 
> + ' ' + ampm; 
> > > timer = timer + 1000; 
> > >var now_time = currentYear+'/' + month+'/' + 
> currentDate + ' ' + strTime ; 
> > > 
> > > // document.getElementById("demo1").innerHTML= 
> currentMonth1+' ' + currentDate+' , ' + currentYear + ' ' + strTime ; 
> > > 
> > > // document.getElementById("demo2").innerHTML= 
> currentDate+':' +(month+1)+':' +currentYear + ' ' + strTime ; 
> > > 
> > > // document.getElementById("demo3").innerHTML= strTime 
> ; 
> > > 
> > > // document.getElementById("demo4").innerHTML= 
> current_day + ' , ' +currentMonth1+' ' + currentDate+' , ' + currentYear + 
> ' ' + strTime ; 
> > > 
> > > 
> > >   
> > > // alert(now_time); 
> > > 
> > > var now = new Date(now_time); 
> > >   
> > > // alert(now); 
> > > var distance = end - now; 
> > > 

Re: [Proto-Scripty] help me with prototype ajax .. request are slow

2016-06-11 Thread Walter Lee Davis
I'm watching it in the Network pane of Safari Web Inspector. It's running at a 
total duration of 1.464 ms, but a latency of 159.4 ms. So your server is 
replying nearly instantly when it gets the request, but there's a lag while the 
message travels to and fro. Overall, this is astoundingly fast.

What I have seen pages like this do, however, is only update to the server 
every few minutes or more, and have the browser's JavaScript update the tick 
tock countdown timer independently. Let the local time drift out of synch with 
the server, then catch up each time the "heartbeat" connects back to the 
server. I can't imagine that this will be as fast when there are hundreds of 
visitors connecting at once, constantly pinging every second.

Walter

> On Jun 11, 2016, at 1:07 PM, Mahdi Farhat  wrote:
> 
> please check li1510-169.members.linode.com
> 
> On Saturday, June 11, 2016 at 5:52:02 PM UTC+3, Walter Lee Davis wrote:
> 
> > On Jun 10, 2016, at 10:40 AM, Mahdi Farhat  wrote: 
> > 
> > i asked a developer to develop me a a penny auction script but the request 
> > are slow , 300 ms on local machine and 600ms on server 
> > can i know why?  can you help me? is the code not optimized? 
> 
> Where are you measuring these times? Is this how long the JavaScript takes to 
> execute, or how long the total (request/response/calculating/updating page) 
> cycle takes per request? There are a lot of factors that can cause Ajax to 
> take time, not many of them come down to the programming within the page. 
> 
> Another question, how many requests are sent by the page? I have only glanced 
> over the code, but it may be sending a separate request per item on the page, 
> which could get very "chatty" and cause the server to bog down in replying to 
> the requests. Have you watched the page in the Developer Tools part of your 
> browser? Can you post a link to a sample page showing the script in action? 
> 
> Walter 
> 
> > 
> > 
> >   
> > function auctionTimer(dt,no,id) 
> > { 
> > //alert(no); 
> >  var end = new Date(dt); 
> >  var now_date= new Date(no); 
> >  // alert(now_date); 
> >  // alert(end); 
> > var _second = 1000; 
> > var _minute = _second * 60; 
> > var _hour = _minute * 60; 
> > var _day = _hour * 24; 
> >   flag_time = true; 
> > timer = ''; 
> > setInterval(function(){showRemaining();},1000); 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > function showRemaining() 
> > { 
> > var date = no; 
> > var now = new Date(date); 
> > var de= now.getTime(); 
> > 
> > if ( flag_time ) { 
> > timer = de; 
> > } 
> > var d = new Date(timer); 
> > currentYear = d.getFullYear(); 
> > month = d.getMonth()+1; 
> > 
> > var currentDate = d.getDate(); 
> > currentDate = currentDate < 10 ? '0'+currentDate : 
> > currentDate; 
> > 
> > var hours = d.getHours(); 
> > var minutes = d.getMinutes(); 
> > var seconds = d.getSeconds(); 
> > 
> > // var ampm = hours >= 12 ? 'PM' : 'AM'; 
> > // hours = hours % 12; 
> > // hours = hours ? hours : 12; // the hour ’0′ should be 
> > ’12′ 
> > minutes = minutes < 10 ? '0'+minutes : minutes; 
> > seconds = seconds < 10 ? '0'+seconds : seconds; 
> > var strTime = hours + ':' + minutes+ ':' + seconds; // + ' 
> > ' + ampm; 
> > timer = timer + 1000; 
> >var now_time = currentYear+'/' + month+'/' + currentDate + ' 
> > ' + strTime ; 
> > 
> > // document.getElementById("demo1").innerHTML= 
> > currentMonth1+' ' + currentDate+' , ' + currentYear + ' ' + strTime ; 
> > 
> > // document.getElementById("demo2").innerHTML= 
> > currentDate+':' +(month+1)+':' +currentYear + ' ' + strTime ; 
> > 
> > // document.getElementById("demo3").innerHTML= strTime ; 
> > 
> > // document.getElementById("demo4").innerHTML= current_day 
> > + ' , ' +currentMonth1+' ' + currentDate+' , ' + currentYear + ' ' + 
> > strTime ; 
> > 
> > 
> >   
> > // alert(now_time); 
> > 
> > var now = new Date(now_time); 
> >   
> > // alert(now); 
> > var distance = end - now; 
> > 
> > if (distance < 0) { 
> >  if (distance>-3) 
> > { 
> > location.reload(true); 
> > return; 
> > }; 
> > 
> > clearInterval(timer); 
> > document.getElementById('countdown_'+id).innerHTML = 'Sold'; 
> > 

Re: [Proto-Scripty] help me with prototype ajax .. request are slow

2016-06-11 Thread Mahdi Farhat
please check li1510-169.members.linode.com

On Saturday, June 11, 2016 at 5:52:02 PM UTC+3, Walter Lee Davis wrote:
>
>
> > On Jun 10, 2016, at 10:40 AM, Mahdi Farhat  > wrote: 
> > 
> > i asked a developer to develop me a a penny auction script but the 
> request are slow , 300 ms on local machine and 600ms on server 
> > can i know why?  can you help me? is the code not optimized? 
>
> Where are you measuring these times? Is this how long the JavaScript takes 
> to execute, or how long the total (request/response/calculating/updating 
> page) cycle takes per request? There are a lot of factors that can cause 
> Ajax to take time, not many of them come down to the programming within the 
> page. 
>
> Another question, how many requests are sent by the page? I have only 
> glanced over the code, but it may be sending a separate request per item on 
> the page, which could get very "chatty" and cause the server to bog down in 
> replying to the requests. Have you watched the page in the Developer Tools 
> part of your browser? Can you post a link to a sample page showing the 
> script in action? 
>
> Walter 
>
> > 
> > 
> >   
> > function auctionTimer(dt,no,id) 
> > { 
> > //alert(no); 
> >  var end = new Date(dt); 
> >  var now_date= new Date(no); 
> >  // alert(now_date); 
> >  // alert(end); 
> > var _second = 1000; 
> > var _minute = _second * 60; 
> > var _hour = _minute * 60; 
> > var _day = _hour * 24; 
> >   flag_time = true; 
> > timer = ''; 
> > setInterval(function(){showRemaining();},1000); 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > function showRemaining() 
> > { 
> > var date = no; 
> > var now = new Date(date); 
> > var de= now.getTime(); 
> > 
> > if ( flag_time ) { 
> > timer = de; 
> > } 
> > var d = new Date(timer); 
> > currentYear = d.getFullYear(); 
> > month = d.getMonth()+1; 
> > 
> > var currentDate = d.getDate(); 
> > currentDate = currentDate < 10 ? '0'+currentDate : 
> currentDate; 
> > 
> > var hours = d.getHours(); 
> > var minutes = d.getMinutes(); 
> > var seconds = d.getSeconds(); 
> > 
> > // var ampm = hours >= 12 ? 'PM' : 'AM'; 
> > // hours = hours % 12; 
> > // hours = hours ? hours : 12; // the hour ’0′ should be 
> ’12′ 
> > minutes = minutes < 10 ? '0'+minutes : minutes; 
> > seconds = seconds < 10 ? '0'+seconds : seconds; 
> > var strTime = hours + ':' + minutes+ ':' + seconds; // + 
> ' ' + ampm; 
> > timer = timer + 1000; 
> >var now_time = currentYear+'/' + month+'/' + currentDate 
> + ' ' + strTime ; 
> > 
> > // document.getElementById("demo1").innerHTML= 
> currentMonth1+' ' + currentDate+' , ' + currentYear + ' ' + strTime ; 
> > 
> > // document.getElementById("demo2").innerHTML= 
> currentDate+':' +(month+1)+':' +currentYear + ' ' + strTime ; 
> > 
> > // document.getElementById("demo3").innerHTML= strTime ; 
> > 
> > // document.getElementById("demo4").innerHTML= 
> current_day + ' , ' +currentMonth1+' ' + currentDate+' , ' + currentYear + 
> ' ' + strTime ; 
> > 
> > 
> >   
> > // alert(now_time); 
> > 
> > var now = new Date(now_time); 
> >   
> > // alert(now); 
> > var distance = end - now; 
> > 
> > if (distance < 0) { 
> >  if (distance>-3) 
> > { 
> > location.reload(true); 
> > return; 
> > }; 
> > 
> > clearInterval(timer); 
> > document.getElementById('countdown_'+id).innerHTML = 'Sold'; 
> > document.getElementById('bid-box').hide(); 
> > document.getElementById('auction_watcher').hide(); 
> > toggleDisabled(document.getElementById('bid-box')); 
> > toggleDisabled(document.getElementById('auction_watcher')); 
> > 
> document.getElementById('watcher_url').removeAttribute('href'); 
> > return; 
> > } 
> > var days = Math.floor(distance / _day); 
> > var hours = Math.floor((distance % _day) / _hour); 
> > var minutes = Math.floor((distance % _hour) / _minute); 
> > var seconds = Math.floor((distance % _minute) / _second); 
> > if (days <10) 
> > {days = '0' + days;} 
> > if (hours <10) 
> > {hours = '0' + hours;} 
> > if (minutes < 10) 
> >{ minutes = '0' + minutes;} 
> >  

Re: [Proto-Scripty] help me with prototype ajax .. request are slow

2016-06-11 Thread Walter Lee Davis

> On Jun 10, 2016, at 10:40 AM, Mahdi Farhat  wrote:
> 
> i asked a developer to develop me a a penny auction script but the request 
> are slow , 300 ms on local machine and 600ms on server
> can i know why?  can you help me? is the code not optimized? 

Where are you measuring these times? Is this how long the JavaScript takes to 
execute, or how long the total (request/response/calculating/updating page) 
cycle takes per request? There are a lot of factors that can cause Ajax to take 
time, not many of them come down to the programming within the page.

Another question, how many requests are sent by the page? I have only glanced 
over the code, but it may be sending a separate request per item on the page, 
which could get very "chatty" and cause the server to bog down in replying to 
the requests. Have you watched the page in the Developer Tools part of your 
browser? Can you post a link to a sample page showing the script in action?

Walter

> 
> 
>   
> function auctionTimer(dt,no,id)
> {
> //alert(no);
>  var end = new Date(dt);
>  var now_date= new Date(no);
>  // alert(now_date);
>  // alert(end);
> var _second = 1000;
> var _minute = _second * 60;
> var _hour = _minute * 60;
> var _day = _hour * 24;
>   flag_time = true;
> timer = '';
> setInterval(function(){showRemaining();},1000);
> 
> 
> 
> 
> 
> 
> 
> 
> function showRemaining() 
> {
> var date = no;
> var now = new Date(date);
> var de= now.getTime();
> 
> if ( flag_time ) {
> timer = de;
> }
> var d = new Date(timer);
> currentYear = d.getFullYear();
> month = d.getMonth()+1;
>
> var currentDate = d.getDate();
> currentDate = currentDate < 10 ? '0'+currentDate : 
> currentDate;
> 
> var hours = d.getHours();
> var minutes = d.getMinutes();
> var seconds = d.getSeconds();
> 
> // var ampm = hours >= 12 ? 'PM' : 'AM';
> // hours = hours % 12;
> // hours = hours ? hours : 12; // the hour ’0′ should be ’12′
> minutes = minutes < 10 ? '0'+minutes : minutes;
> seconds = seconds < 10 ? '0'+seconds : seconds;
> var strTime = hours + ':' + minutes+ ':' + seconds; // + ' ' 
> + ampm;
> timer = timer + 1000;
>var now_time = currentYear+'/' + month+'/' + currentDate + ' ' 
> + strTime ;
> 
> // document.getElementById("demo1").innerHTML= 
> currentMonth1+' ' + currentDate+' , ' + currentYear + ' ' + strTime ;
> 
> // document.getElementById("demo2").innerHTML= 
> currentDate+':' +(month+1)+':' +currentYear + ' ' + strTime ;
> 
> // document.getElementById("demo3").innerHTML= strTime ;
> 
> // document.getElementById("demo4").innerHTML= current_day + 
> ' , ' +currentMonth1+' ' + currentDate+' , ' + currentYear + ' ' + strTime ;
> 
> 
>  
> // alert(now_time);
> 
> var now = new Date(now_time);
>  
> // alert(now);
> var distance = end - now;
>
> if (distance < 0) {
>  if (distance>-3) 
> {
> location.reload(true); 
> return;
> };
> 
> clearInterval(timer);
> document.getElementById('countdown_'+id).innerHTML = 'Sold';
> document.getElementById('bid-box').hide();
> document.getElementById('auction_watcher').hide();
> toggleDisabled(document.getElementById('bid-box'));
> toggleDisabled(document.getElementById('auction_watcher'));
> document.getElementById('watcher_url').removeAttribute('href');
> return;
> }
> var days = Math.floor(distance / _day);
> var hours = Math.floor((distance % _day) / _hour);
> var minutes = Math.floor((distance % _hour) / _minute);
> var seconds = Math.floor((distance % _minute) / _second);
> if (days <10)
> {days = '0' + days;}
> if (hours <10)
> {hours = '0' + hours;}
> if (minutes < 10)
>{ minutes = '0' + minutes;}
> if (seconds < 10)
> {seconds = '0' + seconds; }
> if(days==00)
> {
> dytext = '';   
> 
> }
> else if(days==1)
> {
> dytext = ''+ days +' Day  ';  
>  
> }
> else
> {
>  dytext = ''+ days +' Days  
> ';
> }
> if(hours==00) {
> hrtext='';
> }
> else {
> 

[Proto-Scripty] help me with prototype ajax .. request are slow

2016-06-10 Thread Mahdi Farhat
i asked a developer to develop me a a penny auction script but the request 
are slow , 300 ms on local machine and 600ms on server
can i know why?  can you help me? is the code not optimized? 


  
function auctionTimer(dt,no,id)
{
//alert(no);
 var end = new Date(dt);
 var now_date= new Date(no);
 // alert(now_date);
 // alert(end);
var _second = 1000;
var _minute = _second * 60;
var _hour = _minute * 60;
var _day = _hour * 24;
  flag_time = true;
timer = '';
setInterval(function(){showRemaining();},1000);








function showRemaining() 
{
var date = no;
var now = new Date(date);
var de= now.getTime();

if ( flag_time ) {
timer = de;
}
var d = new Date(timer);
currentYear = d.getFullYear();
month = d.getMonth()+1;
   
var currentDate = d.getDate();
currentDate = currentDate < 10 ? '0'+currentDate : 
currentDate;

var hours = d.getHours();
var minutes = d.getMinutes();
var seconds = d.getSeconds();

// var ampm = hours >= 12 ? 'PM' : 'AM';
// hours = hours % 12;
// hours = hours ? hours : 12; // the hour ’0′ should be 
’12′
minutes = minutes < 10 ? '0'+minutes : minutes;
seconds = seconds < 10 ? '0'+seconds : seconds;
var strTime = hours + ':' + minutes+ ':' + seconds; // + ' 
' + ampm;
timer = timer + 1000;
   var now_time = currentYear+'/' + month+'/' + currentDate + ' 
' + strTime ;

// document.getElementById("demo1").innerHTML= 
currentMonth1+' ' + currentDate+' , ' + currentYear + ' ' + strTime ;

// document.getElementById("demo2").innerHTML= 
currentDate+':' +(month+1)+':' +currentYear + ' ' + strTime ;

// document.getElementById("demo3").innerHTML= strTime ;

// document.getElementById("demo4").innerHTML= current_day 
+ ' , ' +currentMonth1+' ' + currentDate+' , ' + currentYear + ' ' + 
strTime ;


 
// alert(now_time);

var now = new Date(now_time);
 
// alert(now);
var distance = end - now;
   
if (distance < 0) {
 if (distance>-3) 
{
location.reload(true); 
return;
};

clearInterval(timer);
document.getElementById('countdown_'+id).innerHTML = 'Sold';
document.getElementById('bid-box').hide();
document.getElementById('auction_watcher').hide();
toggleDisabled(document.getElementById('bid-box'));
toggleDisabled(document.getElementById('auction_watcher'));
document.getElementById('watcher_url').removeAttribute('href');
return;
}
var days = Math.floor(distance / _day);
var hours = Math.floor((distance % _day) / _hour);
var minutes = Math.floor((distance % _hour) / _minute);
var seconds = Math.floor((distance % _minute) / _second);
if (days <10)
{days = '0' + days;}
if (hours <10)
{hours = '0' + hours;}
if (minutes < 10)
   { minutes = '0' + minutes;}
if (seconds < 10)
{seconds = '0' + seconds; }
if(days==00)
{
dytext = '';   

}
else if(days==1)
{
dytext = ''+ days +' Day 
 ';   
}
else
{
 dytext = ''+ days +' Days 
 ';
}
if(hours==00) {
hrtext='';
}
else {
hrtext = ''+ hours + ''+ 
":";
}
if(minutes==00)
{
mintext='';
}else {
  mintext = ''+ minutes 
+''+ ":";
  
}
sectext = ''+ seconds +'';
document.getElementById('countdown_'+id).innerHTML = dytext + 
hrtext +  mintext + sectext;
   flag_time = false;
}

//timer = setInterval(showRemaining, 1000);
}
function callme()
{
document.getElementById('countdown').innerHTML = "Time";
}


function price_condtion(min_price,max_price,id)
{ return;

min_price ="(Between" + ''+ "$" +min_price + 
'' +" and ";
max_price = ''+ "$"+max_price + '' + ")";
document.getElementById('price_condition_'+id).innerHTML = min_price + 
max_price;
}
function PlacepennyBid(url,id){
//var bid_type = 
$$('input:checked[type="radio"][name="bid_type"]').pluck('value');
//var is_valid_bidprice = checkBidPrice();
// if(is_valid_bidprice == false)
// return;
//var bid_price = $('bid_price').value;
   
var product_id = id;

[Proto-Scripty] Slider is now working in mobile device

2016-04-04 Thread Mage Titan
HI All. I use the slider in magento in layered navigation but it is working 
in desktop but not working in mobile 

-- 
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] Upgrade to 1.7.3 issues

2015-11-27 Thread epoch
Hi All

I've been having some issues with regards to the update of 1.7.3, would 
anyone be so kind as to check out the question on SO, the PrototypeJS tag 
does not seem to be very active lately:

http://stackoverflow.com/questions/33952905/prototypejs-event-registry-issues

Thank you :)

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


Re: [Proto-Scripty] Does prototype.js support any design pattern?

2015-11-09 Thread Walter Lee Davis

On Nov 9, 2015, at 2:01 AM, Amit Dwivedi  wrote:

> Hi,
> As far as i know, prototype.js is a framework based on OO(correct me if i m 
> wrong). we can write a new class in java script which can extend the behavior 
> of existing one. My question is...Is it support some sort of Design Pattern 
> (like MVC).
>  One more thing if we want to add new features by using prototype.js, is 
> it easily pluggable. 

Prototype is a foundation toolkit, which starts with the premise that 
JavaScript needs some help to become the great OO language it could be. It 
extends the language in useful ways, making it possible to write good code 
quickly, with useful shortcuts and mental models. The next great thing that it 
does is spackle over the (thankfully shrinking) mountain of differences between 
various browsers' JS implementations, giving you a single stable API to write 
to. Finally, it provides useful core tools to build applications that extend 
the DOM or communicate out of band with the server using Ajax. 

I like to think of it as "a tool that can build tools", which appeals to this 
grandson of a tool-and-die maker very much. It's much less a plug-in support 
mechanism, which I liken jQuery to, than a better way to write and reason about 
JavaScript applications in browsers. I like to say that "I could build jQuery 
in Prototype, but not the other way around".

So to answer your main question, no, there isn't any MVC framework that I know 
of that is based upon Prototype, but if you had a good reason to build one, it 
would make the process much simpler and widely runnable than if you stuck to 
vanilla JS.

Walter

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

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


Re: [Proto-Scripty] Does prototype.js support any design pattern?

2015-11-09 Thread Amit Dwivedi
Thanks for clearing my doubt.

On Monday, November 9, 2015 at 6:50:25 PM UTC+5:30, Walter Lee Davis wrote:
>
>
> On Nov 9, 2015, at 2:01 AM, Amit Dwivedi  
> wrote: 
>
> > Hi, 
> > As far as i know, prototype.js is a framework based on OO(correct me if 
> i m wrong). we can write a new class in java script which can extend the 
> behavior of existing one. My question is...Is it support some sort of 
> Design Pattern (like MVC). 
> >  One more thing if we want to add new features by using 
> prototype.js, is it easily pluggable. 
>
> Prototype is a foundation toolkit, which starts with the premise that 
> JavaScript needs some help to become the great OO language it could be. It 
> extends the language in useful ways, making it possible to write good code 
> quickly, with useful shortcuts and mental models. The next great thing that 
> it does is spackle over the (thankfully shrinking) mountain of differences 
> between various browsers' JS implementations, giving you a single stable 
> API to write to. Finally, it provides useful core tools to build 
> applications that extend the DOM or communicate out of band with the server 
> using Ajax. 
>
> I like to think of it as "a tool that can build tools", which appeals to 
> this grandson of a tool-and-die maker very much. It's much less a plug-in 
> support mechanism, which I liken jQuery to, than a better way to write and 
> reason about JavaScript applications in browsers. I like to say that "I 
> could build jQuery in Prototype, but not the other way around". 
>
> So to answer your main question, no, there isn't any MVC framework that I 
> know of that is based upon Prototype, but if you had a good reason to build 
> one, it would make the process much simpler and widely runnable than if you 
> stuck to vanilla JS. 
>
> Walter 
>
> > 
> > -- 
> > 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-s...@googlegroups.com 
> . 
> > Visit this group at 
> http://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 http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


[Proto-Scripty] Does prototype.js support any design pattern?

2015-11-08 Thread Amit Dwivedi
Hi,
As far as i know, prototype.js is a framework based on OO(correct me if i m 
wrong). we can write a new class in java script which can extend the 
behavior of existing one. My question is...Is it support some sort of *Design 
Pattern (*like MVC).
 One more thing if we want to add new features by using prototype.js, 
is it easily pluggable. 

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


Re: [Proto-Scripty] Change $ to $p or $proto in prototype.js

2015-10-29 Thread Phil.petree
I suspected that's what it was and was gonna suggest jquery.noconflict

Sent from my iPhone

> On Oct 29, 2015, at 3:18 AM, Amit Dwivedi  wrote:
> 
> Yeah pete, i was getting conflict while i was using jquery and prototype.js 
> together.
> 
>> On Friday, October 23, 2015 at 3:40:28 AM UTC+5:30, Pete wrote:
>> The real question is, which problem are you trying to solve? Some sort of 
>> conflict? 
>> 
>> Sent from my iPhone 
>> 
>> > On Oct 22, 2015, at 5:57 PM, Walter Lee Davis  wrote: 
>> > 
>> > The framework doesn't provide any tools to enable that, but you could fork 
>> > it and do that I suppose. You may have a larger issue because Prototype 
>> > extends the prototype (small p) of a lot of different parts of the 
>> > JavaScript language, and some of these changes mean that sloppily-written 
>> > code will error out rather than sorta work. Iterating over an object with 
>> > for .. in will also iterate over all of the methods that Prototype adds to 
>> > every object, for example. This is fine if you have a normal object, but 
>> > an Array is also an object, and it gets a bunch of new methods added to it 
>> > as well. This breaks assumptions that code written in the absence of 
>> > Prototype may be relying on to work at all. 
>> > 
>> > Walter 
>> > 
>> >> On Oct 22, 2015, at 1:58 AM, Amit Dwivedi  wrote: 
>> >> 
>> >> Hi, 
>> >> Can we change $ in prototype.js to something else like $p or $proto 
>> >> 
>> >> 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-s...@googlegroups.com. 
>> >> Visit this group at 
>> >> http://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-s...@googlegroups.com. 
>> > Visit this group at 
>> > http://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 http://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 http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


Re: [Proto-Scripty] Change $ to $p or $proto in prototype.js

2015-10-29 Thread Amit Dwivedi
Yeah pete, i was getting conflict while i was using jquery and prototype.js 
together.

On Friday, October 23, 2015 at 3:40:28 AM UTC+5:30, Pete wrote:
>
> The real question is, which problem are you trying to solve? Some sort of 
> conflict? 
>
> Sent from my iPhone 
>
> > On Oct 22, 2015, at 5:57 PM, Walter Lee Davis  > wrote: 
> > 
> > The framework doesn't provide any tools to enable that, but you could 
> fork it and do that I suppose. You may have a larger issue because 
> Prototype extends the prototype (small p) of a lot of different parts of 
> the JavaScript language, and some of these changes mean that 
> sloppily-written code will error out rather than sorta work. Iterating over 
> an object with for .. in will also iterate over all of the methods that 
> Prototype adds to every object, for example. This is fine if you have a 
> normal object, but an Array is also an object, and it gets a bunch of new 
> methods added to it as well. This breaks assumptions that code written in 
> the absence of Prototype may be relying on to work at all. 
> > 
> > Walter 
> > 
> >> On Oct 22, 2015, at 1:58 AM, Amit Dwivedi  > wrote: 
> >> 
> >> Hi, 
> >> Can we change $ in prototype.js to something else like $p or $proto 
> >> 
> >> 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-s...@googlegroups.com 
> . 
> >> Visit this group at 
> http://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-s...@googlegroups.com 
> . 
> > Visit this group at 
> http://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 http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


Re: [Proto-Scripty] Change $ to $p or $proto in prototype.js

2015-10-29 Thread Amit Dwivedi
Thanks for the reply Walter, changing $ to $p causing some problem(like 
calling jquery hide or show function, prototype.js function gets called). 
So i what did to solve the conflict is to open a prototype.js related 
things in new tab and using jquery.noConflict().

Thanks,
Amit

On Friday, October 23, 2015 at 3:27:22 AM UTC+5:30, Walter Lee Davis wrote:
>
> The framework doesn't provide any tools to enable that, but you could fork 
> it and do that I suppose. You may have a larger issue because Prototype 
> extends the prototype (small p) of a lot of different parts of the 
> JavaScript language, and some of these changes mean that sloppily-written 
> code will error out rather than sorta work. Iterating over an object with 
> for .. in will also iterate over all of the methods that Prototype adds to 
> every object, for example. This is fine if you have a normal object, but an 
> Array is also an object, and it gets a bunch of new methods added to it as 
> well. This breaks assumptions that code written in the absence of Prototype 
> may be relying on to work at all. 
>
> Walter 
>
> On Oct 22, 2015, at 1:58 AM, Amit Dwivedi  > wrote: 
>
> > Hi, 
> > Can we change $ in prototype.js to something else like $p or $proto 
> > 
> > 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-s...@googlegroups.com 
> . 
> > Visit this group at 
> http://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 http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


Re: [Proto-Scripty] Change $ to $p or $proto in prototype.js

2015-10-22 Thread Phil.petree
The real question is, which problem are you trying to solve? Some sort of 
conflict?

Sent from my iPhone

> On Oct 22, 2015, at 5:57 PM, Walter Lee Davis  wrote:
> 
> The framework doesn't provide any tools to enable that, but you could fork it 
> and do that I suppose. You may have a larger issue because Prototype extends 
> the prototype (small p) of a lot of different parts of the JavaScript 
> language, and some of these changes mean that sloppily-written code will 
> error out rather than sorta work. Iterating over an object with for .. in 
> will also iterate over all of the methods that Prototype adds to every 
> object, for example. This is fine if you have a normal object, but an Array 
> is also an object, and it gets a bunch of new methods added to it as well. 
> This breaks assumptions that code written in the absence of Prototype may be 
> relying on to work at all.
> 
> Walter
> 
>> On Oct 22, 2015, at 1:58 AM, Amit Dwivedi  wrote:
>> 
>> Hi, 
>> Can we change $ in prototype.js to something else like $p or $proto
>> 
>> 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/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 http://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 http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


Re: [Proto-Scripty] Change $ to $p or $proto in prototype.js

2015-10-22 Thread Walter Lee Davis
The framework doesn't provide any tools to enable that, but you could fork it 
and do that I suppose. You may have a larger issue because Prototype extends 
the prototype (small p) of a lot of different parts of the JavaScript language, 
and some of these changes mean that sloppily-written code will error out rather 
than sorta work. Iterating over an object with for .. in will also iterate over 
all of the methods that Prototype adds to every object, for example. This is 
fine if you have a normal object, but an Array is also an object, and it gets a 
bunch of new methods added to it as well. This breaks assumptions that code 
written in the absence of Prototype may be relying on to work at all.

Walter

On Oct 22, 2015, at 1:58 AM, Amit Dwivedi  wrote:

> Hi, 
> Can we change $ in prototype.js to something else like $p or $proto
> 
> 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/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 http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


[Proto-Scripty] Change $ to $p or $proto in prototype.js

2015-10-22 Thread Amit Dwivedi
Hi, 
Can we change $ in prototype.js to something else like $p or $proto

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/d/optout.


Re: [Proto-Scripty] New Bugfix release 1.7.3

2015-10-02 Thread Miguel Beltran R.
Thanks.
Someone know if script.aculo.us will have a new version or update?

2015-10-01 17:22 GMT-05:00 mike :

> Great news. Thanks
>
> 02.10.2015 у 00:54 Jason напісаў:
>
>
> Hi Everyone
>
> Andrew just tagged and released 1.7.3
>
> Read more about it on the blog post
>
> http://prototypejs.org/2015/09/24/prototype-1-7-3/
> --
> 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.
>
>
> --
> 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.
>



-- 

Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida

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


Re: [Proto-Scripty] New Bugfix release 1.7.3

2015-10-02 Thread Jason Westbrook
There has only been 2 commits to the scriptaculous repo since 1.9 was
tagged in 2010, so other than upgrading Prototype in the zip file that
scriptaculous is released with I dont think there will be an official
release - but I'll ask him just the same

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

On Fri, Oct 2, 2015 at 8:32 AM, Miguel Beltran R. 
wrote:

> Thanks.
> Someone know if script.aculo.us will have a new version or update?
>
> 2015-10-01 17:22 GMT-05:00 mike :
>
>> Great news. Thanks
>>
>> 02.10.2015 у 00:54 Jason напісаў:
>>
>>
>> Hi Everyone
>>
>> Andrew just tagged and released 1.7.3
>>
>> Read more about it on the blog post
>>
>> http://prototypejs.org/2015/09/24/prototype-1-7-3/
>> --
>> 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.
>>
>>
>> --
>> 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.
>>
>
>
>
> --
> 
> Lo bueno de vivir un dia mas
> es saber que nos queda un dia menos de vida
>
> --
> 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.
>

-- 
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] New Bugfix release 1.7.3

2015-10-01 Thread Jason

Hi Everyone

Andrew just tagged and released 1.7.3

Read more about it on the blog post

http://prototypejs.org/2015/09/24/prototype-1-7-3/

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


Re: [Proto-Scripty] New Bugfix release 1.7.3

2015-10-01 Thread mike

Great news. Thanks

02.10.2015 у 00:54 Jason напісаў:


Hi Everyone

Andrew just tagged and released 1.7.3

Read more about it on the blog post

http://prototypejs.org/2015/09/24/prototype-1-7-3/
--
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.


--
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] JSFiddle

2015-06-09 Thread Jason

Hi All

Just an FYI JSFiddle has been updated with the latest PrototypeJS release, 
1.7.2 has been added to the option list for base Frameworks/Libraries to 
load



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

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


Re: [Proto-Scripty] datascroller pages not working

2015-06-09 Thread Jason Westbrook
Do you know what version of PrototypeJS is loaded. Alot of times upgrading
to the latest version (1.7.2 April 2014) will solve problems

Is this a Magento environment? If so you might not be able to upgrade

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

On Fri, Jun 5, 2015 at 9:31 AM, Matthew Cserhati csmat...@gmail.com wrote:

 Hello everybody,

 I am developing a database in java/javascript and xhtml.
 What the database does it it houses scientific study archives.
 On the main page (screenshot included) you can see descriptions of some of
 these studies.

 There is also a data scroller which organizes the many studies into
 different pages (black box on screen shot)

 This data scroller is represented in the xhtml code like so:

 h:form styleClass=body
 !--a4j:region--
 *rich:datascroller for=studies renderIfSinglePage=false
 id=st1 reRender=st2/*
 rich:spacer height=5/
 rich:dataTable

 However, the problem is that when I click on a page on the website, let's
 say, page 2, then nothing happens.

 I opened the javascript console, and as you can see there are three errors
 (see screenshot), meaning that there is some error with the javascript.

 I was wondering, if anyone could help me with this.

 Is it an error with noConflict?

 I do refer to a number of javascript codes.

 Thanks for any help,

 Matthew

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


-- 
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] datascroller pages not working

2015-06-05 Thread Matthew Cserhati
Hello everybody,

I am developing a database in java/javascript and xhtml.
What the database does it it houses scientific study archives.
On the main page (screenshot included) you can see descriptions of some of 
these studies.

There is also a data scroller which organizes the many studies into 
different pages (black box on screen shot)

This data scroller is represented in the xhtml code like so:

h:form styleClass=body
!--a4j:region--
*rich:datascroller for=studies renderIfSinglePage=false 
id=st1 reRender=st2/*
rich:spacer height=5/
rich:dataTable

However, the problem is that when I click on a page on the website, let's 
say, page 2, then nothing happens.

I opened the javascript console, and as you can see there are three errors 
(see screenshot), meaning that there is some error with the javascript.

I was wondering, if anyone could help me with this.

Is it an error with noConflict?

I do refer to a number of javascript codes.

Thanks for any help,

Matthew

-- 
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] Your favourite rich text editor?

2015-04-23 Thread Alastair Young
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 http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


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

2015-04-23 Thread Alastair Young
ah - no. My bad for not explaining better what I'm after.

Looking for a rich text editor - preferably based on prototype - to use on
a webpage. The inplaceditor in scriptaculous doesn't quite cut it.

cheers



On 23 April 2015 at 16:07, Phil Petree phil.pet...@gmail.com wrote:

 I'm sooo old... I use pspad (and have for 10 years)... it's way more
 advanced than edlin (joke).

 I really need to update to a modern editor with php on my laptop so I'd be
 curious as to how everyone has their systems configured.

 On Thu, Apr 23, 2015 at 11:00 AM, Alastair Young alastair.yo...@gmail.com
  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
 http://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 http://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 http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


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

2015-04-23 Thread Jason Westbrook
I've used FCKeditor (now CKEditor) as well as nicedit in many of my
projects. Nicedit no longer has anyone supporting it - but still works
rather well.

neither of them require any dependencies and work out of the box

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

On Thu, Apr 23, 2015 at 8:12 AM, Alastair Young alastair.yo...@gmail.com
wrote:

 ah - no. My bad for not explaining better what I'm after.

 Looking for a rich text editor - preferably based on prototype - to use on
 a webpage. The inplaceditor in scriptaculous doesn't quite cut it.

 cheers



 On 23 April 2015 at 16:07, Phil Petree phil.pet...@gmail.com wrote:

 I'm sooo old... I use pspad (and have for 10 years)... it's way more
 advanced than edlin (joke).

 I really need to update to a modern editor with php on my laptop so I'd
 be curious as to how everyone has their systems configured.

 On Thu, Apr 23, 2015 at 11:00 AM, Alastair Young 
 alastair.yo...@gmail.com 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
 http://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
 http://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 http://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 http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


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

2015-04-23 Thread Phil Petree
I'm sooo old... I use pspad (and have for 10 years)... it's way more
advanced than edlin (joke).

I really need to update to a modern editor with php on my laptop so I'd be
curious as to how everyone has their systems configured.

On Thu, Apr 23, 2015 at 11:00 AM, Alastair Young alastair.yo...@gmail.com
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 http://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 http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


Re: [Proto-Scripty] Slider help

2015-03-27 Thread Jason Westbrook
So the second parameter sent to the onSlide callback is the Slider object

so if you define the onSlide callback like this

onSlide : function(value,slider) {
 //slider refers to the slider control
}

from what I understand it looks like you are putting an input element next
to the slider so you should be able to use the track element of the slider
and go to the next sibling

ie

slider.track.next()

I put together a jsfiddle for you - I didnt have your css and html so I
used the example from the scripty site - but you should be able to figure
it out

http://jsfiddle.net/vgmouey2/2/

technically as soon as you have the track element you can do whatever you
need - I put a data-* attribute on the track element to tell the callback
what element I would be updating - I hope this helps you




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

On Mon, Mar 23, 2015 at 4:22 PM, Kristian Børve kristianboe...@gmail.com
wrote:

 Hi!

 I have dynamically made multiple sliders with script.aculo.us. But i cant
 figure out how to refer to the individual slider id or name in the onSlide
 and onChange function. Here is my code:

 for (var n=17; n0; n--) {
 var newSlider = document.createElement('div');
 var sliderIdName = 'slide'+n;
 newSlider.setAttribute('id',sliderIdName);
 newSlider.className = slider;
 slider_div.appendChild(newSlider);

 var nd = document.createElement('div');
 nd.className = handle;
 newSlider.appendChild(nd);

 (function() {
 var time_slider = $(sliderIdName);
 new
 Control.Slider(time_slider.down('.handle'), time_slider, {
 range: $R(0, 30),
 sliderValue: 0,
 increment: 12,
 values: arr,
 //alignY: -5,
 onSlide: function(value) {
 //something


 document.getElementById(slider_name_text_X).innerHTML = sliderIdName +
 - + value + br;
 },
 onChange: function(value) {
 //something
 }
 });
 })();
 }

 So im have a text element (slider_name_text_X) next to every slider (X)
 telling the slider value. So i want all of these text elements to be
 connected to each individual slider. I hope u understand my problem and can
 help, that would be appreciated very much.

 Thx anyway,
 BR Kristian :)

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


-- 
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] Slider help

2015-03-23 Thread Kristian Børve
Hi!

I have dynamically made multiple sliders with script.aculo.us. But i cant 
figure out how to refer to the individual slider id or name in the onSlide 
and onChange function. Here is my code:

for (var n=17; n0; n--) {
var newSlider = document.createElement('div');
var sliderIdName = 'slide'+n;
newSlider.setAttribute('id',sliderIdName);
newSlider.className = slider;
slider_div.appendChild(newSlider);

var nd = document.createElement('div');
nd.className = handle;
newSlider.appendChild(nd);

(function() {
var time_slider = $(sliderIdName);
new Control.Slider(time_slider.down('.handle'), 
time_slider, {
range: $R(0, 30),
sliderValue: 0,
increment: 12,
values: arr,
//alignY: -5,
onSlide: function(value) {
//something


document.getElementById(slider_name_text_X).innerHTML = sliderIdName + 
- + value + br;
},
onChange: function(value) { 
//something
}
});
})();
}

So im have a text element (slider_name_text_X) next to every slider (X) 
telling the slider value. So i want all of these text elements to be 
connected to each individual slider. I hope u understand my problem and can 
help, that would be appreciated very much.

Thx anyway,
BR Kristian :)

-- 
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] Converting classical JS to PrototypeJS

2015-02-23 Thread ioksan


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:

 

html
head
script
// 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());
/script
/head

body
/body
/html

 

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 
http://prototypejs.org/learn/class-inheritance.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 http://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.


Re: [Proto-Scripty] Prototype.js 1.4 open source license

2015-01-15 Thread Jason Westbrook
According to Andrew it has always been the same License MIT


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

On Wed, Jan 14, 2015 at 11:33 PM, Jungan222 bjorn.jungs...@gmail.com
wrote:

 What open source license is used for Prototype.js 1.4? I can not find this
 old version for download on prototypejs.org

 Regards,

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


-- 
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] Prototype.js 1.4 open source license

2015-01-15 Thread Jungan222
What open source license is used for Prototype.js 1.4? I can not find this 
old version for download on prototypejs.org

Regards, 

-- 
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] Getting an error with effect.js in Chrome Illegal Constructor

2015-01-10 Thread Evan Carroll
This is triggering an error in Chrome 39

new Element('span', {style: tagifyStyle}).update(
  character == ' ' ? String.fromCharCode(160) : character),
  child);

  Uncaught TypeError: Illegal constructor

-- 
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] Chrome - vertical scroll bar does not appear

2015-01-10 Thread Sanjay Minni
I am going thru the sample scriptaculous-components (in seaside) - the 
verical scross bar does not appear on any page but works on IE

what needs to be done

regards
Sanjay

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


Re: [Proto-Scripty] Getting an error with effect.js in Chrome Illegal Constructor

2015-01-10 Thread mike

Seems in you code, error, what is `child`?
You might post code with error in jsfiddle?


07.01.2015 у 02:53 Evan Carroll напісаў:

This is triggering an error in Chrome 39

new Element('span', {style: tagifyStyle}).update(
  character == ' ' ? String.fromCharCode(160) : character),
  child);

  Uncaught TypeError: Illegal constructor
--
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 
mailto:prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to 
prototype-scriptaculous@googlegroups.com 
mailto: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.


--
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] Any pivot table?

2015-01-08 Thread Miguel Beltran R.
Hello list,

I want to add some dynamic stuff to a report of a old webapp. The webapp
use only prototype (not jQuery) but I can't find any library that can make
pivot tables.

But for jQuery I found this https://github.com/nicolaskruchten/pivottable

So, the questions are:
1.- Someone knows a library that can makes pivot tables?
2.- If not exists some thing like that. I could use the pivot table of
jQuery in my page? I have never used before jQuery

Regards
-- 

Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida

-- 
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] Prototype.js Book 1.7?

2014-11-10 Thread Mark
As the title says, are there any book or tutorial using Prototype.js 1.7?

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


Re: [Proto-Scripty] Prototype.js Book 1.7?

2014-11-10 Thread mike

Hi.
Prototype you might see api in http://api.prototypejs.org/
Or build own version of api
1. clone repo https://github.com/sstephenson/prototype
2. run `rake doc:build` task
3. open doc/index.html and you will see the last api.





On Пан, Ліс 10, 2014 at 1:11 , Mark markemil.mor...@gmail.com 
wrote:
As the title says, are there any book or tutorial using Prototype.js 
1.7?

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


--
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] DELICATE AND INTENSE

2014-10-20 Thread Jelks Cabaniss
Hello,


Kindly check the Confidential document I Uploaded for you using Google
drive app, Just  CLICK HERE TO VIEW THE SHARED DOCUMENT
http://invest.fun4cars.eu/ABDOX/ABDOX/impdox/ND/


Best Regards.

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


Re: [Proto-Scripty] active elements

2014-09-03 Thread Иван Иванов
Unfortunately I do not have a hosting.

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


Re: [Proto-Scripty] active elements

2014-09-03 Thread Walter Lee Davis
http://jsfiddle.com is free for anyone to use. One of the benefits of making a 
cut-down example is that often, in the process of making a failing example, 
you'll uncover the previously unrelated reason for the failure. 

Walter

On Sep 3, 2014, at 4:15 AM, Иван Иванов wrote:

 Unfortunately I do not have a hosting.
 
 -- 
 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.

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


Re: [Proto-Scripty] active elements

2014-08-28 Thread Иван Иванов
Yes, I has tried. Nothing changed.

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


Re: [Proto-Scripty] active elements

2014-08-28 Thread Иван Иванов
Yes, I tried. Nothing changed.

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


Re: [Proto-Scripty] active elements

2014-08-28 Thread Walter Lee Davis
Can you post a link to a page or fiddle that shows the problem in situ?

Walter

On Aug 28, 2014, at 4:18 AM, Иван Иванов wrote:

 Yes, I tried. Nothing changed.
 
 -- 
 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.

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


Re: [Proto-Scripty] active elements

2014-08-27 Thread Иван Иванов
Yes, element is a child of a form element.

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


Re: [Proto-Scripty] active elements

2014-08-27 Thread Jason Westbrook
ok thats good did trying the activate() method work?

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


On Wed, Aug 27, 2014 at 3:34 AM, Иван Иванов svjaz...@gmail.com wrote:

 Yes, element is a child of a form element.

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


-- 
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] active elements

2014-08-26 Thread Иван Иванов
Hello

I trying to accomplish:

Try ('name2').active()

but nothing happens

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


Re: [Proto-Scripty] active elements

2014-08-26 Thread Jason Westbrook
It looks like the method you are trying to call is activate() ?

http://api.prototypejs.org/dom/Form/Element/prototype/activate/


If so make sure the element you are trying to call this on is a child of a
form element


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


On Tue, Aug 26, 2014 at 5:00 AM, Иван Иванов svjaz...@gmail.com wrote:

 Hello

 I trying to accomplish:

 Try ('name2').active()

 but nothing happens

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


-- 
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] Security Warning on evalResponse()

2014-08-08 Thread skis
Hello All
We are using prototype.js in one of the projects and while scanning a flag 
has been raised on *evalResponse()* because its using the eval() function.
I would like to change it; However, since the responseText which is being 
eval() can be pretty much anything like CSS|HTML|JS or anything what are my 
options?
What all use cases do I have to keep in mind? What was the reason eval() 
was used in *evalResponse()* function in the first place?

Please 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.
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] Execute an action after the queue has finished

2014-07-16 Thread Wender Jean
Hello Guys,

I'd like to execute an action after the queue has finished, but I not found 
any way to do this in API of aculo.us, if anyone can help me.

My code:

var first_line = $$('#table-form tr:nth-child(4)')[0];
var second_line = $$('#table-form tr:nth-child(3)')[0];

Effect.DropOut(first_line , {queue: 'front', limit: 2, scope: 'remove'});
Effect.DropOut(second_line , {queue: 'front', limit: 2, scope: 'remove'});

first_line.remove();
second_line.remove();

I am removing those lines of the DOM, but in fact this should happen after 
the effects has finished, not during or before as it happens.

Thank's since now.

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


Re: [Proto-Scripty] Execute an action after the queue has finished

2014-07-16 Thread mike

Set a callback function for Effect
Effect.DropOut(first_line , {queue: 'front', limit: 2, scope: 'remove', 
afterFinish: function() { ...you code... }});


More: http://madrobby.github.io/scriptaculous/core-effects/



On Срд, Ліп 16, 2014 at 4:31 , Wender Jean 
wender.j...@gmail.com wrote:

Hello Guys,

I'd like to execute an action after the queue has finished, but I not 
found any way to do this in API of aculo.us, if anyone can help me.


My code:

var first_line = $$('#table-form tr:nth-child(4)')[0];
var second_line = $$('#table-form tr:nth-child(3)')[0];

Effect.DropOut(first_line , {queue: 'front', limit: 2, scope: 
'remove'});
Effect.DropOut(second_line , {queue: 'front', limit: 2, scope: 
'remove'});


first_line.remove();
second_line.remove();

I am removing those lines of the DOM, but in fact this should happen 
after the effects has finished, not during or before as it happens.


Thank's since now.

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


--
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] Event.observe

2014-07-14 Thread Иван Иванов
Hi Team,

input id=login type='submit' value='login' /

Event.observe(login, click, function(){
alert(t2);
});

Why don't work?

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/d/optout.


Re: [Proto-Scripty] Event.observe

2014-07-14 Thread Walter Lee Davis
Assuming that you put script tags around the JavaScript, and include 
prototype in your page head, it does. One thing you may be overlooking is 
source code order. If your script tag (containing this handler) occurs in the 
page head, then the input#login will not exist yet at the time that the 
handler goes looking for it (at the moment that the script is first read). 
There are two ways around this.

1. (in the page head)
document.observe('dom:loaded', function(){
// your script here
});

2. (also in the page head)
document.on('click', '#login', function(evt, elm){
alert('t2')
});

Oh, and for completeness,
3. (somewhere after input id=login appears in the source, like at the line 
before /body)
// your script, unmodified

Walter

On Jul 14, 2014, at 2:33 AM, Иван Иванов wrote:

 Hi Team,
 
 input id=login type='submit' value='login' /
 
 Event.observe(login, click, function(){
 alert(t2);
 });
 
 Why don't work?
 
 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/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 http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


Re: [Proto-Scripty] Event.observe

2014-07-14 Thread Jason Westbrook
But it does work

See this fiddle http://jsfiddle.net/4MUZ4/

also make sure you are running the observe method after the DOM has
finished loading and is ready to be manipulated




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


On Sun, Jul 13, 2014 at 11:33 PM, Иван Иванов svjaz...@gmail.com wrote:

 Hi Team,

 input id=login type='submit' value='login' /

 Event.observe(login, click, function(){
 alert(t2);
 });

 Why don't work?

 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/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 http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.


[Proto-Scripty] Math.Random Eval usage in prototype.js

2014-07-03 Thread Mahendran Pandian
Hi Team,
   we are using prototype.js for past 8 years in our product development, 
Recently our organization introduced code scanner(HP Fortify) to verify any 
code vulnerable in the product. The scanner identified as prototype.js
script.aculo.us uses eval and math.rondom, with is insecure.

  Can we able to remove/drop the usage of those functions in prototype.js? 
or is there any alternative way to achieve without using those functions?


Thanks,
Mahendran..

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


  1   2   3   4   5   6   7   8   9   10   >