[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 :: on
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
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
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
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
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!
Hi,
I'm trying to get the text from the first TD of every TR in the
TBODY 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
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
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
Hi,
JLopez wrote:
I'm trying to get the text from the first TD of every TR in the
TBODY 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
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
element
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
script tag on their page,
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_CONVERT_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
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
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',
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, jason
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,
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
further
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
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
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
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
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:
table width=100% cellpadding=2 border=0 cellspacing=1
trtd colspan=3 nowrapstrong#ActionLabel# cfif ShowDeletea
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
div id=1somethinf/div
there are some code here. there are some code here. there are some
code here. there are some code
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
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
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
What do I make wrong
Many things...
script
var a = new Element('div', {id: 'my_div'});
$('my_div').style.witdh = '200px';
/script
/head
-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
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
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
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:
32 matches
Mail list logo