I want to create an autocompleter that uses HTML database storage.
What I'm intending to it modify Autocompleter.Local. My problem is
that I'm not sure how to fit these 2 pieces of code together:
>From Autocompleter:
getUpdatedChoices: function() {
this.updateChoices(this.options.selector(
I was trying to demonstrate my problem, it's not what's actually in my
code. It's seems that $('test') inside my eval is not the same as the
$('test') outside of it. When I try to run that code I'd expect $
('test')'s HTML to change, but it doesn't. Why not and how can I make
it do that?
--~--~
Sorry, should be:
eval("someVar=function() { this.elm=$('outputs');}; s=new
someVar(); s.innerHTML='test';");
alert($('outputs').innerHTML);
// not 'test'
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
Interesting, I've never done that before. What about this:
eval("someVar=function() { this.elm=$('getElm');
this.elm.innerHTML='test'; };");
alert($('getElm').innerHTML);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
Maybe this evals, but the functions do not get exposed. How should I
be doing this?
function reCalc() {
var sendSymsN = new Ajax.Request(url, {method:'post', onSuccess:
function() {
var evalMe=decode(transport.responseText); //
returns
( fname = function(
My error was not having the success in Ajax.Updater. I didn't want
one, but it is required...
Thanks!
On Oct 7, 2:56 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
> On Tue, Oct 7, 2008 at 2:50 PM, Namotco <[EMAIL PROTECTED]> wrote:
>
> > WebKit has a J
dater({ failure: $('evalMsgs') },
'/aa/saveHTML.html', {
parameters: { RxN: gRxN, id: ce.id, HTML: $(ce).innerHTML },
insertion: 'after', onComplete: function(){return true;} }); }
);
}
On Oct 7, 2:45 pm, Namotco <[EMAIL PROTECTED]> wrote:
>
Thanks for the optimizations. I think the problem is elsewhere
though No browser errors. I'm on the latest WebKit.
On Oct 7, 2:05 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
> Are you getting any errors? What browser are you using?
>
> I think that code can be cleaned up a bit, $() is
I seem to have a problem with my code. I won't post all of it here,
but when use this:
Ajax.Responders.register(
{
onCreate: function()
{
if($('loading') && Ajax.activeRequestCount>0)
{
Effect.Appear('loading',{duration: .5, queue: 'e