I am unable to do the following within the Yahoo UI Library framework
with Scriptaculous:
YAHOO.namespace("mycompanyname");
YAHOO.mycompanyname.MyClass=Class.create({
initialize:function()
{
}
,
anotherFunction:function(options)
{
Hi,
> Also new Element(id,{}); does not work on IE 6..
Yes, it does. Note that where you have "id" you want to put a tag
name, not an ID; this is for creating new elements, and the first
parameter is the tag name of the new element.
What is the specific issue you're having with it? Is it YUI-
TJ,
Thanks for the reply!
I will try out new Element("tagName",{}); (I have a feeling you are right).
As to the YUI issue, it was a syntax error where I was closing
anotherFunction below with a ')' instead of a '}'
On Tue, Apr 7, 2009 at 5:59 PM, Ananth wrote:
>
> I am unable to do the fol
Is there any way to get javascript run when the results div for
Ajax.Autocompleter is shown, but before anything has been chosen? I
tried it like this:
option 1
option 2
handle_additional_things()
For some reason, the script doesn't get run at all, even though it is
there in the div. Might be
I haven't seen anything in the Wiki either, but you might want to
check the source. There may be a function in there you could hook on
to that's just not documented. The only two events in the
autocompleter cycle that appear extensible are updateElement (where
you have to replace the entir
If you are planning on extending YUI classes using Prototype's
Class.create, you might want to look at the bottom of this bug:
https://prototype.lighthouseapp.com/projects/8886/tickets/151-extending-yui-objects-with-prototype
Trevan
On 4/7/2009 3:59 PM, Ananth wrote:
> I am unable to do the fo
Thanks for pointing me to the bug.
Now I realize it is a systemic problem.
I think the Prototype syntactic sugar for inheritance is clearer to
understand and read than YUI's though both probably do the same thing under
the hood.
On Wed, Apr 8, 2009 at 10:30 AM, Trevan Richins wrote:
>
> If you ar
I actually checked the source and couldn't find anything there, or
then I just didn't understand it completely. That's why I decided to
ask here. The updateElement and afterUpdateElement methods are useless
in this case, as they are run after the selection's been made. Also,
"callback" is too earl
Walter,
Thanks for the reply. I didn't realize you could do some of the
techniques you used.
I don't think this is issue however. I checked the code for event/name
conflicts, then loaded the app before I left and didn't click
anything, came back and nothing on the interface works. I then loaded
Can you provide a URL to show this?
2009/4/8 BrentNicholas :
>
> Walter,
>
> Thanks for the reply. I didn't realize you could do some of the
> techniques you used.
>
> I don't think this is issue however. I checked the code for event/name
> conflicts, then loaded the app before I left and didn'
Are you using cookies / sessions for authentication anywhere in here?
That can be a cause of pain. On one application I built, I needed to
set a periodical updater re-fetching a tiny GIF over and over to keep
the session "alive".
Walter
On Apr 8, 2009, at 10:51 AM, BrentNicholas wrote:
>
@Richard: At this time I can't it's internal intranet stuff. If one
idea doesn't pan out I will probably throw together a bare bones
template to recreate the error there. I'll make that public if it's
still a problem.
@Walter: yes, ColdFusion is using sessions, no cookies. However my
session vars
I have an issue ( ) related to Ajax responses and GZIP compression.
This is in the context of the Apache Tapestry web framework, which
uses Prototype & Scriptaculous.
The issue is that if the response to an Ajax response is compressed
with GZIP, some users see problems: the content visible to th
I'd like to add appear & hide animations to all images on a page based
on mouseenter/leave. To make sure positions are correct after the
animation has been played, the effects need to be chained.
The odd thing now- although I'm using one chain per element (i.e.
having to effects in the chain), the
Hi all
I have built a prototype-controlled homepage for a company of about
500; the middle section of which is used to swap various content -
soon to be hundreds/thousands of different page segments. I would
like to find:
A wysiwyg editor that can produce body-level content only (web
segments w
Here's my issue, I have the following code:
$("description").observe('keyup', function(event){ text_counter
(500).bind(this); });
function text_counter(max_length){
alert(this);
var length = this.value.length;
if (length > max_length){
this.value = this.value.substring(0,max_
Change
$("description").observe('keyup', function(event){
> text_counter(500).bind(this); });
To...
$("description").observe('keyup', text_counter.bind(this, 500));
>
Notice that in your example you're actual event handler is the anonymous
function, which calls text_counter. In the fixed up v
I am using prototype 1.6.0.3 with Modalbox, and I receive the
following error on IE7 when I open a modal box:
line 2317: object does not support this property or method.
The line in question is:
return element.getAttribute(attribute, 2);
Using the script debugger, I found that I coul
I am creating information and assigning it to a div via innerHTML. The
information is normally too large for the area, so the user can use
scroll bars to scroll through the information.
Using Effect.Move does not appear to work within the div. Is this a
bug, or
perhaps might I be doing something
Effect.Move moves entire DIVs around, it does not move content within
a DIV. If you nest another DIV inside the parent DIV (and set the
parent to overflow:hidden, you could try moving that inner DIV around
inside it, or you could try using Effect.Morph to change the left-
bearing.
Walter
>From my experience YUI compressor is both extremely good and very
safe. I believe they have fixed any of these one off things like
$super that could create bugs. We've been using it for well over a
year and shrink prototype, scriptaculous, ExtJS, and our own code all
together. Works great.
Jo
Hi all,
I'm building an AJAX list controller, and I'm having a few issues.
I'm new to Prototype and anything worth doing in javascript as well.
Please bear with me if my questions are obvious.
Basically, for each list item, I want to attach a function call to an
onclick event. Generally this i
Hi,
if you are using php, there is a nice compression script here
http://rakaz.nl/item/make_your_pages_load_faster_by_combining_and_compressing_javascript_and_css_files.
I tested it with prototype and scriptacolous and it makes pageloads a
breeze. As a bonus, it concatenates css files as well.
G
23 matches
Mail list logo