Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Safari Extension Help


  • Please log in to reply
No replies to this topic

#1 hmtinc

hmtinc

    Infinity Team

  • Members
  • 1,262 posts
  • LocationCanada
  • Graphics Card:Nividia geforce 9400 (264mb)
  • Operating System:Mac OS X 10.8 (Mountain Lion)
  • I like to play:Cod
    Doom 1-3
    Minecraft
    Gta
    Fallout 1-4
    Real Racing 1-2
    Angry Birds
    Flight Control
    Braid
Author

Posted 12 August 2012 - 03:45 PM

so i am trying to create a safari extension for the porting team google search . When done the plugin will display a button. When the button is clicked a pop over will be displayed where a user can enter the search keywords and then the results will be displayed and will link to corresponding Porting team pages .

I have gotten the plugin to work but there is one major problem when you click on a result in the pop over menu it doesn't open the link !!!

heres a screen shot of the plugin so far
Spoiler

Heres the html Code used for the pop over
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

<script>
  (function() {
	var cx = '016385124988637970925:b7wnxn09gse';
	var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
	gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
		'//www.google.com/cse/cse.js?cx=' + cx;
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
  })();
</script>
</head>
<body>

<gcse:search></gcse:search>

</body>
</html>

Heres the Extension Builder screen shot
Posted Image


Posted Image

Proud Supporter of the Infinity Engine Project

Sub-Moderator of Infinity Engine Section





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users