I'm trying to call an wcf self hosted method from jquery but, i'm aways getting the message: "method not allowed". I found some answers to this issue on this forum but nothing worked to me....
ps. It works fine when I add the reference on a console app and consume it.
it's an windows forms self-hosted app
form load:
ServiceHost host =...
I have an ASP.NET MVC 2 project that renders conventional strongly typed pages, but on some of these pages I also want to use the page's object to render a specific area (div) in the navigation section of the Master Page.
For example, if I have a Client object and associated strongly typed View, I want the View to be able to insert clie...
Ok. I need to do something like this:
1) Make a GET ajax request and remember the HTML response in a variable.
2) Inside this first ajax request (in the callback function) I need to make a second POST ajax request and append the HTML response to the remembered HTML response from the first request.
3) Replace a div with the HTML from the...
Hi Folks,
I'll start with an example snippet:
self.addwidget({
box: ns.box({
text: 'Foobar',
fromTop: ~~(Math.random()*window.innerHeight),
fromLeft: ~~(Math.random()*window.innerWidth),
toTop: 240,
toLeft: ...
Hi,
I have implemented this filter in a table
http://www.coldfusionjedi.com/index.cfm/2007/8/3/Simple-FIlter-as-you-type-ColdFusion-8-Demo
There is also a button in the outputted table that calls a jquery ajax function on click, it just toggles the visibility of the news item. This worked fine until I abstracted the code from the main...
Issue:
Attach a click event on a link on a page (say link to http://google.com/)
Try doing an AJAX or getJSON (JQuery specific call) from the function bound to that click event
The AJAX or getJSON call is never completed (even if we add an explicit half-second pause)
Sample HTML page: http://paraschopra.com/temp/bah.html
Sample Serv...
The following HTML is output from a CMS. (Yes, it is from the last century)
There could be an image or no image outside of #product_cont. The following code has an image.
And if there is, there will be only one image outside #product_cont.
Now I'd like to select the image outside of #product_cont if it exist.
...
...
<div id="syste...
Each element in $(some_selector) has attribute my_attr (which is a number).
I would like insert all these attributes to array.
What would be the easiest way to do this using jQuery ?
...
Hi,
I want to implement .draggable class to all elements in my document, with an existing id using jQuery 1.4.2
<div id="blabla">asdsda</div> -> OK
<div>dsds</div> -> NOT OK
Is this possible ?
i tried : $("*[id!=null]") but i does not work :s
...
I've added a jQuery plugin to our websites that currently works as desired, however it breaks when there's two elements on the page that needs to be paged. I've asked the developer of the plugin about this, and he confirms it's been designed with only one element on the page.
So, I've went out to look for another pager plugin, but all o...
http://dev.mindboiler.lv/ (you'll be taken to intro page, just click on logo to get into real site)
This is website I'm currently working on. You can change the language to English to understand it a little better, but anyways, it's full of dummy text.
There are these Read more links which, when clicked, execute the following jQuery:
$...
Not sure the best way to phrase the question, but suppose you are using jQuery to setup various things like so:
<script>
function doSecond(){
alert("Hi");
}
function dofirst(){
var x = asdasd;
}
$(dofirst);
$(doSecond);
</script>
So, imagine that dofirst and dosecond are completely indepe...
Hello,
I have one form on the page for addition and it is related with 2 tables in the database.
Eg. Say i have a table named event and one table named eventphotos. The uploadify plugin of jquery for eventphotos works just fine, however, event is the master table and eventphotos is the child table. Thus when i upload the photo due to a...
i have this in my content page: but i am getting null value if i try $("#ctl00_cphMaster_CloseButton").
$(document).ready(function() {
$("#ctl00_cphMaster_CloseButton").click(function() {
jConfirm('Can you confirm this?', 'Confirmation Dialog', function(r) {
if (r == true)
__doPostBa...
Anybody know? I'd really like to pull it out & use jquery, but if the core Varien js is using it...
thx in advance
...
I have an array of numbers, like: [1, 4, 7, 1, 2, 1, 3, 1, 4].
I would like to remove duplicate elements and sort the result, i.e. the required result is: [1, 2, 3, 4, 7].
Is there any built in Javascript/jQuery functions to do this, or I must write my own ?
...
Hello,
I am using uploadify plugin of jquery and have set multiple files upload to true. How do i retrieve these files on the server side?
We need to specify file input name in files array $_FILES['fileInputName']. But i have only 1 file input present on the form which is submitting multiple files. How do i retrieve them all?
Thanks i...
I have a single huge minified JavaScript file (ditto for CSS). I am looking for some optimization in terms of speed of download and caching. I want to set the expiry headers for both these files such that with only 2 HTTP calls I get them (and until I change their version number in the URL) want them to be cached. My question is -
Whe...
What's the difference between $(this) and this in jQuery, and why do they sometimes give the same result and other times behave differently?
...
Hi I hava a big problem. I have to get some JSON form localhost:8080.
The server side is a restful based jax-rs server.
@Path( "/m" )
public class M {
@GET
@Path( "{id: [a-z]{1,4}-\\d{1,4}}" )
@Produces( "application/json" )
public Response getCar ( @PathParam( "id" ) final String id ) {
final ResponseBuilder builder;
b...