ajax

Alternate editor for RefineryCMS

I think the build in editor isn't really that great and I think about changing it into something different. Is there any complete solution with one of the rich javascript editors available? Basicly it should be fairly easy to replace the editor with something else, as it just generates html. One thing which can a bit more difficult is r...

AJAX Polling Frequency - To long poll or not to long poll?

I'm building a component of a web page that needs relatively constant database polling. I can see two different approaches for this, and I'm wondering if one of them is better than the others, or if I'm missing a third option. 1) Send off an AJAX request every 1 or 2 seconds to check for updates. Each request returns immediately whether...

Ajax Modal Popup Progress Bar/Indicator

Hello all, I am having problems trying to create a modal popup progress bar in Ajax 3.5. The following works okay, but I cannot see my aspx page in VS 2008 due to the changes I made to my style sheet. It appears that the div tag i am using sits on top of the page. Here is the code: <asp:UpdatePanel runat="server" ID="UpdatePanel1"> ...

Good client-side Gauge control?

Does anybody know of a good client-side gauge control? I've tried out ComponentArt's AJAX control, but it's client-side feature leaves a little to be desired. I'm not looking for a Silverlight or Flash gauge either. Currently, I'm playing around with Google's Visualization Gauge and it seems to work pretty well. However, I'd like the...

Treeview Within UserControl and UpdatePanel Does Not Do Async Postback on Expand, Just Select

So here's the situation. We have a TreeView control within an UpdatePanel that we use. Everything works in our current situation; expanding via the + triggers an Async postback or selecting the text/icon also triggers an Async postback. In order to use this TreeView and its functionality elsewhere, I moved all the code into a UserContro...

IE7 Ajax calls blocked by max connections

I am doing comet long polling to retrieve notifications from the server. There is significant delay when requesting new pages quickly. The long poll request is held for 60 seconds. I'm pretty confident cause is that IE7 is waiting for these requests to complete. The delay is gone if I up the MaxConnectionsPerServer value in the regis...

Ajax observe_field not working on ruby on rails

I am trying to create some kind of search in my ruby on rails application and I want to add ajax support. I want when a user types in a search box a word, ajax automatically generates the results. And I have searched almost all internet and I couldn't find answer to following question: When I type into my text area nothing happens. It i...

JSF and browser back

I have a very strict requirement to use POST to pass in request parameters to my application upon entry. Once entering the application (page1), entering form information and continuing to the next page (page2) via a commandButton, the expectation is that the data will be posted and later read from a session scoped manage bean. All work...

jquery ajax array response handling

How to handle a array response from .getjson. Following code handles ajax request. function getinfo() { $query="select field_uname_value,field_uaddress_value,field_uphone_value from {content_type_udetails}"; $result= db_query($query); $i=0; while($item = db_fetch_object($result)) { $info[$i++]=array...

MooTools AJAX Request on unload

Hi, i'm trying to lock a row in a db-table when a user is editing the entry. So there's a field in the table lockthat I set 1 on page load with php. Then I was trying to unlock the entry (set it 0) when the page is unloaded. This is my approach. It works fine in IE but not in Firefox, Chrome etc.... The window.onbeforeunload works in a...

calling dropdown through ajax

hii everybody, i want to show dropdown box calling from another dropdown. when one is selected, another dropdown will be called from database values. i am using this code : echo $fginfo=" <td width='150' class='label'>Items</td> <td class='content' colspan='3'> <select name='item_code' id='item_code' on...

Ajax auto form submit

Hi, Does anyone know how to automatically submit a form via AJAX, without, having to explicitly click on the submit button. For example, say I have the following form: <form id="form1" method="post" action="" name="form1"> Rows: <input type="text" name="rows" id="rows" /> <br/ > Columns<input type="text" name="columns" id="columns"> ...

Displaying HTML codes - &frac14; and &rdquo;

I am trying to display the real value of &frac14; and &rdquo;, but the browser is displaying it as ? (question mark) at a area where AJAX is enabled. While at a different browser locations it displays ¼”. I want to display 1" but it getting displayed as 1â€. Please advise. ...

Need to press submit twice for submitting a form with ajax (jquery validation plugin)

The form is validated before submit with this plugin. And submitted as shown in the code: jQuery.validator.setDefaults({ submitHandler: function(){ jQuery("form").submit(function(e) { e.preventDefault(); jQuery.post(base_url + "blog/ajax_comment", { author: jQuery("#author").val(), email: jQuery("#email").v...

How to parse an html file to follow up a specific data?

My target web site is: http://www.imkb.gov.tr/Home.aspx Please focus this on that page: "XU100 64.882,72 -1.36 %" it is on top.. The exact target is 64.882,72 this value!... What is the best way for this value? My platform: asp.net , c# ...

AJAX and how to change address bar (?aaa=ggg)

Hi, i use Javascript(AJAX) and want to change the addressbar Ex: http://mywebsite.com to http//mywebsite.com?web=info ...

$.ajax always returns success, even with errors

I'm currently trying to solve an odd problem. I always worked with ajax, json, etc but have no idea why that simple code below is not working. Below is the full javascript and html code: <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt...

filling DDL with JSON return an error but fill the DDL, what am i missing?

Hello all, Here is my code: $("#ddlTableType").live( 'change', function() { $('#ddlTableCode').html(''); var TypeID = $("#ddlTableType > option[selected]").attr("value"); $.getJSON('LoadTableCodes.ashx?ObjectType=' + TypeID, function(TableCodes) { ...

getting a value from a php return in javascript.

I'm using jquery's $.get() to find out how many entries are in a table. I want the returned value to be an Int but it seems to be something else. How do I work with this? this is the code I have. I'm sure I'm just going about this wrong. My background is many java. var num = checksize(); function checksize(){ $.get("../php/checktablez...

jquery Ui Dialog can't fadeout twice

i have a strange problem with jquery i have this div that shows messages for ajaxified actions and i want the message to go away when after 5 seconds .. it works for the first time.. but when i trigger the action again in the same page the dialog appears but and never get fade out no matter what unless i close it by press the X button ....