On Nov 21, 12:12 pm, jrochkind <[EMAIL PROTECTED]> wrote:
> After help from tfluehr in irc, more info found here:
>
> http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/46...
Yes, we should fix it. Meanwhile, could you try if something like this
can be a temporary solution:
(func
On Nov 21, 1:29 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote:
> Is it possible to override Element#observe to do this automatically?
I would suggest to use event delegation rather than go through all
this hassle. Is there anything that's stopping you from doing so?
> -Hector
[...]
--
kangax
-
Can you share your final code once you find a good solution? I will need
something like this in the next few weeks. So seeing what you did might be
able to give me a great starting point. And of course I am sure other people
might enjoy seeing this solution.
Thanks.
- J e f f C o n k l i n -
- A
Dang. Well, sounds too intense. I like using the whole background as
an object because then I can control the fonts and background images
without all the scripting which I don't have a good handle on.
Shoot. I assume Flash can do this somehow...
On Nov 21, 12:42 pm, Matt Foster <[EMAIL PROTECTE
> > What do I make wrong
Many things...
> >
> > var a = new Element('div', {id: 'my_div'});
> > $('my_div').style.witdh = '200px';
> >
> >
-You create an element, but never attach it to the DOM.
-Even if you did attach it, the DOM wouldn't be ready at that point in
execution, you've got your
When you create an element with "new Element()", it only exists as a
javascript variable until you append the element to the DOM.
The $() function looks in the DOM for the element, which is why it is not
finding it.
Also, you may want to use Element#setStyle() instead of accessing the style
prope
FYI, I also tried adding an onStartDrag event to the Draggable
elements, then doing a Sortable.destroy on the destination, then
making the destination Droppable w/ an onDrop event so I could clone
the element on the drop and then reactivate Sortable mode.
Seemed like a possible workaround, but the
I have 3 sortables in a user control and would like to perform one
single update when an item is dragged from one column to another.
However, if I add the function onUpdate to each of my sortables, the
event fires twice (once for each sortable). I can't add it to just
one sortable, because there
Have you tried the instructions here:
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
?
On Nov 20, 11:13 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I'am using thickbox to create popups. Thickbox uses jquery, but when I
> load prototype.js and scriptaculous.js and jquery the au
What do I make wrong that Firebug gives me a "$("my_div") is null"
Error-Message when debugging the following lines?
Chrissu
--
http://www.w3.org/1999/xhtml";>
test
var a = new Element('div', {id: 'my_div'});
$('my_div').style.witdh = '200px';
-
--~--~-~--~~---
Wouldn't that method of referencing the drag handle create an unwanted
closure? As I've come to understand, javascript garbage collection
gets confused when a javascript object references a DOM element while
the DOM element references the same javascript object. This would be
counter-productive to
Hi,
I had a radio button before and now we need to create a checkbox for
multiple record selection and delete the link to delete is in a
seperate page and goes like this:
#ActionLabel# DeleteDelete
This is the form for the delete link.
Now the input for the check box along with the script is
Hey. Everyone! how r u?
um having trouble in updating two container (ids) in one ajax call.
the function here I use is protoype's updater function.
Suppose there is two ids
somethinf
there are some code here. there are some code here. there are some
code here. there are some code here. there a
Thanks for the contribution. Finally have it working! While indexing
the rows i inserted leading & trailing single quotes to the index,
must have been absent minded then, that was the problem. Fixed it now
its working.
Once again thanks for the input, gave me hope solution was on the way.
Regards
How can I assign a function to to show a hidden div using the
onLeaveEditMode callback? Right now, when a user clicks the span that
initiates the in-place edit field for a category name, additional edit
controls are hidden. I'd like to then reveal those controls again
either when a user submits
Oh wow...
Hate to be the bearer of bad news Ryan, but not really
You can attach an event listener to an area object, which you could
attempt to harness a fade, but that would require you to make a lot of
edits to the image maps. Secondly, the entire page is one image, if
you take this appro
You could try different variations of the declaration, maybe it just
doesn't like that format. Also note that you're not setting a unit
for your value, this could be considered an invalid declaration?
you could try...
margin:0px;
margin-left:auto;
margin-right:auto;
It should be able to accep
Is it possible to override Element#observe to do this automatically?
-Hector
On Fri, Nov 21, 2008 at 10:26 AM, Matt Foster <[EMAIL PROTECTED]>wrote:
>
> To elaborate on Kangax's idea, a DOM element is a dynamic object,
> being that you can add custom properties which can be referenced for
> furt
To elaborate on Kangax's idea, a DOM element is a dynamic object,
being that you can add custom properties which can be referenced for
further processing...
var ele = new Element("div");
ele.eventHandles = { click : handleClick, mouseover :
handleMouseOver };
ele.observe("click", ele.eventHandles
Hmm, I've double checked this idea, I have no problems with replacing
a TR element.
> element.parentNode.replaceChild(content, element) => element is null
I'd have to make the assumption that your trId value doesn't correlate
to an ID of any element in the document.
On Nov 21, 12:06 pm, "jas
var textFromTD = $("search").select("tr td:first-child").pluck
("innerHTML");
On Nov 21, 12:32 pm, Jay <[EMAIL PROTECTED]> wrote:
> another idea, you might try selectors -
>
> a) if you can put a class on the td cells you are interested in, call
> the class cell1 for instance , then reference
Thank's, it's works ;)
On Nov 21, 3:26 pm, "Mona Remlawi" <[EMAIL PROTECTED]> wrote:
> document.viewport is your friendhttp://prototypejs.org/api/document/viewport
>
> var screen_size = document.viewport.getDimensions();
> $(div).setStyle({
> position: 'absolute',
> top: '0px',
> left: '0px
another idea, you might try selectors -
a) if you can put a class on the td cells you are interested in, call
the class cell1 for instance , then reference it
with
$$('#search tbody tr td.cell1').each(function(e){ ...
e.innerHTML ...});
b) as SWilk said use nth-child, but employing $$ to sa
After help from tfluehr in irc, more info found here:
http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/460-dynamic-loading-of-prototype-does-not-work
On Nov 21, 11:36 am, jrochkind <[EMAIL PROTECTED]> wrote:
> So I really want to load Prototype dynamically, that is, from a js
>
Thanks kangax,
Element#insert is not appropriate because im not adding to the table im
replacing a whole row which is indexed with controls to facilitate editing
of the data that was in that position, however, in another similar situation
I've had to clear the tbody section loop through a json obj
On Nov 21, 4:28 am, "jason maina" <[EMAIL PROTECTED]> wrote:
> [code]
> $('tableID').down('tbody').replaceChild(trID, tr)
>
> error:
> uncaught exception:[Exception... "Could not convert JavaScript argument arg
> 1 [nsIDOMHTMLTableSectioElement.replaceChild]" nresult:"0x80570009
> (NS_XPC_BAD_CONV
So I really want to load Prototype dynamically, that is, from a js
file.
This is because I am providing a sort of javascript-widget type thing,
that users can include on their page to have some 'embedded'
functionality. Kind of like YouTube does, or whatever. They put a
On Nov 21, 7:06 am, anthyon <[EMAIL PROTECTED]> wrote:
> Hi,
>
> is there any way, to access the event handlers of an element
> registered through prototype?
>
> when i create a new element, i need to copy some property including
> event handlers, and sometimes when i put an event handler on an
>
Hi,
JLopez wrote:
>> I'm trying to get the text from the first of every in the
>> of my table.
>> To make it trickier I also would lke unique items.
>>
>> This is what I have so far that works, but I feel like there should be
>> a cleaner way of doing it.
>>
>> My table id is 'search'
>> I w
document.viewport is your friend
http://prototypejs.org/api/document/viewport
var screen_size = document.viewport.getDimensions();
$(div).setStyle({
position: 'absolute',
top: '0px',
left: '0px',
width: screen_size.width + 'px',
height: screen_size.height + 'px'
});
that ought to do it
Hi,
I'd think CSS3 "nth-child" selectors[1] should be able to help (not
with the unique bit). Something like this:
list = $('search').down('tbody').select('tr > td:nth-child(1)');
list.each(function(td) {
// ...do something with the td here... */
});
There I used a direct c
Hi,
I'm trying to get the text from the first of every in the
of my table.
To make it trickier I also would lke unique items.
This is what I have so far that works, but I feel like there should be
a cleaner way of doing it.
My table id is 'search'
I want to dump the contents into a div named
the font of the script.aculo.us logo is really cool=)
with some font-finders i found one that is called
Bitstream Roundhand Bold BT. is that the official or did you use
another one?
here is the link to the one i found
http://www.myfonts.com/fonts/bitstream/roundhand/
I hope you can help me!
Sin
hello,
I have a DIV and I would like that to click on a button, the div fill
the screen.
Is this possible?
Thank's
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this
I most definitely have a valid doctype, although its not a XHTML
doctype - reading through the ticket you linked i cant see anything
that is in reference to my experience?
I currently have a work around for IE which takes advantage of
conditional style sheets and just removes margin:0 auto; from
Hi @ all
The crappy IE is driving me crazy... Has anybody experiences with
script.aculo.us effects and PNG images in which the alpha channel is
used? I know, IE 6 doesn’t support alpha transparency, but IE 7+
does... unfortunately when I use the script.aculo.us library, for
example the appear/fad
Hi,
is there any way, to access the event handlers of an element
registered through prototype?
when i create a new element, i need to copy some property including
event handlers, and sometimes when i put an event handler on an
element later i would like to register the same handler for another
e
Hi All,
First of all, may I say how great I think this product is, and i've
been using it now successfully for the last 3 months.
I am developing a form builder, that combines the drag and drop
features of this product, with asp.net and asp.net ajax. It's coming
on really well now.
I have the f
[code]
$('tableID').down('tbody').replaceChild(trID, tr)
error:
uncaught exception:[Exception... "Could not convert JavaScript argument arg
1 [nsIDOMHTMLTableSectioElement.replaceChild]" nresult:"0x80570009
(NS_XPC_BAD_CONVERT_JS)" location:"JS frame ::
http://projectpath/myfile.js:: flirtFert ::
39 matches
Mail list logo