Displaying 16 results from an estimated 16 matches for "div_id".
Did you mean:
dev_id
2006 Mar 02
4
Instance variables in Javascript param
How can I make this work ?
<a href="#" onclick="new Effect.Fade(@div_id)"></a>
@div_id is an instance variable ?
TIA
--
Posted via http://www.ruby-forum.com/.
2009 Oct 06
0
[PATCH server] new host networking wui
...;network',
- :action => 'edit_nic'%>/" + $('#nic_id').val());
- $("#host_network_footer").hide();
- }else{
- reset_nics_bonding_detail();
+ }
+ return null;
+ }
+
+ // parses device type out of a div id
+ function device_type_from_div_id(div_id){
+ div_id = div_id.replace("host_network_table_", "");
+ delim = div_id.search("_");
+ result = div_id.substr(0, delim);
+ return result;
+ }
+
+ // parses device id out of a div id
+ function device_id_from_div_id(div_id){
+ div_id = div_id....
2005 Oct 17
7
Ajax.MultiUpdater ?
Hi,
I''m using prototype within ruby on rails.
One limitation I''d like to overcome is the restriction of beeing able to
update just one html elements content using from_remote_tag or
link_to_remote.
AFAICS this is just a restriction of the form_remote_tag/link_to_remote
implementation and it''s underlying Ajax.Updater class. Right?
In theorie there should be no problem,
2006 May 30
0
Ajax.Updater problem in IE
Hello All,
Anybody can give me an advice why following code works
in Firefox + Safari but not in IE?
function load_mails(div_id){
$(div_id).toggle(); //hide or show
var pars = ''id='' + div_id;
var myAjax = new Ajax.Updater(
div_id,
''../library/partials/load_messages.aspx'',
{
method: ''get'',
parameters: pars
});
return false;
}...
2008 Mar 24
2
link_to_remote and restful routes/urls
is there a way to access a restful resource with mike''s new
link_to_remote helper?
something like:
<%= link_to_remote h(user.name),
:update => "div_id",
:url => user_url(user) %>
of course, that doesn''t work.
i have also been trying things like:
:url => controller.asset_host + "/users/#{user.id}?method=get" %>
to no avail.
2009 Jul 30
1
Rails Plugin for swfobject? - swf_fu
...s and have the flash content
pick it up.
The variable is already retrieved in an earlier call to the database so
I don''t believe it''s any type of authentication string issue. Here''s
two examples:
<%= swf_tag "victory.swf", :size => "250x75", :div_id => "flbars",
:flashvars => "victory_id=#{@virtuals_victory}", :parameters => {:wmode
=> ''transparent''} %>
OR
<%= swf_tag "victory.swf", :size => "250x75", :div_id => "flbars",
:flashvars => {:victory_i...
2008 Mar 14
8
Facebooker updates
I just went through and cleaned out most of the bugs and patches. I
also added a facebooker.js file that implements enough of prototype to
do $() and link_to_remote with :update and remote_form_for with :update
Let me know if you run into any issues with it.
Mike
--
Mike Mangino
http://www.elevatedrails.com
2008 Nov 07
1
RJS show as 'try...' in AJAX update
...ys,
I am trying to display Javascript code after an Ajax call. It is
executing the JS code, but it''s also displaying it. It shows as:
try {
alert(...);
} catch ..
...
my controller code:
render :update do |page|
page.alert message_var
end
my Javascript code:
new Ajax.Updater("div_id", my_controller_url,
{ asynchronous: true,
evalScripts: true,
method: ''get'',
parameters: query_string
}
);
In the prototype documentation, it says AJax.Updater''s evalScripts will
eval anything in <script> tags, an...
2006 Feb 05
0
Using javascript with update_element_function
Hi,
I am using evaluate_remote_response and update_element_function, to update
elements with blocks of content, something like this:
<% update_element_function("div_id", :binding => binding) do %>
<div id="newdiv_id">
This is a new div!
</div>
<%= draggable_element(''newdiv_id'') %>
<% end %>
That will update the element with "div_id", and put the new div inside it.
That works, the...
2007 Sep 12
10
Need help refactoring a controller, perhaps add threading?
Good morning,
I''ve been working on my first Rails app. I''m replacing an old Perl
script that scrapes a bunch of data from an Oracle database, generates a
bunch of charts then builds a static webpage with the charts.
I''ve re-built it in Rails, with about 25% of the code it took to do in
Perl and the users can now get dynamic charts instead of day old charts
(or
2006 Jan 13
21
anyone interested in an Effect.Slideshow?
...o determine how long to leave
each image up before moving on. I could also have a ''randomize'' option,
when set to true it would pull the images randomly. It would cross-fade
them using Effect.Fade and Effect.Appear.
Syntax would be something like:
new Effect.Slideshow(''div_id'', [''image1.jpg'', ''image2.jpg''...], { delay:
#.# (in seconds, with a default of 10 seconds), randomize: true/false
});
The script would create the img tag inside of the div (it''d actually
create 2, 1 hidden and 1 showing, then fade one out while...
2010 May 03
0
Scriptaculous, snap draggable to droppable or revert
Hello community,
I am a fairly new RoR programmer and I need some help with Scriptaculous
Drag and Drop:
So I have
<%= draggable_element(@div_id, :revert => "failure", :snap => 5) -%>
and a droppable:
<%= drop_receiving_element(@team_div_id, :with => "''player='' +
(element.id)+ ''&position='' + #{draft_position}" ,:complete =>
visual_effect(:highlight), :update=&g...
2007 May 11
2
Ajax, buttons, and firefox
I created a button_to_remote function that I use to call :toggle_blind
visual_effect :toggle_blind, ''div_id''
It works great on Safari, Opera, IE, but in firefox the button does
nothing. Is there a problem with firefox. I can''t seem to find much
online about this issue.
--
Amos King
Ramped Media
USPS
Programmer/Analyst
St. Louis, MO
Looking for something to do? Visit ImThere.com
--...
2007 Feb 08
3
testing ajax responder actions
I have an Ajax responder method which uses respond_to to make sure it
only works with Ajax. I''m having trouble figuring out how to call this
action successfully. I''m using Rails 1.2.x. Any thoughts?
--
Cheers,
Kevin Williams
http://www.almostserio.us/
"Any sufficiently advanced technology is indistinguishable from
Magic." - Arthur C. Clarke
2007 Feb 25
5
Dynamically uploading a list that's already in a form
I have the classic case of: Posts, and Categories. When the user submits
a post, he has a drop-down list of categories. I want to put a "Add
category" link next to the list of categories.
This is already inside a form, so a "link_to_remote" that creates a
small AJAX form inside the "submit post" form will not work because that
will mean to embed a form in another
2006 Jan 04
9
Resizeable
Has anyone done any work on a "Resizeable" class they''d be willing to share?
I''m looking to do some stuff that''ll need resizable divs, but I didn''t want
to re-invent the wheel if I can avoid it.
-Jerod
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org