Displaying 14 results from an estimated 14 matches for "elementid".
Did you mean:
element_id
2006 Jan 30
5
Multiple ajax calls
This is slightly OT for which I apologise in advance, but I was
wondering if anyone here has had any problems when making multiple
ajax calls at the same time. I''m working on a large Intranet
application which makes heavy use of ajax calls and the bugs are
flying in from the testers that if they repeatedly click on a link
that makes an ajax call then Internet Explorer can fall
2006 Jun 19
10
Trying to delete from a unordered list using ajax
I have a controller method as such:
def delete
@category = Category.find_by_name(params[:name])
@element_id = @category.name
Category.delete_all(["name = ?", @category.name])
end
(For the purpose of this exercise, category names are unique)
I have the corresponding delete.rjs file:
if @element_id
page.remove :id => @element_id
page.visual_effect :highlight,
2006 May 24
2
newbie oo question
...ions.data property to default to a JSON
object that has the convention of: id of element + ''Data'', so if you
have this object in your javascript you don''t have to do anymore work.
If you want to pass in a different object though you can do so like:
new myObject(''elementID'',{data: myJSONObject})
It works great if no object is passed as an argument, but when I try
to pass a data param through nothing happens. I don''t even get an
error. I can pass other things through like:
new myObject(''elementID'',{foo: myJSONObject})
and I'&...
2006 Jun 27
5
Ajax - Inserting selected elements from request.responseText
After retrieving a URL using an Ajax.Request...
function onComplete (request, json) {
// request.responseText holds the entire page
Only the content contained in elementID = ''source'' is intended for display
At this time, the following code works, but it disturbingly copies the
entire page from the source URL into the target DIV
$(''target'').innerHTML = request.responseText; // copy the entire page
$(''target'')....
2005 Aug 18
5
Sortable > how to know wich elementID was dropped ?
Maybe a newb question, maybe not.
It''s not well documented, and I want to know how to know the id of my
newly dropped item.
The usage, would be to attach the newly dropped id to its *new* parent in
a DB.
Thanks.
????????????????????????
http://www.samueldr.com
http://www.hostingquebec.ca
2006 Jan 24
1
Liquid templates and RJS
Does anybody know whether Liquid templates can be combined with RJS ?
--
Roberto Saccon - http://rsaccon.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060124/edeafadc/attachment.html
2006 Apr 14
1
Problems using Sortable with an onUpdate callback
...I pass that parameter to the updateOrder function (as opposed to
just using the updateOrder function without a call back) I get the
following error in my JavaScript console:
"Options has no properties (dragdrop.js line 870)"
My call back function looks like this:
function updateOrder(elementid)
{
var options = {
method : ''post'',
parameters : Sortable.serialize(elementid)
};
new Ajax.Request(''test.php'', options);
}
I would greatly appreciate if anyone has any suggestions as to how I
might successfully pass a parameter to my...
2005 Dec 20
0
swap css class
I was in need of a function to change (swap) css classes - this is what I
came up with - maybe some of the prototype gurus could have a look at the
function - I''m sure it needs some improvements, but basically it is working:
// usage: toggle (boolean), elementId, old class, new class, tag(s)
// Element.swapClassName(0,null,''oldClass'',''newClass'',''div'');
// Element.swapClassName(1,null,''oldClass'',''newClass'',''div'',''p'');
// Elemen...
2005 Jul 12
11
how to cancel/stop a script.aculo.us effect
I apologise for what is probably a totally noob question here, but I''m at a
loss after pouring over the docs and the source code for prototype and
scriptaculous...
After you''ve started an effect, how do you access it to cancel or change it?
I had assumed it was something like this:
myEffect = new Effect.Appear(element, {duration:1.5});
myEffect.cancel();
... but that
2006 Apr 10
1
RE: Prototype Ajax - How to pass my own params toonComplete ?
...#39;t figured out a way to specify the id of my
> element to be passed along to the onComplete function, so right now i
> just stick it in a global js variable before the ajax call and then
look
> it up in my on Complete function, but thats pretty hacky.
>
> I suppose i can pass the elementId as a param to my ajax call, and
have
> the responder return it as part of the response codes, but that seems
> kinda weak as well.
>
> Is there no way to keep my current context when the ajax onComplete
> function is triggered?
>
> Here''s my trimmed down code sample:...
2006 Jun 14
5
Sortable Tree - Stoping Event dispatch ?
Hi,
I''m trying to play with sortable tree and have two issues:
I have an AJAX Tree looking like:
<ul class=''TreeCat'' id=''work''>
<li class=''open''>
<img src=''s.gif'' class=''node'' onclick="Ajax.Tree.toggle(event,this);"/>
<a
2011 Feb 15
7
Hide/Show Div and link_to_remote
Hi
I want to show some info and provided an ''edit'' button next to it.
This will change the display info to an editable form.
I''ve seen this done before, but what I can''t figure out is whether I
have to use an actual remote action to the rails server?
I think I should be able to render both the edit box and the display
info as seperate divs, and then show/hide
2010 Jan 20
0
putting labels back on a matrix.
...ot;TRUE")
x <- as.matrix(csv.dis,)
triang <- x[row(x) > col(x)]
xt <- as.matrix(triang,)
condense <- cbind(row= as.vector(row(x)), col=as.vector(col(x)), value=as.vector(x))
write.csv(condense, "c:/temp/sim_out.csv", row.names = FALSE)
In my process I use the Site_ID, ElementId, and the Area variables (line 6). The 1st few lines of the input data are of the format:
Site_Id,Element_Name,Occurence_Identifier,Element_Id,Area,Cell_Count,Min_Condition,Avg_Conditon,Max_Condition,Summed_Conditon
0,Bosques y arbustales inundables,16,225,27,27,0.200000003,0.200000003,0.200000003,...
2006 Apr 10
10
Prototype Ajax - How to pass my own params to onComplete ?
...oblem is, i havn''t figured out a way to specify the id of my
element to be passed along to the onComplete function, so right now i
just stick it in a global js variable before the ajax call and then look
it up in my on Complete function, but thats pretty hacky.
I suppose i can pass the elementId as a param to my ajax call, and have
the responder return it as part of the response codes, but that seems
kinda weak as well.
Is there no way to keep my current context when the ajax onComplete
function is triggered?
Here''s my trimmed down code sample:
-------------------------------...