+ Post New Thread
Results 1 to 15 of 15
Coding Thread, Custom IE Toolbar in Coding and Web Development; I'm looking to create a custom toolbar (for IE initially) that when clicked gets the address of the currently viewed ...
  1. #1

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241

    Custom IE Toolbar

    I'm looking to create a custom toolbar (for IE initially) that when clicked gets the address of the currently viewed page and sends it to a PHP page.

    Does anybody have any ideas how I might achieve this/links to tutorials that cover this.

    Thanks,

  2. #2

    Join Date
    May 2008
    Location
    Cheshire
    Posts
    292
    Thank Post
    48
    Thanked 27 Times in 24 Posts
    Rep Power
    18
    I don't think this is possible to do. Why would you want to do this?
    Sounds like proxy by passing to me. Firefox would be my best bet but as for IE... I doubt it.

  3. #3

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by Pashers View Post
    Why would you want to do this? Sounds like proxy by passing to me.
    Hmmm, I work in a school - why would I want to create some kind of proxy bypassing script when a major part of my job is stopping the kids from doing the very same?

    It's actually for a whitelist filter I've been working on. It currently allows staff to open up websites so that students can use them - works pretty well too.

    I'm just looking to move it up a level, so that when a teacher is browsing the net all they have to do is click a button when they see a site that students may need access to.

  4. #4

    Join Date
    May 2008
    Location
    Cheshire
    Posts
    292
    Thank Post
    48
    Thanked 27 Times in 24 Posts
    Rep Power
    18
    Is it me or is edugeek being funny today? I've done a similar thing, I've made a program that runs in the background and monitors the site a pupil goes onto then blocks it on a set of white/black list and also in different catagories.

    Web Monitor

    Would this be of any use?

    Currently testing it in a few rooms at this school. Few bugs to fix (nothing major). But working well.

  5. #5

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by Pashers View Post
    Is it me or is edugeek being funny today? I've done a similar thing, I've made a program that runs in the background and monitors the site a pupil goes onto then blocks it on a set of white/black list and also in different catagories.

    Web Monitor

    Would this be of any use?

    Currently testing it in a few rooms at this school. Few bugs to fix (nothing major). But working well.
    By the sounds of things your app is completely different to what mine is. Mine runs a Squid server on a *nix box, and has a front end that allows easy editing of the whitelist by staff members.

  6. #6

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,172
    Thank Post
    868
    Thanked 2,699 Times in 2,288 Posts
    Blog Entries
    11
    Rep Power
    772
    This looks to be a free framework that allows you to throw together an IE toolbar:

    CodeProject: Toolband (Toolbar for IE) sample using WTL. Free source code and programming help

  7. Thanks to SYNACK from:

    Hightower (3rd March 2009)

  8. #7

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Thanks Synack - will give that a good read through.

  9. #8

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65
    Maybe an alternative would be to look at using bookmarklets or whatever they're called in IE? I use the toread.cc archive service to send myself interesting stuff to read at home when people link it here and they provide a bookmarklet to drag to any toolbar in IE/FF. Would have thought you could tweak the JS they use to submit to your server instead, or even just set up an email address at school for pages submitted via toread.cc to arrive with you for whitelisting.

  10. #9

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,172
    Thank Post
    868
    Thanked 2,699 Times in 2,288 Posts
    Blog Entries
    11
    Rep Power
    772
    Quote Originally Posted by OutToLunch View Post
    Maybe an alternative would be to look at using bookmarklets or whatever they're called in IE?
    That is a really good idea, I remember that evernote uses something simmilar. It is just a chunk of javascript in a bookmark that will looks like it works in lots of browsers including IE, Firefox, Safari and Chrome. Here is the code which should be pretty easy to mod to point to your server. You could even deploy it via AD GPOs

    Here is the evernote code:

    Code:
    javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();

  11. #10

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    So I'm trying this bookmarklets and it seems to do what I want. This is my javascript:

    Code:
    javascript:location.href='http://localhost/twf/index.php?re=1&ad=add&txtTitle='+document.title+'&txtAddress='+location.href
    As you can see it loads a page sending 4 variables - this works perfectly except for I need to force the new page in a new window.

    I'm not very good with javascript so can somebody help me so it loads in a new window and still sends the 4 variables (two of which get info about the current page).

  12. #11

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,172
    Thank Post
    868
    Thanked 2,699 Times in 2,288 Posts
    Blog Entries
    11
    Rep Power
    772
    Quote Originally Posted by Hightower View Post
    I'm not very good with javascript so can somebody help me so it loads in a new window and still sends the 4 variables (two of which get info about the current page).
    This seems to work:

    Code:
    javascript:window.open('http://localhost/twf/index.php?re=1&ad=add&txtTitle='+document.title+'&txtAddress='+location.href,'Report Window',
    'left=20,top=20,width=500,height=500,toolbar=1,resizable=0');
    Heres the breakdown of the function fo if you want to tweak it:
    Code Beach - Opening a New Browser Window in JavaScript

  13. #12

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    It works to a degree (it opens a new window and sends the info) but the old window reloads to something saying:

    Code:
    [object Window]

  14. #13

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,172
    Thank Post
    868
    Thanked 2,699 Times in 2,288 Posts
    Blog Entries
    11
    Rep Power
    772
    Seems to work in opera but you could try this which will refresh the current window and then open the new one, what browser are you using?

    Code:
    javascript:location.href=location.href; window.open('http://localhost/twf/index.php?re=1&ad=add&txtTitle='+document.title+'&txtAddress='+location.href,'Report Window','left=20,top=20,width=500,height=500,toolbar=1,resizable=1');

  15. Thanks to SYNACK from:

    Hightower (6th March 2009)

  16. #14

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65
    I don't "speak" javascript, but here's the one I have for toread -

    Code:
    javascript:(function(){var%20s=document.createElement(%22scr%22+%22ipt%22);s.charset=%22UTF-8%22;s.language=%22javascr%22+%22ipt%22;s.type=%22text/javascr%22+%22ipt%22;var%20d=new%20Date;s.src=%22http://toread.cc/bjs.php?hl=en&s=b3d9aca02060&d=%22+d.getMilliseconds();document.body.appendChild(s)})();
    This submits it to toread whilst reloading the original page - not sure if this would be any help to avoid the [object Window] issue?

  17. Thanks to OutToLunch from:

    Hightower (6th March 2009)

  18. #15

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by SYNACK View Post
    Seems to work in opera but you could try this which will refresh the current window and then open the new one, what browser are you using?

    Code:
    javascript:location.href=location.href; window.open('http://localhost/twf/index.php?re=1&ad=add&txtTitle='+document.title+'&txtAddress='+location.href,'Report Window','left=20,top=20,width=500,height=500,toolbar=1,resizable=1');
    Thanks Synack,

    That works a treat! Thanks Outtolunch too, just beaten to the buzzer

SHARE:
+ Post New Thread

Similar Threads

  1. Deploy IE toolbar
    By KarlGoddard in forum Windows
    Replies: 2
    Last Post: 22nd June 2008, 10:35 PM
  2. Ranger Toolbar
    By cgiuk in forum Network and Classroom Management
    Replies: 0
    Last Post: 22nd April 2008, 09:47 AM
  3. New Edugeek Toolbar
    By SYSMAN_MK in forum General EduGeek News/Announcements
    Replies: 0
    Last Post: 27th February 2008, 12:35 AM
  4. Edugeek Toolbar
    By in forum General EduGeek News/Announcements
    Replies: 12
    Last Post: 13th March 2007, 08:25 PM
  5. Replies: 2
    Last Post: 17th November 2006, 07:40 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •