I tried to remove it and add it later, but it won't work in IE 6, I
get the error: "Object doesn't support this property or method". I
know what this means, but IE 6 doesn't support anything :( And
everything works just fine on other browsers :)
On Oct 19, 11:45 pm, "T.J. Crowder" <[EMAIL PROTECT
No i dont have a reason. Maybe it is unnecessary, but i am used to
prototype's hash functions. Thats why.
On 19 Okt, 23:28, kangax <[EMAIL PROTECTED]> wrote:
> On Oct 19, 1:25 pm, morre95 <[EMAIL PROTECTED]> wrote:
>
>
>
> > I´m trying to develop a puzzle game. Like the one you find
> > herehttp
Hi,
> I tried to remove it and add it later, but it won't work in IE 6...
You can definitely add and remove select box options in IE6. There's
something about the way you're doing it that's browser-sensitive.
If you search...
http://www.google.co.uk/search?q=javascript+adding+options+select
I am trying to implement the following:
var Messaging = Class.create({
initialize: function() {
setInterval(this.checkForMessages, 2);
},
checkForMessages: function(event) {
var options = {
method: 'get',
onSuccess: this.pushData.bind(this)
hey folks
i found this amazing site which seems to be using Prototype (http://
www.zeppenfeld.com) and i thought of creating something with a similar
idea -
a large image in the background (a floor plan or 3D building image)
that will have "hotspots" which launch lightbox-like windows (or
really
[code]
function monitorMgr(){
var myLi=$$('ul.flMgr > li');
myLi.each(function(liItem){
Event.observe(liItem, 'click', anFunction, false);
});
}
function anFunction(evt){
alert($(evt).id);
}
[/code]
response: undefined
expected result: the clicked li's id
considerations: 2 ul elements sharing id
Hi!
Building such a site shouldn't be hard if you take step-by-step
approach.
I see the following features:
1. Scrolling-bars-free page with a big image;
2. Hotspots with popups;
3. Sliding menu;
4. Mini-map;
5. Scrolling with mouse wheel;
I'd do (1) by making a DIV with the size of the window,
> function anFunction(evt){
> alert($(evt).id);}
you are trying to get the id of the event object here (which it
undefined). I think what you want is the element that the event was
fired on -- evt.element().id
Darrin
--~--~-~--~~~---~--~~
You received this messag
On Oct 20, 7:40 am, "jason maina" <[EMAIL PROTECTED]> wrote:
> [code]
> function monitorMgr(){
> var myLi=$$('ul.flMgr > li');
> myLi.each(function(liItem){
> Event.observe(liItem, 'click', anFunction, false);
`Event.observe`'s last argument - useCapture - is now deprecated (in
1.6), so you can s
Hi,
> considerations: 2 ul elements sharing id because of css styling.
Not really, right? You mean they're sharing the same class or some
such? You can't have two elements on a page with the same ID; IDs are
required to be unique across the DOM.
FWIW,
--
T.J. Crowder
tj / crowder software / c
Hi,
do you know some prototypejs based alternative to fValidator (http://
zendold.lojcomm.com.br/fvalidator/) and iMask (http://
zendold.lojcomm.com.br/imask/)?
Thanks a lot
Regars,
Tom
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
Thanks for your really helpful advice.
I turned your suggestion into the following patch and also modified
the Rails auto_complete helper as well.
(the revision numbers unfortunately point at my local application
where I made the modification).
If you find this helpful, could you help me getting
On Oct 19, 2008, at 8:38 PM, Leonard Burton wrote:
> Justin,
> Thanks for the help,
>
> Essentially I have this and I would like it to loop through the queue
> instead of ending:
>
> function test(){
>
> sequence.delay(2)
>
> }
>
> function sequence() {
>
> var options = { queue: 'end' };
>
>
Cristisor
The quick dirty way to deal with this is to have 2 different select
list for your days in seperate divs, one with 31 days the other with
30 days. Then with an onchange event on the month div, either show or
hide the relevant select list. You can either have the lists hardcoded
into the
Thanks for all your advices.
> $$('#pleaseWait').invoke('hide');
I do like this one, even if I am not sure why it would be a bad
practice to have failsafe functions (I said "functions", not
"methods" :o) ).
It is common in C++ to check if a pointer is null before freeing it. I
don't see any dif
Hi,
The issue is that when the interval fires the call to
checkForMessages, it doesn't give it the right "this" context, because
JavaScript doesn't have *methods*, just functions (which is all it
needs, but leads to issues like this). If you search in this group
for "binding" you'll find several
[EMAIL PROTECTED] wrote:
> Hi,
>
> do you know some prototypejs based alternative to fValidator (http://
> zendold.lojcomm.com.br/fvalidator/) and iMask (http://
> zendold.lojcomm.com.br/imask/)?
>
> Thanks a lot
Have you checked http://scripteka.com ?
>
> Regars,
> Tom
--
kangax
--~--~
Its because he's referencing the object through the options array,
Proto never gets to sink its method into the object because of this
traversal, while the other browsers support native extensions it works
fine.
$($("Birth_Day").options[0]).remove();
On Oct 20, 8:55 am, delishus <[EMAIL PROTEC
You have to bind your setInterval callback just like you bind your
onSuccess callback...
initialize: function() {
setInterval(this.checkForMessages.bind(this), 2);
},
On Oct 20, 1:10 am, Travis <[EMAIL PROTECTED]> wrote:
> I am trying to implement the following:
>
> var Messaging
Nevermind!
I found out that the issue is a bug with IE and the php framework that
is being used (Qcodo). IE is calling Qcodo controls at the wrong time
when using http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---
HI All,
> In the last fade, add afterFinish:sequence() to your options array.
> That should call the function itself again, and the wheel will turn.
How do I do that in this sequence?
function sequence() {
var options = { queue: 'end' };
//$('logo1').appear(options);
I've a small problem with new Ajax.Request. Actually, there isn't
really a problem with the function itself, but with encoding.
Here is my code:
function getData() {
new Ajax.Request('chat.php', { method: 'post', encoding:
'windows-1251', parameters: "userId=" + userId + "&msgtime=" +
msgtime,
on
I am parsing a response document and creating a string that will
replace an innerHTML of a target DIV. Each element needs to become
"Draggable". At this point, since I haven't actually set the
innerHTML attribute, the id's are not accessible. So I thought about
building up an array of these id'
Hello,
I'm using protoype.js in a rails application. The application works
fine on Safari, FireFox (both windows and mac), however, when I load
my app in IE6, I get an "Error: Object doesn't support this property
or method" pop up.
When I choose to debug that in the script debugger, I see that t
Dear All...
How to make drag and drop an element but it is not dragged over limit height
and width browser size, it likes drag and drop on gmail's windows modal
message...
Thanks,
Best Regards
Saiful Amri
--~--~-~--~~~---~--~~
You received this message because yo
Hi John,
This usually happens when you try to call a Prototype method on an
Element instance that hasn't been extended [passed through $()]. On
almost everything but IE, that's fine, but on IE you have to be sure
to pass the instance through $().
There's an article on this in the new unofficial
Dear...
try using
&msgtime="+encodeURIComponent(msgtime)
I think it does work, thanks
Saiful Amri
On Tue, Oct 21, 2008 at 1:12 AM, Uzm <[EMAIL PROTECTED]> wrote:
>
> I've a small problem with new Ajax.Request. Actually, there isn't
> really a problem with the function itself, but with e
27 matches
Mail list logo