Hi, I want a custom page analysis footer on every site I visit... so I've used a method to attach JQuery to unsafeWindow.
I then create a floating footer on the page. I want to be able to call commands in a menu, do some processing, then put the results in the footer. Unfortunately it sometimes works, sometimes it doesn't.
At least t...
Does anyone know how to attach a text to a path in Raphaël? Something like http://www.w3.org/TR/SVG11/images/text/toap02.svg
I know that jQuery SVG can do that, but I can't find an easy way to do this by using Raphaël js. I want to attacht this text to a bezier curve and move it.
...
I have a script that runs a addEventListener for onmousemove and onscroll on the document body to get the cursor position. A onmousemove event works fine (client + scroll), however when a onscroll event occurs clientX/Y seems to inherit scrollTop/Left values instead (only scroll). Is there a way around this?
clickDocument = (document.do...
Hello. I have an image on my website. I would like when I click it, it show a <div>, and when I click it another time, it hides the <div>.
How can I do this in JavaScript? Should I use jQuery?
...
I have the following piece of Javascript code on my web-page
var central_image = document.createElement("img")
central_image.setAttribute("src", imgs[curr_image_no - 1]);
central_image.setAttribute("name", "jpeg");
document.getElementById("photo").appendChild(central_image);
central_image.onload = getDimensions(); //function that alert...
hello all
how to pass variable from zf to javascript/jquery?
thanks
...
I've read about issues where the mousemove event is fired twice in Safari/Webkit, but the problem I'm facing is that mousemove fires even when the mouse is not moved. That is: it already fires when the mouse cursor is positioned above the context that the event is attached to when the page is loaded/refreshed. And because I'm attaching i...
Hi
I have a Reports.aspx ASP.NET page that allows users to download excel report files by clicking on several hyperlinks. When a report hyperlink is clicked, I open a new window using the javascript window.open method and navigate off to the download.aspx page. The code-behind for the download page creates a excel file on the fly using ...
I need to getting the client ip address using javascript.Actually,our connection provider ip is something like this 122.172.127.200.We are putting different private ip like 192.168.10.1,192.168.10.2 and so on..i can retrieve 192.168.10.1,but how can i retrieve the 122.172.127.200 using php or javascript.SSI already enabled.Please help me...
Hi
I have an HTML page with a simple form.
When the user clicks "submit", I'd like a new window to open with the processed results of the form, AND to have the original page redirect somewhere else.
If I use a link with target="_blank", I can open the results window but not redirect the original page.
If I use Javascript to try and op...
I noticed some weird (and to my knowledge undefined behavior, by the ECMA 3.0 Spec at least), take the following snippet:
var foo = { bar: "1", baz: "2" };
alert(bar);
with(foo) {
alert(bar);
alert(bar);
}
alert(bar);
It crashes in both Firefox and Chrome, because "bar" doesn't exist in the first alert(); statement, this is as...
I refresh pages by writing window.location = window.location;. However this doesn't work on a page like /page#c22. It will just jump to whereever c22 is. How do I refresh the page?
It does not need to use go to #c22 once refreshed but I am sure there is a more dependable way than window.location = window.location.
...
There is a plugin for moootols that applied to a form change it into a wizard?
Edit: No other responses to the question... I will accept mine.
...
hi im looking for some modules for python 2.5 whitch allows to run and executes javascript ... any ideas?
...
I'm creating an utility application that should detect and report the coordinates of the corners of a transparent rectangle (alpha=0) within an image.
So far, I've set up a system with Javascript + Canvas that displays the image and starts a floodfill-like operation when I click inside the transparent rectangle in the image. It correct...
Hi,
I've got an array
var assoc_pagine = new Array();
assoc_pagine["home"]=0;
assoc_pagine["about"]=1;
assoc_pagine["work"]=2;
I tried
if (assoc_pagine[var] != "undefined") {
but it doesn't seem to work
I'm using jquery, I don't know if it can help
Thanks
...
Hi everyone,
I have a strange jquery problem with multiple event handlers. What I'm trying to achieve is this:
User selects some text on the page
If the selection is not empty - show a context menu
If user clicks somewhere else - the context menu should disappear
I'm having troubles with the above i.e. sometimes the context menu a...
In javascript you can create a Date object from a string, like
var mydate = new Date('2008/05/10 12:08:20');
console.log(mydate); //=> Sat May 10 2008 12:08:20 GMT+0200
Now try this using milliseconds in the string
var mydate = new Date('2008/05/10 12:08:20:551'); // or '2008/05/10 12:08:20.551'
console.log(mydate); //=> NaN
Just o...
Hello!
I have some hidden inputs like this
<input name="exam.normals[1].blahblah" ..../>
I would like somehow to replace the [1] with a number that I want (index).
I aint lazy but I am trying to find a good way to do this...
A solution would be a replace of exam.normals[1] with exam.normals[+ index +] but I should substr the whole s...
The formatting of HTML and Javascript is just crazy. It actively works against you. Does anybody know how to turn this off completely? (I Do not speak about the HTML designer, I speak about what happens when you press ctrl-k,d in HTML view or when you press ; in a javascript block).
...