Displaying 20 results from an estimated 2000 matches similar to: "Help with link_to_remote or javascript generator"
2006 Aug 01
6
Getting Started on RJS Templates
I definitely need to use RJS templates for my current application. I''ve
used Google for the past twenty minutes or so, yet I can''t find a good
resource that will get me started and show me what the page object can do.
Any links?
When an Ajax link is clicked, I''m trying to change the background of a
"primary" list item, as well as the background and text of
2006 Jun 27
4
RJS Form Values
Hi,
I have the following code :
<%=link_to_function("? | China", update_page{|page|
page[''tags_en''].value = "China"
page[''tags_ch''].value = "?" }) %>
This updates two text fields with the China and ?. However I want to
append the values, not replace them. So I need something like this :
2006 Apr 18
4
update_page yields escaped code in callback
Hi All,
The subject pretty well describes what I am experiencing. This line in
an .rhtml template:
<%= link_to_remote menu_item.humanize,
{:update => ''section'',
:url =>{:controller => menu_item},
:complete => update_page do |page|
page.activate_tab("#{menu_item}_tab", ''menu_'')
page[''section''].hide
2006 Aug 14
2
ajax - layout problem.
Hi guys
Here is my problem...
Using Ajax to update a div with link_to_remote. Problem is I have a layout
defined in my class, so, the div gets the layout when I call the method, how
di I tell a method to ingore the layout?
Cheers.
Pieter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jul 21
10
Using an image button for "link_to_remote"
All,
I want to do an AJAX request using a custom image button. I currently
have this as a standard button action using "button_to".
What I need is the button equivalent of "link_to_remote". Is there a
helper that I can use, or do I need to build it by hand?
I see button_to_function(), but that sets me up to call a Javascript
function, not post to a Rails action.
Or can
2006 Apr 20
4
JavaScriptGenerator Dead End
Hi All,
I posted earlier about a problem I was having with the various remote
view methods escaping all the javascript in my callbacks. I was quickly
informed that that''s just what they do, and offered some workarounds.
However, in actually working with this, I''m finding that this one little
thing is forcing me to write some REALLY ugly code. Where I thought I
could
2007 Mar 09
0
link_to_remote with onmouseover event
Anyone have a better method for having the onmouseover event (or any
other mouse event) instead of onclick when using link_to_remote:
This is what I did, but I''d i have to create one for every mouse
event, can''t figure out how to call a mouse event via an argument .
anyone else run into this problem. Thanks
def link_to_remote_mover(name, options = {}, html_options
2006 Jun 13
21
RJS Templates for Rails
I''m happy to announce the availability of RJS Templates for Rails
published by O''Reilly.
The book covers all aspects and features of RJS that are included in
Rails 1.1. It also walks through a few examples, debugging with
FireBug, and finishes off with some reference material.
The book is 56 pages and is available in PDF format. I''m really happy
with how the book has
2007 Mar 09
0
different mouse event when using link_to_remote
Anybody a have better method for having an onmouseover (or any event).
This is the method used but its not as pretty and has to be done for
every mouse event.
def link_to_remote_mover(name, options = {}, html_options = {})
link_to_function_mover(name, remote_function(options),
html_options)
end
def link_to_function_mover(name, *args, &block)
html_options =
2006 Jul 13
6
Webservices Xml-Rpc and authentication
Hello,
I want to build an application where i have client and server. I need to exacute
commands with XM-RPC. I can get all this working, following the howto''s in wiki and main
website.
But the problem is they are all unsecure. I can''t seem to find any web service examples
where they use authentication, or ssl.
Just wondering if anyone know how i go about doing this.
At the
2006 Mar 15
7
O''Reilly Rails Cookbook on Rough Cuts
Subject says it all. Anybody taken a look yet?
http://www.oreilly.com/catalog/railsckbk/?CMP=ILC-GG7423313304&ATT=railsckbk
After buying the Ruby Cookbook and the other Rails book, I''m pretty
gunshy about another Rough Cuts purchase.
Sean
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 08
3
Make AJAX form do multiple actions?
I have a form that I want to do a few things.
-do an Effect.SlideOut on a div
-replace the text in a div with different text
-update the database and add a new div later in the document.
How do call all of these (there is only one :complete or :update)
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
2012 Nov 15
2
How to modify a S4 function (in the package NADA)
I want to get access to the code of an S4 method in order to possibly modify
a function to accomplish my particular needs: in my case the function in is
cenfit() from the package NADA
Now, given my reproducible example:
my.ex<-structure(list(TEC = c(0.21, 0.077, 0.06, 0.033, 0.014, 0.0072), LR =
c(0L, 0L, 1L, 0L, 1L, 0L)), .Names = c("TEC", "LR"), class =
2019 Sep 16
2
Dovecot 2.3.7.2 lucene segfault and coredump
Hi,
I have other information.
I analyzed the core dump:
(gdb) core 22534
[New LWP 22534]
Reading symbols from /usr/libexec/dovecot/doveadm-server...Reading symbols from /usr/lib/debug/usr/libexec/dovecot/doveadm-server.debug...done.
done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by
2003 Dec 29
1
Agent setup
Dear Group,
I have been successful in setting up the Agents, queues and getting agents
to log in.
Is there a way that I could configure the system so that the agent is called
back. i.e. the agent logs into the system, a call is destined for them and
their phone rings.
If some one has this setup I would be very interested in hearing from them.
Warm Regards and Thanks
---------------
Shad
2019 Sep 12
2
Dovecot 2.3.7.2 lucene segfault and coredump
Hi,
i have a problem with libclucene-core.so.2.3.3.4.
I See segfault error to messages log, when dovecot store mail to INBOX.
set 12 13:41:21 box02.par-tec.it kernel: doveadm-server[20285]: segfault at 38 ip 00007f575b68fc42 sp 00007ffc0272e750 error 4 in libclucene-core.so.2.3.3.4[7f575b569000+188000]
set 12 13:41:22 box02.par-tec.it kernel: doveadm-server[18871]: segfault at 38 ip
2019 Sep 16
1
Dovecot 2.3.7.2 lucene segfault and coredump
Hi Stephan,
thanks for your replay.
This is bt full output:
(gdb) bt full
#0 clear (this=0x0) at /usr/src/debug/clucene-core-2.3.3.4/src/core/CLucene/util/VoidMap.h:123
No locals.
#1 lucene::search::FieldSortedHitQueue::_shutdown () at /usr/src/debug/clucene-core-2.3.3.4/src/core/CLucene/search/FieldSortedHitQueue.cpp:60
No locals.
#2 0x00007f7dc5eabe96 in _lucene_shutdown () at
2005 Jul 01
10
Update Rollup 1 for Windows 2000 SP4
Hello.
Anyone else experiencing Problems with this update ?
We do have W2k AD. And Samba Member-Server. This is done via Winbind
without using Kerberos.
After installing the Update to our AD-Servers. It seems that winbind lost
its connectivity.
wbinfo -t worked.
wbinfo -u showed errors.
After removing the update from all our servers, winbind works again.
Should I move our configuration to
2006 Jan 30
5
a RJS problem/patch
Hi,
add_rjs_to_action_view.rb of javascript_generator_templates
doesn''t work with setting Content-Type in a controller.
(e.g.) http://wiki.rubyonrails.org/rails/pages/HowtoSetDefaultEncoding
class ApplicationController < ActionController::Base
before_filter :set_charset
def set_charset
@headers["Content-Type"] = "text/html; charset=utf-8"
end
end
I