I'm relatively new to web development and wouldn't even know where to start in coding a javascript that fades a grayscale thumbnail image into a color thumbnail image on mouseover, and vice versa on mouseoff (<--or whatever this is called).
I've looked all over and can't find a script that does this. Is this possible? Could I use jqu...
Hello,
I plan to write a Desktop Client for Windows and Mac. It will be powered by web techniques (HTML + JS). Therefore it shall run on a WebKit engine on the user's desktop.
Recently, I saw an interesting approach for this issue: Appcelerator
I love its basic concept, but I don't want be dependent on their services. Instead I want to...
Hi fellow stackoverflow:ers,
I'm using the jQuery Datepicker plugin, together with Martin Milesich Timepicker plugin. Everything works great, except for the fact that clicking a date in the datepicker, closes the widget, leaving no time to pick the time.
Question: So I'm wondering if there's a way to prevent the widget from closing wh...
Hi,
Using jquery I am doing something like:
$("#someId").append("this is some text, go here.");
How can I insert a url like this safely? Is there an easier way to escape all those characters that will cause js to break?
...
Hi,
When I want to change the content of an element, it works fine without effects, and does this behaviour with the effects:
changes the content to the new one
does the hiding effect, on the new content
does the showing effect, still on the new content
Here is the code that is launched everytime I need to change the content:
funct...
Hi,
I need to populate a text box with a calculated date and can't get the calculated value to appear.
e.g. the text box should default to today's date + 5 days.
I have java script doing the calculations and they are working, and I know that I use the "value" attribute for the text box but am unsure as to the syntax to parse the java scr...
Hi guys
Just wondering if any know if there is any JavaScript API out there that allow you to simply plot relationships between nodes.
I would like it if it used JavaScript:
Something similar to (which doesn't quite work)
http://ajaxian.com/archives/new-javascriptcanvas-graph-library
Or this (which is nicer but doesn't have any...
In my script, this function parts build links:
if ($type == "mod_rewrite") {
$prepend = "";
$append = ".html";
} else if ($type == "query_string") {
$prepend = 'index.php?params=';
$append = "/";
}
//
//
//
$gamelink = 'game/id/gamename' (example)
/* 'game' is a fixed string.
'id' and 'gamename' are...
Hi Guys, Do you know any rounded corners tab like this one that I can download? Or how can I create a tab like that? Do the use of images in the tab menus are required or not? I used the:
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
border-top-left-radius:5px;
border-top-right-radius:5px;
but it is not perfect....
I need a script that i can put on any page in an application and it will run X amount of time. When it hits the amount of time that is specified in the js it will open either an overlay on the page or a child popup window. Inside either window i will give you what the text should say.
in the new window they will have two buttons.
resum...
i have some content like this
var p =
i myself
Abhimanyu Singh
Yadav
when i m trying to insert into as innerHTML to some div the whole content appears in one line.i m using <pre> tag to avoid this problem.but need some appropriate solution.
...
If I'm inserting content into a textarea that TinyMCE has co-opted, what's the best way to set the position of the cursor/caret?
I'm using tinyMCE.execCommand("mceInsertRawHTML", false, content); to insert the content, and I'd like set the cursor position to the end of the content.
Both document.selection and myField.selectionStart won...
Hi,
I have a ajax login script, using prototype, where I ajax the credentials over to a php page that checks if the info is correct. If it is, I try to set a cookie and then return 0 or 1 depending if it is correct. The ajax call returns 0 if it is correct and then makes a js call on the original page to redirect into the site. I keep g...
I am having problems evaluating a script.js file which is dependent of prototype.js. When i am trying to evaluate the script.js file through rhino script engine in java i got Script Exception like "TypeError: $H is not a function, it is java.lang.String.". How do I evaluate the files and how to include prototype.js and to define the prot...
Hi there,
I have implemented a virtual-scrolling DataGrid with an underlying QueryReadStore as follows
<span dojoType="dojox.data.QueryReadStore" jsId="logsStore" url="./logs.do" requestMethod="post"></span>
<div class="logsListContainer" style="align: center; width: 100%; height: 100%; border: 0px" >
<table height="100%" id="logs" jsI...
I basically have a series of small SWF Files. I have used SWFObject to play them, but how do I get a series of SWF videos to play sequentially even though they are separate SWF files?
...
I am going to develop an instant messaging application that runs in the browser.
What browsers support the WebSocket API?
...
i have a table with some columns. in each of them is a picture where i have a onmouseover onmouseout event on it, which show a message in a div and hide the msg.
my problem is - after a user goes quick from left to right (and moving) over a lot o images.
all mouseover/out events of the images where executed, which looks stupid... is it ...
I have an input (outside form) that captures name of an image. User should fill in a new name and hit enter. Ajax callback renames the image. This works.
I'd like to add ability to 'reset' the input content when the user presses escape (#27). But I'm not able to fill the value of the input with my value.
The code is
<input id="escapeI...
Somehow somewhere in my code one of the elements on the page gets a style attribute which I don't expect it to get. Namely, it gets style="position:fixed". I can see this happening in HTML tab in Firebug, but can't find it in the code. The application is fairly big and I can't simply look through all of the code to find the place, beside...