Our Blog

Our Blog

Welcome to our blog. Here you will find news, articles, as well as some development tips for web design.

Our Blog


BSM Store Now On This Website...

by Thomas J. Allen

Posted on May 30, 2018 at 04:23:47 PM



We have now moved the main BSM Store (bsmstore.com) website to our main site BrainScanMedia.com. Here you can purchase our Advanced Cart Shopping Cart as well as new utilities and items we will be putting up. Click Here To Visit The Store ...


Read More

Push JavaScript Values To PHP

by Thomas J. Allen

Posted on May 25, 2018 at 01:23:50 PM



I was working on a timezone counter to show when the next Sabbath starts based on the visitors location. My time calculations were all done in PHP to calculate the remaining time till the Sabbath starts. So I was trying to figure out how to grab the visitors TimeZone info without needing to link to a service to determine their location by IP Address. Then it hit me! JavaScript would be the best way to grab this info from the client side browser and set the correct info, but then how would I send this info to PHP? I tried many different steps to accomplish this, without success. Then it hit me, why not just set a cookie with JavaScript and grab it in PHP! This approach turned out to be a success. JavaScript To Set Initial Cookie <script type="text/javascript">   function setCookie(cname, cvalue, exdays) {    var d = new Date();    d.setTime(d.getTime() + (exdays*24*60*60*1000));    var expires = "expires="+...


Read More

Coding Coupons

by Thomas J. Allen

Posted on April 19, 2018 at 06:16:20 PM



Just finished up a nice little project to create a dynamic array coupon system. The array is set: var coupons = [   ["date1_from","date1_to","Note 1","25%","code1"],   ["date2_from","date2_to","Note 2","15%","code2"], }   <div id="container"> <img id="image" src=assets/images/coupon-background.jpg"> <p id="text1"><span style="text-transform: uppercase;" id="note">[Note]</span> USE COUPON CODE <span style="text-transform: uppercase;" id="coupon">[Coupon]</span> TO</p> <p id="text2">RECEIVE <span style="text-transform: uppercase;" id="percentage">[Percentage Off]</span> OFF AT CHECKOUT</p> <p id="text3">good through <span id="dateto">[Date To]</span></p> <p id="text4">One coupon per customer. Discounts are subject to change at...


Read More
Showing Page 1 to 2 of 4 Blog Posts

Blog Search

Archive

Twitter Feed

Site By BrainScanMedia.com, Inc. - A Web Solutions Company. Advanced Cart, Parker Colorado Web Design, Parker Colorado Web Design, Parker Colorado Web Hosting, Parker Colorado Web Hosting, Parker Colorado eCommerce, Parker Colorado SEO, Parker Colorado Search Engine Optimization, Parker Colorado Graphic Designer, Parker Colorado Programmer, Parker Colorado Business Card Design, Staten Island New York Web Design, Staten Island New York Web Design, Staten Island New York Web Design, Staten Island New York Web Designer, Staten Island New York Website Design, Staten Island New York Web Hosting, Staten Island New York Web Hosting, Staten Island New York eCommerce, Staten Island New York SEO, Staten Island New York Graphic Designer, Staten Island New York Programmer, Staten Island New York Business Card Design