similar to: Best way to render stuff inside a div and pass variables?

Displaying 20 results from an estimated 1000 matches similar to: "Best way to render stuff inside a div and pass variables?"

2006 May 10
2
Redirect whole page from AJAX action that updates a div
Hi, I am calling an action via AJAX to update a div. The action needs to redirect the page in under certain circumstances. However, if I just use "redirect_to" in the action then of course what happens is that the page I want to redirect to replaces only the div, not the entire page, and I get messy nested layouts. Is there a way around this? Can I redirect the entire document from
2006 Jul 23
1
some question about ''observer_field''
Is the observe_field (ActionView::Helpers::PrototypeHelper ) can be apply to any html tag? (such as div) I tried to apply ''observe_field'' to observe the content of <div> tag, but, as the observed <div>''s content was changed, there was nothing happend. for example (in test.rhtml): <%= link_to_remote "test", :update=>"content1",
2006 Jul 07
2
Ajax "Waiting..." flash while round-tripping
I''m trying to figure out how to best allow a user to click a link_to_remote (or something like it) that will make the clicked thing disappear and replace it with a "Saving..." or "Please wait..." image until the server round-trip is complete. Once complete, it needs to replace the HTML in that span or div with text from the server. I imagine it will involve
2006 Apr 14
2
Nested AJAX remote_form in form?
I''d like to achieve something that is better described by the following code: <%= start_form_tag :action => ''create'' %> <%= text_area ''place'', ''description'', :cols => 100, :rows => 4 %> <div id="categories"> <%= form_remote_tag :update => ''categories'',
2006 Jun 28
2
Assign CSS class to Link to Remote
I''m trying to get link_to_remote to assign a CSS class to the link it generates. My code is as follows: <%= link_to_remote "Show Full Info", :update => "fullcontact" + reparray.last.to_s, :url => "/cm/full_contact/" + reparray.last.to_s, :classname => "contactlink" %> Which produces this HTML: <a href="#"
2006 Mar 29
2
Help -- rsync Causing High Load Averages
This is my situation and I am running into dead ends. We have a server with about 400GB of data that we are trying to backup with rsync. On the content1 server we had rsyncd.conf as: [content1] path = / comment = Backup list = no read only = yes hosts allow = 192.168.22.181 hosts deny = * uid = root gid = root and on the backup server we had a crontab entry as follows:
2013 May 30
1
Need help with file corruption issue
Hi all, I've run into an issue and am wondering if folks can give some advice on how to resolve it. Basically Samba appears to be getting confused, providing some other file's contents. Initially I saw this on a Windows host that has mounted a share from CentOs, but I've been able to repro it on the CentOs host using a self-mount. Here's my test script: #!/usr/bin/perl use
2006 Jun 02
1
Ajax: update multiple DIV''s
Hello. Is it possible to update multiple DIVs during? For example I have DIV for @flash[:notice], and one for content and I need to render both DIVs after executing action.
2007 Sep 19
0
Authentication problems using libsmbclient to traverse DFS links
Hi, I'm trying to create a map of DFS links to actual server/share's. I know that you can get this information by logging on to the DFS root server, but I'm trying to use the libsmbclient API to get this information. I have created a fairly simple DFS structure on 2003 servers with everything on the same domain. //MyDomain/DFSRoot /Link1 -> //Fileserv-1/FileShare1 /Link2
2007 Apr 06
1
Authentication problems using libsmbclient API and DFS shares
Hi, I'm trying to create a map of DFS links to actual server/share's.? I know that you can get this information by logging on to the DFS root server, but I'm trying to use the libsmbclient API to get this information. I have created a fairly simple DFS structure on 2003 servers with everything on the same domain. //MyDomain/DFSRoot /Link1 -> //Fileserv-1/FileShare1
2007 May 08
0
Squid + iproute2
Hi all, i have a problem i have this topology 192.168.1.7 GW 192.168.2.252 link 1 ------------------------------------ link 2 | | eth1 PROXY eth0 192.168.1.245 192.168.2.245 The default gw of the PROXY is 192.168.1.7 and the link2 is a Secondary link that i need to go out to internet!!!! My internal IP of the network is
2006 Oct 05
0
Re: LARTC Digest, Vol 20, Issue 4
Hi, I think you now have 2 Links to the internet. You want to route web traffic (transparent proxy triffic) via one link and the rest via the other link. If it is the case, It is possible to do. I have done it. here I have mentioned eth0 and eth1 eth0 is connected to one link (link1) eth1 is connected to other link (link2) , via this link, web traffic will be routed. echo 210 link1 >>
2023 Jul 27
0
Interaction between hosts allow and hosts deny
I am trying to master the hosts allow module parameters described by man rsyncd.conf . Quoting from the man page: > hosts allow > This parameter allows you to specify a list of comma- and/or > whitespace-separated patterns that are matched against a connecting client's > hostname and IP address. If none of the patterns match, then the connection > is rejected. I
2006 Aug 16
6
error with edge rails
I''ve started an app with rails 1.1.6 then ran freeze_edge. My app will not run with rails in the vendor folder. Have I forgot to do something? I"ve been without the internet for the last two months. Has something changed?
2006 Apr 26
1
re-linking hard links
Hello, I have a situation where I have numerous files with numerous hard links to each of them on an ext3 RHEL4.2 system. Some of these files are duplicates of the others. I would like to re-link all of the duplicates to point to a single inode. For instance if file1 has hardlinks link1 and link2, and file2 has hardlinks link3 and link4, I need to change it so that link1, link2 (these
2006 May 13
5
Ajax Checkbox using Rails
Hi, I''m trying to have a checkbox, that when clickes sends an update to the server and in turn modify the UI with feedback on the success of the operation. The main difficulty I''m encountering is that I can''t pass the checkbox value if I use the standard PrototypeHelpers. I''m using remote_function to build the function call, but it doesn''t allow
2006 Jun 30
6
using rjs
Hi I am relatively new to ruby on rails. I want to use this javascript bundle: http://prototype-window.xilinus.com/index.html How would I call those functions in an rjs file? example: win = new Window(''window_id'', {title: "Sample", top:100, left:350}) win.getContent().innerHTML = "<h1>Hello world !!</h1>"; win.setDestroyOnClose();
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 :
2012 Jul 13
0
Error 23 with hard links and 3.0.9 patched
Hello, I'm setting up a system for automated synchronization and backup between different macs (OS X Lion 10.7). I use HFS+ Journaled as filesystem. I wanted to follow these guidelines: http://www.bombich.com/rsync.html but I gave a look inside the patches Mr. Bombich suggested and I thought I could try first by using only the normal ones provided by rsync.samba.org, so I skipped curl -o
2006 Apr 07
3
RJS removing content of div, but not div itself
Hi, I''m creating a list of ingredients on a page. When the user clicks the ''Add Ingredient'' button a record gets added to the db and the ingredient gets added to the page. On the page, each record is represented by a <div> with three <span>s inside. One of the <span>s has a link_to_remote to ''delete'' the ingredient. When the link