Bookmarklet With Safari (windows Version)

Jun 12, 2007

I have bookmarklets with a # in their urls but safari changes the
# to %23. And unfortunately, the bookmarklet does not work with %23.
You need to change it back manually to #.

View 3 Replies


ADVERTISEMENT

Convenient Way For Windows XP Internet Explorers To Add My Javascript Bookmarklet?

Aug 14, 2005

In pre-Windows XP Internet Explorer, adding a bookmarklet for a user was
really simple. All I add to do was create a link that executed
addFavorite().

Internet Explorer under Windows XP won't allow that due to its new security
measures.

How can I make adding a bookmarklet convenient for my Windows XP IE users
without having them to do surgery on their security preferences?

Right now I'm having them Ctrl-D to add a new bookmark. Right-click the new
bookmark to get the Properties dialog, and then pasting in the contents of
my bookmarklet. This is quite messy as you can imagine. In addition, when
they save the bookmarklet, they have to hit "Yes" to an error box telling
them that "javascript:" does not have a registered program associated with
it, do they want to save the bookmark anyways?

View 1 Replies View Related

Jquery :: Conflict - Prettyphoto Popup - Works Fine In Firefox And Safari But Not In Any Version Of IE

Aug 7, 2009

The following code is needed for the prettyphoto javascript popup. It works fine in Firefox and Safari, but not in any version of IE.

<script>
jQuery.noConflict();
$(document).ready(function(){
jQuery("a[rel^='prettyPhoto']").prettyPhoto();
});
</script>

View 1 Replies View Related

Hidden Input Taking No Value In Chrome And Safari (Windows)

May 15, 2009

I have a web app which allows users to select multiple items from a select tag. I then call a JS function on submit which collects all the options they've selected and then adds them to the value attribute of a hidden input. The options selected are then used at a later time. This works fine on IE and Firefox, but both Chrome and Safari for not adding the selected values to the value attribute of the hidden input. Are there any JS issues for Chrome and Safari that could be responsible for this?

View 2 Replies View Related

JQuery :: Load Function Does Not Work Properly On Chrome And Safari (Windows)

Jun 8, 2010

When I load a page with jQuery load() function API. It does not load the style section on the header using Safari and Chrome.

Attachments
test.php.txt
Size : 538 Bytes
Download : 524

View 2 Replies View Related

Redirect If Browser And Browser Version Is Safari 4 Or Newer

May 31, 2010

I need a script that will redirect to a specific page is the browser is safari version 4. if the browser is NOT safari 4 I want the browser to stay on the current page.

View 3 Replies View Related

JQuery :: Update From Version 1.7.2 To Version 1.8?

Mar 27, 2010

I have problems updating from version 1.7.2. to version 1.8. I'm using a custom theme - can anybody give me a step-by-step guide how to update without destroying the whole site ? :) I would like to have the button featueres in the new version

View 1 Replies View Related

JQuery :: Downloading - Click To Download The Latest Version - Or Any Version - It Doesn't "download" Anything

Dec 21, 2010

I am trying to get started using JQuery, but I find I can't even get to lesson #1. When I go to jquery.com and click to download the latest version (or any version) it doesn't "download" anything. It opens the file as a webpage in my browser and I see all the JQuery in one big string. Why won't the file just download? Is it the browser I am using? Is it my Mac?

View 2 Replies View Related

Bookmarklet

Jan 21, 2007

I have a bookmarklet which copies a marked set of characters into a searchpage in our dictionary. If nothing is copied, a window opens where you can type a word.

BTW, it is for firefox 2.0.

javascript:s=window.getSelection();if(s=='')for(i= 0;i<frames.length;i++){s=frames[i].document.getSelection();if(s)break;}if(!s)void(s= prompt('some
text.',''));if(s){test=open('URL/search.pl?searchphrase='+escape(s));test.focus();}
This works well.

We have another search /command which needs to be finished with &search= after the searchphrase

searchphrase="here comes the markedtyped set of characters"&search=

Can anyone of you help me changing the bookmarklet or point me to a site where I can read more about this?

View 1 Replies View Related

Open Windows Under Current Windows?

Apr 6, 2010

below is clickunder code , but it open under windows when visitor click everywhere on the pagei need it be speacial for links , whenever visitor click on speacial link , it opens windows

<SCRIPT LANGUAGE="Javascript">
function PopShow3() {
CookieTest=navigator.cookieEnabled; if(CookieTest)

[code]....

View 5 Replies View Related

Interactive Bookmarklet?

Jun 22, 2007

Is there a way to create a bookmarklet that discerns the shift (or
ctrl) key state at the time the javascipt is launched?????

View 1 Replies View Related

Bookmarklet For Random Url

Jul 20, 2005

I've found examples of bookmarklets that select a URL from a page at
random, but I'd like one that generates part of the URL at random.

If you have a bunch of images that are named:
mydomain.com/images/abcd.jpg where abcd is can be any combination of 4
lowercase letters - is there a way of having the bookmarklet generate
the letters randomly when clicked?

I'm able to do it using AppleScript & Safari but would like it to work
from within Safari - which is missing the "Scripts" menu that most Apple
apps have :(

It looks as if bookmarklets are the only option, but I've only ever used
javascript to select randomly from existing arrays of images and don't
fancy typing in the names of a couple of thousand images...

View 5 Replies View Related

Reader Bookmarklet...

May 6, 2003

Download the attached file, rename it read.html and open it. Drag the "read" link onto your Favorites|Links toolbar, and acknowlege the warning dialog. Then, from anyone's page, click the "read" bookmarklet and read along with it.

My basic premise is that vowels and digits make for a place to pause momentarily (90ms) during reading. If it reads too fast or slow, you can adust the delay factor accordingly.

I haven't tested this on other browsers yet.

View 4 Replies View Related

Child Windows Can Not Access Window.opener When Multiple Child Windows Are Open

Jul 23, 2005

I have a parent window that pushes a new window object onto an Array
with the following code :

OpenChild()
{

//totalNumWindowsCreated is global

totalNumWindowsCreated = totalNumWindowsCreated + 1;
childWnds.push(window.open(link, "child" +
totalNumWindowsCreated,"dependent"));

..
..
..
}

This pops up a new window with every call. In the child window I call
a parent function onbeforeunload, appClose() :

function appClose(){

if (window.opener && !window.opener.closed){
window.opener.CloseChild(getQueryString("application"));
}}

This is in my frameset tag of the child code :

<frameset ... onbeforeUnload='appClose()'>

The window.opener.CloseChild() function is called perfectly when I have
one child window open, but as soon as I create another child window
both of the open child windows don't ever call it. They do both go
into the onbeforeunload appClose() function, but do not call the
window.opener.CloseChild() function inside of this routine.

Anyone have any ideas why when I have two child windows open I can't
access the window.opener functions?

I have tried taking each new window out of the array and used the
following code in CloseChild() :

CloseChild()
{

//win and totalNumWindowsCreated are both global

totalNumWindowsCreated = totalNumWindowsCreated + 1;
var win = window.open(link, "child" +
totalNumWindowsCreated,"dependent");

..
..
..
}

View 1 Replies View Related

Escaping Bookmarklet Code

Nov 13, 2006

When publishing bookmarklets, we put the bookmarklet code in anchor tag
like this:

<a href="javascript: alert('test');"name </a>

Some characters of the code need to be escaped. For example, double
quotes need to be escaped as %22 like in this example:
<a href="javascript: var doubleQuote = '%22' alert(doubleQuote);">
name </a>

Question: Is double quotes the only thing that need to be escaped?

I have seen examples of escaping spaces as %20, but it seems
unnecessary in most browsers i have used.

View 1 Replies View Related

Javascript Bookmarklet For Del.icio.us

Mar 3, 2007

I'm using the following javascript bookmarklet for creating del.icio.us posts, and it works fine, but i've been trying to augment it with "document.getSelection" and have not gotten it to work.

the code is:
javascript:q=location.href;p=document.title;void(open('http://del.icio.us/fogboy?v=3&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title),'delicious%20',%20'toolbar=no,width=740,height=700'))

and it works fine (to test of course you'd have to change the del.icio.us username in there), except it doesn't have the "document.getSelection" syntax which would make it so highlighted text on a page was put in the "notes" field. i've tried about 5 different ways of writing that, based on other versions i've seen around. i would love to know exactly the right syntax to use to get this working.

View 1 Replies View Related

View-Source Bookmarklet

Apr 15, 2003

I didn't know about this until a few hours ago. I thought it was cool, so I thought I'd share it.

I got the code from brothercake, although I did add a few tweaks to it.

Just save this as a bookmark, and you can view the source of any site with just a click (even "protected" sites :rolleyes: )


javascript:var newWin=window.open(); newWin.document.body.innerHTML=('<b style="font-family:Verdana; font-size:9pt;">Source of '+location.href+'</b><br><br><br><xmp style="font-family:Verdana; font-size:8pt; color:#000080;"><html>'+document.getElementsByTagName('html')[0].innerHTML+'</html></xmp>'); newWin.select(); newWin.focus(); void(0);


Just remember to remove the space in "javascript:"

View 13 Replies View Related

Open Bookmarklet In New Window?

Oct 6, 2010

I found this bookmarklet which I'm using in Firefox Would anyone here be willing to modify it to display its results in a new tab, instead of using the current tab?

Code:
javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("You didn't select any text. Enter a search phrase:", ""); if (q!=null) location=("http://www.google.com/search?num=100&q=site:" + escape(location.hostname) + " "" + escape(q.replace(/"/g,"")) + """).replace(/ /g, "+"); void 0

View 1 Replies View Related

Document.body.outerHTML Via Bookmarklet

Aug 11, 2006

I'm trying to create a bookmarklet on IE6, that passes the outerHTML of the body element as a GET param my site.

The problem is that for some page (ie mail.yahoo.com) the bookmarklet does not work while for other pages (simpler ones) it does work....

View 2 Replies View Related

Turn Bookmarklet Into Greasemonkey Script

May 6, 2007

javascript:(function(){var k,x,t,i,j,p; for(k=0;x=document.links[k];k+
+){t=x.href.replace(/[%]3A/ig,':').replace(/[%]2f/
ig,'/');i=t.lastIndexOf('http');if(i>0){ t=t.substring(i);
j=t.indexOf('&'); if(j>0)t=t.substring(0,j); p=/https?://[^
s]*[^.,;'%22>s)]]/.exec(unescape(t)); if(p) x.href=p[0]; } else if
(x.onmouseover&&x.onmouseout){x.onmouseover(); if (window.status &&
window.status.indexOf('://')!=-1)x.href=window.status;
x.onmouseout(); } x. x. }})();

View 1 Replies View Related

Make Bookmarklet Open In New Window?

May 21, 2009

I need this bookmarklet (below) to open in a new window and display the info there. It needs to work in both FF and IE. It would be in one line in the bookmarklet but I expanded it for readability. It should work against our site: [URL]

[Code]...

View 2 Replies View Related

Dictionary Bookmarklet To Open In New Window

Aug 6, 2010

How could I make this useful dictionary bookmarklet open in a new window?

javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset||document.characterSet);if(t!=''){ location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=auto|en&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=auto|en&tbb=1&ie='+e;};

Its the "To English" bookmarklet as featured on lifehacker (http://lifehacker.com/5168984/to-english-bookmarklet-quickly-easily-translates-any-text-with-one-click).

View 1 Replies View Related

Writing To A Text File By Using Bookmarklet In Firefox?

Jul 13, 2010

I am trying to write a bookmarklet that extract a citation information from a web page in a new text file for the client by using javascript.

but I could not find any solution where writing to a text file is allowed with firefox by using javascript.

the application suppose to be run on the client side only.

View 2 Replies View Related

JS Bookmarklet Opens New Window Instead Of Working In The Current One

Jul 28, 2011

I have found a script for opening all linked images of one page in a new window and displaying all images in full size inline. It works so far, however:

I want the images to be displays in the current window i am in instead of opening a new window.

Here is the code:

Code:
javascript:(function(){function%20I(u){var%20t=u.split('.'),e=t[t.length-1].toLowerCase();return%20{gif:1,jpg:1,jpeg:1,png:1,mng:1}[e]}function%20hE(s){return%20s.replace(/&/g,'&').replace(/>/g,'>').replace(/</g,'<').replace(/"

[Code]....

View 3 Replies View Related

Twitter Bookmarklet That Will Tweet Current Page

Nov 1, 2009

I am trying to make a twitter bookmarklet that will tweet the current page, I currently have this code:
Javascript:window.open('[URL]'+self.location)
But when I try it, it changes the page its tweeting to just show [object Window].

View 2 Replies View Related

Chromium Bookmarklet (insert Text At Cursor)?

Apr 4, 2011

I'm not very well versed in javascript. I'm trying to make a bookmarklet that when I click it will either append text to what I've already written or insert the predefined text at the cursor's position in a textarea. Also the browser I'm trying to do this on is Chromium.

Here's what I have:javascript:void((function(){document.getElementsByTagName('textarea')[0].value='ಠ_ಠ'})())

but this of course changes the entire value of the text field to: ಠ_ಠ ...rather than appending or inserting at the cursor position. I'm guessing append would be the simplest, though cursor position would be most efficient.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved