[Proto-Scripty] Re: prototype and iframe

2008-10-10 Thread Matt Foster

Ditch the iframe object in favor of a DIV and things will work much
smoother..



On Oct 10, 12:17 pm, Miguel Beltran R. [EMAIL PROTECTED] wrote:
 Hi list

 I have the next code but not work, iframe show nothing
 what I doing wrong?

 html
 ...
 body
 div id=content
    div id=form_search
       form target=iframe_show.../form
    /div
    div id=show
       iframe id=iframe_show name=iframe_show/iframe
    /div
 /div
 script
 var muestra = function(m_id, m_modulo, m_modo){
     var element =  $(m_id);
     element.update('cargando...');
     new Ajax.Updater(element,
              'muestra.html', {
              method: 'get',
              parameters: {modulo:m_modulo, modo:m_modo}
              });
   }
 document.observe('dom:loaded', function(){
    muestra('iframe_show', 'taller_busca', 'nada');}

 /script
 /body
 /html

 --
 
 Lo bueno de vivir un dia mas
 es saber que nos queda un dia menos de vida
--~--~-~--~~~---~--~~
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-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: prototype and iframe

2008-10-10 Thread Diodeus

You don't use AJAX to put content into an Iframe. An Iframe is a new
separate document.

Use:

$(iframe_show).src=http://;

On Oct 10, 1:17 pm, Miguel Beltran R. [EMAIL PROTECTED] wrote:
 Hi list

 I have the next code but not work, iframe show nothing
 what I doing wrong?

 html
 ...
 body
 div id=content
div id=form_search
   form target=iframe_show.../form
/div
div id=show
   iframe id=iframe_show name=iframe_show/iframe
/div
 /div
 script
 var muestra = function(m_id, m_modulo, m_modo){
 var element =  $(m_id);
 element.update('cargando...');
 new Ajax.Updater(element,
  'muestra.html', {
  method: 'get',
  parameters: {modulo:m_modulo, modo:m_modo}
  });
   }
 document.observe('dom:loaded', function(){
muestra('iframe_show', 'taller_busca', 'nada');}

 /script
 /body
 /html

 --
 
 Lo bueno de vivir un dia mas
 es saber que nos queda un dia menos de vida
--~--~-~--~~~---~--~~
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-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---