28/Nov/2010
Had been struggling about the file upload function. When I realized it, it didn't work. What was wrong with it? The cording is really simple. But,,,. After a couple of hours, it solved. Upload panel. When the file upload control is in the upload panel, it doesn't work. Upload panel is quite cool but on the other hand, not easy to manage. I need more research after this project. I finished my testing. Hopefully all work without any error now.
27/Nov/2010
I thought that javascript worked but not. That maximum length one. So I used another one.
<script language="javascript" type="text/javascript">
function textMaxLength(obj, maxLength, evt) {
var charCode = (evt.which) ? evt.which : event.keyCode
var max = maxLength - 0;
var text = obj.value;
if (text.length > max) {
obj.value = text.substring(0, max);
return false;
}
else {
return true;
}
}
</script>
<asp:TextBox ID="txtPostal_Note" runat="server" Width="200px" ValidationGroup="Address"
onkeypress="return textMaxLength(this, '200', event);"
onkeyup="return textMaxLength(this, '200', event);"></asp:TextBox>
Works OK. I set 15 maximum length for phone numbers but wait. How much needed for international call? +81(123)12 1234...better make it 20. Small things are everywhere.
26/Nov/2010
To decide the maximum length of each textbox is also not easy for novices. I don't know how much will the users expect for each textbox. What I think it's enough may not be enough for the others. Symbols. I don't think any cities or countries have special characters like #$%&@ and I thought the same for the company name but, my team mate said "What about $2 shop?". Oh, no. Better allow them to use it.
25/Nov/2010
Realized testing is much harder than cording. Headache. But at the same time, I also understand testing is pretty important. To avoid error I need to put constraint on every page, which means validators, on the other hands, to think about usability, constraint is not good. To distinguish both sides is hard for the novices like me. Cause never known about the real industrial way. Not only the testing plan, I also need to update the other documents. Headache.
24/Nov/2010
Started testing. Need to work on a lot of pages. I know testing is important but even though it's not welcome. Basically we test the user inputs. I thought we coded many validators to avoid error but not enough maybe. Our system is not for the public so not such a big problem maybe but for improving the knowledge, SQL injection like stuff is needed to be considered also. In the event page, I used jQuery which means tags are HTML not ASP.Net. How to validate textboxes? I found javascript.
<script language="javascript" type="text/javascript">
<!--
function imposeMaxLength(Object, MaxLen) {
return (Object.value.length <= MaxLen);
}
-->
</script>
<textarea id="Description" onkeypress="return imposeMaxLength(this, 300);">
I cannot validate the textarea by the property so this javascript works pretty well.
23/Nov/2010
First presentation in the last 3 weeks. My part is almost done. As far as I tested, no error would be there. We all knew that presentation was pretty important. We could get how much we could had achieved from the tutors feedback. Show time. I thought I should had written speech script but indeed no time to do that. During this semester, not only brushing up my IT skill but also presentation skill is needed to be improved. My goal. Even I couldn't spend much time for preparation I demonstrated how to make a presentation in my head. Ok. Not bad. It took more than 30min to explain all our system not including feedback time. I was ready to listen to the people's barb. I knew they normally ask many questions which is not easy to answer but it never happened. It was a touch anticlimactic. As it describes, CRM is not easy to understand, I understood. Anyway, we've cleared the first hurdle. I need to work on the documentation basically this week.
22/Nov/2010
Had been struggling about the file upload function. When I realized it, it didn't work. What was wrong with it? The cording is really simple. But,,,. After a couple of hours, it solved. Upload panel. When the file upload control is in the upload panel, it doesn't work. Upload panel is quite cool but on the other hand, not easy to manage. I need more research after this project. I finished my testing. Hopefully all work without any error now.
27/Nov/2010
I thought that javascript worked but not. That maximum length one. So I used another one.
<script language="javascript" type="text/javascript">
function textMaxLength(obj, maxLength, evt) {
var charCode = (evt.which) ? evt.which : event.keyCode
var max = maxLength - 0;
var text = obj.value;
if (text.length > max) {
obj.value = text.substring(0, max);
return false;
}
else {
return true;
}
}
</script>
<asp:TextBox ID="txtPostal_Note" runat="server" Width="200px" ValidationGroup="Address"
onkeypress="return textMaxLength(this, '200', event);"
onkeyup="return textMaxLength(this, '200', event);"></asp:TextBox>
Works OK. I set 15 maximum length for phone numbers but wait. How much needed for international call? +81(123)12 1234...better make it 20. Small things are everywhere.
26/Nov/2010
To decide the maximum length of each textbox is also not easy for novices. I don't know how much will the users expect for each textbox. What I think it's enough may not be enough for the others. Symbols. I don't think any cities or countries have special characters like #$%&@ and I thought the same for the company name but, my team mate said "What about $2 shop?". Oh, no. Better allow them to use it.
25/Nov/2010
Realized testing is much harder than cording. Headache. But at the same time, I also understand testing is pretty important. To avoid error I need to put constraint on every page, which means validators, on the other hands, to think about usability, constraint is not good. To distinguish both sides is hard for the novices like me. Cause never known about the real industrial way. Not only the testing plan, I also need to update the other documents. Headache.
24/Nov/2010
Started testing. Need to work on a lot of pages. I know testing is important but even though it's not welcome. Basically we test the user inputs. I thought we coded many validators to avoid error but not enough maybe. Our system is not for the public so not such a big problem maybe but for improving the knowledge, SQL injection like stuff is needed to be considered also. In the event page, I used jQuery which means tags are HTML not ASP.Net. How to validate textboxes? I found javascript.
<script language="javascript" type="text/javascript">
<!--
function imposeMaxLength(Object, MaxLen) {
return (Object.value.length <= MaxLen);
}
-->
</script>
<textarea id="Description" onkeypress="return imposeMaxLength(this, 300);">
I cannot validate the textarea by the property so this javascript works pretty well.
23/Nov/2010
First presentation in the last 3 weeks. My part is almost done. As far as I tested, no error would be there. We all knew that presentation was pretty important. We could get how much we could had achieved from the tutors feedback. Show time. I thought I should had written speech script but indeed no time to do that. During this semester, not only brushing up my IT skill but also presentation skill is needed to be improved. My goal. Even I couldn't spend much time for preparation I demonstrated how to make a presentation in my head. Ok. Not bad. It took more than 30min to explain all our system not including feedback time. I was ready to listen to the people's barb. I knew they normally ask many questions which is not easy to answer but it never happened. It was a touch anticlimactic. As it describes, CRM is not easy to understand, I understood. Anyway, we've cleared the first hurdle. I need to work on the documentation basically this week.
22/Nov/2010
Going well the unit testing and refining. I solved the problem of the event calendar. The point was casting. to insert the user ID, I used the data type integer as it was. Syntax point of view, I couldn't see any problem but when I changed it into string and the just before ADO.Net, converting it to integer, it worked. Good to know the point. Not only these, to deal with data types is kind of headache. And another headache I got. To merge the source code of three, I committed my source to SVN software but by some mistake, my latest source was gone to somewhere. So depressed. Didn't feel like doing anything. Good thing was I had backup of it this morning. So only 3 hours work has gone. I had kept backup before I committed before that, but not this time. It happens. However because of the instability of my laptop these days, I got backup. Anyway, I need to redo the three hours task.
No comments:
Post a Comment