Difference between #1 and #2 of
More on SSE and Yii

Changes

Title unchanged

More on SSE and Yii

Category unchanged

Tips

Yii version unchanged

Tags unchanged

SSE, HTML5, renderPartial

Content changed

[...]
Remember! response data behind "data:" must be in 1 line or row. For example:
echo 'data: '.$this->renderpartial('_view',array('data'=>$data),true);

In this case, in [_view] file html tags **MUST** be stacked and no whitespace allowed.

After all data sent, we must send end of the response kinda thing. Which is echo "\n\n";
 
 or else no response will be shown on browser.
 
If anything you needed more, ask free and don't hesitate.
1 0
1 follower
Viewed: 10 002 times
Version: Unknown (update)
Category: Tips
Written by: Firebreaker
Last updated by: Firebreaker
Created on: Jun 3, 2013
Last updated: 11 years ago
Update Article

Revisions

View all history