try another color:

 
try another fontsize: tiny small normal big huge
netsperience 2.x
web development, web site design, seo and smo

javascript

Welcome to netsperience 2.x

This is the personal web site of Randall Goya aka decibel.places dba netsperience

I develop community, social publishing, semantic publishing, ecommerce and rich media Web 2.x web sites (beyond "Web 2.0"). I also optimize web sites for SEO and SMO. I build most of my projects with Drupal, PHP, MySQL, HTML, CSS & jQuery.

Here you can view my professional portfolio, read my blog, listen to some tunes by me, or on the Jango Juke BoxI'm also on Facebook & twitter & LinkedIn - View the netsperience company profile on LinkedIn.

You're probably wondering, "If this is netsperience 2.x, what happened to netsperience 1.0?" It was at GeoCities Free Hosting for over ten years, but now it's gone along with the rest of GeoCities - you can still view much of the old GeoCities site at ReoCities

jQuery to the Rescue! Drupal warning: Illegal offset type in isset or empty in user.module

Call me old fashioned. I started using JavaScript in the 90s before jQuery was even an idea. Sure, I can troubleshoot jQuery, and it is used a lot in Drupal, but my first impulse is to write regular JavaScript, which still works too. I think jQuery is the best JS framework, I've worked with prototype.js, mootools etc. too.

But when I wanted to hide an obscure and possibly meaningless warning message on the user account edit page (so that new members would not get freaked and think they did something wrong) I struggled.

First I hacked the user.module and although I removed the warning I also gave everybody admin access, including people who are not even logged in - not a good idea.

So I used CSS to hide the warning messages on "body-page.user" which seemed to do the trick.

Then my client told me he was having trouble creating new accounts, and I realized that I hid ALL user module warnings including "User name xxxx already exists" so I was back with the ugly warning.

Finally, I decided to hide just the warning with the text in question. Sure, I could have done it with classic JavaScript, indexing through all the div elements and looking for the matching innerHTML text and hiding the div. I guess that would have been about 8 lines of code.

I decided to figger out the best jQuery method. I came up with one line of jQuery code to add to my theme template that did the trick:

<script type="text/javascript">$("div.messages:contains('Illegal offset type in isset or empty')").hide();</script>

(note: the .messages selector is crucial; without it, all divs that are parents of the warning are also hidden, effectively hiding the entire page!)

jQuery: write less, do morethanks, jQuery...

now about that PHP warning...

learn jQuery at W3Schools

About Randall Goya

Randall Goya aka decibel.places dba netsperience

  • A back-end wizard, Randall Goya develops community-driven sites, social publishing, semantic publishing and e-commerce web sites. He develops Web 2.x (beyond "Web 2.0") websites. Randall specializes in the Drupal CMS/CMF (Content Management System/Content Management Framework).

  • He can also deal with a myriad of other platforms, including, Joomla, Magento and PHPMotion. Randall also provides custom-built web solutions with: PHP, MySQL, AJAX, JavaScript, DHTML and CSS. Randall is constantly aware of SEO (Search Engine Optimization) and SMO (Social Media Optimization for Twitter, Facebook etc.) as he codes.

  • Randall has partnered with Drupal developers Lanny Trager and Tom Sherlock to form the ToLoRo Group. We provide Drupal Web Development and Design services, including E-Commerce, Social/Community publishing, Rich Media and Mobile. We are based in northern New Jersey near New York City, and we can handle on-site and remote contracts, both as an LLC entity and as individuals.

  • Randall’s team of associates includes front-end UI, graphic design and branding, and SERP (Search Engine Rank Placement) and SEM (Search Engine Marketing) by SEO-savvy writers, bloggers and marketing experts. Randall also partners with Danny Glix at Colorfury for visual branding design.

  • Randall has been creating web sites since 1996. I have been creating Drupal sites since v 4.x (2005). I also enhance and troubleshoot existing web sites.

  • Randall has been cooking DHTML with JavaScript, jQuery etc for over 10 years.

  • Randall is a member of the Drupal Association

  • Randall's code snippets have been featured at javascript.com, drupal.org, and dzone.com.

  • Randall (ghost)wrote an article about PHP and SEO that is widely distributed online: PHP SEO, and Spiders - Oh My!

  • Randall Goya is among the top experts have in web development on LinkedIn with more than 50 "best answers"

  • Some clients have worked with Randall for years, and he can provide outstanding references.

  • Randal Goya was a sound editor and engineer for major feature films in the 80s, and I work with rich media: video, audio, Flash. (Yes, the credits list Randal with one "l" but he is the same person.)

  • Randall also Project Manages PHP/MySQL, Drupal, Flash, ASP.NET, C#, MSSQL

  • Randall's résumé was chosen as "best" out of 700 submitted to a Berman Larson Kane webinar.

  • View Randall Goya's résumé

 

LinkedIn Behind-the-Scenes: JavaScript Frameworks

Ever wonder what JavaScript frameworks are powering LinkedIn?

The Framework Detector addon for Firefox can tell you:

JS Remoting Library, Prototype, Scriptaculous, Yahoo! UI Library

JavaScript frameworks in use on LinkedIn

and the Backend Software Information addon can detect Drupal 5.x, 6.x, Wordpress 2.x, Django, phpBB, MediaWiki, MoinMoin, Joomla, Reddit and more!

FOB (Fly Over Background) DHTML Scroller

This scroller/viewer is similar to one using MooTools. It scrolls both the semi-transparent content divs to designated targets AND the optional background image, using smooth scrolling. The javascript source for this is lightweight, about 125 lines of code (5.73 kb) compared with about 10,000 lines in the MooTools-core and MooTools-more libraries (237 kb).

Feel free to use it. Please retain the copyleft GPL license notice intact.

Download files

 

code snippets widgets and stuff

My projects at The Webmaster Forums

There you can find:

  • Event Links List: scrollable div (no scrollbars) plus admin without database   
  • age verifier
  • check if PHP is parsed in HTML files   
  • password-protected download   
  • basic php email feedback form   
  • Up Against the War   
  • QuizBlender: JS Multiple Choice Quiz Engine and Editor: Common Spanish Phrases Demo   
  • The Ultimate Original JavaScript ColorShow

and more!

the Webmaster Forums

jsgenie Scripts Screenshot

jsgenie Scripts Screenshot

I tried out a lot of javascripts from libraries, and modded many with added features, better style, or just plain better function. I prefer to use off-the-shelf open source code as a starting point, it saves time (and saves money for my clients). However, I developed ideas for functions that weren't in any script libraries, so I had to cook them from scratch. I collected a few of these original and unusual javascript widgets, doodads, and apps at jsgenie Scripts.

Up Against the War (PROTEST Off) Screenshot

Up Against the War (PROTEST Off) Screenshot

A political application of JavaScript - politics aside, the effects are pretty radical.

Up Against the War (PROTEST On) Screenshot

Up Against the War (PROTEST On) Screenshot

A political application of JavaScript - politics aside, the effects are pretty radical.

QuizBlender Spanish Quiz Screenshot

QuizBlender Spanish Quiz Screenshot

 QuizBlender is a client-side quiz engine and editor. It stores players' quizzes and scores with a cookie, permitting multi-player mode. An administrator or teacher can retrieve a record of the wrong answers to evaluate topics for further study. A study sheet of all questions and answers can be generated. Completely configurable questions/answers, colors, sound effects (currently only in IE), random on/off, and many more options.

log in with your account on

Syndicate content