search for: stripscript

Displaying 9 results from an estimated 9 matches for "stripscript".

Did you mean: stripscripts
2010 Aug 24
1
HTML::StripScripts and markdown incompatibilities
Hi, I'm using perl's HTML::StripScripts to clean out unwanted/broken html from forum post on my web site but it also removes <http://example.com> or <user at example.com> markdown constructs. Any idea how to make these two live together in harmony? Thanks, -- http://www.cruisefish.net
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
2005 Dec 15
0
RJS Templates and the Replace semantics
...end end end end end Add this code to your application javascript file: // Extend the object for our RJS extension to work Object.extend(Element, { replace: function(element, html) { var el = $(element); if (el.outerHTML) { // IE el.outerHTML = html.stripScripts(); } else { // Mozilla var range = el.ownerDocument.createRange(); range.selectNodeContents(el); el.parentNode.replaceChild(range.createContextualFragment(html.stripScri pts()), el); } setTimeout(function() {html.evalScripts()}, 10); } } ); _______________...
2006 Jan 09
0
Re: Rails-spinoffs Digest, Vol 8, Issue 25
For removing or changing a given element, these two functions (from the element object) seem the business remove: function(element) { Element = $(element); Element.parentNode.removeChild(element); }, update: function(element, html) { $(Element).innerHTML = html.stripScripts(); setTimeout(function() {html.evalScripts()}, 10); }, Thanks to everybody for responding, and especially to Tom Fakes for pointing this out! -Jon
2006 Feb 14
5
problem with sortable lists and IE
...: this.containers.failure; alert("test 1"); // this will execute var response = this.transport.responseText; // for whatever reason, the script dies at this point alert("test 2") // this will not execute if (!this.options.evalScripts) response = response.stripScripts(); if (receiver) { if (this.options.insertion) { new this.options.insertion(receiver, response); } else { Element.update(receiver, response); } } if (this.responseIsSuccess()) { if (this.onComplete) setTimeout(this.onComplete.bind(this)...
2007 Mar 01
6
prototype ajax.updater response bigger than 10k on safari
Hi All, Safari crashes everytime my ajax response is bigger than 10k, i traced it down and found out that it breaks when evalScript is being called, maining when extractScript is trying to match the regex..... is this a known bug on safari? if yes is there anyway to get around it? thanks in advance --~--~---------~--~----~------------~-------~--~----~ You received this message because you
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...t.insert(element, content); + insert(element, content); continue; } content = Object.toHTML(content); - range = element.ownerDocument.createRange(); - t.initializeRange(element, range); - t.insert(element, range.createContextualFragment(content.stripScripts())); + tagName = ((position == 'before' || position == 'after') + ? element.parentNode : element).tagName.toUpperCase(); + + childNodes = Element._getContentFromAnonymousElement(tagName, content.stripScripts()); + + if (position == 'top' || position ==...
2008 Jun 12
10
Ajax.Updater not working in IE, tried everything
hi, i am basically using a button, Prototype/AJAX, and PHP to update a user''s location. something simple as typing ''Chicago, IL''. After the script, it rewrites the result in a div tag. here is the form i''m using: <div id="hometown_result">Aurora, IL</div> <form action="" method="post"
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