Jump to content

Oui Lookup


Recommended Posts

Posted · Hidden by Dazzle, June 22, 2012 - No reason given
Hidden by Dazzle, June 22, 2012 - No reason given

We should definitely look into that, just because of the fact 'Oui' means 'Yes' in French :P

Link to comment

This wouldn't be too bad to implement.

I will check it out.

Best,

Sebkinne

Seb this is what I did

PHP

$clientMAC = '00:11:22:33:44:55';

$clientMACOUI = 'http://standards.ieee.org/cgi-bin/ouisearch?'.strtoupper(str_replace(':', '-', substr($clientMAC, 0, 8)));

echo('<a href="'.$clientMACOUI.'" target="popup" onClick="wopen(\''.$clientMACOUI.'\', \'popup\', 660, 360); return false;">'.$clientMAC.'</a> ');

add this to top of page

<script LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -

function wopen(url, name, w, h)
{
// Fudge factors for window decoration space.
 // In my tests these work well on all platforms & browsers.
w += 32;
h += 96;
 var win = window.open(url,
  name,
  'width=' + w + ', height=' + h + ', ' +
  'location=no, menubar=no, ' +
  'status=no, toolbar=no, scrollbars=no, resizable=no');
 win.resizeTo(w, h);
 win.focus();
}

// - End of JavaScript - -->
</SCRIPT>

Edited by petertfm
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...