[Proto-Scripty] Re: Problems with IE in loading

2010-05-03 Thread Martín Marqués
Commenting out and uncommenting lines in the irCargarAlumno function,
I found that the problem is on these lines, but cant find out where
and what's wrong:

El día 2 de mayo de 2010 09:43, Martín Marqués
martin.marq...@gmail.com escribió:

 function irCargarAlumno(url,cate,limpioDoc2){

   // Ocultamos el formulario del segundo docente
   if(limpioDoc2){
      $('filadocente'+cate+'2').hide();
      $('filadocente'+cate+'2').innerHTML = ;
   }


Commenting out all the if(){} and...

   $('submitcates'+cate).innerHTML = '';
   $('submitcates'+cate).hide();

These 2 assignments...

Does 2 changes let IE keep on going, but they are needed. I would have
to get it done else where.

-- 
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



Re: [Proto-Scripty] outside the IFRAME

2010-05-03 Thread Miguel Beltran R.
2010/4/30 Hariz Soleminio harriz_solemi...@rocketmail.com

 Hello,

 Is this possible I inserted an IFRAME in a page. the i frame i inserted
 contains HTML with protoype/javascript codes.

 below is the javascript code
 Event.observe(document, 'keyup', keyupcheck, false);


 im observing the window in any keyup events. however it only works within
 the iframe what if i want it to work outside the
 i frame?


 Please help guys.




Maybe chaging document for window.something-else

With firebug you can look all propierties

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



[Proto-Scripty] update content in a child window?

2010-05-03 Thread patrick
Hi,

Does anyone here know if it's possible to open a 2nd window via
javascript and do page updates on that 2nd window from within the
first window?  In other words, clicking on a button in window 1 will
update some content in window 2?

If this is possible, does anyone have some example code on how to do
it?

Thanks.

-patrick

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



[Proto-Scripty] HTTP Authentication

2010-05-03 Thread blawson7
Can someone show me or point me in the direction of an example/
tutorial for how to send HTTP authentication information along with
POST Ajax Request?

I've tried passing them as options -- username: USER  password:
PASSWD

Is there something that I'm missing?

I am using prototype throughout my code and I'd hate to have to change
to jQuery just for this.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



[Proto-Scripty] Invoke download through javascript

2010-05-03 Thread RJ
Is their any way by which download dialog can be invoked via
javascript. I have the url of the file to be downloaded
When i do location.href = url..it opens the file in the browser

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



[Proto-Scripty] Upgraded from 1.4 to 1.6 and something seems different in PeriodicalExecuter

2010-05-03 Thread douglerner
Hi. I recently upgraded my prototype to the latest, I believe 1.6, js
file.

There is one thing in my code which seems to be behaving differently.

I have a call made with PeriodicalExecuter as follows:

new PeriodicalExecuter(txIMBannerUpdate, 5);

The function txIMBannerUpdate itself has an optional parameter
txIMBannerUpdate(pageRefresh).

I was using that parameter inside txIMBannerUpdate to determine
whether or not users were updating their pages or not. When the window
first loads I called txIMBannerUpdate(true) manually. The calls after
that via PeriodicalExecuter would have no parameters so pageRefresh
wouldn't exist.

This had been working fine for years now, but since updating prototype
I noticed that nobody was ever timing out as long as their browser
window was open, even though they were not refreshing pages.

I put an alert(pageRefresh) into the txIMBannerUpdate function and
with the manual call it was still correctly sending a true parameter.
But when called via PeriodicalExecuter the alert was reporting [object
object] rather than nothing at all.

Has this behavior changed? Is PeriodicalExecuter always causing a
default parameter of some kind to be passed to its function parameter?

Thanks,

doug

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



[Proto-Scripty] Ajax.Request - onComplete(response, possible second arg?)

2010-05-03 Thread Yaz
Hi all,

I've have been working with a *lot* of javascript code, all done in
prototype 1.5. The company I work for, has decided to upgrade
prototype libraries. So I have upgraded prototype and scriptaculous,
and about 5 others.

There have been some interesting issues, and mostly I've fixed (with
no help from the deprecation script, as it doesn't work).

So, one issue I've come accross, I need to know if passing a second
parameter to the onComplete Ajax.Request is still possible.

There are a ton of Ajax.Request calls like this:

new Ajax.Request('some_url.php', {
parameters  : Parameters,
evalScripts : true,

onComplete: function(response, arrSomeStuff){
// from php arrSomeStuff is passed like this
json_encode(arrSomeStuff);
$('some_div').update(arrSomeStuff.value_name);
},

onFailure: function(response){
// handle errors
}
});


Now, I don't know why the arrSomeStuff was passed along as a second
argument, as response has the same information. But, the advantage,
was that in 1.5, that array came perfectly, you didn't have to get it
out of the response var.

But, it doesn't work on 1.6. And there is too much code for me to try
to adapt this (30 files, each using it about 20 times).

So far, everything works, except it doesn't execute the update because
arrSomeStuff.value_name is null.

Any ideas??

Thanks!! :)

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



[Proto-Scripty] MobileSafari and Form element specfic methods

2010-05-03 Thread airportyh
Hello,

I was tracking down a bug in my app that only occurs in the iPhone and
iPad. I tracked it down to these 2 lines:

if (Prototype.Browser.MobileSafari)
  Prototype.BrowserFeatures.SpecificElementExtensions = false;

Because of this check, I believe methods specific to form elements
were not being added to the form elements. Commenting out these 2
lines fixed the problem in my app.

So, my question is: why is this check in place in the first place? Did
MobileSafari have problems with specific element extensions otherwise?
Is what I did the correct fix? And if so, should we commit this change
back?

Toby

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.