Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 7th Apr 2014, 07:05 AM   #1
TNT
 
otfromtot's Avatar
 
Join Date: 2012
Location: florida
Posts: 65
Thanks: 19
Thanked 5 Times in 5 Posts
Default
JavaScrip or jQuery help
Share on: 
fb share twitter share gplus share more share

This theme is no longer supported even though it's pretty new http://my-horse.com.au/ . At the top of the page when you hover on the search icon a search area drops down and shows a search area with a few select boxes.
The issue only exists in IE (hahah) as far as I've seen. I've tried a few things using JS to fix the issue, but I'm not very good with it. What happens is when you click the select box and hover over anythin in the dropdown list, the whole search area slides back up.
This is some of the different scripts I've tried without any results yet.

http://pastebin.com/jZiMFE4N

and this is the jQuery that I think controls the search area

http://pastebin.com/m3J9DLNH

Can anyone help me with where I might be going wrong or point me in the right direction?

My idea is something like this -

onFocus = get.elementId('search select') then something that tells the css for #search-hover to set the height to 281px

something that will run through the whole site easy enough

Thank you!

If everyone knew everything the world sure would be irritating

Last edited on 9th Apr 2014 at 08:05 AM. Reason: missing link
otfromtot is offline  
Unread 8th Apr 2014, 10:45 PM   #2
Active Warrior
 
aesoft's Avatar
 
Join Date: 2002
Location: USA
Posts: 73
Thanks: 1
Thanked 17 Times in 15 Posts
Default
Re: JavaScrip or jQuery help
Share on: 
fb share twitter share gplus share more share

what's the url with the problem?

- James
aesoft is offline  
Unread 9th Apr 2014, 08:05 AM   #3
TNT
 
otfromtot's Avatar
 
Join Date: 2012
Location: florida
Posts: 65
Thanks: 19
Thanked 5 Times in 5 Posts
Default
Re: JavaScrip or jQuery help
Share on: 
fb share twitter share gplus share more share

Originally Posted by aesoft View Post

what's the url with the problem?
Oh it copied over wrong, sorry! http://my-horse.com.au/

If everyone knew everything the world sure would be irritating
otfromtot is offline  
Unread 9th Apr 2014, 09:13 AM   #4
TNT
 
otfromtot's Avatar
 
Join Date: 2012
Location: florida
Posts: 65
Thanks: 19
Thanked 5 Times in 5 Posts
Default
Re: JavaScrip or jQuery help
Share on: 
fb share twitter share gplus share more share

This is an answer on stackoverflow that worked almost perfect.
I believe there is already some code in the plugin to try and correct this issue. Unfortunately, the code tries to detect IE and fails as the detection method is no more working with recent versions of IE.

Try and update the code navigator.userAgent.toLowerCase().indexOf("msie") != -1 in searchShowOnHover with navigator.userAgent.toLowerCase().indexOf("trident/") != -1
The only issue now is that leaving the search area does not trigger the search area to go back up like it does in other browsers

If everyone knew everything the world sure would be irritating
otfromtot is offline  
Unread 9th Apr 2014, 10:17 AM   #5
TNT
 
otfromtot's Avatar
 
Join Date: 2012
Location: florida
Posts: 65
Thanks: 19
Thanked 5 Times in 5 Posts
Default
Re: JavaScrip or jQuery help
Share on: 
fb share twitter share gplus share more share

This outlines the entire fix
JavaScript or jQuery on html form - Stack Overflow

If everyone knew everything the world sure would be irritating
otfromtot is offline  
Closed Thread


Bookmarks

Tags
javascrip, jquery


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 03:38 PM.