there are various good jquery image preview plugins out there. however, all of the ones i've tested havent worked on image links that are embedded in the DOM with ajax.
i have tested use jquery live feature, but it doesnt work flawless.
$('a.preview').live('mouseover', function() {
$(this).imgPreview({
imgCSS: {
...
I'm try to figure out if there is a way to pass the page source across domains using javascript or another method each time a page is loaded? I know in javascript I can output the page source in to variables using the code below, but how would I go about passing it over to a different domain?
var head_src = document.head.innerHTML;
va...
I just built a web page that is employing several different javascript elements. I am just curious as to what is considered a fast vs. a slow load time. Mine is coming out to be about 490ms w/ four different javascript pieces. Is that good, bad or average? Wondering if I need to optimize my js elements or not.
...
Hi,
I am using tinymce editor to give good look of textarea where user write some comments.I want to give him two options one is plain text and the other is rich text editor option.When user click on plain text option all rich text option removed and when user click on rich text it will get all options of formatting text. I want to do t...
Hi! I just wanted to know, is there any possible way to change the URL that appears in the address bar of a webpage dynamically? Like, maybe there are two buttons on the webpage, and when the user clicks one it will (or won't it does not matter) refresh the page and the url will be mysite.com/page1, or if the user clickes the second butt...
I'm trying out some dynamic web page background generation using lines and text.
Take a look at my demo at http://74er.net/labs/lines.html (just focus on the yellow line).
It's a lame and inefficient method by literally creating a <span> element with 1 X 1 size and a yellow background with the X,Y position based on an ellispe formula....
For example, how do I know that the myObject object literal contains two items?
var myObject = {
item1 : "blablabla",
item2 : "blablabla
};
...
I've been looking at other people's JavaScript code, and I've noticed that many programmers tend to create functions that could be combined with the functions that are calling them. One example is this; the 'initWebGL' function could be combined with the 'start' function and it'd function the same. Another example is in the source of thi...
How I can replace a text at the bottom right of the window (not the page) and that text will follow the corner of the window (in other words, it will stay at the corner of the window). It will be a "share" link, I want it to be seen always.
...
Hi,
I am using the Nitobi Grid in my php website. I would like to remove the buttons
like add row and remove row on the grid toolbar. I cant remove the whole toolbar as i need the bar for paginating.
Please let me know if there is any way to remove these buttons. Any ideas are appreciated.
...
Hello, I want a form uploads some files to the server but I want it is transparent for user. I have a input tag outside the form which is cloned to the form with cloneNode() [Javascript] every time the user changes its value. The name of the input tag is "files[]". Mozilla Firefox clones the input correctly but IE doesn't copy its value ...
I want to scroll my 10 images in continue scrolling mode just like demonstrated in this flash file: Demo Flash
But I want to do this using CSS, and jQuery or JavaScript without using flash. I want to scroll images continuously and when I mouse over on it the scroller will stop and when out it will again start scrolling.
I Googled a lo...
Hi All
I have a modal popup as (lightbox etc.). If i want to add java applet into the modal popup via javascript i encounter a problem that is Java Applet don't display propperly sometimes dont' everytime. I tried to solve it setTimeout methot but it didn't solve :( Do you have a suggestion this issue? Thanks.
...
How to avoid the confirm dialog box “the web page you are viewing is trying to close the window” when trying to close IE popup?
...
Hi, all :)
Do you know is there any software that can tell what handler functions are bind on which events with a given element on the page, probably works like 'Inspect Element' on Firefox.
Thx in advance.
...
Lets say that I am on a page that has a significantly long list of URLs and I want to make sure that I have all of them bookmarked. I know that I already have many of them in my bookmarks list and would like to avoid duplications as much as possible.
With that in mind, I would like to be able to grab all of the links and then open into...
Hello everyone,
I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net. I am learning the following code dealing with javascript, my confusion is for $(function(){...} part of code, when it will be called and what is its function? I did not see any code...
In my Greasemonkey script, when I obtain a handle on an HTMLImageElement I want to use with an HTML Canvas, I get the following error in Firefox's Error Console (I assume it's because it's enclosed in an XPCNativeWrapper):
Error: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE)
[nsIDOMCanvasRenderingContext2D...
Is there any way to make an object return false in javascript?
var obj = new Object();
console.log(!!obj) // prints "true" even if it's empty
...
I need to insert a DOM which is a complete SVG document into an <object> element. SO here's my code:
var svgDom = (new DOMParser()).parseFromString(streamedFile,'image/svg+xml');
var pagePics = document.querySelectorAll('#currentFiles figure object');
for (var i=0; i<pagePics.length; i++){
pagePics[i].contentDocument = svgDom.doc...