EasyUI Forum
May 19, 2024, 02:09:39 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Need to help - Filebox  (Read 5357 times)
atiwat
Newbie
*
Posts: 1


View Profile
« on: October 12, 2016, 12:34:51 AM »

Hi professional,

I need to show type of file box (.xls) only. please help me

thank you.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 12, 2016, 08:38:38 PM »

You can call 'getValue' method to get your selected file name. The code below shows how to get the extension of your selected file.
Code:
var name = $('#fb').filebox('getValue');
var ss = name.split('.');
var ext = ss.pop();
console.log(ext);
Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #2 on: October 16, 2016, 01:12:34 PM »

I think the question was about having only XLS files visible in the dialog.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!