search for: myrul

Displaying 10 results from an estimated 10 matches for "myrul".

Did you mean: myrl
2006 Mar 24
5
problems with ".this"
Hello I´m making a class using prototype''s class.create(), like this: var onewClass = Class.create(); onewClass.prototype = { initialize : function(array) { this.variable = "fooo"; this.array = array; }, function1 : function() { this.array.each(function(element){ alert(element);
2006 Jan 16
2
Behaviour.js and prototype Event.pointerX
is there a way to take advantage of prototypes Event.pointerX when using Behaviour to manage my events? somthing like.. var myrules = { ''body'' : function(el){ el.onclick = function(){ alert(Event.pointerX(e)); } } }; thanks ______________________________________________________________________ Alex Duffield . Principal . InControl Solutions . http:// www.incontrolsolutions.com ______________...
2006 Feb 17
1
window.onresize event using Behaviour.js ?
Does any one know how to register a window.onresize event using Behaviour.js I tryed var myrules = { ''window'' : function(el){ el.onresize = function(){ alert("Window Resized") } }, } Behaviour.register(myrules); but no love. Thanks. ______________________________________________________________________ Alex Duffield . Principal . InControl Solutions ....
2006 Jan 16
11
Preventing bubble
...;'http://foo?sort=foo'';"> <a href="http://foo?sort=foo"> sort by foo </a> </th> I use the following to prevent a click on the <a> to bubble to the <th>. This seems to work, at least in firefox. var myrules = { // Disable bubble up to the <tr> that might have an onclick event ''#matrix a'' : function(e){ e.onclick = function(e){ if (!e) var e = window.event; e.cancelBubble = true; if (e.stopPropagatio...
2007 Dec 10
1
SELinux and Perl script using sendmail
I have a webpage feedback form that uses a Perl script to send e-mails with "| /usr/sbin/sendmail -t". It works just fine, but SELinux is complaining about it: SELinux is preventing /usr/sbin/postdrop (postfix_postdrop_t) "getattr" to pipe:[41117] (httpd_t) I'm a SELinux newb so I don't know what (if anything) to do about it. Suggestions? Miark
2006 Feb 23
5
sortable_list added to by AJAX question
...t is added to by AJAX. The problem is that when a new item is added, it''s not sortable. I found a post on scriptaculous using behaviour.js to refresh the DOM when an item is added, but I can''t figure out how to do it with Rails. To test the behaviour method, I used this: var myrules={ ''div#steps ul'' : function(element) { Sortable.create(''steps_list'', {handle:''handle'', onUpdate:function(){new Ajax.Request(''/goals/sort/4'', {asynchronous:true, evalScripts:true, onComplete:function(request){n...
2004 Feb 06
1
Illegal characters in message names
...from my logs: procmail: [5373] Thu Feb 5 23:59:14 2004 procmail: Assigning "MAILDIR=/Users/name/Maildir/" procmail: Assigning "ORGMAIL=/Users/name/Maildir/" procmail: Assigning "DEFAULT=/Users/name/Maildir/" procmail: Assigning "INCLUDERC=/Users/name/Library/rc.myrules" procmail: Match on "^From:.*someone at somewhere.com" procmail: Error while writing to ".Folder/tmp/1076021954.5373_0.y/rc.myrulessomewhere.com" procmail: Couldn't create or rename temp file ".Folder/tmp/1076021954.5373_0.y/rc.myrulessomewhere.com" procmail...
2006 Jan 18
0
Behaviour & Effect.Highlight?
I''m having a problem with Effect.Highlight and a simple Behaviour rule. In brief, I have a Sortable list. Using Behaviour, I add a hover effect (apply a style on mouseover, remove style on mouseout). The styles contain a border color and background color. var myrules = { ''.sortable li'' : function(element){ element.onmouseover = function(){ Element.addClassName(element,''hover''); }, element.onmouseout = function(){ Element.removeClassName(element,''hover''); } } }; The problem occurs after I r...
2005 Jul 12
11
how to cancel/stop a script.aculo.us effect
I apologise for what is probably a totally noob question here, but I''m at a loss after pouring over the docs and the source code for prototype and scriptaculous... After you''ve started an effect, how do you access it to cancel or change it? I had assumed it was something like this: myEffect = new Effect.Appear(element, {duration:1.5}); myEffect.cancel(); ... but that
2005 Jun 29
14
Unobtrusive scripting?
Currently, pages generated by Rails tend to be sprinkled with JavaScript. This happens, because the various helper methods work only locally and simply append to the output. In order to hide the JavaScript away, rendering would probably have to be changed. A way I can think of is that a page-specific script is included in the head of the document and JavaScript code is not written to the