ajax

Javascript function not loading with AJAX call

I have an html page that makes an ajax call to a jsp page that has a javascript function. It looks like the JS function is not getting executed. Sorry I tried to search for an answer but couldn't find any. Thanks in advance. ...

Make JQuery follow 302 Redirect AJAX call in the same domain

Hi, I'm trying to access the API at http://boo-box.com/api/format:json/aff:mercadolivreid/uid:173091/tags:my-query/jsonp:callback. It works fine if I try to wget it, or from my browser. But if I try to do: function getProducts() { var query = encodeURIComponent(document.getElementById('query_input').value); url = 'http://boo-box.c...

[AJAX / PHP] +Thanks / Like

Alright so I got my movies page, and under you can post a comment. I would like to add a little link on the side of the comment for the people that liked / found this comment useful. (Eventually it will +1 the number so like "I Like (3)" (3 being the number of people who voted)) Since it's movies, I do not wish to reload the page. So h...

jquery datepicker- ie only lets me have 5 where firefox doesnt care how many

Hi guys. I am developing a web system that has 12 text boxes. When you click on this textbox, a jquery datepicker pops up. Before I post code up, just wandering if there is a simple answer. Basically, IE will not let me have more than 5 instances of a datepicker. E.g. I have 12 text boxes and when you click them, the date picker comes...

AJAX returning a javascript to be parsed results in loss of page contents

So I've been working recently on a script to obfuscate client-side code for protecting intellectual property without interfering with the appearance of interactivity of the resulting page. The process is as follows: HTTP request comes in, .htaccess redirects (.*) to parse_request.php parse_request.php creates a "phpURLParser" class who...

How i catch the response from a server

When i create a form like this: <form method='POST' action='gate.py'> <input type='file' /> </form> 1) How i cant catch the response from the server, on a script? 2) I can send in a async way a file? Thanks in advance. ...

extJs Alert Help

var encClinic = new Ext.chart.StackedBarChart({ store: new Ext.data.Store({ reader:encReader, url:data.jsonUrl, baseParams:{ cmd:'OHMjson.Graph', graphName:'ENC', graphType:'Clinics' } }), yField: 'CLINIC', xAxis: new Ext.chart.NumericAxis({ stack...

How do you properly escape json to be sent over ajax? (Using Datatables)

I would like to know how to properly escape my json code. I am using the datatables plugin and this is the json that is failing. "6\\\\\\\' 5\\\\\\\" Ford HD ", It originally looks like this (without the opening/closing brackets and the comma): 6\\\' 5\\\" Ford HD How would I properly escape this? ...

how to reload javascript code block

I need to reload a block of javascript every amount of time.. say <script type="text/javascript"> var frame = some sort of code; </script> i need that block of any function to be reloaded every 15 seconds without reloading the page itself .. something like jQuery time out but i don't know how to apply it.. any idea? ...

Ajax - mantaining state in the url - no #

I am working on an AJAX website where there are two search parameters. I did some mod-rewrite and checking for $_GET variables so that i can do something like.. site.com/var1/var2/ -> automatically do the search based on the parameters. Now what I want is for people who do the search manually, to be able to have the url in that format....

Problem in getting current page number in this case:

Hi there, I am quite confusing in getting page number for pagination links. See what I am doing:I have a ShowDetails.php page on which I have created page links in for loop. Onclick of every links I am calling ajax function with parameter as URL(GetData.php) and target. When this function is called I get data through GetData.php and pr...

need tips for creating a javascript widget

Hi, I am building a web application and I need to create a feedback form widget so the users can put it in their websites and all the submitted data will be saved in my web application. I also need to have authentication in the widget before the user can submit the information (using my application login form or a facebook account for ex...

help me in jquery learning in php

please give information about ajax,jquery,and javascript. i want to learn it.so from where i should start. i am working with codeigniter php framework. ...

Loading screen in ASP.Net

Hi, I'm building a few webpages in my webapplication which use a webservice. While communicating with the webservice, which can take more than a few seconds, I want to display a loading screen. Something like the jquery dialog, where the background is disabled and a loading image appears in the middel of the webpage. Is this possible ...

Preventing Links before jQuery is Loaded

Hi Guys, How can i prevent links on click event before jQuery is loaded? The reason is i have few links that make AJAX calls through jQuery ajax functions and if user click them before jQuery framework is loaded the browser cant trigger jQuery ajax function and will follow links href="..." Thanks. Edit: Can i use this? <head> ... <sc...

UpdatePanel slow server reaction

I have an updatepanel which displays or hides a new control when I click a checkbox. But the problem is that is is very slow. From the click of the checkbox until the visual reaction occurs almost 2 seconds are gone. I think this is due to the asynchonous callback. The client seem to wait 1-2 between each callback to fire. Is this true?...

How to disable Cross Domain Restriction

I am providing web service which return data as JSON object. The problem is with Ajax, Ajax can't call cross domain url. Is it possible to disable it? ...

JSF 2.0: Render form fields with initial data using request-scoped beans (to update server data specific to current component)

A pretty normal case: We have a 'portlet' composite component that has two states: expanded and collapsed. Portlets start as expanded, but user can collapse them by clicking on them. This state should be saved to the session, so that once the user refreshes the page or navigates to a new, the portlets remember if they are expanded/colla...

"Thread was being aborted" in WCF Service Call

In my program there is a aspx page that contains wcf client, that so on calls wcf service located on same server. I`v get this exception when my wcf client calls wcf service hosted in IIS on production server. Ex. msg: Thread was being aborted. Ex stack: at System.Net.UnsafeNclNativeMethods.OSSOCK.recv(IntPtr socketHandle, Byte*...

Modifying on the fly the data sent with jquery via ajax

Hi, I am using the jQuery.ajax() with some specific data. One of them is an albumid which is generated on the server side if the user choose not to use one of his albums. The problem is that if a user add several photos to a new album then, instead of adding all photos to the same album, it creates several albums with one photo in each. ...