I've got a website that has a form that the user can type in. I want it to be the replacement for a 3rd party website (Autotask) form with the same fields. Normally I'd just have the action in my form go to where the 3rd party's form points and then have all the same id/name values for my own fields, but there are several problems with t...
I have n <div>s, each with <h1> title and <ul> list of items in.
I would like to float these over a canvas and draw lines from <div id="x"> list item y to <div id="z">. I am using jQuery UI to make the <div>s draggable.
The canvas element is part way down the page (a paragraph of text and some form elements precede it) but I can change...
I'm generating an unordered list through javascript (using jQuery). Each listitem must receive its own event listener for the 'click'-event. However, I'm having trouble getting the right callback attached to the right item. A (stripped) code sample might clear things up a bit:
for(class_id in classes) {
callback = function() { this....
I have always used the mouseover event, but while reading the jquery documentation I found mouseenter. They seem to function exactly the same. Is there a difference between the two, and if so when should I use them? (Also applies for mouseout vs mouseleave)
...
I have a <select> list which has been populated with several options, but want to remove those options to start again.
I am using Jquery, and have tried:
$("#selectId").length = 0;
but this seems to have no effect.
Part of my problem is that I am using firebug to debug, but the code does not break at the breakpoint, so I cannot s...
I am refactoring a legacy web app. This app has a is using the onload event inside the body tag (On the Master page) to run this javascript script. Note this script tag is after the form element in the doc. I know the syntax looks hideous (or Visual Studio at least tells it is by the squiggles), but I'll be darned, the thing DOES indeed ...
Hi all,
Our project seeks to render calendars similar to outlook's web view (i.e. where you can view a calendar in 'day', 'week', or 'month' view). To clarify: we do not need 'date picker' functionality (i.e. used by the out-of-the-box jquery UI calendar plugin).
At this point I've found jquery plugins to render a calendar in "month vi...
I am using my php to call a js function like this:
<?php
$chk=1;
if($chk==1)
{
echo '<script>testing();</script>';
}
?>
and my js looks like:
function testing()
{
document.getElementById("mainbody").innerHTML="This is my first JavaScript!";
}
The js is an external js file.
My html looks like:
<html>
<head>
<script src="qo...
Here's the JavaScript (on an aspx page):
function WriteDocument(clientRef, system, branch, category, pdfXML)
{
AppletReturnValue = document.DocApplet.WriteDocument(clientRef, apmBROOMS, branch, category, pdfXML);
if (AppletReturnValue.length > 0) {
document.getElementById('pdfData').value = "";
CallServer...
I have a list of check boxes. For the check boxes that are selected, I change it's name before submitting. In FF the function works. In IE I get:
A script on this page is causing Internet Explorer to run slowly. If it
continues to run, your computer may
become unresponsive.
Do you want to abort the script? YES/NO
Not sur...
I have an odd situation in which I need to modify the position of a draggable element as soon as the user starts dragging it. So, during the draggable element's start event handler, I'm trying to set the position. It doesn't respond to the position change unless - and this is weird - I do something to cause a javascript error after I cha...
I've altered the P2 WordPress theme file to add a few custom fields to the entry form. Unfortunately, I cannot post on Firefox or Internet Explorer. Safari and Chrome work fine, though.
The exact error message is "Are you sure you want to navigate away from this page? Your comments or posts will be lost if you continue. Press OK to cont...
is there a way to find all script files added to a page in asp.net code behind? i am trying to add script dynamically but would like to check first if it already exist on the page.
...
I have a html text. I had encoded it in php using urlencode function.
I want to decode that text in the javascript.
when i use unescape function in javascript it replaces all the special characters back but sapce is replaced by '+'. how can i do it correctly so that space is replaced as space itself???
...
Does anyone know a cross-browser, reliable solution for catching presses of the tab-key in a textarea field, and replacing (in the correct position) 4 spaces? The textarea is being used to input an essay, and needs this feature.
Note: I tried using FCKEditor, among others, which did not catch tabs and had a bunch of features I didn't n...
Still stuck on my PHP calling a JS script problem
On the click of a button this Javascript is called:
var xmlhttp;
function register()
{
xmlhttp=GetXmlHttpObject();
alert("pass");
if(xmlhttp==null)
{
alert("Your browser does not support AJAX!");
return;
}
var url="register.php";
url=url+"?id="+uniqueid+"&name="+name+"&pa...
I think my title was informative enough. :)
I close the child window like this:
self.close();
Just before this, I want the parent window to know that the child has closed. I am making use of this:
window.opener.startLoad();
The above will run a function that is on the parent window that I need it to run upon the child window closi...
Hi,
I have a WMP player object and I'm trying to add an event listener to intercept ScriptCommands that are sent to the player. Instead of being attached to the WMP object, my callback is being called right away, and then the ScriptCommands aren't being intercepted.
function init() {
var WMPlayer = document.getElementById("WMPlay...
I've written two Array methods that I think will be pretty useful for the work I'm doing. Modeled after Ruby's array methods, here are my find and find_all methods. Just thought I'd toss them to the community and get some feedback. I'm pretty new to JS programming so I'm probably not using enough defensive mechanisms and maybe there a...
I have a cascading DropDownList in an application. The contents of the cascading drop down list is small enough that there isn't a need to use AJAX/JSON to go to a database to get the content, I am just doing it in client side javascript like this (this is a subset of the data):
var val = typeList.value;
var applyTimeList = document...