DevCon Europe and Typepad versus Google Search

I am making final travel preparations for the Forge accelerator in Rome next week, and need to start preparing for DevCon Europe as well.

As always, when you have no time to spare, something else urgent cropped up as well requiring immediate attention:

Forge DevCon Europe Coming

As Kean Walmsley just pointed out, we are counting down to Forge DevCon Europe, the second European edition of the Forge DevCon.

It is being held in Darmstadt on October 16th, the day before this year’s AU Germany.

This is a free, English-language event where you can learn all about the capabilities that are currently (and soon will be) available through the Forge platform (the entire DevCon event is in English language, whereas the Autodesk University following it is in German).

Autodesk Forge Devcon Europe 2018

Here are some reasons to attend, provided by the Forge team:

I will be there, together with Kean and many other world-wide colleagues.

You can register today via this link.

Also, again like Kean, my next stop is next week in Rome at the Forge accelerator.

I hope you can make it to one of our upcoming events as well.

Hijacking Typepad Search Input for Google Site Search

Matt Taylor submitted a comment on yesterday's blog post pointing out that the search functionality stopped working:

Just a heads-up that the search box on your blog doesn't appear to be working.

I tested in IE and Chrome.

It used to work...

I'll normally add the site to the search like this in a search engine:

site:http://thebuildingcoder.typepad.com floor

... Which is what I did when it didn't work.

The problem is caused by the built-in Typepad search module.

Just for your information, the entire blog source code is also available in parallel in the tbc GitHub repository, so you can always download from there to your own system and search there with full control and flexibility.

After some in-depth research and JavaScript twiddling, I am now opening my own Google search window in a new tab in parallel with the dysfunctional Typepad search.

I dove into the blog source code to determine and retrieve the search input text box and submit button and hijack it to open a second Google search window doing just that.

Here is the code that I added to the site to achieve this:

  <script type="text/javascript">
  window.onload = function(){
    var form = document.getElementById('search-blog');
    var submit = form.getElementsByClassName('btn')[0];
    var searchinput = form.getElementsByClassName('form-control')[0];
    submit.addEventListener('click', function(event) {
      var s = searchinput.value;
      s = s.replace(/ /g, '+');
      var url = 'https://www.google.com/search?q='
        + s + '&as_sitesearch=thebuildingcoder.typepad.com';
      //window.location.href=url;
      var win = window.open(url, '_blank');
      win.focus();
    });
  }
  </script>

I initially tried to override the Typepad functionality completely using window.location.href, but that failed.

Therefore, I open the second Google site search window in parallel and set the focus to that instead.

By the way, I found this ultimate guide to the Google search parameters useful to determine what URL arguments to add, i.e., as_sitesearch.

Finally, I discussed the issue with Typepad, saying:

the built-in typepad search module does not work. i now implemented my own javascript version to open a google search engine in a separate tab. what can i do to make the built-in typepad search module work as intended? to see what i mean, please go to thebuildingcoder.typepad.com, type IExternalCommandAvailability in the search input text box and click 'Submit'. the built-in search reports that no results are found:

No Results Found – Sorry, there were no results returned for “IExternalCommandAvailability” – please check your spelling, or try something less specific.

i open a new tab with a google search engine limited to thebuildingcoder site, and it reports many results.

Typepad answers:

Thank you for reaching out to us. We are aware search results are not displaying as expected, and we are currently working on an update to the search feature. We apologize for the inconvenience. If you have any other questions, please let us know.

I have no other questions, thank you, Typepad.

Thank you very much, Matt, for pointing this out!