Automatic userlist update
Hello all, I have a online user list which is populated by a SQL query to a database table. When a new user comes online, how can i make the webpage automatically update? What code do I need to provide? Thanks ...
Hello all, I have a online user list which is populated by a SQL query to a database table. When a new user comes online, how can i make the webpage automatically update? What code do I need to provide? Thanks ...
I have this: <h:selectOneMenu id="facility" value="#{document.facility}"> <f:selectItem itemLabel="A" itemValue=""/> <f:selectItem itemLabel="B" itemValue=""/> <f:selectItems value="#{document.facilities}"/> <p:ajax actionListener="#{document.test}" update="project" event="change"/> </h:selectOneMenu> document is t...
I have some Ajax that has been working on a live site, now it has stopped working. The Ajax should be returning a page but is returning a 500 error (internal server error). The strange thing is I can navigate and post to the page the Ajax is calling, so the page is only not working via an Ajax call ($.post). Another strange thing is it...
I need to pass extra variables to a jQuery, ajax callback function. For example, given: while (K--) { $.get ( "BaseURL" + K, function (zData, K) {ProcessData (zData, K); } ); } function ProcessData (zData, K) { console.log (K); } ProcessData() will report 0 every time (or whatever the last value of K ...
I'm writing a script that makes an AJAX request at regular intervals. The request loads a remote page and pulls some numbers from it. The page is public, so the script does the equivalent of refreshing the page every few minutes. It's possible (although unlikely) that this script will be used by hundreds (maybe thousands) of users if I ...
I'm working on a website where the frontend is powered by AJAX, interacting with the server in the ordinary RESTful manner and receiving responses as JSON. It's simple enough to manage POST, DELETE, and PUT requests, since these won't differ at all from a traditional approach. The challenge comes in GETting content. Sometimes, the clien...
Getting sick with asp.net permission madness... This time, I Just cant AJAX-CALL any kind of webmethod or i just get: {"Message":"Authentication failed.","StackTrace":null,"ExceptionType":"System.InvalidOperationException"} Code: <WebMethod(True)> _ Public Function Login(ByVal usuario As String, ByVal senha As String) As Boolean ...
Trying to load data into a drop down list when a user selects one of two radio buttons. the bookGenres.xml file is in the same directory as my script. I'm out of ideas. XML: <?xml version="1.0" encoding="utf-8" ?> <Genres> <Fiction> <book>Sci-Fi</book> <book>Fantasy</book> <book>Horror</book> <book>Romance</book> ...
hi, I am using autocomplete extender, i write a webservice the webservice is working fine when i run webservice. But when i run my aspx page it is not displaying any thing the autocomplete is not showing only text box is there. this is my code...... [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProf...
Hi, I have to execute commands such as iostat 3 > temp.txt & on server side Then, further send ajax request at each interval to get updated output on the client side When I execute this command using python subprocess module unless I kill the process file data is not read. in views.py the code for servicing ajax request is as fo...
Hello.. I have used AJAX toolkit control extender in my site(ASP.net with C#). When i uploaded my site to the production server it gives the error for ajax toolkit extender. When i replaced the toolkit script manager with regular script manager the site is working fine but the extended control are not working. I have contacted to th...
Basically i am making a simple ajax request function upload(){ setInterval(function callMeOften() { $.ajax({ method: 'get', url : 'uploadinfo.php?unique_id=<?php echo $some_uniq_id; ?>', dataType : 'text', success: funct...
Hello, I have a problem with Ajax. I'm totally noob with Ajax, and I apologize for such a stupid question. I have a list of elements (loaded by a db) that I want to manage, i.e. Remove, Modify their name..; I want to use ajax to change db and the list. But I want that the page is modified only AFTER the db has been modified. I can mo...
Hi I have a pagination system like this: [content] 1 2 3 Next > when you click on 1/2/3/next the [content] element gets replaced trough ajax. the problem is that the screen focus moves up if the new height of the [content] is larger than the previous one. can I force the screen to stay focused where where the pagination links are? ...
I'm tryin to validate an input field with an ajax call to a cakephp controller My Ajax is: $("#UserAlphaCode").change(function () { $.ajax({ type: "post", url: '<?php echo $this->webroot ?>' + "/alpha_users/checkCode", data: ({code : $(this).val()}), dataType: "json", s...
Hello, I'm loading some content (NOT THE HTML headers or anything, just HTML formatted content from a PHP) via jquery .load() into a div. It works, perfectly for everything BUT some Flash-based amCharts (www.amcharts.com) dynamically loaded with amCharts PHP, using swfObject. The file, loaded seperately, works and loads the Flash charts...
I'm sure this is something that AJAX gurus learn very early on, but this is the first time I've run into it. Using jQuery, I have assigned .click() handlers to certain CSS classes. However, if I reload some of the content via AJAX, the .click() handlers are not firing for that content. It seems I have two choices: put my .click() ha...
Hello there, I am stuck with my Rails application where I use JQuery to post/get ajax requests and I have this following error (found by using Firebug). missing ; before statement <script type="text/javascript">\n I am using the JQuery ajax method to post like this: function day_on_change() { jQuery.post( "/times/add"+ "?...
Hi, Is it possible to use Google AJAX API : on local google search engine for example : google.es or is it only working for google.com? Thanks for helping. ...
I am dealing with a legacy application where they use [a] tags for many Ajax form "submits". If we were using [input] buttons we could just set the disable attribute of the [input] tag. But on hyperlinks disable is not part of the spec and is not consistent cross-browser. We are looking for a simple solution for blocking the extra click...