Why does this Javascript work and this one does not...?

Head out to http://hihatwebdesign.com/verizon/select/select.php. Click on the down arrow and type in "Canada" in the "Type here to filter list" field. Hit "return" and "Canada" pops up.

Very cool.

Now head out to http://hihatwebdesign.com/verizon/stunt_double.php?sdate=&edate=®ion=CAROLINAS%2FTENNESSEE&toc=rank&x=0&y=0. See where it says "Carolinas / Tennessee?" Click on that pulldown menu and you'll see the same functionality that allows the user to type in the name of a region, hit "return," and retrieve that name. Ah yes, but it doesn't work.

Why?

It's the same widget and I can't see anything different, but I'm betting a mind greater than my own can tell me what the difference is and how to remedy the problem.

What do you think?

Very cool.

Thing is, it doesn't work.

If you head out to
brucegustPHP DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

omgangIT ManagerCommented:
I just tried it in Chrome and it is working for me at both URLs.  Doesn't render well in IE11 though.
OM Gang
0
F IgorDeveloperCommented:
maybe the page is throwing some javasccript errors in:

<script>
	 $(function() {
	    $( "input[type=button], submit" )
	     .button()
	      .click(function( event ) {
	        //event.preventDefault();
      });
	    $( "input[type=submit], button" )
	     .button()
	      .click(function( event ) {
	        //event.preventDefault();
      });
  });
  </script>

Open in new window


.button() is not a function, correcting to the folowing code i hope you get it working


<script>
	 $(function() {
	    $( "input[type=button], submit" )
	      .click(function( event ) {
	        //event.preventDefault();
      });
	    $( "input[type=submit], button" )
	      .click(function( event ) {
	        //event.preventDefault();
      });
  });
  </script>

Open in new window


Check different browsers to ensure it's working ok
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
brucegustPHP DeveloperAuthor Commented:
fraigor, I added your code in the heard and that didn't seem to make a difference. But then I wondered if your code needed to be placed somewhere else.

In any case, I'm still struggling. Anything else I might be missing?

Feel free to check out the page with your additions...
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

omgangIT ManagerCommented:
Actually, only the first link doesn't render well in IE 11 (data entry box) but both function correctly in IE 11 and Chrome.

drop down in IE11
0
brucegustPHP DeveloperAuthor Commented:
omgang, I want to make sure we're reading from the same page of music.

When you say they function correctly, does that include the dynamic where you can type in an entry in the "Type here to filter list" field, hit "return" and get a value?

I can't. Regardless of the browser. As far as the construction of an array and the multi-select dynamic - homerun. Both work great. It's the "filter" thing that doesn't work on the http://hihatwebdesign.com/verizon/stunt_double.php?sdate=&edate=®ion=CAROLINAS%2FTENNESSEE&toc=rank&x=0&y=0 link. It does on http://hihatwebdesign.com/verizon/select/select.php, but not on the other link. THAT's the bug in the ointment...
0
omgangIT ManagerCommented:
Yes.  Both images below are from IE11

typing filter string into text box
filtered drop down
0
omgangIT ManagerCommented:
Update!  I was, out of habit, hitting the Tab key to complete the entry.  This works for both URLs in both IE11 and Chrome.  Based upon your last post I tried hitting the Enter key and, as you are indicating, this doesn't work for the second URL.  Very curious!  Try tabbing.....

OM Gang
0
brucegustPHP DeveloperAuthor Commented:
Well, nuts!

I'm running IE11 as well and I don't get that. Here's my mess:

first screen
...and after I hit return:

screenshot
What am I missing?
0
brucegustPHP DeveloperAuthor Commented:
Not sure what changed, but things seem to be working OK now.

I do have another question that pertains to the same form. If you want to weigh in, that would be awesome. It's at http://www.experts-exchange.com/questions/28713688/How-do-I-keep-this-function-from-firing.html

Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.