Displaying 20 results from an estimated 1000 matches similar to: "can a class find out it''s instance name?"
2005 Aug 01
2
function.prototype.bind return value?
Quick question - how come the function.prototype.bind doesn''t allow for
return values? Am I missing some basic understanding of how this works?
I searched and couldn''t find an answer.
Specifically, I''m binding an object method to an existing form''s
onSubmit, but it still actually submits the form, refreshing the page -
which is not what I want.
If change
2005 Oct 25
24
InPlaceEditor scrolls to top in Firefox?
When I click an InPlaceEditor field in Firefox 1.0.7, the page scrolls
up to the top. That''s disconcerting, and often ends up with the
editable field out of the viewable pane. I can duplicate this on both
Mac and PC. Is there a way to prevent this? Even the demo at
http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor does
this.
Jay Levitt
2006 Jan 27
2
Position.clone() duplicate
Haven''t seen anyone ask about this yet...
why are there 2 Position.clone() methods in Prototype.js? It seems that
the second would overwrite the first, and the second has lots more
options. Am I missing something?
Thanks,
rahul
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2005 Aug 23
2
using the evalScript option on Ajax.Updater
Hi all,
I''m having trouble with the evalScript option on the Ajax.Updater. I''ve
removed everything except for the ajax call and a simple alert to try
and debug it. It doesn''t appear that the regex is finding my JS in the
response...
I''m doing an update request and the response is coming back correctly to
the updateConent function as this string:
<script
2005 Jul 18
13
in place text edit
I''ve written a pretty nice Flickr style in place text edit JavaScript
control based on the Script.aculo.us library.
API is like this:
<span id="editme">Edit me!</span>
<script>
new InPlaceEditor($(''editme''), ''url/to/action'');
</script>
Background changes to gray as mouse hovers over the text (like flickr)
and the
2005 Dec 12
7
possible opera+prototype bug in evalscripts?
Hi all,
I use the ajax updater with evalscripts=true.
When I load HTML with included <script> tags, I get this error in Opera 8.51:
------------------- snip -----------------------------
http://ccml.uni-weimar.de/
Timeout thread: delay 10 ms
Error:
name: EvalError
message: Statement on line 258: Illegal use of eval
Backtrace:
Line 258 of linked script
2006 Mar 31
3
refreshing JS libraries on client?
Hi folks,
So I''ve got this app built on prototype, with a bunch of extra JS
classes to do what we want. Now the problem is, when I make a change to
one of those JS files (or an upgrade to prototype itself), how do I
ensure that the client browsers refresh their cache with the latest JS?
Clearly I want the browse to cache the large JS files, but I also want
that cache to expire at
2005 Oct 27
5
Problem passing event object
Hi all,
I''m having a problem with an Ajax.Request. I can''t figure out how I
can pass an event (an onclick on a checkbox) which causes the Ajax
Request, to be recognized in an onSuccess function. Here''s my
simplified code:
var RequiredField = Class.create();
RequiredField.prototype = {
initialize: function(chkbox) {
this.chkbox = chkbox;
this.chkbox.onclick =
2006 Apr 14
6
character encoding in ajax submit
Hey all,
Anyone got some quick advice on international character submission via
Prototype''s Form.Serialize?
The base scenario:
I set the charset on my page to ISO-8859-1, which seems to be what
everyone uses. If I submit a regular form with a standard webpage, I
get international characters (like an accented "e", or and AE legature)
encoded as 1-byte ascii code
2005 Sep 20
1
radio buttons and event obvsering
Hi,
I made a little utility class that turns on a particular div when a
radio button is clicked - a RadioButtonDivToggler. As the name
hopefully suggests, when a radio button from the same group is clicked,
a different div is made visible and the others are hidden. In essence,
it toggles on (makes visible) the div associated with the radio button
from a group that you clicked. However,
2005 Oct 18
4
responseText Vs responseXML
This is a newbie question.
If I have a xml file that I am opening using Ajax.Request, then the response is trapped using responseText.
Now this response is a set of xml tags, if I need to traverse through it using DOM, I am not able to use the getElementByTagName method?
If I write my own ajax function, then when I do t.responseXML.getElementByTagName(''items'') it works but
2005 Aug 17
2
About R variable references
Hello Group,
I could use an advice on how SEXP handles work. My aim is to implement a
system where I initially set a few global variables that are used for
communication between C and R code. Then I do some work with R code and
periodically call a function of my own that will update the system
state. Such a design is useful for many purposes (for GUIs to name one).
I am not entirely sure that R
2016 Apr 14
2
Previously extended schema not working in 4.4.0
On Thu, 2016-04-14 at 18:07 +0100, Jonathan Hunter wrote:
> On 14 April 2016 at 13:37, Jonathan Hunter <jmhunter1 at gmail.com>
> wrote:
>
> > # samba-tool dbcheck --cross-ncs
> > Checking 4079 objects
> > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00290001
> > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x0029000a
> >
2006 Mar 11
2
how do i retrieve a newly created id
in my code i''m calling save on an object. The id gets created as the object
is persisted. How can i retrieve that newly created id? I guess I could
query the table again using the other attributes of the object but is there
another way?
thanks in advance.
larry
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2005 Dec 28
6
Sudden Javascript Console noise in firefox
I have been using the latest version of Firefox and Scriptaculous for about
a week now, with no problems.
Now I get a lot of noise in the javascript console out of the blue:
http://img481.imageshack.us/img481/7913/screen4nt.jpg
--
============================
Brian Peiris
Brampton, Ontario, Canada
brianpeiris-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org or
2016 Apr 14
2
Previously extended schema not working in 4.4.0
Thank you, Andrew - I hadn't done so. (In a good way, I haven't yet had
problems with samba that have caused me to delve quite so deeply into the
DB :) so I'm not as familiar with the range of tools as I could be, sorry!)
This has flagged up quite a few errors, all along the lines of:
# samba-tool dbcheck --cross-ncs
Checking 4079 objects
MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk:
2009 Sep 02
4
diff of two timestamps
Hi all,
I have the following problem: I have a csv-file consisting of timestamp
values (no dates), e.g.:
Timestamp1;Timestamp2;
05:24:43;05:25:05;
15:47:02;15:47:22;
18:36:05;18:36:24;
15:21:24;15:22:04;
I need a vector with the difference of the two timestamps, so I read the
data with the read.csv-function:
myObj <- read.csv("file.csv",header=TRUE,sep=";").
I have then
2009 Jul 09
1
Strange t-test error: "grouping factor must have exactly 2 levels" while it does...
Hi,
Could anyone tell me what is wrong:
> length(unique(mydata$myvariable))
[1] 2
>
and in t-test:
(...)
Error in t.test.formula(othervariable ~ myvariable, mydata) :
grouping factor must have exactly 2 levels
>
I re-checked the code and still don't get what is wrong.
Moreover, there is some strange behavior:
/1 It seems that the error is vulnerable to NA'a, because it
2006 Feb 28
5
browser-crash with Ajax.Updater
Hi,
on my page I start an ajax-request which returns rhtml-code (I use
Rails) looping over some objects. When I place the following code within
the loop my browser (FF) crashs:
<script>
var set_std_objekt = function (id) {
new Ajax.Updater(''divname'', ''/dosomestuff'', {
asynchronous:true,
evalScripts:true
})
}
</script>
<a
2005 Sep 13
3
Alternatives to Rico LiveGrid?
I''m no friend of paging, but I have to somehow deal with lists of
potentially large numbers of objects. The Rico LiveGrid[*] at first
blush seems attractive, but has some major drawbacks. It doesn''t work
with Safari/Konqueror, not yet anyway. It can only handle fixed-size
tables and requires that widths, including column widths, are
hand-crafted.
I''m looking for a