Displaying 20 results from an estimated 35 matches for "mydiv".
Did you mean:
mydir
2008 Feb 01
1
render partial in div
I have this link which when clicked will loop and render more links and
a form from a partial inside of "myDiv":
<%= link_to_remote ''MyLink'' . . . ., :update =>"myDiv" %>
<div id = myDiv>
<div>
<div>
<div>
What I am trying to do is have a form_remote_tag that re-renders the
list of stuff in "myDiv" when something is added but...
2006 Apr 19
9
Initial load time when periodically_call_remote
...riodically_call_remote with e.g. :frequency => 30
after initial page load I have to wait 30 seconds until this partial
renders first time. Does anybody know how to make ROR to render partial
on web page load, and then start periodic calls every 30 seconds? I
tried to put
<div id=''mydiv''><%= render(:partial, :action=>''myaction'') %></div>
<% periodically_call_remote(:update=>''mydiv'',
:url=>{:action=>''myaction''}, frequency=>30) %>
but it does not work somehow...
Please help!
--
Po...
2005 Oct 16
13
More than one parameter with link_to_remote
Hi all,
I''m trying to pass more than one parameters using link_to_remote, but I''m
getting a behaviour that seems quite strange to me. Here''s the code:
link_to_remote ''some text'',
:update => ''form'',
:method => ''get'',
:url => { :action =>
2006 Apr 27
14
cleanWhitespace and parentNode
Hey cats,
I seem to have ran into a problem in IE trying to use parentNode with
the cleanWhitespace method.
doing something like:
var div = $(''mydiv'');
Element.cleanWhitespace(div);
works really great, but try doing:
var div = $(''mydiv'');
Element.cleanWhitespace(div.parentNode);
or
var div = $(''mydiv'');
div = div.parentNode;
Element.cleanWhitespace(div);
Breaks in IE, I''ve been messing...
2006 Mar 23
2
ajax replace div
Hi,
Using form_remote_tag methode, is there a clean way to
directly replace the content of a given div instead of just update it ?
If I destroy the content of the div using this code:
:success => ''$(\''mydiv'').innerHTML = \''\'''',
It works. But it''s not really a clean way...
Any suggestions are very welcome..
Thanks.
Seb
2006 Jan 11
0
AJAX: link_to_remote problem
I use:
<%= link_to_remote("Update",
:update => ''mydiv'',
:url => { :action => :create, :host => ''rails'' }) %>
which generates the following:
<a href="#" onclick="new Ajax.Updater(''mydiv'', ''/account/create'',
{asynchronous:true, evalScripts:true}); retur...
2006 May 05
0
Node wrapping, node replacement, magic buttons...
...ument containing:
<span id="myElement">My element text</span>
And I want to wrap myElement with another node like this:
<div><span id="myElement">My element text</span></div>
The only solution I found was to do something like this:
var myDiv = document.createElement (''div'');
$(''myElement'').parentNode.insertBefore (myDiv, $(''myElement''));
myDiv.appendChild($(''myElement''));
Does anyone have a more elegant solution than this? Along the same
lines, a replace node...
2006 Mar 20
1
AJAX in conjunction with partials
...ntroller method
that I call, I do a render (:partial => ''whatever.rhtml''), should I
expect that ''whatever.rhtml'' will be rendered in the browser or not?
Put another way, is it in any way reasonable for me to think that
Ajax.Request + partial render of "myDiv" in the Ajax controller target
is
equivalent to Ajax.Updater(''myDiv'', ...)
If not, why not?
Does the Ajax.Request call just "throw away" the response?
Thanks for any help,
Wes Gamble
--
Posted via http://www.ruby-forum.com/.
2006 Jun 11
6
page.update_html not executed
Hi,
when doing:
render :update do |page|
page.replace_html ''suggested_contractors'', :partial =>
''contractors''
page.visual_effect :highlight, ''suggested_contractors''
end
I got js as output, it is not executed, return html *contains*:
try { Element.update("suggested_contractors", "
\n 12345678910\n
\n
2006 Jan 26
0
cloneNode not draggable in IE
Here''s the problem: I have a div, id=mydiv, which I clone using:
var clonedDiv = document.getElementById(''mydiv'').cloneNode(true);
I then set the id to be mynewdiv:
cloneDiv.id = "mynewdiv"; //not using setAttribute to accomodate IE
I then remove the original div:
Element.remove(document.getElementById('...
2005 Nov 17
1
afterFinish option not working as expected
...inish parameter on the BlindDown effect,
but it''s not working as I expect it to. My function appears to be
called just as the effect is starting, not when the BlindDown is
complete (finished drawing).
Here''s the code that I''m using for the most part...
Effect.BlindDown( mydiv, { afterFinish:Form.enable(myform) } )
Any ideas?
Thanks,
Andrew
2006 Apr 25
0
How to manage one to many within application.
...;center><%= link_to ''Back'', :action => ''customer_list'' %></center>
<br>
<%= start_form_tag :action => ''customer_create'' %>
<%= render :partial => ''customer_form'' %>
<div id="mydiv">
</div>
<%= link_to_remote ("Add Address",
:complete => "new
Effect.Highlight(''mydiv'')",
:update => "mydiv",...
2015 Oct 14
3
Strange indexing behavior on HTML emails ..
...#39; text ABCD
Search command does or doesn't find the email with slight variation in
the content of test.eml. Here are the results:
test.eml content:
-----------------------------
From: you at yourself.com
To: me at myself.com
Subject: Test Message
Content-Type: text/html
<div id="mydiv">ABCD 1234</div>
-----------------------------
RESULT: OK. The email is found.
test.eml content (double quotes inside div tag replaced with single):
-----------------------------
From: you at yourself.com
To: me at myself.com
Subject: Test Message
Content-Type: text/html
<div i...
2008 Jan 22
3
dynamic table/adding rows in IE using 'new Element("tr")'
...ew Element("tr"); table.insert(row)".
I wonder is this something that is "not supposed" to work with
prototype? BTW, if I check the table content created by the first
approach (innerHTML of my DIV), the table looks reasonably good, only
is not visible. In fact if I write:
mydiv.insert (table.outerHTML);
instead of
mydiv.insert (table);
it becomes visible, but of course outerHTML is not not a portable code
and in this way I loose the event handlers for my links, etc. Bad IE
again, or I''m overlooking something?
--~--~---------~--~----~------------~-------~--~---...
2006 Dec 14
17
Should Event.stopObserving() remove itself from cache?
Just wondering why Event.stopObserving() doesn''t remove the itself from
the Event.obervers array?
Is there a reason for this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
2007 Aug 02
3
Problems with Element.extend() on responseXML elements with IE
I have the following code in the "onSuccess" function of an
Ajax.Request() call. The content type of the response message is "text/
xml".
function interactionSuccess(request) {
var root = $(request.responseXML.documentElement);
...
So more or less I extend the root element of my XML response.
This call triggers the onException callback. The exception is a
2006 Jun 22
1
remote content
Hi,
I''ve looked through the api and I can''t seem to find the functionality
that I''m looking for. I want a link that, when clicked, will replace the
content of a div with the rendered content of another action. Something
like what you can accomplish when you use remote_form_tag and then have
the reply replace the content of a div in the page. I''m sure this
2006 Apr 09
1
RJS across iframes
I have an inline iframe which has a form in it, when the form is
updated, I would like to call an RJS template that will update the
parent page.
+-----------------------------------------------+
| |
| <div id="mydiv"> Update with RJS </div> |
| |
| +---------------------------------+ |
| | <iframe> with form that when | |
| | update will call RJS teplate to | |
| | update "mydiv"...
2006 Apr 15
2
Using a Button to render partial
Is there a way to render a partial using a button? Basically in a
content div I want the user to launch a new sub content item in the same
div by clicking a button.
Any help appreciated.
Loving rails more and more everyday.
--
Posted via http://www.ruby-forum.com/.
2006 Feb 26
0
Ajax, MemoryStore and sessions
...e. I''m not sure what is happening and how to get around this
problem. Can anyone explain what I''m doing wrong?
I need to use memeoryStore since the object I want to store cannot be
marshalled to PStore.
Thxs, Rob
Here is the page code:
<%= form_remote_tag(:update => "mydiv",
:url => {:action => :ajaxp2}) %>
Enter a number:
<%= text_field_tag(:arg1, @params[:arg1], :size => 5, :maxlength => 5) %>
<%= submit_tag("Submit number with Ajax") %>
<%= end_form_tag %>
<div id="mydiv">
</div>
<p>...