So we're having this problem. A user goes to upload a file, and if it's above 10MB, it just kind of times out the page, and clears, and no good error is thrown to describe what happened. Ideally, we would like to examine the file size when the user chooses the file they want to upload but I don't know if this is even possible. Our framew...
There are a number of questions here that ask this but the answers invariably just tell the person they really want an Asynchronous request rather than actually answering the question of how to do a Synchronous request with YUI. I know how to do one with jQuery and when directly manipulating the XMLHttpRequest object but how do you do it...
i have a form with checkboxes like this:
<input type="checkbox" name="type[]" value="1" />Fast Food<br>
<input type="checkbox" name="type[]" value="2" />Table Service<br>
<input type="checkbox" name="type[]" value="3" />Cafeteria<br>
when i use the brackets in the name (type[]), my php works:
$type=$_POST['type'];
...
I have been trying for some time to get the AlphaImageLoader to work with my s in IE6.
One of the solutions I was trying suggests applying the AlphaImageLoader and then the Opacity(0). This would essentially put the transparent png in the background and make the orginal png disappear. When I try this the image just disappears. Omitting ...
I would like to grey out (disable) the previous row(s), every time I add a new one. Right now I could only disable the first one. Many thanks in advance. Following is what I could do so far:
<head>
<SCRIPTTYPE="text/javascript">
varcount="1";
functionaddRow(in_tbl_name){
vartbody=document.getElementById(in_tbl_name).getElementsByTagName...
I'm working on project that needs to integrate some new HTML work that includes the jQuery overlay plugin. Because of the way it was designed this new page needs to be hosted in an IFrame. The overlay then needs to be created in the parent frame not the innerframe. Has anyone hacked around on this library before know a good fix? I don't ...
Can anyone help me. I don't use Client-side Javascript often with HTML.
I would like to grab the current url (but only a specific directory) and place the results between a link.
So if the url is /fare/pass/index.html
I want the HTML to be <a href="#" id="whatever">pass</a>
...
We're having a problem getting Word documents to download in IE7/IE8 using window.open calls. This problem is currently only happening in our production environment with SSL enabled - our test environment is working correctly but does NOT have SSL enabled. Both environments are running IIS6 and use integrated authentication.
The javas...
Hello,
I've a jQuery object and I shall retrieve the next sibling node, which may be a text node.
For example:
<div id="test">some text<br/>other text</div>
var test = $("#test");
var br = $("br", test);
alert(br.next().length); // No next ELEMENTS
alert(br.get(0).nextSibling.nodeValue); // "other text"
alert(br.get(0).nextSibling.next...
I'm trying to use JS to dynamically replace an image on a page based upon the value of the selected option of a select dropdown. Everything in the code I've included below works perfectly. My "selected_text" variable is properly pulling the value of the selected option in my select dropdown, but I need to somehow write that value to the ...
how can i prevent a html page from scrolling when arrow keys are pressed if a iframe inside it is focused?
im gettting this error in chrome
The iframe is focused, i know its focused. the parent scrolls anyway.
...
I'm working on a web site with a content management system that does a bad job of displaying any text with non-ASCII characters. For example, right single-quotes show up as on the following web page (this is just an example, not from the CMS-driven web site):
http://www.gregboettcher.com/cmsunicode.html
I can't control the inner workin...
I want to have a select element have a submenus in a tree fashion.
I want it to be something like this:
Is there a jQuery plugin that can turn a select element into this kind of thing?
...
How can I remove all my site's cookies from the client, either in ASP.NET/C# or JavaScript? Basically I would like to click a button or link on the page and have it clear all the cookies for the site. I don't need to know the name of every cookie, do I?
...
There are lots of real time web stats services on the web (w3counter-histats-gostats).They just count once when page is requested , But what I want to do is track javascript functions/events, because my website is fully-ajax.So I want something like google analytic's event tracker (http://code.google.com/intl/en/apis/analytics/docs/gaJS/...
The page section is:
<div id="cartslide">
<div id="swrapper">
content goes here
</div>
</div>
jquery animate section:
$(document).ready(function () {
$('#animate-both').click(function () {
$('#cartslide').animate({
opacity: 'toggle',
height: 'toggle'
});
});
});
So far, this works perfectly. ...
1) In the following code, what is the reasoning behind making gameOfLive a variable and not just function gameOfLife()?
2) What is gol? It seems like an array, but I am unfamiliar with the syntax or what its called.
I am studying http://sixfoottallrabbit.co.uk/gameoflife/
if (!window.gameOfLife) var gameOfLife = function() {
var ...
In the process of converting a .NET rich application to Javascript. One of the GUI features folks liked a lot was to rearrange their application layout. In .NET this was accomplished via Sandock:
http://www.divelements.com/net/controls/sanddock/screenshots.aspx
Anything like this for Javascript?
...
Is it possible to create a property on a javascript object that behaves similar to a property in C#.
Example:
I've created an auto-sizing textarea widget using dojo. In order to get the "value" property out of my widget, I've hooked up to the onchange event and I'm setting a variable everytime the value of the textarea changes.
Is the...
I am trying to use jMonthCalendar to add some events from an XML feed into a calendar. In the original jMonthCalendar, the events are in an array that looks like this:
var events = [
{ "EventID": 1, "StartDateTime": new Date(2009, 5, 12), "Title": "10:00 pm - EventTitle1", "URL": "#", "Description": "This is a sample event description...