ajax

Will the Sharp Architecture ModelBinder properly constitute an object using a jQuery ajax request?

Do you know if it's possible to make an AJAX request and have the model binder properly constitute an object based on the parameter provided? For example: $.ajax({ type: 'POST', url: '../Create', data: ( { 'SkillTypeRequest.Id': 0, 'SkillTypeRequest.Event.Id': eventId, 'SkillTyp...

Jquery.tabs changes browser history (effect not wanted)

Hello, i'm working with the jquery ui plug in "tabs" for a client, and everything works ok, but i'm getting an undesirable effect regarding my browser history. see, every time a user clicks on one tab, a new browser history is created, which means that if the user clicks on back, he sees himself in the very same page. I'm not trying to...

Apache 2.2 CGI perl timeouts, still times out even with periodic prints.

I have a cgi code that is being called by AJAX from clientside javascript. However, the result of the call is discarded by the client. On the backend this code occurs: $|=1; my $i = 0; while (<$fh_echo>) { #To prevent apache timing out the cgi script. print "." if $i % 100 == 0; #Do stuff $i++; } Despite the period...

How would I go about creating a form with live updates in iWeb?

I'm using iWeb to create a webpage. I'm trying to create a feature where the user can type something in a field, like a comment, and it would display without refreshing the page. Below the area where the comment is typed up by the user, the comment as well as other comments would display. I believe I'd store each comment in a text file f...

How to use jQuery to call a servlet with multiple non distinct URL params?

I have a servlet that needs a call like http://localhost:8080?a=1&amp;a=3&amp;a=2&amp;b=5. The thing is it has multiple params with the same name like 'a' here. How can I generate such a servlet query. I used this for distinct param names. $.ajax({ url: 'http://localhost:8080', data: {a: 1, b: 2, c: 3}, success: function(response...

404 error ajax, code works with straight php / html

Hi, so my code works fine by itself, but I'm trying to add some ajax into it. I'm using CI, to do some of the lifting. I don't understand why it's giving a 404 if the code works fine without ajax. Here is the form: <div class="divider" id="contact"> <p class = "header"><a id="contactheader" name="gocontact">Contact</a></p> <...

Difference Between MS Ajax with JS and Ajax

Hey my Question is What is The Difference Between MS Ajax n Simple Ajax library. is Ms Ajax contain the JavaScript in it and what are the feature enhance with the addition of JS in it. Share link about the Differences. ...

model popup in asp.net

hi, i am using UpdatePanel and ContentTemplate and asp panel which is visible false on page load and is visible is true when the condition is satisfied. my problem is,when i am using UpdatePanel, on coding side the panel is getting visible=true but it is not getting displayed. when i am removing UpdatePanel,the panel is getting visible=...

Increase iframe height according to the iframe content. most content is loaded via ajax inside the iframe?

Major problem : increasing height after ajax content is loaded. ...

Autocomplete using Ajax

Hi, I want to provide an autocomplete option for a text in my web applciation . I have the master data in the SQL server database table. I beowsed in google and found how to use autocomplte. all the examples use web service to do this. I cannot create a web service to impltement this. Is it possible to implement autocomplete by looking ...

Jquery, reading JSON variables received from PHP

Sorry if this is basic, but I have been dealing with figuring this out all day and have gotten to where I can do everything I need with Jquery and cakephp (not sure if cakephp matters in this or if its same as any PHP), I want to return a variable from a cakephp function to jquery, I had read about how to do it, like here: the cakephp: ...

How to place scale next to Slider

I am using asp.net Slider Control. i was able to pass values dynamically to it. but how to place a scale of 0 to 100 next to it. ...

jQuery - .load page via AJAX, callback definition on loaded page?

Hi, I'm using $('#container').load method to handle loading all the subpages of my site. Now the deal is, some sub-pages require extra behavior (like form validation etc.) I'd love them to be self-contained, so - each sub-page has own JS code that handles all the subpage-specific tasks. This however requires some of them to handle "load...

Return both JSON and HTML in AJAX call

Hi all, I have a few pages with an heavy javascript usage (e.g. sorting and filtering of a dataset). The typical usage is to display a list of complex items (usually rendered as <li> with some HTML inside): the user can delete, edit or add items with specific forms. Since the items are complex, I keep an array of javascript objects to ...

how can I retrieve private notes from snaptic with ajax and javascript?

Hi Snaptic provides a RESTfull api. For private data I need authentication and authorisation credentials (I have a login). Also i need a basic auth. How do I this with ajax and javascript? ...

Passing a URL around Jquery & Ajax as a variable

I have a bunch of links that I want to load dynamically within the page. Instead of writing out a massive statement for every link I want to grab the URL from the attribute and pass it where I need it. The code below works if I put an address instead of the variable name linkURL so I know the code works. Firebug shows it looks for the r...

Same origin policy violated?

Heh, I'm using jQuery AJAX Call to pull data from a self hosted webservice (same domain), but it always return 0, which indicates a cross domain problem. But this shouldn't be a problem. Any suggestions how to fix this? Thanks! Website running my Script http://www.mysite.com/facebook/el_login My AJAX Call: var data = 'username='...

Buttons and ConfirmButtonExtender added dynamically

I'm adding alot of buttons at runtime to my form. When i push these buttons i want a confirm window to pop up and ask if i'm sure to delete this item. How would i go by doing this. Every button is added dynamically so i expect that the confirmbuttonextender should also be added that way. Do i have to add a extender for each button or sh...

data driven CRUD grids with edit pop-ups per row

i have a asp.net/ C# project management application that has about 8 tab sections (risks, tasks, milestones...) each of my tabs/ sections is associated to a project that i allow users to select using a drop down. once a project is selected the tabs all show data relating to the selected project. they are all one to many relations so the...

How to handle asynchronous Java calls from an AJAX call

I want to make an AJAX call to my Java webapp. The Java webapp will in turn make an asynchronous return call elsewhere. The result of that call will then be returned as the result of AJAX request. The crux of my question is what would I do with the HttpRequest whilst I'm waiting for the second call to return? Do I just block and wait ...