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


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

Welcome To Our New Site!

by Thomas J. Allen

Posted on October 11, 2017 at 06:28:09 PM


Welcome to our new website! With our new look, we want to show off the design skills we offer for your own website needs. Established in 2004, BrainScanMedia.com, Inc. is a Privately Held web solutions company offering website design, development, website re-design, planning, maintenance, graphics design, marketing design, print and online ad design, flash design, custom logos, banner designs, shopping carts, e-commerce, search engine optimization, and web hosting solutions. We also offer video editing, digitizing, music and audio score development for any projects you may have. We design web sites for medium to large corporations, government agencies, non-profit organizations, and small personal sites. We are a combination of old and new media, helping to simplify the creation and production of customized media through technology. Our service offerings put you on the path to performance acceleration. BrainScanMedia.com's technology platform enables turnkey, customized solutions for online...


Read More
Showing Page 2 to 2 of 6 Blog Posts

Blog Search

Archive

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