Vote count: 0 I create a datepicker and ask to launch an alert on change : $("#datepicker").kendoDatePicker({ change: function() { var value = this.value(); alert(value); //value is the selected date in the datepicker } }); No problem with this, it's working. Now I try to make a function that take the value of the datepicker, and display it on an alert : function Test(){ var toto = $("#datepicker").data("kendoDatePicker"); var value = toto.value(); alert(value); } And modify the the datepicker like this : $("#datepicker").kendoDatePicker({ change: Test() }); And it's not working anymore. The "Test" method is launched without changes on the datepicker, and the datepicker now look like this : ...
ادامه مطلبVote count: -2 Sorry, I thought the thread title might have a limit Now, let me give you some background information. Earlier today, I started off searching for a good web provider that offered a cPanel because I am fairly new and do not understand FTP ports and whatnot. I found ByetHost. I made my website and made a few directories: about, contact, etc. Anyways, I am working on the directory called 'main' right now. Website: http://crossfirecheats.byethost10.com/Main/MainHTML.html Anyways, I was trying to set the H1 header to white, and the background color to black. I thought this was a simple, global action I could do in a .CSS file and it would work on all elements; apparently not. This ...
ادامه مطلبVote count: 0 I tried to convert stereo to mono. Actually the audio file is AACObjectLC profile using two chaels. I tried using encoder with AACHE profile with chael count but the voice is not proper. Need some help on this. MediaFormat inputFormat = audioExtractor.getTrackFormat(audioInputTrack); inputFormat.setInteger(MediaFormat.KEY_CHANNEL_COUNT,1); MediaFormat outputAudioFormat = MediaFormat.createAudioFormat( OUTPUT_AUDIO_MIME_TYPE, OUTPUT_AUDIO_SAMPLE_RATE_HZ, OUTPUT_AUDIO_CHANNEL_COUNT); outputAudioFormat.setInteger(MediaFormat.KEY_BIT_RATE, OUTPUT_AUDIO_BIT_RATE); outputAudioFormat.setInteger(MediaFormat.KEY_AAC_PROFILE, OUTPUT_AUDIO_AAC_PROFILE); audioEncoder = createAudioEncoder(a...
ادامه مطلبVote count: 0 i want to get the mail subject and body of only unread mail of my inbox from our exchange server using my mail id. below code shows all unread mail(if number of unread mail is greater than 2). my reuirement is 1. i want to read only one unread mail at a time and make it as read after seen. 2. only parse mail subject, from address and mail body. below is my code....
ادامه مطلبVote count: 0 I am writing a code that tries to find out the simple and compound interest using operator overloading. While I have found the simple interest, I am having problem with the compound interest. #include #include using namespace std; class Interest { private: double P; double R; double I; public: Interest(){}; ~Interest(){}; void setP(double recieveP){P = recieveP;} void setR(double recieveR){R = recieveR/100;} double getP(){retu P;} double getI(){retu I;} Interest operator*(int T) { class Interest int1; int1.I= P*R*T; retu int1; } }; int main() { class Interest simp1; class Interest comp1; double Principle,Rate,Years; cout Principle; simp1.setP(Principle); comp1.setP(Principle); ...
ادامه مطلبVote count: 0 I have 5 lakhs record in class. I want to fetch 2000 records and send for processing. Query : 'SELECT FROM class WHERE @rid > "#-1:-1" ORDER BY @rid ASC LIMIT 2000' 'SELECT FROM class WHERE @rid > "#-1:-1" ORDER BY @rid ASC LIMIT 2000' fetched more than 50000 records: to speed up the execution, create an index or change the query to use an existent index [OProfiler] How to avoid this waing ? I have tried with between operator as well . I am getting the same waing. asked 1 min agouser2281598 This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publis...
ادامه مطلبVote count: -1 I could not find any example of this. Need simple encryption method for text phrase with salt.Encryption method: SHA256Library: OpenSSL.NET or ANY other working wrapper. asked 2 mins agoJalle This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 I'm new to protobuf and fairly new to asp .net. so I might need help on this. I have this code snippet for my PersonsController: public class PersonController : ApiController { [ProtoContract] public class Person { [ProtoMember(1)] public int ID { get; set; } [ProtoMember(2)] public string First { get; set; } [ProtoMember(3)] public string Last { get; set; } } // GET api/values public IEnumerable Get() { List myList = new List { new Person { ID = 0, First = "Judy", Last = "Lee" }, new Person { ID = 1, First = "John", Last = "Doe" }, new Person { ID = 2, First = "George", Last = "Poole" }, }; retu myList; } } and I'm wondering if that's enough to be able to send out the protobuf...
ادامه مطلب