Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2007, 07:20 PM
Junior Member
 
Join Date: Jun 2007
Posts: 2
Default bring Ajax (prototype) do his job

Hallo,

i've problems who to told a AjaxController show some request-results in the spezified div definied in the ajax request.

PHP Code:
function advancedRequest(paramblock)
    {
    var 
myAjax = new Ajax.Request('/ajax/foo',
        {
        
method'post',
        
postBodyparam,
        
onLoading: function(t)
            {
            $(
block).innerHTML
                 
'<span class="loading"><img src="img/indicators/indicator_mozilla.gif" /> ... Bitte Warten Content wird geladen</span>';
            },
        
onComplete: function(e)
            {
            $(
block).innerHTML e.responseText;
            
setblurtoallas();
            
Behaviour.apply();
            }
        });

    return;
    } 
So, I've to told the AjaxController to update the indexView ...

Thanks for some support
Timo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-30-2007, 10:03 PM
Junior Member
 
Join Date: Jun 2007
Location: Barcelona
Posts: 8
Default

I didn't really understand your problem.
You want Ajax (Prototype) to show the result of the query inside a div tag?
Make sure the php file you call in your query prints out the result, rather than returning it.

And I think there is a special function of Prototype for updating html content...
__________________
------------------
Loris Candylaftis

Last edited by loloziberlo : 06-30-2007 at 10:19 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:09 PM.