Displaying 9 results from an estimated 9 matches for "outerhtml".
2005 Dec 17
17
problems with quotes and escaping
First of all I''d like to say thanks for all the great work everyone has put
into scriptaculous,
I''m having a lot of fun playing with the framework, and easily moving into
Web 2.0 territory.
I''ve just hit a snag on my project though.
So here''s my code:
...
var newEvent=
"<div
2005 Dec 15
0
RJS Templates and the Replace semantics
...r removing and re-adding the element:
page.remove "thing-id"
page.insert_html :bottom, :partial => ''thing''
I don''t like either of these ideas, so I came up with an improvement
that replaces the entire element in the DOM, similar to IE''s
element.outerHTML:
page.replace_html_element "thing-id", :partial => ''thing''
So, I''ve written an implementation of replace_html_element that comes in
two parts:
* The addition to the JavaScriptGenerator class to add a
replace_html_element method
* An update to the Prot...
2008 Jan 22
3
dynamic table/adding rows in IE using 'new Element("tr")'
...quot;); table.insert(row)".
I wonder is this something that is "not supposed" to work with
prototype? BTW, if I check the table content created by the first
approach (innerHTML of my DIV), the table looks reasonably good, only
is not visible. In fact if I write:
mydiv.insert (table.outerHTML);
instead of
mydiv.insert (table);
it becomes visible, but of course outerHTML is not not a portable code
and in this way I loose the event handlers for my links, etc. Bad IE
again, or I''m overlooking something?
--~--~---------~--~----~------------~-------~--~----~
You received this mes...
2006 Jan 20
1
Update HTML Element with Ajax
I have following files.
list.rhtml
-----------------------
<ul id="items">
<%= render(:partial => ''item'', :collection => @items) %>
</ul>
_item.rhtml
------------------------
<li id="<%= item.id %>" >
<%= item.name %>
<%= item.body %>
</li>
edit.rjs
------------------------
page.replace_html
2006 May 17
3
RJS behave differently than render :partial?
I have a method in my controller like the following (the syntax may not
be correct, I''m doing this from memory - you should be able to get the
idea though) My rhtml page has a DIV with id="country_areas", which
contains a partial that only makes a drop down of country areas for a
specific country. When changing the country in the country drop down, it
uses the
2006 Jun 19
13
PNG and Alpha-Transparency
Is there a prototype / extension which will assist in cross-browser support
of PNG images?
http://www.alistapart.com/articles/pngopacity/
It seems to me that a class could be developed which would zip through the
DOM and make changes where needed for IE 5.5 / IE 6.0 to handle PNG images.
I don''t want to write one if it''s been done before.
Sam
2006 Apr 12
7
AJAX automatic print to specific printer??
Is it possible to print directly to an XP Pro default printer without
having to go through an intermediate dialog? The clients are XP Pro
with IE. The printer is accessed directly through the network, but could
easily be setup as a Windows shared printer if that helps us out. I''ve
seen where I can use window.print but the user still has to click OK. I
would like to avoid any
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...ring(options.handle))
this.handle = this.element.down('.'+options.handle, 0);
-
+
if(!this.handle) this.handle = $(options.handle);
if(!this.handle) this.handle = this.element;
-
+
if(options.scroll && !options.scroll.scrollTo && !options.scroll.outerHTML) {
options.scroll = $(options.scroll);
this._isScrollChild = Element.childOf(this.element, options.scroll);
}
- Element.makePositioned(this.element); // fix IE
+ Element.makePositioned(this.element); // fix IE
this.options = options;
- this.dragging = false...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server