Wiki

Articles tagged with "html5"X
Displaying 1-5 of 5 result(s).

How to read HTML5 Multiple File Input from controller?

Created 4 months ago by Kartik VHow-tos1 comment – viewed 1,481 times – ( +27 / -4 ) – version all
Ok, so you have a HTML 5 file input markup on your view and you have enabled multiple attribute to true. You may also be using widgets based on HTML5 input like \kartik\widgets\FileInput. But when you read a file in Yii controller using CUploadedFile (Yii1) or UploadedFile (Yii2), you do not see a list of multiple files that you selected in your view, but only one row. Your HTML markup in your view would be something like this and you don't know why this is not working?

Upload image and content using AJAX and Store it in different table

Created 7 months ago by SelvakumarHow-tos1 comment – viewed 18,113 times – ( +2 ) – version 1.1
We all know how to upload the content and images at the same time with refreshing the page. And uploading the images using Ajax we have faced some issues, here i have fixed the issues and both content and photos are uploaded using Ajax. And both content and images are stored in the different tables

How to call a default layout for every module and how to work <php echo $content; ?>

Created about a year ago by Ankit ModiTips0 comments – viewed 11,364 times – ( -1 )
Hi Friends, Hi Friends, Some common question is difficult to how to create the layout on yii and how to work

More on SSE and Yii

Created about a year ago by FirebreakerTips3 comments – viewed 3,552 times – ( +2 )
This is not actually Yii involved.

Real-time display of server push data using Server-Sent Events (SSE)

Created 2 years ago by bennounaHow-tos16 comments – viewed 29,379 times – ( +12 ) – version 1.1
There are several methods and techniques that come handy in the case you need to call an external resource periodically or if you are waiting for a server push, but I present here an easy and straightforward one using HTML5's Server-Sent Events (SSE).