Sorry, it came out wrong, I mean't MY question would probably be stupid, not
yours, my apologies.
Ok so it's not syntax.
Have you tried replacing:
return sfView::HEADER_ONLY
with:
return $this->renderText('');
?
2009/6/25 Guychmyrat Amanmyradov <[email protected]>
> i did not copy / pasted the code.
> in real code there is no such error. i am not asking syntax errors. i am
> asking about 304.
>
> if it is stupid question, why not u answer ?
>
> --- *25/06/09 Per tarihinde Nickolas Daskalou <[email protected]>* şöyle
> yazıyor:
>
>
> Kimden: Nickolas Daskalou <[email protected]>
> Konu: [symfony-users] Re: Ajax - 304 Handle
> Kime: [email protected]
> Tarihi: 25 Haziran 2009 Perşembe, 16:01
>
> Stupid question, but in your real code do you add the dollar sign ($) in
> front of "online_user_list"? Ie.:
>
> if ($online_user_list == 1)
>
> and not:
>
> if (online_user_list == 1)
>
> ?
>
>
> 2009/6/25 Guychmyrat Amanmyradov
> <[email protected]<http://mc/[email protected]>
> >
>
>> Hi,
>> i have perodicall call function
>>
>>
>> <?php echo jq_periodically_call_remote(array(
>> 'frequency' => '10',
>> 'update' => 'divname',
>> 'raw_with' => "'online_user_list=' +
>> $('#online_user_list').val()",
>> 'url' => "modulename/actionname"
>> ))
>> ?>
>>
>> on my action, i want to check
>> if(online_user_list == 1) {
>> $this->getResponse()->setHttpHeader("HTTP/1.1 304 Not
>> Modified");
>> return sfView::HEADER_ONLY ;
>> }
>>
>>
>> return sfView::SUCCESS
>>
>> The problem is, when online_user_list== 1
>> when i check on firebog returns nothing. And updates my 'divname'. On ajax
>> if 304 returns it must take from cache. What is my mistake.
>>
>> Can you help ?
>>
>> Thank you.
>>
>> ------------------------------
>> Yahoo! Türkiye açıldı!
>> Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de!
>> www.yahoo.com.tr <http://tr.yahoo.com/>
>>
>
>
>
>
> ------------------------------
> Yahoo! Türkiye açıldı!
> Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de!
> www.yahoo.com.tr <http://tr.yahoo.com/>>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---