Hi!
I'm struggling with some script, and I cannot make
document.viewport.getScrollOffsets() and document.observe
('dom:loaded'...) get to work in IE6 as they do in FireFox...
My doctype is:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
If you have two fields named passwd, but with unique IDs, what will
you do at the server to sort them out? At best, you're going to
receive an array as the value of passwd, with index 0 being the first
instance of that field name in your source order, and passwd[1] being
the second,
Some time ago I played with prototype to make it more other frameworks
friendly. So I wrapped all prototype.js code in closure, and in the
end just pass to the window all needed objects defined by prototype, I
excluded some objects like - Abstract, Field, Form, Try, Insertation,
witch I think
(@Walter: They're in separate forms; he's probably only submitting one
of them.)
Hi,
Prototype's $() function relies on the underlying browser's
implementation of the DOM standard function document.getElementById.
IE6's implementation of document.getElementById is broken: It returns
the first
Thanks Rob, that works perfectly.
Kind regards,
Andrew.
On Jan 23, 11:38 pm, RobG rg...@iinet.net.au wrote:
On Jan 24, 6:57 am, da644 andrewjdi...@gmail.com wrote:
Hi,
I have an HTML object that has been creating using some scripting and
I wish to insert this into to different
On Jan 24, 2:35 pm, Walter Lee Davis wa...@wdstudio.com wrote:
If you have two fields named passwd, but with unique IDs, what will
you do at the server to sort them out?
Walter, you haven't unterstood me. :)
I wrote, that I have two fields with the same name attribute, but in
DIFFERENT
This isn't specific to Prototype, but I figured this would be a good place to
ask.
I'm wondering how JS does garbage collection for objects created via new.
I doesn't seem at all obvious to me how this works, especially since there is
not (as far as I know) a way to destroy an object.
Any
On Jan 24, 8:46 am, Радослав Станков rstan...@gmail.com wrote:
Some time ago I played with prototype to make it more other frameworks
friendly. So I wrapped all prototype.js code in closure, and in the
end just pass to the window all needed objects defined by prototype, I
excluded some
Hi All, I've noticed that document.viewport.getDimensions returns
weird numbers on Opera 9.63 on Ubuntu.
Can anyone confirm?
The code snippet is obvious so I'm pretty sure that it's not my typo
or something
Regards,
Alex
--~--~-~--~~~---~--~~
You received this
hey all, i just noticed that setting a charset encoding within the
response headers makes prototype stop working in IE...
when i use it like that in my repsonse:
header(Content-Type: text/html;);
is works, when is use it like this:
header(Content-Type: text/html; charset= UTF-8);
it doesn't
The code snippet is obvious so I'm pretty sure that it's not my typo
or something
And yet, it's ALWAYS a good idea to include the code you're having
trouble with -- and in particular, include the context in which you're
using that code. Inline code? dom:loaded event? onload event?
Other
On Jan 24, 11:40 am, Jonathan Rosenberg j...@tabbysplace.org
wrote:
This isn't specific to Prototype, but I figured this would be a good place to
ask.
I'm wondering how JS does garbage collection for objects created via new.
The same way as objects created without `new` : )
GC removes
I'm wondering how JS does garbage collection for objects created via new.
Kangax The same way as objects created without `new` : )
Kangax GC removes objects that are no longer referenced. When it
Kangax does so and how it does so is implementation dependent. If
Kangax you want a certain
Thanks all for reply and links.
On Jan 22, 5:52 pm, jgornick jgorn...@gmail.com wrote:
Here's a class I created to know when all images in the body or a
specific div are loaded:http://gist.github.com/50602
Hope this helps!
- Joe
On Jan 21, 9:48 am, T.J. Crowder t...@crowdersoftware.com
Ok, here you are:
//inside some class...
this.on_resize_ = this.on_resize.bindAsEventListener(this);
Event.observe(window,'resize',this.on_resize_);
on_resize: function(e){
var d = document.viewport.getDimensions();
$('header').innerHTML = ' width: '+d.width+' height: '+d.height;
}
I assume you have to be right, since nothing else makes sense, but ...
My thinking was based on the many, many examples I've seen in the documentation
of js packages. For example,
http://www.prototypejs.org/api/ajax/request
http://www.prototypejs.org/api/ajax/updater
On Jan 24, 2:53 pm, Jonathan Rosenberg j...@tabbysplace.org wrote:
My thinking was based on the many, many examples I've seen in the
. . .
I don't think GC would ever allow such premature interruption.
`Ajax.Request` usually depends on `XMLHttpRequest` object internally.
That object,
Hi All,
I've been working on a little bit of code that allows me to drag
drop using script.aculo.us, Draggable and Droppable. I am able to
successfully drag and drop a div, however, the last thing I am trying
to do is update the database with the change. I am currently using
PHP and pulling
On Jan 24, 4:46 pm, Jonathan Rosenberg j...@tabbysplace.org wrote:
[...]
Ahhh ... so now you're starting to answer my original question: How does js
do garbage collection? It's not as simple as it
appears (at least, to me).
So, can I assume that the naked new Ajax.Request object will be
19 matches
Mail list logo