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

Revision #2 has been created by Firebreaker on Jun 3, 2013, 3:54:53 AM with the memo:

Summary text
« previous (#1)

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: 9 552 times
Version: Unknown (update)
Category: Tips
Written by: Firebreaker
Last updated by: Firebreaker
Created on: Jun 3, 2013
Last updated: 10 years ago
Update Article

Revisions

View all history