ajax

Can we make an ajax request to a usercontrol (.ascx)?

I have a page that contains a user control. Can i make an ajax request directly to the control? I know I can make an ajax request to .aspx or .ashx; however, is it possible to go direct to the .ascx? ...

Dynamic Elements are not appearing in IE8 until there is a mouse click

I have an Ajax request that returns search results, and I am dynamically creating DOM elements to display those results. This is working as expected in all the browsers I've tested except for IE8. The request is returning fine, the JavaScript is running successfully, and the elements are being created, but the elements are not being di...

AjaxToolkit for 3.5 not working

I am trying to use ajaxtool kit downloaded from here for colorpicker. When i tries to use this on any of my page, it shows me an error This page is missing a HtmlHead control which is required for the CSS stylesheetlink that is being added. Please add <head runat="server" />. What can be the reason. I am using ToolScriptMa...

Jquery on click change combo value

Hello , i have a product with some colors details. Eg: http://accommodationinbrasov.com/detail.asp?id=23# when i click a color for that product i will like the value of select (frame) to change to that color. anybody could get me on the right way? Thank you ...

How to invert the forecolor and backcolor when any one of them changes

I am using a ajaxtoolkit to choose a color. I want to set the forecolor of the text as the reverse of backcolor. if a black has been choosen as backcolor then its corresponding forecolor should be set to white and vice versa. I want to do this with javascript <script type="text/javascript"> function colorChanged(sender) { // ...

JS flip effect running before AJAX

Running JS (see below) to generate a flip effect when user clicks submit button (class .form-submit) on an AJAX form (see below). Unfortunately, quickFlip.init(); is running before the AJAX meaning the flip occurs but the form data isn't sent. How can we solve this? Form we are using... <div style="display: block;" class="quickFlipPane...

calling remote pages causing problem ?

Hi I Am getting this error while loading remote file in my page using ajax . Missing Controller Error: CbcController could not be found. Error: Create the class CbcController below in file: app/controllers/cbc_controller.php <?php class CbcController extends AppController { var $name = 'Cbc'; } ?> Notice: If you want to custo...

In cakephp,layout calling two times when i use AJAX

Please see below code snippt: <?php //Sets the update and indicator elements by DOM ID $paginator->options(array('update' => 'content','indicator' => 'spinner','url' =>$this->passedArgs)); echo $paginator->prev('<< Previous', null, null, array('class' => 'disabled')); echo $paginator->next('Next >>', null, null, array('class' =...

best practice to use action url while calling ajax in cakePHP

hello friends, I am using ajax with jQuery in my cakePHP application. and my javascript function is placed inside a javascript file. now in my local system the files are kept in "/sample" directory so the the path while i call the function will be in ajax.js $.post({url : "/sample/controller/action"}) but after hosting it the u...

XHR Upload Progress is 100% from the start

Hi, I'm trying out the new XMLHTTPRequestUpload feature to upload some files to a php script, it mostly works fine, the upload starts, I get the finish response etc - but the progress doesn't seem to work. Looking that the event.loaded value - In firefox I seem to get a random value between 0 and the file size; in Chrome (where I'm mos...

Would an AJAX script persist a session in PHP?

I've been asked to develop a social networking site to tie in with a game. The game is in Flash (so delivered as just a .swf file) and will be hosted on the social networking website. One of the issues that's arisen during testing and developing is sessions timing out. I know session length can (theoretically) be modified using php.ini ...

ASP.NET Ajax Control Kit versus JQuery

During the last 2 years JQuery has become more and more popular. So do you think, it is now time to prefer JQuery to ASP.NET Ajax in ASP.NET projects with Ajax? Has the ASP.NET Ajax Control Kit a future in the ASP.NET world? ...

Rails form params issue

I'm constructing some data to send over jQuery's $.post, the data that I send looks like this: authenticity_token: LxHlgi1WU8o0DtaNuiQOit/e+HlGR2plVcToHUAhA6I= crews[0][boat_id]: 2 crews[0][crew][]: 10 end_time: 1280408400 start_time: 1280404800 Which is from jQuery converting the data object which is prepared by: creating an array ...

Post js array to php @jquery @codeigniter

Hi, i'm trying to pass a javascript array to a php controller ( i'm using codeigniter ) with ajax post method. Data seems to be sent but $_POST['data'] is not known. This is the code : JAVASCRIPT: function update_order(){ var ordre_column1 = $('#column1').sortable('toArray'); var data = serialize(ordre_column1); $.post('../../controll...

Do you Ajax JSON or HTML?

What is the preferred way to do AJAX. If it was for a search page written in PHP using Jquery for the AJAX How would you handle the response a) Have the response contain all the relevant html/styling or b) Send pure JSON and have a javascript function build the html/styling around the javascript variables. I can see advantages to ...

Does JQuery AJAX have a different User Session than a postback to the same website?

Does JQuery AJAX have a different User Session than a postback to the same website? I am trying to send data to a MVC2 Controller through a Jquery Ajax POST with a querystring on it and then this MVC2 Controller will take the data from querystring and place it into the User's Session. Successfully while debugging I see that the Control...

jQuery AJAX not hitting ASP.NET Web Service when passing parameters

Hello there! js: var paramStr = $('#id1').val() + '|' + $('#id2').val() + '|' + $('#id3').val(); paramStr = '{"searchCriteria": "' + paramStr + '"}'; $.ajax({ type: "POST", url: "/MyService.asmx/MyWebMethod", data: paramStr, contentType: "application/json; charset=utf-8", dataType: "json", ...

ASP.Net How to update a updatePanel in main page from popup?

Hi, want somme help, thank you by advance. I've two page aspx, the first is the main page containe an updatepanel in which I call the second page as popup. I need a way for update the updatepanel (in main page) from the popup. Thank you for you precious help. I call popup as this follow in javascript: this.showUrl = function(url) { ...

jquery - colorbox plugin, I need to submit form via ajax

If I'm using the colorbox plugin, how do I submit a form via ajax and then make a new modal out of the response? For example, the user clicks a link and a modal pops up. They fill out the form and click submit and then the modal should change to the next form. Then they fill out the next one etc... ...

What is the reason spring webflow does not support dojox?

Is it because their ambition of 'progressive Ajax'? Meaning that dojox would not allow to fallback to non-javascript interaction? ...