I have a very simple WCF service I would like to pass it an array or json?
[OperationContract, WebGet(ResponseFormat = WebMessageFormat.Json)]
public string GetPreDisplay(string inputData)
{
//DoSomething with inputData
return "Sweet!";
}
My javascript...
var data = [paymentControls['claimNum'], paymentCo...
I want to throw some things in my JS code and I want them to be instanceof Error, but I also want to have them be something else.
In Python, typically, one would subclass Exception.
What's the appropriate thing to do in JS?
...
I am working on a php program that requires javascript on every form control. Once the onblur event takes place the value will automatically be sent to the server to update the database.
I have possibly 50 form controls spread over 5 tabs so I don't want to hardcode the information on the php file.
I could co-opt an idea from HTML5 and...
I have a very weird problem in Firefox ( version 3.5.2), and I am using Firebug ( version 1.4.2). Google Chrome doesn't have this problem.
A custom script ( bpoCases.js) I wrote, which is put inside the same directory as other javascript files such as jquery.js, is not loading, whereas jquery.js is loading. And when I check the HTML, i...
I have a bit of a problem. I am trying to do the following using Javascript & the Google Maps API v2:
I can draw individual circles just fine using formulas found all over the Internet. The problem I am facing is that the circles must:
A. Be concentric, and
B. Must have different radius for each "quadrant", i.e., NE, NW, SE & SW
I'...
I have two buttons with the same ID:
<button type="submit" onclick="//do something" id="theID">button 1</button>
<button type="submit" onclick="//do something" id="theID">button 2</button>
I would like to click both the buttons using prototype. So far I've tried the following but it doesn't work.
$('theID').each(function(item) {
...
I am trying to do what "float" do, but not selectable for copy. This is an example of how this is used:
<p>
Lorem ipsum dolor sit amet, In a mollis est. Cras vel tortor in purus mattis
venenatis.
<span style="width: 5em; border: 1px solid black; float: right"> What does "venenatis" means? this is a margin notes! </span>
Vivamus aliquam...
I have an IFrame on my page pointing to a page containing list of <li /> elements. The <li /> elements are Draggables created using Scriptaculous library.
The question is how do I drag the elements OUT of the IFrame, and drop them on the page containing the IFrame?
Is there any library available which supports cross frame dragging & dr...
Hello
I am writing a javascript in asp.net server side (with in a button click event), this script is called if the user id and password matches and it supposed to close current window and open welcome page, but it is not happening. Below is my code, can anyone help me figure out what is the problem?
protected void okbtn_Click(object s...
I have an asp page in which the are number of listboxes.I want to count the number of listboxes using Javascript and also there is another requirement,i want to disable all the listboxes in that form
...
I want to fill a text field of a HTTP form through java and then want to click on the submit button through java so as to get the page source of the document returned after submitting the form.
I can do this by sending HTTP request directly but I don't to this in this way.
Very Urgent. You can also paste the code or demo code to explain...
I have a usual login form consisting of two input fields, one for login, one for password. I am currently trying to add a control that will show entered password as plain text, so user can check it for typos.
The problem is that browsers (at least Firefox) do not allow dynamic changing of type attribute of input fields, so I cannot just...
how to disable all listbox in a form
...
function abc()
{
document.form1.1.disabled=true;
}
I have a select box whose id is 1 in html page.I am using javascript as above but it is not disabling the select box
...
Ok say you have this:
<input id="test" value="" />
Value of that input is dynamicly generated.
Now a user can double click on that input to select value, ctrl+c to copy.
I also found that with javascript you can select value of input with "click".
But when it comes to creating a button that when clicked will copy value of that inpu...
I was wondering if there was some type of library (preferably for .NET) that allows a web page downloaded (for instance, using HttpWebResponse) that can evaluate javascript variables and evaluate and parse javascript procedures.
...
i am using simpletest as my php unit test framework.
i put all my test cases into a single all_tests.php file
however, because of the tendency of our developers to use firefox to run the all_tests.php, we tend to miss out on fail cases that are browser specific, especially ie7.
is there a way that when somebody browse our all_tests.ph...
I'd like to put a calendar on a webpage showing which days a house is availiable to rent. I know that the jquery datepicker has this functionality. However, I can't get it to display correctly
I've tried the jquery date picker, but it seems that I'm missing a stylesheet, as all the headings collapse together. Anyone know where I can fin...
how can i do this using javascript?
my textbox has a default value which is italic but when it is clicked the textbox will be cleared and the fontstyle should be normal.
...
what event fies when google maps repaint itself? for example when you zoom in or out?
I have an info window open and when it repaints I lose it. I'm using JQuery to load the map on Document.Ready()
...