Can I create a bookmarklet button with icon?
Can I create a bookmarklet button with icon? ...
Can I create a bookmarklet button with icon? ...
Hi, I have a problem with animations using jQuery on nested tables. I want to make a table that is a bit like a treeview, with a little + / - to expand and get more details about the clicked row. How can I modify the following code for the animations to work both in Internet Explorer 6.0+ and in Firefox ? I can change the markup or the...
I have an ExtJS combobox with a remote data store behind it. In all browsers it works fine, except in IE (all versions that I've tested) where the combobox expands for a splitsecond, showing a "loading" icon and then it disappears again. Clicking it again after this doesn't make it expand at all anymore. Basically: it's not being populat...
I have a Page that is associated with a master page. In the master page, I put the css links in the head section and I put the jquery script tag and the script that contains the function to toggle the grid, but when it is not working. Looks like it is not even calling showhide when I click on an item. Here is a snippet of the master p...
I'm trying to use Telerik's RadSpell to spellcheck some text when the user submits it. The way this is supposed to work is by stopping the postback, triggering the spellcheck through javascript, then in the spellcheckfinished event manually starting the real postback. The problem is that in the last step the Clicked event isn't firin...
According to the swf documentation from Adobe, you should be able to read the individual bytes of a swf to calculate the files size, file dimensions (width and height), version and file type (swf or swc). I am using javascript to read in the individual bytes and converting them to human readable information but I am running into problem...
I have a PHP script that's being called through jQuery AJAX. I want the PHP script to return the data in JSON format to the javascript. Here's the pseudo code in the PHP script: $json = "{"; foreach($result as $addr) { foreach($addr as $line) { $json .= $line . "\n"; } $json .= "\n\n"; } $json .= "}"; Basically, I...
I'm using a RegExp to validate some user input on an ASP.NET web page. It's meant to enforce the construction of a password (i.e. between 8 and 20 long, at least one upper case character, at least one lower case character, at least one number, at least one of the characters #@!$% and no use of letters L or O (upper or lower) or numbers 0...
I'm having some issues with this - some reason updateCurrentItem is always called with the same parameter regardless. function updatePromoList(query) { query = query.toUpperCase(); clearCurrentList(); var numItems = 0; currentItem = 0; result_set = cached[query.charAt(0)][query.charAt(1)][query.charAt(2)]; for(i in result_set){ if...
Hi all, I have a bookmarklet which inserts a CSS stylesheet into the target DOM via a "link" tag (external stylesheet). Recently, this stopped working on Amazon.com, in Internet Explorer only. It works on other sites, and with other browsers (even on Amazon.com). The technique we're using to insert the stylesheet is pretty straightfo...
What is the best way to return an host object to JavaScript in Rhino? I have two classes like this: public class Hosted extends org.mozilla.javascript.ScriptableObject { private static final long serialVersionUID = 1; public Hosted() {} public void jsConstructor() {} public String getClassName() { return "Hosted...
I'm trying to setup a search page which performs two separate kinds of search using two radio buttons which the user can toggle to indicate what it is their searching for. The second search type I'd decided to use a jquery autocomplete script, because there's a relatively small set of searchable items (~213) and this would produce an at...
Is there a way of finding the absolute position of an element, i.e. relative to the start of the window, using jQuery? ...
I have the following dojo codes to create a surface graphics element under a div: .... <script type=text/javascript> .... function drawRec(){ var node = dojo.byId("surface"); // remove all the children graphics var surface = dojox.gfx.createSurface(node, 600, 600); surface.createLine({ x1 : 0, y1 : 0, x2 : 600, y2 : 600 })....
I've got a regular expression (javascript) which is something like... /(x)(y)+(z)/gi The problem is that I'll always get exactly 3 captures from those parens, even if the (y)+ matched multiple times. If it does match multiple times, it just returns the last match. I've no way of knowing ahead of time how many times y will match on any ...
Hi, I have basic markup for a drop down nav, nested lists. The user will click on the top nav item, which will open up the sub nav, but my sub nav links aren't working. It is in a CMS so I must have the links for the placeholder pages there. Markup: <ul class="navtop"> <li><a href="">Who</a> <ul> <li><a href="">Sub Item 1</a>...
Hi, how can i append a new tr to the top of the table instead of under other tr. Example: <table width='100%'> <tr><td>something</td><td>else here</td></tr> <tr><td>something2</td><td>else here2</td></tr> </table> After a click event in jQuery, how can i place <tr><td>something3</td><td>else here3</td></tr> at the top of the ta...
Is it possible to integrate Python and JavaScript? For example, imagine you wanted to be able to define classes in JavaScript and use them from Python (or vice versa). If so, what's the best way? I'm interested not only if this is possible but if anyone has done it within a "serious" project or product. I'm guessing it would be possi...
Is there an existing javascript library for relaying key press events in the browser (or certain divs) into flash? I am hoping there might be a library kind of like this one for mousewheel events ? Something like this handles javascript keyboard shortcuts great. I suppose I could just listen for those events and pass the ones I want i...
I am basing my question and example on Jason's answer in this question I am trying to avoid using an eventListner, and just to call handleClick onsubmit, when the submit button is clicked. Absolutely nothing happens with the code I have. Why is handleClick not being called? <html> <head> <script type="text/javascript"> fu...