jquery-post

jQuery, PHP, AJAX, "tu" variable beeing posted for no reason, shows in var_dump()

A jQuery AJAX request .post()s data to page.php, which creates $res and var_dump()s it. $res: $res = array(); foreach ($_REQUEST as $key => $value) { if($key){ $res[$key] = $value; } } var_dump($res): array(4) { ["text1"]=> string(6) "mattis" ["text2"]=> string(4) "test" ["tu"]=> string(32) "deb6adbbff4234b...

jQuery Repeating event? is it bubbling? I can't tell

I have a site, this site allows its users to search through a large and expansive list of books and they add from this list to their own custom lists. By default the lists they add to is uncategorized. So after searching around on the site they finally come round to their own custom list and they want to break down and add items in it to...

How to show jQuery is working/waiting/loading ?

How do I show a loading picture and/or message to the user ? If possible, would I like to know how to make it full screen with grey-dimmed background. Kinda like when viewing the large picture from some galleries (sorry, no example link). Currently do I add a CSS class which has the image and other formating, but its not working for som...

Browser issue with parsing json

Hi, I am developing application in Asp.net MVC. I submit the form with using jquery: var Data = $("#frmForgotPassword").serialize(); $.post("<%= Url.Action("ForgotPassword","Account") %>/", Data, function(retdata, textStatus) { if (textStatus == "success") { if (retdata.status == false) { $("#error").html('<p c...

How do I get my textarea to preserve newlines when using jQuery and JSON?

I have an textarea for user to input comment and a button to submit using jQuery .post() and JSON. $('#submit').click(function () { var comment = {}; comment.Author = $("#author").val(); comment.Email = $("#email").val(); comment.WebSite = $("#url").val(); comment.Body = $("#comment").val(); // te...

jQuery posts data to wrong relative URL.

I have an ASP.Net MVC application. I am trying to post data to an action, and then just render the output. I have a page where you can view a product, so www.mysite.com/product/details/1 shows the product. On this page, I render a partial view through RenderAction() that contains some pricing logic. I want the user to select some options...

Not able to find file using jQuery.post

I've used jQuery.post in several jQuery scripts now, and it all works fine. But after upgrading to WordPress 3.0, it stoped working. I'm working on a plugin where I hve the following jQuery code: //Delete event and remove from UI jQuery("#eventList .cancelEvent").live('click', function() { jQuery.post("/wp-content/plugins/wp-eventcal...

How to Validate a Model in a jQuery Postback

If I have a model; Name [Required] FirstName [Required] LastName If I create the model in my jQuery postback thus; Name name = new Name{ FirstName = param1, LastName = param2 }; Is there a way I can validate it using the data annotations that decorate the fields? This is not happening in a postback event on the view, it's ...

jQuery.Post/Ajax POST to PHP for writing XML file

I have a client side code in jquery and from client side code I need to store some data on server side in form of XML files that are written using PHP. I'm done with the code for writing PHP files. However, I'm not able to pass client side code to PHP file. jQuery post is also not working. I tried query strings but as I said data is too ...

django jquery post then load

Hey. Trying to get a section on my site working when it basically acts in the same way as facebooks wall post user sees a box where they input some information about how they feel, then I use a jQuery $.post method to submit the data, and then I would like to retrive the new data. Currently this is what I have. <script type="text/jav...

Django jQuery post then reload - too many times

I have a bit of a problem. I have ten forms in my app similar to facebooks commenting forms. I have successfully managed to pass the form for processing by making use of jQuery's $.ajax function. All of this works fine, but for some reason the app sends 10 post signals and then reloads ten times, causing the user to experience having ...

jQuery $.get not returning data anymore

I am using jQuery-1.4.2 with CakePHP and a few days ago I had this working fine but now it isn't. I don't remember changing anything. I am taking the URL generated from the javascript and putting that directly into the browser and I am able to see the results in my browser however javascript is just getting a return value of null. Any...

Can you use jQuery POST in a Chrome extension?

I'm trying to get my Chrome extension working with the Google Calendar API. However, the way Google has set up the extension sandbox makes anything almost impossible. I can't add the Calendar API using JavaScript because I've tried 200 different ways to include the http://www.google.com/jsapi library. Therefore, I want to try interact w...