Re: [Proto-Scripty] Show of hands
Happy New Year to you too. I'm not a power user but maintain a site with lots of widgets that are Prototype based, including wide use of TableKit and Ajax pop-up editors. I've been holding off investing too heavily in scriptaculous and Prototype because of the uncertainty but on the flip side have a big job to convert to anything else. thanks for your support on this forum though - it's comforting to know there's some out there. If Prototype were open-sourced with the enthusiasts maintaining it I would feel much better about it. cheers Dave On 3 January 2014 14:01, Walter Lee Davis wrote: > It's been mighty quiet here, and I'm wondering if everyone just knows how to > use Prototype, and doesn't have any questions, or if you've all defected to > the Dark Side. > > Happy New Year, > > 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/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Proto-Scripty] Ajax CORS error message
is the page served from http://test.heroku.com ? If not, it's a cross-site scripting security issue. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] highlighting a tablerow
I think there's also something weird about CSS applied to table rows, (I think) cells don't inherit all properties from the row they 'belong' to. Make sure your HTML/CSS works in a stand-alone document first to check. Dave On 1 January 2013 22:53, Phil Petree wrote: > I have an empty that gets an ajax result that contains a table which > looks like this: > > HTML: > > > Subject: > From: > Sent: > Action > > > $subject > $username > $sentdate > >onclick='deleteMsg(this, $id);'> >onclick='replyMsg(this, $id, \"{$subject}\" );'> >onclick='forwardMsg(this, $id, \"{$subject}\" );'> > > > > > In the onComplete: I am calling this code to try and cause the rows to > highlight during the mouseover... I'm getting nothing. My first thought is > that the table hasn't been rendered when onComplete is called but then, > onComplete should be called after all other work is done. What's the > solution to this? > > Prototype: > $$('tr.mailrow').each(function(item) { > item.observe('mouseover', function() { > item.setStyle({ backgroundColor: '#303030' }); > }); > item.observe('mouseout', function() { > item.setStyle({backgroundColor: '#fff' }); > }); > }); > > CSS: > .mailrow tr:hover { color: #303030; } > > > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To post to this group, send email to > prototype-scriptaculous@googlegroups.com. > To unsubscribe from this group, send email to > prototype-scriptaculous+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?
To answer your OP directly (not sure if it has been, I didn't notice it). open_div = 'system'+k+''; ... if ($(open_div).visible()==true) { if there is no item with id 'system'+k then $(open_div) returns null (correctly) and so $(open_div).visible() throws an error. (for example if nothing has "id='system123'" then when k-123 the error wiil throw) You can avoid it with: if ($(open_div)) { if ($(open_div).visible()==true) { Dave -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] stupid checkbox question
On 27 April 2012 09:12, Phil Petree wrote: > Its 4a here, I'm gonna get some sleep. On 27 April 2012 10:04, Phil Petree wrote: > Well, that didn't work... not enough sleep! > onclick="saveChange(1);" 1 is a number, '1' is a string > function saveChange(cbValue) a better name for the parameter would be cbID Dave -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] new Element removes the name property from passed initialiser in IE7
Just spent more time than I should discovering a (possible) bug in prototype's new Element and could not find it in a web search so thought I'd log it here. I have an object that stores the type of a pop-up (simplified): this.attributes = {name: 'value', type: 'text'}; then uses the object to create a new element of the correct type: new Element('input', this.attributes); in IE7 (not Firefox) the name parameter is deleted so next time I call new Element('input', this.attributes); the input element does not have a name property. I fixed it with a rather big kludge in the call to make a copy of the attributes: new Element('input', $H(op.attributes).clone().toObject()); The problem seems to be in prototype.js global.Element where the code says if (HAS_EXTENDED_CREATE_ELEMENT_SYNTAX && attributes.name) { tagName = '<' + tagName + ' name="' + attributes.name + '">'; delete attributes.name; ... Hope this helps someone (or maybe someone else can suggest a better fix!). cheers Dave -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Firefox height:100% "bug" w/ prototype fix
I suggest that you insert a doctype and then run it through a validator until you get no errors or warning and then analyse what you are left with if you still have the problem. On 15 November 2010 19:26, Scott wrote: > So I've been working on a project the involves a table cell being > scrollable. Firefox is not too friendly with height:100% when the > parent element does not have a fixed height. (basically height:100% of > height:auto = height:auto). From what I hear (and I don't want to > start a standards compliance debate) firefox is following the rules > but I'm not happy with it. IE, Chrome and Safari are rendering the > desired results, I could care less who is doing it 'right'. > > This is more of a css issue but I'm pasting it here because I used the > prototype library to aid me in my solution. > > http://pastie.org/1300351 > > let me know what you think or if you have any suggestions to improve > my code. > (please exclude your opinions on standards compliance) > > - Scott > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To post to this group, send email to prototype-scriptacul...@googlegroups.com. > To unsubscribe from this group, send email to > prototype-scriptaculous+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Prototype return limited
just going on the number 8k (IE limit) and the ambiguity of "return": do you mean that ajax fails when sending >8k to the server, or when the reply to an ajax request from the server is >8k -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Re: how to modify a part of an
depends entirely on what you are trying to capture - is the "edit" always there? is the /admin/users/ always there? in general I'm a great fan of http://www.w3schools.com/ but not sure what to recommend for regular expressions in general - most sites are confusing rather than educational for the novice :) you can try http://www.w3schools.com/jsref/jsref_obj_regexp.asp On 19 August 2010 14:26, Erwin wrote: > I tried the following > > var editRegExp = /(^.*?)([^\/]*)\/edit\?(.*$)/; > > var edit_link = $('edit_user').down('a'); > var match = editRegExp.exec(edit_link.href.toString()); > > on this url : > > /admin/users/4c6a275ea326cb01f401/edit?locale=en > > seems to work , maybe a better writing ? > > > > On 19 août, 15:10, Erwin wrote: >> Hi Dave .. sorry to ask you an additional trick ... but as you are >> qui good in RegExp ... >> >> what if the href is as following : >> >> /admin/users/4c6a275ea326cb01f401/edit?locale=en >> >> in this case (^.*?) is getting the 'edit' string, not the id number : >> 4c6a275ea326cb01f401 >> >> btw : which tutorial do you recommend to get a better understanding of >> RegExp ..? (I found some of them w good explanation but few >> examples;..) >> >> erwin >> >> On 18 août, 19:27, Dave Kibble wrote: >> >> >> >> > you might find this regular expression useful: >> >> > var myRegExp = /(^.*?)([^\/]*)\?(.*$)/; >> > var match = myRegExp.exec(link.href.toString()); >> > alert(match[1] + '\n' + match[2] + '\n' + match[3]); > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To post to this group, send email to prototype-scriptacul...@googlegroups.com. > To unsubscribe from this group, send email to > prototype-scriptaculous+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] how to modify a part of an
you might find this regular expression useful: var myRegExp = /(^.*?)([^\/]*)\?(.*$)/; var match = myRegExp.exec(link.href.toString()); alert(match[1] + '\n' + match[2] + '\n' + match[3]); -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Ajax.Updater sometime results in normal http request (not XMLHttpRequest)
This is a work-around rather than a fix - I'm guessing the URL for the main page is the same as that used for the Ajax? If the server does not see the post parameters then it returns the whole page - well, just use another script instead - in that one, if no parameters are seen no response is sent (or a default empty response maybe). Dave On 28 July 2010 16:29, reuben.m wrote: > I've created a web app using prototype's Ajax class to do most of the > heavy lifting. The initial web page only loads once and from then on > everything is manipulated with XMLHttpRequests. (Mostly POST requests) > > The problem I'm running into is that every once in a while, the > Ajax.Updater somehow results in a normal http request being made, and > as a result, the entire web page is re-sent rather than just the inner- > html content. > > I have no idea what is causing it. It is not easily reproducible, and > seems to happen at random. I've had people reporting this happening on > both Firefox and IE8. > > This is a rails app, with prototype 1.6.1. > > Any suggestions? I haven't been able to reproduce it personally, but I > have observed it on somebody else's computer where I installed Firebug > with the net extension so that I could monitor the XMLHttpRequests. > > One idea that came to me last night was that it might possibly be > something to do with that buggy .NET addon. I got rid of it, but it > was present on the computer where I was able to observe this > happening, and any problems with it are probably present in IE8 as > well. I know that addon has caused problems with communication in the > past, so I thought I might look into that. > > But if anybody has any suggestions, or has seen similar issues > elsewhere, please let me know. > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To post to this group, send email to prototype-scriptacul...@googlegroups.com. > To unsubscribe from this group, send email to > prototype-scriptaculous+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Simple Ajax form
What happens if you type /getIP.php into a browser address bar? Your PHP should emit a valid HTML file (i.e. include head and body tags), but I don't know if that would necessarily stop it working. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---