I am calling a JSP by passing parameters which outputs a valid JSON as response, but still the $.getJson callback function is not getting fired.
JSP page output is
{ "data": [ [ [ 1258185480000,4.39],
[ 1258186020000,4.31],
[ 1258184940000,4.39],
[ 1258183560000,4.39] ] ] }
The URL po...
I'm using the jQuery Form Plugin on a big ass form which includes some file fields. The back end is Ruby on Rails.
I'm having trouble getting Rails to recognize the POST request type to be 'text/javascript' even though I believe I am setting it correctly.
The form looks like:
<form id="listing_form" method="POST" enctype="multipart/f...
Hey everyone, thanks for taking the time to look.
I'm trying to get results from the following request:
http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=inurl%3AnphMotionJpeg
I'm getting a valid 200 server response but no results, even though searching for inurl:nphMotionJpeg in Google returns about two pages.
The resp...
I've been sitting with this for hours now, and I cant understand why.
q is working. The URL does give me a proper JSON-response. It shows up as objects and arrays and whatnot under the JSON tab under the Net-tab in Firebug and all is fine. I've also tried with other URLs that i know work. Same thing happens.
I have another function els...
Hello,
I am facing a problem, while encoding the response that I send back for an AJAX request, using GZIP. Can anyone give me some pointers on this please?
There is an AJAX request from the JSP,
An action class (Struts) at the server side handles the request,
The response is prepared as a JSON object,
The JSON string is written to th...
i have the following jquery code running on my page just fine in FF and IE, but chrome seems to be freaking out..
in FF and IE the call is made and the result is appended to the div.
in chrome, it calls ajaxfailed on failure.
the XMLHttpRequest passed to the AjaxFailed function has a status code of "200" and the statusText is "ok". the...
I have 2 layers that i need to update individually if a user clicks on either of them.
<div id=wrapper>
<div id=upvote>
//This div can be filled by upvote.php?id=X
<? echo getUpVote(); ?>
<a href=#><img src=upv.png></a>
</div>
<div id=downvote>
//This div can be filled by downvote.php?id=X
...
I have a checkbox and I need that when it is "checked" to alter a MySQL Table value to "yes" and if it's checked when you uncheck to "no".
I want to accomplish this with Ajax. How can this be done?
...
If I want to use ASP.Net without the Microsoft AJAX Control Toolkit or JQuery on the client-side, there are 2 possibilities according to their website (http://www.asp.net/ajax/) :
Server-Side ASP.Net AJAX Programming
Client-Side ASP.NET AJAX Programming
Client-Side programming obviously is just the javascript-side of the coin which m...
I'm using jquery to make an AJAX POST call to a web service, and getting a JSON object back, which gives me back some html code that i want to append to a div, it works fine in firefox but the problem is that safari doesn't do the appending, here is the example:
$.ajax({
type: "POST",
url: "ConnMgr.asmx/Request",
data: JSON.strin...
Hi,
I know this has been an issue for others, but I've yet to find anything that fixes my problem.
I have a partial view that is displayed in a lightbox (colorbox). It is a simple form. I want the form to submit and return a little bit of data. The data will be used in calling subsequent functions, and I want the main DIV just to be...
my autocomplete call is showing nothing right now, because the div that i am inserting the ul into has its style set to display:none. using firebug, i can see the results are returned in a proper unordered list tag and when i edit the html from the firebug console and remove the style="display:none;", i see the autocomplete results. i ad...
Hi,
Here's my need. I'm building a site that let users add product to a list (something like a wishlist without a cart). Now my question is, Is there an existing extension in Joomla (1.5) that do similar thing?
Another Is calculating the total cost of the product and calculating other factors, like discounts, freight, weight etc.
I am...
Ok this is more of general technology/approach question.
We have a very simple web 'app' which is basically just a canvas element. We're using javascript to draw a 'fancy UI' on the canvas. We register a mouseclick event, get the coordinates and then try to figure out what widget they clicked on.
My question is, what technology or fram...
So I've found some stuff online but none of it uses jQuery and most of it is old and not suited for what I'm doing.
I have a main page and then a div overlay. Something like www.bacolicious.com, but with a little x bar and links :D
I had some old code that may have been working at some point, at least someone put it in.
window.open($(...
i am having problem with this javascript, its reloading the page and not submitting the form. !
var xmlHttp
function GetXmlHttpObject(){
var objXMLHttp=null;
if (window.XMLHttpRequest){
objXMLHttp=new XMLHttpRequest();
}else if (window.ActiveXObject){
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
return objXML...
I have a generic function that returns URLs. (It's a plugin function that returns URLs to resources [images, stylesheets] within a plugin).
I use GET parameters in those URLs.
If I want to use these URLs within a HTML page, to pass W3C validation, I need to mask ampersands as &
/plugin.php?plugin=xyz&resource=stylesheet&...
I have a select field. I must fill with options taken from a mysql table.
Here is some little php code I have done using codeigniter framework
$idcateg = trim($this->input->post('idcategory'));
$array1 = array(
'result' => $idcateg
);
echo json_encode($array1);
Now, the jQuery call...
$.post("<?=base_url()?>index.php/rubro/list_a...
It has come to my attention that my website is not working correctly under many versions of Internet Explorer. After looking around everywhere, I did a "cookie" test (http://www.rgagnon.com/jsdetails/js-0092.html), and realized that cookies are not working when I use any version of IE, but works fine with Chrome, Firefox, Safari ...
It ...
Hello. I'm doing something very simple, and yet it's not working.. maybe I'm missing something.
I need to read a text file, through ajax, and into a div. I can easily write to the file through ajax, but not read. Here is what I have:
function ajaxLoader(url)
{
if(document.getElementById)
{
var x = (window.ActiveXObject) ? new ActiveXOb...