Hi!
Im creating a usercontrol which is controled client side, it has an javascript-file attatched to it. This control has a button and upon click a popup appears, this popup shows a list of my domain entities. My entities are fetched using a call to a webservice.
Im trying to get this popup usercontrol to work on all my entities, there...
I've got an architecture that involves browsers polling via ajax every 3 seconds for updates and I'd like to change that to long-polling.
I'd like to have 1, 2.. {n} clients long-polling, waiting for updates and have something happen on the server to signal the waiting clients to return. My first thought was to use an EventWaitHandle, ...
I'm learning javascript. Poked around this excellent site to gather intel. Keep coming across questions / answers about javascript, JQUERY, JQUERY with AJAX, javascript with JQUERY, AJAX alone. My conclusion: these are all individually powerful and useful. My confusion: how does one determine which/which combination to use ?
I've co...
I receive a JSON response in an Ajax request from the server. This way it works:
{ "a" : "1", "b" : "hello 'kitty'" }
But I did not succeed in putting double quotes around kitty.
When I convert " to \x22 in the Ajax response, it is still interpreted as " by JavaScript and I cannot parse the JSON.
Should I also escape the \ and unesc...
Alright everyone this is a bit of a complicated setup so if I need to clarify the question just let me know.
I have a model:
class IconSet < ActiveRecord::Base
has_many :icon_graphics
end
This Model has many icongraphics:
class IconGraphic < ActiveRecord::Base
belongs_to :icon_set
has_attached_file :icon
has_attached_file :f...
Hey,
I have a simple "live search" (results displayed while typing) web site. This make up is Ajax to PHP querying a pretty large XML document (10,000+ lines). This is all been hosted on a local Apache server (xamp). The scale of the xml document seems to be causing huge performance issue with results taking 10ish seconds to give the r...
Hi, I've got a multi-part form (in a PHP MVC setup) which I have working correctly without javascript enhancement. I'm starting to add the AJAX form handling code which will handle each stage of a form submission, validating/saving data etc, before using AJAX to load the next stage of the form. I'm wondering how best to pass the URL of t...
I have the following CFSELECT tags that are used to populate a text input:
<cfselect id="this" name="this" bind="cfc:Data.getThis()" bindonload="true" />
<cfselect id="that" name="that" bind="cfc:Data.getThat({p1})" />
<cfselect id="theOther" name="theOther" bind="cfc:Data.getTheOther({p1}, {p2})" />
The text input is the only value...
Hi, this may be a weird problem but I’m not sure the best way to go about it..
I am using JQuery ajax tabs. The tab section is dynamic so multiple tabs can be added, as the content is loaded via Ajax the same content can be loaded into different tabs. The other important detail is that i am using the Cache option so the tabs maintain s...
I am trying to use a nested ajax call to populate a table, and once the table is built, use jQuery's dataTable plugin to pretty it up.
The problem I am running into is an order of operations question. When do I call the dataTable function so that I can be assured that the table is built AFTER the values are populated? When I try the f...
I have a very simple table on my website, that displays different URL's. I have an input field where I can type in a URL and click 'Submit' to add additional URL's.
However, I want to add an MD5 grabbing feature to this, using @md5_file(); to grab the MD5 of the URL and check to make sure it's the MD5 it should be, before adding it to ...
I have a composite User control for entering dates:
The CustomValidator will include server sided validation code. I would like the error message to be cleared via client sided script if the user alters teh date value in any way. To do this, I included the following code to hook up the two drop downs and the year text box to the valid...
I have a set of checkboxes with multiple choice allowed. I parse the set this way:
if ($("input[name='route_day']:checked").length > 0) {
$("input[name='route_day']:checked").each(function(){
if(this.value != null)
route_days_hook.push(this.value);
});
dataTrap.route_days = $.JSON.encode(route_days_hook);
}
...and pu...
TLDR:
Started with this question simplified it after got some of it working and continuing it here.
I need to 'GET' the JSON array
Format it correctly and for each within the array place it in the corresponding DIV.
??
It works.
This is a followup from this question to simplify and continue.
I need to some complicated JSON data f...
I get an empty response back from this local WebService call via jquery / ajax.
I have verified the URL and XML input string by invoking the call in a browser.
I DO get XML code back as expected.
What am I missing? Could it have something to do with the return type "XmlDocument"?
I have tried changing out text/xml to text. No affec...
Hello,
I am a newbie in WATIR. The problem I am facing is -
The application I am testing has thumbnails (like Windows icons) placed on the page and I need to double click it. On doing that, an custom popup (ajax popup implemented in javascript) will open. The fire_event("ondblclick") is not working for me. I also tried 'click' twice bu...
Hi all,
I'm building a quiz and user has 5 seconds to respond to the qeustion if he doesn't resond within the time the answer is 3(wich is a code for no answer). Timer updates just fine until you answer a qeustion from that point the timer runs out of control you see 5,3,4,0 and go to the next qeustion with the answer 3 does anyone know...
I need to develop a tree to display the hierarchy of categories on a retail site. For example
-Clothing
- Men
- Trousers
- Shirts
- Women
I'm working on struts and using the struts dojo plugin to use this tag :
<sx:tree id="root" label="Category">
For the other child nodes, the data is stored in a database. If I use
...
Hi everybody,
I have a display problem when I try to use a ajax combobox inside a tab control:
when my tab control loads on the page where the combobox is, everything works fine; however, if it loads on a another page, the you change to the page which contains the combobox, the right button (which opens the list of the combobox) isn't d...
I have a HTML-page, that's encoded in ISO-8859-1 and a Prototype-AJAX call that's build like this:
new Ajax.Request('api.jsp', {
method: 'get',
parameters: {...},
onSuccess: function(transport) {
var ajaxResponse = transport.responseJSON;
alert(ajaxResponse.msg);
}
});
The api.jsp returns its data in IS...