search for: spgrxpdgzsinacpsityfug

Displaying 15 results from an estimated 15 matches for "spgrxpdgzsinacpsityfug".

2005 Dec 17
17
problems with quotes and escaping
First of all I''d like to say thanks for all the great work everyone has put into scriptaculous, I''m having a lot of fun playing with the framework, and easily moving into Web 2.0 territory. I''ve just hit a snag on my project though. So here''s my code: ... var newEvent= "<div
2005 Dec 25
5
understanding session fixation attacks
is there a way that, our application can understand wheteher the session id sent from the browser is forged or created by rails? I understand that if the attacker guesses session id, theres nothing we can do about it; but can we understand if he/she is trying to guess by creating random session ids. _______________________________________________ Rails mailing list
2006 Jan 13
21
anyone interested in an Effect.Slideshow?
I had to make a sort of slideshow for a site I''m working on, and I was thinking of making it into a Scriptaculous object. Anyone think of reasons why I shouldn''t? You''d have to pass in all the image urls and a div id, with an optional delay parameter to determine how long to leave each image up before moving on. I could also have a ''randomize''
2005 Dec 15
0
RJS Templates and the Replace semantics
I have an issue with the way replace_html works in an RJS template. This is a copy of a post on my blog (http://blog.craz8.com <http://blog.craz8.com/> ) that describes the problem and my working solution to the problem. If I have a collection of things that are output like this: <div id="things"> <% @things.each do |thing| %> <%= render :partial =>
2005 Dec 23
0
RE: Maintaining a Dev and a QA environment
Since I develop on one platform and my production servers will be on another, I use virtualization a lot. You can use Microsoft Virtual PC, or VMWare''s products. I am using Microsoft''s Virtual Server, which has a free download, and a 180 day evaluation license. Despite the name, it runs on Windows XP too. With enough memory, I can run a QA system, or a full production
2005 Dec 26
0
Interesting differences between Windows and Linux
I have some controller code that uses the ''httpdate'' method of a ''created_on'' field from my database. I''m running Rails on the Edge. My development environment is Windows XP, my ''production'' environment is Debian Linux. When I upgraded my ''production'' machine for the first time in a month, I start getting an
2005 Dec 02
0
RE: How to test for controller
There is a reason the controller is called *controller*. The controller should be making this type of decision. I would do it this way: Class FooController < ApplicationController def bar @side_nav = :display_admin End def baz @side_nav = :hide_admin EndEnd In the view: <% if @side_nav == :display_admin %> ... <% end %> In your application controller, you can set
2005 Dec 02
0
Resizeable DIVs
I have an implementation of Resizeable DIVs that is based on the Draggable code from script.aculo.us. This is working for me, but is only tested on Firefox 1.0.x and IE 6. On IE, the display isn''t great at small sizes, and the DIV tends to jiggle. This can work with the element also being Draggable, but there is a restriction that the Draggable handle must be set, and cannot be the
2005 Dec 09
0
Element.setOpacity issue in script.aculo.us effects
In the Element.setOpacity method definition in effects.js, there is a line that sets the opacity to 0.999999 if the requested opacity is 1. This is clearly there for a reason, but having a very slight transparency actually makes my pages look bad - images are the worst, but I can see the backgrounds through my supposedly opaque elements. Why is 1 bad for this value? Here''s the
2005 Dec 16
0
Bug in script.aculo.us Draggable in 1.5
I have a Draggable object that contains a SELECT with some OPTION tags. When I select one of the OPTION tags, the entire Draggable acts as though it is being dragged. There is code in the Draggable object to stop this for Firefox: initDrag: function(event) { if(Event.isLeftClick(event)) { // abort on form elements, fixes a Firefox issue var src =
2005 Dec 22
0
RE: Re: ajax - multiple updates on singlexmlhttprequest
>From looking at the Prototype code, it looks like any text in the ''X-JSON'' header will be eval''d and passed as the second parameter to your onSuccess handler. Your handler function could then be (using all the power of Prototype): var handlerFunc = function(t, json) { // Update info container Element.update(''someId'', json.foo); } But your
2006 Jan 08
0
RE: Replacing an html chunk with a different htmlchunk
Actually, I see there are two other prototype calls: Element.remove(''foo''); Which does a parentNode.removeChild(), and Element.update(''foo'', ''some html''); Which does element.innerHTML = ''some html'', and executes any script that is in the string you pass in. -----Original Message----- From:
2005 Dec 21
1
RE: Prototype: correct useage of onComplete withAjax.PeriodicalUpdater
>From a quick look at the source code, it looks like onComplete is only called when the whole thing is done - in the case of Updater, right after the update, in the case of PeriodicalUpdater, right after it has been stopped. It looks like you need to pass your callback method as an ''insertion'' method in the options. This takes two parameters, the first will probably be the
2005 Dec 23
3
RE: Scriptaculous and Prototype based Rich TextEditor
What I have so far. In my main HTML: <script type="text/javascript" src="/javascripts/tiny_mce/tiny_mce_src.js"></script> <script type="text/javascript"> tinyMCE.init({ mode: "textareas", theme: ''advanced'', theme_advanced_toolbar_location: ''top'' }); ... </script> My Ajax form
2005 Dec 21
1
RE: Prototype: correct useage of onCompletewithAjax.PeriodicalUpdater
The only call that PeriodicalUpdater will make periodically to you is the insertion call. I think of onComplete as being ''I''ve done everything I was going to do'', which for Updater is right after it''s done a single update, but for PeriodicalUpdater, it''s after it''s finished all of its updates, so you''ll only get it once for any call