ajax

update session variable by ajax

how we can update session variable by ajax in a php page. ...

cross domain iframe adjust height automatically

I searched over google as well as few answers from stackoverflow but none of teh solution worked for me. Is there any working solution available , Thanks you very much Rohit. ...

unable to set dynamic data in jquery fullcalendar through ajax

can somebody tell me how to populate "jquery fullcalendar" events using ajax. There is no setter method provided in fullcalendar to set ajax response (which is Json object) after calendar object loads. Is there any way to feed data after calendar object loads? In my case very first time I provide data in fullcalendar "event:" property ...

jquery ajax help

I working with some ajax at the moment, the result of a successful ajax result is that some more content is add to the page on the fly. My problem is that is added on the fly it looks like I cannot attach any events to the elements that are added. The flow of what happens is that the user selects an option from a dropdown list, the valu...

AJAX Submit Form.. data not sending

Hi, I have been battling with this piece of code for literally days now... Would appreciate any help The script calls the php file without a problem when the submit key is hit. However, it doesnt post the form data with it. The HTML form <form id="image_form" name="image_form" method="POST" action="" ...

Adding custom records to a JSON data store for a combobox (ExtJS)

Hello all, I have a JSON data store used for a combobox selection which is working fine, however I wish to add a custom record to the combobox and it isn't working. Here is my code: Note: I removed some of the code to make it easier to read. var ds = new Ext.data.Store({ proxy: new Ext.data.ScriptTagProxy({ url: 'a...

javascript var returning object Object when should be returning an int or string

I have two ajax functions and use the first one to pass some data to the second however when I look at the POST, I see that for the variable I am being sent I am getting object Object returned as the value of the variable and not what I was expecting either a string or an int. The javascript looks like this, $('.career_select .sele...

When to use jQuery.ajax and when to use jQuery.post ?

It seems, at the first glass, that we can use either of those. I'm wondering, however, when should we use one or the other, assuming a scenario where we can do the same thing with any of those two. Thanks in advance, MEM ...

jQueryUI tab problem

For some weird reason, the event "load" and even the option "success" from ajaxOptions got sort of a problem (or feature). When I click on a tab, while the tab load the content thru AJAX I wanted to pop up an dialog, and when it's DEFFINITLY done, to close the dialog. I dont know why but, the dialog is closing as soon as the ajax find ...

Ajax talking to java webservice - example? JSon, JQuery?

Hi, I've been tasked with making an Ajax (scriptilicious and prototype) front-end 'talk' to a web service. It's been recommended that I use Json and JQuery. I have no experience (Java developer) with either of these technologies. Can someone point me to some documentation or preferrably a tutorial on how to go about creating the 'glue' b...

PHP and AJAX - mkdir issue

I am working on an intranet application that uses PHP and jQuery. When a user submits a form, the form is passed to another script via AJAX. On one such form the user supplies a Windows UNC path to a server on the network. The handler script needs to create the directory the user specifies so that files can be moved via another process....

how to deal with this "unrecognized for URL..." problem?

This is link which is explaining in detail, the problem i am facing right now. I am getting a frequent exception whenever a call made to my web services. It returns appropriate results but still complaining about URL format.:- Request format is unrecognized for URL unexpectedly ending in /WebServiceMethod So what do you sugges...

Making crossdomain ajax requests with addons for Firefox

I'm a bit confused about how you can or cannot make crossdomain ajax requests in addons for Firefox. Addons such as LastPass and Xmarks suggest you can do it, however when I try to google how you do it, everyone seem to say you cannot, unless the user has set a preference in the settings of Firefox. If crossdomain isn't possible, then ho...

How do I keep FireFox from “spinning” with a long-polling request?

I'm using the following for a long-polling request (this is a plugin similar to getJSON)... $.jsonp({ "url": url, "data": { "settings", settings }, "success": function(userProfile) { // handle user profile here }, "error": function(d,msg) { alert("Could not find user "+userId); } }); The request won't ...

unterminated string literal when loading text through ajax

This seems to be a common problem among coders from different languages. I'm using jQuery to pull AJAX text into a screen, but firebug reports an unterminated string literal with a worthless example : $("#content").html("<div class=\'grid_...g\'><\/div>\n<p>Cold Seafood Platters\n I double checked in my AJAX example text if there w...

Dynamically adding items to a select list in Ruby On Rails using Ajax (again)

OK. So I am so close . . . and so frustrated. Please help. Here is are the two drop down lists which are part of the products/new page <p> <%= f.label :category_id %>: <%= f.select("category", Category.find(:all).collect {|c|[c.name, c.id]})%> </p> <%= observe_field :product_category, :url => {:controller => 'products', :action =...

Using the jQuery validation plugin's submitHandler method properly

Hi, first a little bit of documentation from the jQuery validation plugin: "Use submitHandler to process something and then using the default submit. Note that "form" refers to a DOM element, this way the validation isn't triggered again." submitHandler: function(form) { $.ajax({ type: 'POST', url: form.action, ...

Saving session data with Javascript, or similar solution

Basically what I'm trying to achieve is a basic back capability. User goes into Girls listing, which shows him a location screen. Selects a location, and the locations are replaced by images of girls from that location using AJAX. User clicks on a particular girl to view her profile. Now the user wants to go back and have a look at a dif...

Displaying POST Data with jQuery?

I'm using a flash webcam to take a picture. It works great and spits back a URL via POST. I'm coding in PHP and would like to display this POST data once it is recieved, the problem is that I dont re-load the page. I've looked around and I'm not sure to dynamically load this array of data. Where should I be looking? jQuery? Ah, Figur...

Selecting a "select option" after creating it with ajax

I have a page that has a series of "related" selects. Everything works fine UNLESS there is an option that is pre-selected. I can set the "pre-selection" to work if I put an "alert" in the code but without it it doesn't work. For Example: function loader(){ if ($("#prod_1").val() > 0){ switchBatch(1); $('#batch_1')...