Hi, i have been looking for a javascript code which is like the facebook "like" widget to put in my blogger site.
The examples of the buttons are like in the following website,
http://textsfromlastnight.com/
Where people are able to flag the "Good Nights" or "Bad Nights".
I have no experienced in writing scripts neither do i have an...
I am so used to the syntactic sugar of C# (and not as used to javascript as I want to) that I find this very verbose.
Is there any better way to do this?
var justColumnNames = new Array();
for( i= 0; i< columnsInfo.length; i++)
{
justColumnNames[i] = columnsInfo[i].Name;
}
(BTW I have the Extjs available in the page, and I can...
Can JavaScript see the target name of a window that was opened by a regular "href". Here is an example:
<a href="http://www.cnn.com" target="_blanknewWindow" name="NewWindowName">
...
I have two jQuery plugins that use the same function name (bind), can i somehow use those two plugins together?
...
Why am I getting too much recursion on a jQuery plugin this.each iteration?
(function($) {
$.fn.selectableList = function(options) {
return this.each(function() {
var $this = $(this);
$this.elem = $this.children('li').click(onClick);
});
function onClick() {
//do something
}
}
})(jQuery);
...
Possible Duplicates:
How to obtain anchor part of URL after # in php
Is it possible to access anchors in a querystring via PHP?
i need to find a way to do this, facebook does it so it has to be possible....
If a user goes to this URL in the browser
http://localhost/index.php?photos=p#12345
Then I can have my PHP load a pho...
I am new to Javascript and got confused by how the function declaration works. I made some test on that and got some interesting results:
say();
function say()
{
alert("say");
}
The forward-declaration worked and popup "say"
On the opposite
say();
say = function()
{
alert("say");
}
did not work, although it also declared...
I've been working on a (nearly finished) Javascript project for a little over 14 months now. The project started out as a hack I expected to finish overnight, but over time the Javascript part has grown up to be 68 separate files and 10,314 non-empty lines, sadly currently dependent on the C preprocessor for building.
It's hard to expla...
I am having one hell of a time trying to get this to work, no javascript errors what so ever. Its just going right to the action. Here is the javascript I am using
$(function(){
$("form[name=form1]").submit(function(){
return $("#dialog").dialog({
autoOpen:false,
bgiframe: true,
...
In quite a few answers to questions related to sending requests to servers, I see the use of Javascript/AJAX being advocated.
I'm still kind of a purist, in the sense that I try to develop sites that fully work without the use of Javascript/AJAX first and only add it to decorate the user experience.
I assume that quite a few people tha...
Hi, I need a way to attach some pre-processing to each assignment of the window.location. Is there a way to do this. I basically need to serialize some info, that will be used in the new location.
...
I need to learn web20 frontend. Javascript, jquery, dom, ajax, css.
A quick search reveals the best JS books which don't cover all of my goals. From reading the table of contents:
JavaScript-Good-Parts-Douglas-Crockford is the defacto JS intro book, but covers syntax only, no intermediate web
JavaScript-Definitive-Guide-David-Flanagan...
Ok on meebo.com there is instant messages that when you click at the top you can move around i wanna make something like that?
So how do I make Movable forms in JS?
...
Hello. I am making a colour-picker using pure JavaScript and HTML. It consists of three HTML selects (drop downs boxes) and one div the background-colour of which will be changed by JavaScript. I am also trying to do this as "correctly" as possible. This means no Javascript code in the HTML.
My code so far looks like this:
var red ...
Hello,
I have a form that is being generated on the fly in PHP using the below ($theFeatures is a multidimensional array):
<?php
foreach($theFeatures as $theKey => $theValues) {
?>
<input type="text" value="<?php echo $theValues['Key']; ?>" name="theFeatures[<?php echo $theKey; ?>]['Key']" size="6" />
<input type="text" value=...
I am interested in a really good way of doing instant messaging like meebo and facebook and myspace all have, also for notifications on a page. Example on my site now, when a user receives a new mail message, photo comment, profile comment, friend request, some other things, they will receive a notification message and link on the page ...
I know C# really well, just started playing with ASP.Net MVC a few weeks ago, and almost zero javascript. I saw some people here recomending jQuery, so I'll try that out.
What resources/tutorial should I start with?
...
I have a twitter share button and a facebook share button in my blog page. The twitter counter always shows, but the facebook one only shows when you post something, and then goes away when the page is refreshed and does not show up again until something is posted. I want it to show all the time as to adhere to design cohesiveness.
...
HTML:
<div id="coin1"></div>
JS:
$(document).ready(function(){
function changeImage(){
if($("#coin1").css("display") == "none"){
$("#coin1").fadeIn("slow");
}else{
$("#coin1").fadeOut("slow");
}
};
setInterval ( "changeImage()", 2000 );
});
I can't get this to work... If I just do changeImage(); it works fi...
Our project has more than 300 JSP files and more than 200 JavaScript files. I'd like to do some cleanup, removing unnecessary JS files. Even if the JSP includes the JS maybe none of the functions are used. The goal is to reduce both complexity and time needed to load the page. My IDE is Eclipse. Giving the dynamic nature of JavaScript I ...