Can somebody tell me what I am doing wrong?
window.onload = initForm;
function initForm() {
var allTags = document.getElementsByTagName("*");
for(i=0; i<allTags.length; i++) {
if (allTags[i].className.indexOf("textbox") > -1) {
allTags[i].onFocus = fieldSelect;
allTags[i].onBlur = fieldDeSelect; ...
Hey.
I'm running AnythingSlider, and in each of my slides is an embedded YouTube video, using the standard YouTube embed functionality, with some other content.
What I'd like to be able to do is stop the AnythingSlider from automatically rotating through slides when a video is played.
I understand that the YouTube API offers onStateCh...
In Javascript, what does it mean when there is a logical operator in a variable declaration?
example:
var z = x || y;
Thanks!
...
Hello All-
I have a htm page that I need to update so that when it is opening it will open at fullscreen. What is the code that I need to place within this page to do so?
...
I'm using Node.js for some project work and I would like to monitor my Mongo database (collection) for changes, basically fire an event if something gets added.
Anyone know if this is possible? I'm using the node-mongodb-native drivers.
If it's not I'd also like any available pointers on pushing data from the server (run with node) to ...
I am using an HTML canvas and javascript and I need to clear all of the pixels underneath a shape created by closing a path (for example, I am using flot, and I want to make rounded corners, and to do this, I first need to remove the square corners by drawing a curve on top of the corner to remove the desired pixels).
Right now, I am do...
I'm repeatedly coming into troubles with Internet Explorer's "This script is taking too long to run, would you like to continue?" messages. I am wondering if anyone is aware of a clever way to trick the JS engine into keeping quiet? Based on some searching I did, I found that the engine monitors states it thinks potentially could be infi...
How to return a value from a shortcut If-Else conditional statements ?
It works just fine when I used the following Block of Code ,
var val =0;
function slide() {
if(val != 0 ) {
val++ ;
}else {
return ;
}
//rest of my code
}
The Problem is, I want to return values from shortcut IF-else conditions as follow's ...
When using the latest Release version (4.0.4.2) of Umbraco, the tinymce3 control fails to show/load in the backoffice of umbraco.
Instead a JavaScript error is shown:
--- ERROR CONTENT ---
Message: Invalid argument.
Line: 1
Char: 14609
Code: 0
URI: http://example.com/umbraco/plugins/tinymce3/tinymce3tinymceCompress.aspx?rnd=5c8e3f37-f...
I'm working as a front-end developer on an old jsp-based cms that is no longer supported by our vendor. At the beginning of a certain page template, the html document starts with:
<!%@ include file = "setCookie.jsp" %>
This will always be the first line of the file. The display is not an issue in Firefox, but IE tweaks out. I've tr...
I've got this app where I'm using an IHttpHandler to serve JSON data to my JavaScript method.
var theUrl = location.href;
var txtCity = '#<%= txtForSaleCity.ClientID %>';
var hidCity = '#<%= hiddenForSaleCityID.ClientID %>';
var theSource = '<%= Page.ResolveUrl("~/RegionsAutoComplete.axd")%>?PID=<%= hiddenBusinessProvince.value ...
Are there any events that I can listen to on an iframe on a different domain? For example, have this page on domain1:
<html>
<body>
<iframe src="domain2.com"></iframe>
</body>
</html>
What events can I listen to with regard to the contentWindow of the iframe?
Thanks!
...
Is there a website for pasting code HTML/JS, when you can edit HTML/JS and see changes live?
...
I am using jQuery plugin (http://plugins.jquery.com/project/lwRTE) and oddly enough in IE8 when I close the RichText Editor (which opens within a lightbox), I am unable to select any text on the document.
This is a peculiar case and happens when TextArea of RichText Editor already contains some text and I 'give' focus to the TextArea an...
How to do it:
There is field box is on form and the right link if click this link is open small box
And then choose some data and is pasted in the field box
edit ( from the comments )
the seem this:
<input id='message-1' type="text" name="message-1">
<a href="checker.php" target="_blank"
onclick="window.open(this.href,this.target...
Hey ^.^
I would like to have a function called in an onclick handler, within an IF statement... Confused?
I would be too, the code below should help... For some reason, I get "gotoIt is not defined" in FireBug.
I think people keep misunderstanding the question :P... the full code is below.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1....
Hi,
i have a method that returns a list of serialized objects in my page code behind
private string Get()
{
JavaScriptSerializer jsonSerialiser = new JavaScriptSerializer();
string jsonString = SerializeToJason(UnavailabilityBusiness.Get(new DateTime()));
return jsonString ;
}
i would like to pass this serialized obj...
This below code is what I have donr. I need the third input field "description" to spread into width, according to size of the screen, but I don't know how to get there:
echo("<table cellspacing=\"0\" cellpadding=\"4\" width=\"100%\">\n");
echo("<tr class=\"header\" ALIGN=LEFT>\n");
echo("<th>NUmber</th>\n");
echo("<th>Descrtiption</th>...
I have written this JavaScript that calculate words, but I am unable to convert this JavaScript code to PHP regular expression. Can anyone help me with following code?
return str.replace(/\&\w+;/ig,"")
.replace(/lt;/g, "<")
.replace(/gt;/g, ">")
.replace(/(<([^>]+)>)/ig,"")
.replace(/^[^A-Za-z0-9-\']+/gi,...
I'm trying to use contenteditable and styleWithCss.
It doesn't seem to work in webkit.
Anytime I use do an execCommand, it generates a <b> rather than the span I expected.
Here's a demo:
http://jsbin.com/izomo/2/edit
Select part of the text, click the bold button, and see the html output.
Is this a bug or am I doing something wrong....