Google Groups Home
Help | Sign in
Windows Update KB947864 Seems to Foil Some Behaviors
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Bill Burcham  
View profile
 More options 17 Apr, 00:35
From: Bill Burcham <bill.burc...@gmail.com>
Date: Wed, 16 Apr 2008 16:35:52 -0700 (PDT)
Local: Thurs 17 Apr 2008 00:35
Subject: Windows Update KB947864 Seems to Foil Some Behaviors
On a Win XP VM (Parallels) running IE7 some of my behaviors stopped
being triggered (but others are still working) after installing
Windows Update KB947864 (released a few days ago).

Symptom:

QueryObserver (behavior) has an onclick. I register that behavior on
an anchor via Event.addBehavior "a.queryButton": QueryObserver. But
when clicked, the behavior is not delegated to. Instead (apparently)
the default behavior of the link is executed, which in my Rails log
looks like this:

Apr 16 12:20:50 app1 rails[7056]: ActionController::RoutingError (No
route matches "/://javascript:void(0)" with {:method=>:get}):

So it looks like when the link (which had an empty href in the static
HTML) is clicked, the behavior is not called but instead this link
with the no-op bookmarklet is fetched instead. It's so wierd. I mean,
isn't the default behavior of an anchor w/ a javascript bookmarklet to
_execute_ when clicked?

Are you having odd issues w/ your Lowpro app on IE6/7 on XP/Vista in
the last few days?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Burcham  
View profile
 More options 17 Apr, 01:07
From: Bill Burcham <bill.burc...@gmail.com>
Date: Wed, 16 Apr 2008 17:07:34 -0700 (PDT)
Local: Thurs 17 Apr 2008 01:07
Subject: Re: Windows Update KB947864 Seems to Foil Some Behaviors
So did a big "duh" and double-clicked the nifty "yield" sign in the
lower left chrome and I see there is a JavaScript error on the page.
Something like this:

line 3187
char 29
Error: 'undefined' is null or not an object
Code: 0

Looking at my (Rails-generated) "all.js" in Firebug (in Firefox), line
3187 appears to be:

3184 attrPresence: function(nodes, root, attr) {
3185 var results = [];
3186 for (var i = 0, node; node = nodes[i]; i++)
3187 if (Element.hasAttribute(node, attr)) results.push(node);
3188 return results;
3189 }

which is part of the Selector class (in Prototype).


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Burcham  
View profile
 More options 17 Apr, 14:53
From: Bill Burcham <bill.burc...@gmail.com>
Date: Thu, 17 Apr 2008 06:53:19 -0700 (PDT)
Local: Thurs 17 Apr 2008 14:53
Subject: Re: Windows Update KB947864 Seems to Foil Some Behaviors
This turned out to have nothing to do with Lowpro and everything to do
w/ Prototype 1.6.0_rc0.  Some attribute selectors fail in that version
of Prototype in the presence of KB947864.

This example works fine w/ Prototype 1.6.0.2 but if you run it w/
1.6.0_rc0 you see no alert (popups):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/stric...">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Test</title>
<script type="text/javascript" src="prototype.js"></script>
<script>
  Event.observe(window, 'load', function(){

  var sel = $('select1').down('[selected]');
  alert("attr selector doesn't crash when attr present");

  sel = $('select2').down('[selected]');
  alert("attr selector doesn't crash when attr NOT present");
  });
</script>
</head>
<body>
   <form method="get" action="/">
      <select id="select1" name="foo">
         <option value="bricks" selected>bricks</option>
      </select>

      <select id="select2" name="bar">
         <option value="boards">boards</option>
      </select>
   </form>
</body>
</html>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Burcham  
View profile
 More options 17 Apr, 14:56
From: Bill Burcham <bill.burc...@gmail.com>
Date: Thu, 17 Apr 2008 06:56:54 -0700 (PDT)
Local: Thurs 17 Apr 2008 14:56
Subject: Re: Windows Update KB947864 Seems to Foil Some Behaviors
Prototype 1.6.0.1 (the version shipping in Rails 2.0.2 gem) looks
immune too.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google