Displaying 20 results from an estimated 4000 matches similar to: "prototype.js insert issue"
2009 Apr 29
1
Rails, multiple connections and threads
Hi,
I have a rails app which currently does the following
"After the launch of the page, there is a button click which starts
another ruby script on server using system(ruby <file-name>)" This
execution may take a while around 5-10 mins.
I have following questions
1. While the script is being executed are other connection requests to
server waiting or are there services?
2. Is
2009 Mar 26
2
send_file using AJAX
I have a AJAX based form and when I use send_file there is no pop-up
that appears to prompt user to download file... how do I fix this?
Regards,
Sudhindra
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email
2020 Apr 10
4
Running clang tests
Hi,
I’d just like to interject to say that building within Visual Studio isn’t really that bad. Running the lit tests is a bit painful because the LLVM build tools that are integrated with the build system don’t play nice with msbuild. Particularly, I’ve never been able to actually cancel an invocation of lit or tablegen via visual studio. That said, there is a huge upside to building with
2020 Apr 10
2
Running clang tests
Hi Team,
I have checked out the clang and llvm source code and
built the executables using the visual studio 2015 community edition. I am
using Windows as my platform.
However I see that there are some test cases under the clang test folder
in the LLVM.sln. Eg AstMatcherTest,ASTTests etc. I see that these tests
make use of the Google test framework.
In my visual studio I have
2007 Mar 25
5
Insert text into text area field with RJS
Hi,
I''d like to insert/append some default text into a text area after
clicking on an image button ''test.png'' in edit.rhtml:
<%= link_to image_tag("test.png"), url => { :action => :new_text } %>
Action:
# article_body is the textarea''s id.
def new_text
render :update do |page|
page.insert_html :bottom, :article_body,
2006 Jun 08
3
RJS wierdness - Content div display js code
Hi,
I have a link_to_remote name ''Show notes'', which calls an action that
uses this RJS template:
page.replace "notes_remote", :partial => "notes/hide_notes_link"
page.insert_html :top, "notes_list", :template => "notes/list"
page.visual_effect :highlight, ''notes_list'', :duration => 3
Works great. The
2007 May 15
5
Problem with RJS and/or Prototype.js =>ResponseText is blank
Hi, I''ve got a real head-scratcher. I''ve got a standard Ajax form using
form_remote_tag, which calls a controller action which adds a comment
and then sends back some JS via RJS which updates a few items on the
page.
It did work fine but (and I''ve no idea what has happened) now it
doesn''t. It calls the controller action but gets an empty response back
and
2006 Jul 03
6
Rjs $("aaa").insertHtml is not a function error
Hi,
I''ve searched the list and found that someone had the same problem as me
http://lists.rubyonrails.org/pipermail/rails/2006-May/043760.html
I''m have in my page a link like this
<%= link_to_remote ("Add
#{image_tag(''add.png'')}",:url=>{:action=>''addProduct''})%>
and in my controller
def addProduct
..................
2006 Jul 26
3
insert_html inserting fragment twice
Has anyone had trouble with inline RJS insert_html with the latest
version of Rails?
My problem is that insert_html inserts the html fragment twice. For
example,
render :update do |page|
page.insert_html :top, "some_list", "<li>booyow</li>"
end
would render "<li>booyow</li>" twice.
Thanks.
--
Posted via
2006 Apr 05
2
RJS and remote forms
I''ve run into what I think is a browser bug related to using
remote_forms pushed in an RJS update.
In my controller, I have an action that creates a new model and returns
a form for one of its children:
def create_party
party = Party.create
render :update do |page|
page.insert_html :top, ''party-list'', :partial => ''party_header'',
2008 Sep 22
3
syntax error in RJS
I''m new to Ruby on Rails and came across a problem I could not solve
alone.
I''ve a pretty simple RJS file that looks like the following:
3.times do
page.insert_html :bottom, ''messages'', ''test''
end
page.call ''updateMessageWindow''
However this snippet gives a syntax error:
ActionView::TemplateError (compile error
D:/Eigene
2006 Aug 02
9
RJS not cross browser compatible?
I have an RJS template that does the following
page.insert_html :bottom, "some_id", ''<tr id="some_id"><td></td></tr>''
This works just find in safari and firefox. In IE and Opera it doesn''t
work so great. Any ideas? Am I doing something wrong here?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 19
4
RJS replace_html auto-closing tags
I''m using the following RJS template to spit out a div containing a
list of projects:
page.replace_html ''results'', ''<div>''
@projects.each do |p|
page.insert_html :bottom, ''results'', p.name + "<br/>"
end
page.insert_html :bottom, ''searchresults'', ''</div>''
page.show
2006 Apr 09
4
Best RJS process for what I''m trying to do...
I just wanted to ping this off the list to get some advice since I''m
now pulling my hair out. Thanks in advance for taking any time to look
at this. It''s much appreciated. Now, my problem is my RJS is working
but it''s not inserting how I want it to insert. I have a partial I''m
rendering in my view that looks like this:
<ul
2006 Jun 27
5
RJS -- What am I missing?
This is driving me nuts:-)
I''ve brought it down to a simplified case where I''m rendering this rjs
template:
page.insert_html :top, ''cat1'', "<li>Some list item</li>"
According to FireBug, this is what I''m actually getting in the browser:
try {
new Insertion.Top("cat1", "<li>Some list
2006 May 23
2
auto_complete_field help
Not sure what I am doing wrong. Here is what i am trying to do (code
to follow).
I have a form to create a new book. This book can have many authors
and I wanted to be able to add the authors based on if they appear in
the authors table. I originally was going about it a long and arduous
way where I had several forms. After thinking about it I decided to
dynamically add new fields to
2005 Jun 02
1
Can we export Cluster File System mounted partitions using Samba?
Hi All,
I was wondering if SAMBA server can be used to export CFS (Cluster
File System) mounted partitions. That is, can you view a CFS directory
present on a UNIX machine, from a Windows machine, with the SAMBA
server running on the UNIX machine without any hitch. If so is there
any issue related to performance or something? Could you please
clarify this for me?
Also can multiple SAMBA servers
2006 Mar 03
1
rjs isn''t update_page problems
i have a list of, for example, meal_names. Basically, I can submit a name
and the name I add shows up in the list.I had this working wehn i created an
actual add.rjs template for it. So feeling good about my self, I attempted
to move it all to the controller and use some update_page goodness. Now it
the ajax middle doesn''t happen. I don''t get any errors but the list
2006 Jul 18
6
RJS - Insert at top of table?
Quick question regarding RJS and inserting to the top of a table. Here''s
the view I''m working with:
<table id="links-list">
<tr>
<th>Display title</th>
<th>URL</th>
<th>Description</th>
<th>Category</th>
</tr>
<% for link in @links %>
<tr id="link-<%= h link.id
2006 Mar 22
1
page.insert_html and the :text argument
Hi,
I''ve got a problem with .rjs templates. When I do
page.insert_html :bottom, ''stylist_tablebox'', :text => "what ever"
This is what I get:
new Insertion.Bottom(''stylist_tablebox'', null);
I tried this on Edge rails revision 3860 in an inline rjs update.
Thanks in advance,
Frederik