sebastienayotte.wordpress.com
Taking out the trash | Sébastien's Coding Journey
https://sebastienayotte.wordpress.com/2010/09/10/taking-out-the-trash
Sébastien’s Coding Journey. September 10, 2010. Taking out the trash. 8212; Tags: Thoughts. 8212; Sébastien Ayotte @ 8:10 am. I always wanted to be my own boss. So I refined my skills by buying books on programming. I also added a lot of blogs about programming to my Google Reader. My day job is about programming. With all that I became a pretty descent programmer. But what are my goals? Why do I wanted to build my own business? I discovered the blog of Tim Ferriss and I bought his book. I’m reliev...
sebastienonsoftware.blogspot.com
Sebastien on Software: July 2011
http://sebastienonsoftware.blogspot.com/2011_07_01_archive.html
Tuesday, 26 July 2011. How to get the first day of the month in SQL. Let's say that you have a table that keeps all the purchases made by some clients. In that table you have a field that indicates the date of a given purchase. I'll call it purchase date. Now, someone need a report on the purchases by month. You should be able to provide this report with a SQL query similar to:. Select dateadd(month, datediff(month, 0, purchase date), 0), count(purchase number). I'm using the SQL dateadd.
sebastienayotte.wordpress.com
How to move table row up or down with Prototype | Sébastien's Coding Journey
https://sebastienayotte.wordpress.com/2010/12/23/how-to-move-table-row-up-or-down-with-prototype
Sébastien’s Coding Journey. December 23, 2010. How to move table row up or down with Prototype. 8212; Tags: JavaScript. 8212; Sébastien Ayotte @ 10:37 am. What are we doing. I need to build a list where a user should be able to sort the elements by moving up or down an element. To do so I want to present the elements in a table similar to this:. To keep things simple I want the user to click on td.up to move the row up or on td.down to move the row down. To help me do that I use the Prototype. Function u...
sebastienayotte.wordpress.com
JavaScript isNumeric function | Sébastien's Coding Journey
https://sebastienayotte.wordpress.com/2010/01/08/javascript-isnumeric-function
Sébastien’s Coding Journey. January 8, 2010. 8212; Tags: JavaScript. 8212; Sébastien Ayotte @ 10:20 am. Here is a JavaScript function that defined if a value is numeric or not. Function isNumeric(value) { return value = parseFloat(value); }. Leave a Comment ». Feed for comments on this post. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). You are commenting using your WordPress.com account. ( Log Out.
sebastienayotte.wordpress.com
Looping in a form’s elements in JavaScript | Sébastien's Coding Journey
https://sebastienayotte.wordpress.com/2009/11/05/looping-in-a-forms-elements-in-javascript
Sébastien’s Coding Journey. November 5, 2009. Looping in a form’s elements in JavaScript. 8212; Tags: JavaScript. 8212; Sébastien Ayotte @ 11:33 am. Sometime you need to prevalidate some inputs in a form. You could do this by looping in all the elements of the form. Here is a quick example of doing just that. What happen here is when I submit the form, the. Method get called. This function loop in all the form’s elements and show the name and the value of the inputs. I thought it could be handy. Document...
sebastienonsoftware.blogspot.com
Sebastien on Software: November 2011
http://sebastienonsoftware.blogspot.com/2011_11_01_archive.html
Tuesday, 22 November 2011. Submit is not a function. How do you submit a form in JavaScript? It's simple. You get the form object and you use the submit method on it. But wait! Why do I get an error saying Submit is not a function. Let's say you have this form on your page:. Value="Submit" onclick="submitMyForm();" /. You want to submit this form using JavaScript:. Function submitMyForm() { document.myForm.submit(); }. The problem is our form has an input named submit. Wednesday, 16 November 2011. You ha...
sebastienonsoftware.blogspot.com
Sebastien on Software: How to write in a file in VBScript
http://sebastienonsoftware.blogspot.com/2012/02/how-to-write-in-file-in-vbscript.html
Monday, 20 February 2012. How to write in a file in VBScript. Dim objFileSystem set objFileSystem = server.createObject(Scripting.FileSystemObject). This object is used to access the file system. CONST WRITING = 2 dim objTextStream set objTextStream = objFileSystem.openTextFile( server.mapPath(text-stream.output), WRITING, true) objTextStream.writeLine Hello World! In the text-stream.output. To the text-stream.output. File Now we have two lines. We read all the lines. In the file. We used the readLine.
sebastienonsoftware.blogspot.com
Sebastien on Software: ASP Classic Scripting.Dictionary
http://sebastienonsoftware.blogspot.com/2012/02/asp-classic-scriptingdictionary.html
Monday, 13 February 2012. ASP Classic Scripting.Dictionary. Sometimes you need more than an array. In your code because you want keys to indentify the items. Here are some of my notes about the Scripting.Dictionary. Dim col : set col = server.createObject(Scripting.Dictionary) col.add 1, Number 1 col.add 4, Number 4 col.add 3, Number 3 col.add 2, Number 2. Note that a key must be unique. Method will throw an error. Iterating through the Dictionary. You can get a value by is key with the item. Subscribe t...