I'm very much not a javascript/html/css person.
Even so I find myself in the position of having to do a webpage. It's static the only thing you can do on it is click on flags to change dispay-language based on a cookie.
If the cookie says "this" I write text in one language, and if the cookie says "that" I write in another language. Th...
Let's say I have the main page loaded from http://www.example.com/index.html. On that page there is js code that makes an ajax request to http://n1.example.com//echo?message=hello. When the response is received a div on the main page is updated with the response body.
Will that work on all popular browsers?
Edit:
The obvious solution ...
I have a link that has a listener attached to it (I'm using YUI):
YAHOO.util.Event.on(Element, 'click', function(){ /* some functionality */});
I would like to the same functionality to happen in another scenario that doesn't involve a user-click. Ideally I could just simulate "clicking" on the Element and have the functionality autom...
Is there a way - using jQuery or otherwise - to monitor the DOM for insertions, deletions, updates to styles, etc?
...
One of the projects which I am working uses CSS "attribute" selector [att]
CSS Selectors
which is not supported by ie6:
Support for CSS selectors in IE6 (look for text "Attribute Selectors")
Is there any workaround/hack which is of course valid html/css to overcome this problem?
...
I have a variable string that contains well-formed and valid XML. I need to use Javascript to parse this feed.
How can I accomplish this using (browser-compatible) Javascript?
...
Code:
var a={
value:5,
test:function()
{
this.value=4;
}
}
var b=someFunction(
{
value:5,
test:function()
{
this.value=4;
}
});
As you see they are look the same, diffrence is only that in first case we define object, in second, we pass this object into function.
The problem is that ...
Is there a way to perform a jQuery animation before a user navigates away from a page by clicking on a link, or clicking the back/forward buttons.
It seems like doing the animation in response to an unload event would be sure to cover all the conditions under which a user may leave a page.
However, the new page is loaded before the a...
Adding a script to a view generally involves something like this:
<script src="../../Scripts/jquery-1.3.1.min.js" type="text/javascript"></script>
Unfortunately, this doesn't work if the app is deployed in a virtual directory under IIS 6. The alternatives discussed here involve using Url.Content with "~" to resolve the path dynamicall...
Is there any sort of interactive debugger for JavaScript? I'm imagining something like a web page on the left, and a REPL interface on the right.
Or maybe even without having a web page, so I can just play around with the JavaScript language. For example, see this for Ruby: http://tryruby.hobix.com/.
Something that doesn't require I re...
I have simple code like this... as follow...
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="AlinmaWebApp._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head run...
I've been reading Diaz's book Pro JavaScript Design Patterns. Great book. I myself am not a pro by any means. My question: can I have a static function that has access to private instance variables? My program has a bunch of devices, and an output of one can be connected to the input of another. This information is stored in the inputs a...
Hi to all, this is a related Firefox problem.
I have a menu in which is applied typeface script.
Typeface 0.11 version doesn't support hover on links. There is an experimental version but doesn't work very well for me, so i tried to implement hover by myself.
Problem is: hover works pretty well changing canvas context property fillCol...
I have a treeView with ShowAllCheckBox property to true, I need to bind a javascript function to each checkbox on their click event.
How to do this can any one suggest ?
...
How do I split a string with multiple separators in JavaScript? I'm trying to split on both commas and spaces but, AFAIK, js's split function only supports one separator.
...
I am using a simple TABLE to display tabular data where the rows need to line up but when it comes to selecting the table contents, I only want users to be able to select within each column. Default browser behaviour is to select as rows across all columns but we NEED somehow allow selection only within columns.
I was hoping there was a...
I have a javascript call to a C# WebMethod. The same page has another call and it is working. I debugged the javascript code, this is called:
function userUpdReq_onOk()
{
...
var clientValidationPassed =Page_ClientValidate();
if( clientValidationPassed )
{
PageMethods.RequestUserUpdate(username, email, sex, zipCode, state, city, neighb...
I am not sure what I am missing here. this is the code I have placed:
<script type="text/javascript">
$(function(){
$(".category_list").hide(); return false;
$("#sol-surface").click( function() {
$(this).next().toggle();
return false;
});
$("#nat-stone").click( function() {
...
I have seen a few sites that have a thumbnail and when you click it, it enlarges the image in a modal like popup. Can anyone tell me how this is done?
Thanks!
...
The following HTML form successfully utilizes jQuery's form validation, displaying "This field is required" to the right of the form field if left blank, and "Please enter at least 2 characters" if fewer than 2 characters were entered. However, instead of the validation metadata being specified using the class and minlength attributes o...