ajax

Displaying Large Text Files via Ajax/dojo

I want to display to a user a large text file (100MB Log Files specifically) via a web interface without requiring the user to have to download the entire file. Obviously returning the entire file to someones web browser would not be sensible, so my theory was to used Ajax to fetch portions of the file depending on the user scrolling th...

How to do a $.get on a remote website ?

I'm trying to load via Ajax the last post of a twitter account. I have the url, which is : http://twitter.com/statuses/user_timeline/myuser.json?count=1 This works : $.get("test.php", function(data){ alert("Data Loaded: " + data); }); This doesn't even make a request if I monitor the console in Firebug : $.get("http://twitter.co...

Ruby On Rails: Fetching records

Hi everybody, I'm looking for a tutorial or a piece of code that can leads me to create a page where we can find only 10 data rows per page and navigating with Ajax previous/next arrows and also page number (i.e.: < 1 2 3 ... 10 > ). Thank you very much. ...

Is it possible to call a server-side event on a parent page when a child page closes?

I have a parent page with two data controls. I want to be able to open a child window, do something on it, and when it closes I want to rebind only one of the two data controls on the parent page. I have the control I want to update within an UpdatePanel so would like to call rebind it and call UpdatePanel.Update(). ...

iFrame Navigation controlled by JS

I'm using javascript to control the href= field of the iframe located within the page. I am currently using function DoIFrameNav(object_URL) { document.all.additionalText.src="iframeContents.php?id="+object_URL; selectedEvent = object_URL; }//end DoIFrameNav to perform this action. And onclick=\"DoIFrameNav...

Making safe ajax calls with jQuery

I noticed that certain characters entered in text box and sent through Jquery Ajax request as parms are being mis-interpretted. (at least from my point of view). The "&" creates a new unwanted parm. The "+" disappears entirely. I want to get value of text box and convert to html entities. Something like this I think: SafeParm = $("#m...

How to pass data using jQuery's ajax methods on click events / links?

Using 'old school' javascript you would put the ID as the parameter in an inline function call (onclick="my_function(28)" or similar), with the ID provided by your server-side code. Using 'new school' javascript, the function call is abstracted from the element, so how to pass the ID? My guess is: <a id="28" class="do-something" href=...

Re: Parallel asynchronous Ajax requests using jQuery

Hello, you have answered a question about parallel async ajax request several month ago (see your answer at the end of this text). I have an another question regarding this: The browser (Mozilla or IE) allow only a limited number of parallel request. In my case, eg. the IE allow only 2 request, as a result, if the execution of the requ...

How do I force a full postback from codebehind?

I'd like to programmatically force a full page postback to occur after an event is fired by one of the child controls. I can't add any triggers to make this work so it will have to be done via code. Thanks. ...

Jquery - Send variables to a controller Action via GET in AJAX

All, I want to send a variable "itemId" via GET to a controller action through AJAX. In the Controller Action, I should be able to retrieve the value using $_GET["itemId"]; Can I send the querystring with "data" tag instead of appending it to the "url"? I have the following code: $.ajax({ type: 'GET', url: "/con...

jQuery, php and Ajax issue: Can't make dynamic link load dynamic content

There's a great tutorial on IBM's website which walked me through a simple search/results list using jQuery,PHP and Ajax. I was able to make it work and it's really cool. One problem. I want the results to be hyperlinks and I can't get any java script to run on the results. Here is the script I have (includes what was in the tuto...

Simple MVC Question for MVC beginner

hi, i have an Ajax ActionLink which normally just returns a PartialView (which is just a UserControl ascx file) however, my needs have changed and i want to return another PartialView (so a total of two PartialViews) that occupy different areas of my page... of course i can't call " return PartialView("UserControl.ascx") " twice in a ...

Does Google's crawlers have Javascript? What if I load a page through AJAX?

When a user enters my page, I have to make another AJAX call...to load a data inside a div. That's just how my application works. The problem is...when I view the source of this code, it does not contain the source of that AJAX. Of course, when I do wget URL ...it also does not show the AJAX HTML. Makes sense. But what about Google? W...

how to store value permanently in javascript variable

I want to make the application like below. First there is a page with four radio buttons. The user clicks on any of the radio buttons but doesn't save and he goes to another page. Then if he comes back to same page with the radio buttons it shows the selected radio button before he goes to another page. How can I do it by using jQuery,...

Problem with loading inline javascript in a PartialView

This question relates to my previous question which asks about loading a page into a DIV asynchronously using jquery/ajax. It has been resolved and it works like charm :). Now the problem is in the View that is asynchronously loaded to the DIV , I'm having a partial view. The partial view intern contains some javascript. When I load the ...

jquery/ajax doesnot work

Hello, For some reason this does not work. I have copy/paste the code, but it goes to the html-echo.php rather than displaying the result in the htmlExampleTarget What am I doing wrong here. Thanks Dave edit: sorry guys - here is the url - http://jquery.malsup.com/form/#html <script src="js/jquery-1.3.2.js" type="text/javascri...

how to send an object from one js file to another js file ?

Suppose, a webpage have only a hyperlink. I am not using any form. If user click on that link. the page will be redirected to an another page with an JSON object. I have to get that object from js script file. How can I send an object from one js to another js file ? I can't use any session, cookies, jsp file. I can use query string, aj...

Using checkboxes with Jquery AJAX

Hi all I am using JQuery for some AJAX functionality. But when is pass the value of a checkbox, the value is show regardless of whether the checkbox is ticked or not. Here is my code: $(document).ready(function(){ $('#submitform').click(function(){ $.ajax({ type: "POST", url: "abs_newabs_check.asp", data: { allday: $("#all...

setting value for a textbox - jquer

Hello, I want to set the value of a textbox to null via jquery. I tried onclick="$('#c_album').val('TEST VALUE');" at the submit button $('input#c_album').val('hello'); - in the script section Appreciate assitance Thanks Dave [edit]-- this is the code i am using $('#submit').bind('click',(function(){ $('#src_box').val('...

HTML Link questions

When creating a link i need to find out if i can do the following: <a href="page.html" onclick="javascript:ajax();">blah</a> I want it so that if the user clicks on it, it will get the content as we described using ajax however, i want the search engine to be able to follow the link so that we still get maximum indexing. I'm pretty s...