Hi, I tried to retrieve the value of a particular variable and alert it.
That is,I wanted to get the value "{"attributes":[{"type":"Text","labels":"Untitled1"}]}
" in that variable. Using the success: function(msg) in ajax ,I alerted the value.
But instead of the required value :{"attributes":[{"type":"Text","labels":"Untitled1"}]}
I ...
I am using ajax in my site. if a user enters a query and select a category, i will updates the page with result with ajax. also i updates the url with hash value which shows query and category seperated by a '&'. what i want is tht when the browser back button is pressed i want to display the previous result without reloading. what i am ...
Hi,
i am using JQuery in my app developed using cakePHP and Mysql..
In this JQuery,
$.ajax({
type: "POST",
url: "./updateField",
data: "name="+fieldname,
success: function(msg){
alert( "Data Saved: " + msg); }//success
});//ajax
The database operations are going correc...
Hi,
In GMail, the mails are listed. When we we have lots of mails (ex:50), we can select and go to next page, select some more mail, and come back to page 1. But whatever mails the user checked will still be checked.
I just want to implement the same operation. How would I do that?
Thanks,
Krish
Note: I don't want to use AJAX. I'...
Scenario
I am having dropdownlist on a page,
now on the change event of it I would
like to pull some data from database
and then display it.
I am able to do it with postback, I
tried using Ajax.Beginform() but it
still doing a post back.
<script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<s...
Hello,
I wrote some code that asks for a user to enter a date range and click the next button. This triggers an AJAX call to a file that figures out what dates are included within those days and prints them out onto the screen.
If the user changes the dates and presses "next" again, it does the calculation again. After doing this sever...
I am trying to implement something seemingly very simple, and I have been beating my head against it for days at this point.
My desired end result is a Country select drop-down, tied to a State select drop-down, in such a way that when a given country is selected, IF states are known THEN those states are displayed in a select drop down...
Hi
I'm setting up a registration page, and I'm using PHP primarily to verify the data.
I've realized that using a client-driven language for some of the validation will reduce the workload from the server.
I don't have much knowledge in jquery, but I'm looking for code that will determine the correct syntax of an email (ex, one '@' and...
I'm looking to allow a user to browse and upload a file to the server in my ASP.NET MVC application.
If it is possible, I'm interested in adding a progress bar to show how much of the file has been uploaded.
Does anyone have any examples of something like this? Should I use jQuery to do this?
...
I'm sending a jquery get request like so:
$.get($(this).attr("href"), $(this).serialize(), null, "script");
The response I expect to receive will be wrapped in script tags.
I understand the browser doesn't execute the response unless its returned without the script tags. Normally I would remove the tags from the response but in this ...
Hey,
solution (stupid!): The XML wasn't valid.. I forgot a /. Although I validated it earlier in w3schools, I added one tag and didn't close it properly.
original: I'm parsing an xml file with jQuery. In one node I store a JavaScript function with CDATA:
<action is="javascript"><![CDATA[
alert("Holy Crap!");
]]>
</action>
now I craw...
I'm currently working on a small application that works like this:
When the user clicks a link, an Ajax GET request is fired.
The request hits a server-side PHP script.
The script, which requests information for another domain, retrieves a JSON feed.
The feed is then echoed back to the client for parsing.
I'm not really a PHP develop...
I really like how FogBugz has an "Add Case" button where it instantly adds the text you entered into the table, and gives you the ability to add another one.
Does anybody know how it is done? or ideally, does anyone have any snippets for PHP/MYSQL system?
...
I'm trying to develop a stackoverflow.com widget for Mac OS X and I'd like to show the flair for a given username.
The different possibilities described in User Flair are all expecting the ID of a user but I'd like to let the user enter a username, instead.
Is there any way to retrieve the userID for a given username?
Better yet, is t...
Scenario:
I am having a dropdown, a button and html table which displays data from the Model.
Below is the code in aspx & controller
Data is displayed without a postback when i click the submit button, but dropdownlist & button appears twice and then the following clicks are fine.
Should i be using Html.RenderPartial anywhere, not sure...
I am using jQuery to calculate prices. Here is a small snippet of my JavaScript:
// Prices: radio
var curLam = "gloss";
$("input[name=lamination]").click(function(){
var gloss = 5;
var matt = 6;
if ($(this).val() == 'gloss' && curLam != 'gloss'){
$('#prices span').text(parseInt($('#prices span').text()) + gloss - matt);
curLam = ...
Hello,
I have a confirm step in one of my pages.
Desired action:
user clicks 'submit' and an AJAX request is made that does the appropriate action and returns a confirm dialog
user 'confirms' and then the form is submitted using a standard post.
So for the first part I'm fine using the jQuery form plugin:
$('form').ajaxForm(...opt...
I have an app that pulls up an image for the given user ID. I have the image tag nested inside an update panel in an AJAX TabContainer control. I have the ImageUrl set to "~/ImageHandler.ashx" and the ImageHandler.ashx grabs the user's ID from the session variable userID.
My problem is this: When the first user is loaded the correc...
hello,
I have an ajax autocomplete on a page ASP.NET. This calls a method from a web service which returns some postal codes.
public string[] GetNames(string prefixText, int count, String contextKey)
{
prefixText = prefixText.Trim();
XmlNodeList list;
List<string> names = new List<string>();
if ((prefixText[0] >= '0') &...
I'm trying to get the next/previous buttons to work with SLIMBOX gallery after using an AJAX call to dynamically load content.
$(document).ready(function() {
$('.content_box').hide();
$('.sf-menuUP a').click(function(){
$('.content_box').fadeIn('slow');
});
var hash = window.location.hash.substr(1);
var href = $('.sf-menuUP li a').eac...