Hi,
I would like to call a webservice from javascript.
I tried:
var locator = new Service1Locator();
var wsdlURL = new URL(address);
var proxy = locator.getBasicHttpBinding_IService1(wsdlURL);
var result = proxy.execute("John Doe");
taken from : http://stackoverflow.com/questions/2147983/mirth-connect-javascript-to-call-a-webservice...
I have a search page that loads results. Each row has a 'Delete' button next to it which I want to fire a particular Javascript function on my page using some parameters specific to that row.
Is it best to put the function call directly into the HTML being generated, e.g. onclick="deleteFunc(<params from results array>);" or should I i...
I have a typical setup for cross domain.
site1.company.com
site2.company.com
Main application is running off of site1.company.com. Trying to get communication working between the a parent frame from site1 and child frame from site2
Both site 1 and site 2 are setting document.domain='company.com';
The communication works fine both ...
I use the following jQuery (1.4) code to test whether cookies are accepted:
$.get("http://localhost:8080/cookietester/cookietester", function(data) {
if (data == "false")
document.write("Activate cookies!");
else if(data == "true")
document.write("ok");
});
But the browser signals that it doesn't stop page load...
Following thing: Within my Adobe AIR Application (I use the HTML/JS/jQuery variant, not the flash/flex variant) I want to contact my Web Server where a PHP-File is stored that handles database interaction. So I want my AIR-App to request data from the php file (the db) and show it. But when I make a request with .ajax() the AIR Runtime s...
trying to make a sidebar gadget that has an ldap query function, but haven't been able to find very good, or any, useful documentation on the matter. im not hugely experienced with javascript, and know little to nothing about how ldap queries function, so any information at all would be useful.
info:
host: a.b.c.d.e
port: 389
ou: peop...
Does it open any attack vector if an ajax-driven site uses a unique token stored as a javascript variable and verifies it with every request to prevent CSRF -- provided that the site is free from XSS holes?
...
I have a flash file which captures an image from a webcam and sends it to the server. This file works fine under ActionScript 2.0 but under 3.0 I get an Unspecified Error and the debugger crashes on the return eval in :
function __flash__addCallback(instance, name) {
instance[name] = function () {
return eval(instance.CallFuncti...
I understand that if I have multiple markers on a map, and I need to handle clicks on them, I have to set up a handler for each marker like so:
// ...
var marker = new google.maps.Marker({position: new google.maps.LatLng(55, 37)});
marker.setMap(map);
var listener = google.maps.event.addListener(marker, 'click', function(event){
// ...
Here's where I am:
I started with an array...cleaned it up using 'regex'.
Now I have this...each item has three values
mystring = 4|black|cat, 7|red|dog, 12|blue|fish
Here's where I want to be:
I want to end up with three arrays.
array1=("4","7","12")
array2=("black","red","blue")
array3=("cat","dog","fish")
I also want to do thi...
Hey,
I have an error when playing with a table saying:
"text is not allowed between starting and closing tags of an element table"
Table is like this....
<table id="Content2" class="createAccountTable" cellpadding="0" cellspacing="0" style="width: 240px;">
<tr>
<td colspan="2" align="left" valign="top" class="topicStyl...
I'm using Eclipse to edit JavaScript files and I guess I'm "doing it wrong". Given the following code, where
» represents a tab,
· represents a space, and
| represents the cursor:
function·foo()·{
» var·baz·=·[|
}
If I hit enter at this point, I get
function·foo()·{
» var·baz·=·[
» ···········|
}
Yuck. I would much rather g...
We're getting ready to deploy a mobile version of our website and we'd like to track the iPhone orientation within google analytics. I'm guessing we should do this as a custom variable because I don't see any pre-defined way to track this under the mobile tab for analytics reports. I'm not sure how to detect the current orientation of th...
Why is id selector faster than class selector in jQuery?
...
As title says, is there a way to send form when element outside of form is clicked? Plus, is it available without using form associated (button/input etc.) elements?
As example, can form be submitted when div is clicked?
...
I have the following JavaScript that creates a div and then appends it to the body and then inserts some dynamically generated HTML into it. cartDiv = document.createElement('div'); This div I would like to add an id and/or a class to it. If possible both Jquery and JavaScript answers would be great.
var cartHTML = '<div class="soft_add...
as a follow up to this question, while the checkbox value is stored on pageload, the text is displayed on pageload, even if the checkbox is unchecked. the text should hide/display only if the user has unchecked/checked the checkbox, throughout the session or till he closes the browser.
js code which stores the checkbox state:
functio...
Basically i have 6 labels acting as buttons. When they are clicked on, they change from white to blue. As you click on another label, the previously blue label turns to white again and the currently click label turns to blue.
At the moment the code below sets them all to white but then doesnt appear to colour the newly clicked label to ...
I am using this code from http://www.joe-stevens.com/2010/01/04/using-jquery-to-make-ajax-calls-to-an-asmx-web-service-using-asp-net/
function callWebService(address) {
var result;
$("#result").addClass("loading");
$.ajax({
type: "POST",
url: address,
data: "{}",contentType: "application/json; charset=u...
Hi all,
I will probably use javascript to develop an online board/card game.
My approach will be to have a client that will be able to work in standalone mode, so it must enforce rules. That means for example, if a player can't play a card, he or she shouldn't even be able to play it. This is to enhance the user experience.
The idea he...