Okay, I have this code:
<script language="javascript" type="text/javascript">
<!--
function requestPage(page) {
var request = false;
try {
request = new XMLHttpRequest();
} catch (e) {
try{
request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try{
re...
Hi,
I'm trying to integrate a js slideshow fade effect with php. It was working fine, but not anymore, I'm not sure what has changed. Now it shows an alert that says "No contents found". The connection to the database should be ok, there is content being displayed in other areas of the page.
Any ideas where I've gone wrong?
<script...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />
<title>title</title>
</head>
<body>
<script type="text/javascript">
<!--
va...
How can I pass a variable value from a template using JavaScript without using a form (GET OR POST)?
...
Does anyone know of real (i.. no vaporware) implementations of ECMAScript targeting the .NET CLR/DLR? Ideally something like what Rhino is for Java. A solid port of Rhino running on .NET Framework / Mono Framework would be perfect.
I've only seen a handful of projects mentioned but never seen any come to light or in reality anything tha...
I wanted to write a regex to count the number of spaces/tabs/newline in a chunk of text. So I naively wrote the following:-
numSpaces : function(text) { return text.match(/\s/).length; }
For some unknown reasons it always returns 1. What is the problem with the above statement? I have since solved the problem with the following:-
num...
How can I update this regular expression to find and replace not just "/news/" but "/blog/" as well?
urlLinks = $(this).attr("href").replace(/(\/news\/)/, "$1article/");
It's a simple one. Thanks!
...
How do I get a Java Class's variable which is dynamically modified from an applet.
The problem here is since the applet is loaded in separate class loaders the updated value is not available when the applet is loaded a second and subsequent times.
...
I've come across an interesting problem in the following line of code:
<img style="background-image:url(Resources/bar.png); width: 300px; height: 50px;"/>
In Safari (at least), a gray border surrounds the 300x50px area. Adding style="border: none;" doesn't remove it. Any ideas?
Thanks.
Mike
...
I have a website that I'm working on. I'm using jquery to animate and display content. This content is stored in vars. I need to know how to load the content before displaying it.
For clarification, you click a link, a "loading..." window fades in, and once it loads everything, it fades out and fades in the loaded content that is stored...
I'm using ASP.NET MVC Validation. I want to know in my javascript functions whether the validation has error.
Is there any builtin javascript property integrated with ASP.NET MVC Framework to get this information?
...
Given that EVAL is Evil how do I create an Array name dynamically:
I have a bunch of Arrays and I need to reference different ones depending on what the user clicks.
This bit of code gives me the array object:
(eval(calendarObject.id + '7'))
But eval is bad, so how to do I construct an Array name and then reference it?
Here's a bi...
Hi all
Any ideas how I would go about writing a javascript method to insert an attribute to a tag
eg. I have
<input id='in1' value='Submit' type='submit'/>
and I want to insert an attribute name
<input id='in1' name='submit_content' value='Submit' type='submit'/>
Thanks
...
Hi there,
I'm probably missing out on something fundamental here but it seems rather tricky and confusing to me so here goes...
to demonstrate the issue I have the following example .aspx page
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional...
We use the excellent validator plugin for jQuery here on Stack Overflow to do client-side validation of input before it is submitted to the server.
It generally works well, however, this one has us scratching our heads.
The following validator method is used on the ask/answer form for the user name field (note that you must be logged o...
Hi,
I can't find any information on this issue; why doesn't the following code work in IE?
window.x = 45;
delete window.x;
// or delete window['x'];
IE reports an "object doesn't support this action" error. Does it have anything to do with that iterating over window properties in IE issue?
Thanks and best regards
...
When writing a new jQuery plugin is there a straightforward way of checking that the current version of jQuery is above a certain number? Displaying a warning or logging an error otherwise.
It would be nice to do something like:
jQuery.version >= 1.2.6
in some form or another.
...
Hi,
I'm trying to refresh a page without sending POST from the previous time.
I've tried
window.open("postme.php?r=t","_self");
Which appends a ?r=t to the end but it doesn't appear to refresh the page as the page displays a number of file s in a directory which hasn't change even though I have moved or deleted them.
Can you specify...
So i'm trying out MVC after only playing with it some time ago.
Need to find the best way to selectively show and hide sections (divs, etc) on clicking or changing a value of a control, but not having to post back, i.e. javascript?
Any suggestions.
...
I'm trying to glue together two web services by passing a value from one to the other, unfortunately there's no API or clear way of hacking up the search query so I need to set the value of a input inside an iframe.
Here's the markup for the horrible iframe.
<form id="searchForm" method="post" action="/search/initialSearch">
...