I'm trying to create a simple login window with the very common 'Remember me' functionality. The login validation is done AJAX style, thus the browser won't remember my input.
My approach is to use the built-in state functionality, but how to use it confuses me.
Ext.state.Manager.setProvider(new Ext.state.CookieProvider({
expires: ...
Hi all!
I want to change next example:
http://livedemo.exadel.com/richfaces-demo/richfaces/calendar.jsf?tab=organizer&cid=1157294
to have ability to set up weekends and hollydays.
And I have q few questions:
1) why I could use data.shortDescription/data.description in the next code:
<div>
<h:outputT...
<% using (Ajax.BeginForm("EditOrganizationMeta",
new AjaxOptions {
UpdateTargetId = OrganizationMeta.vcr_MetaKey
+ Lang.int_LangId
}))
{ %>
In addition to that call can i make onsuccess call as well with beside it...
I'm using AS3 to base64 encode a JPG and pass it to Javascript. I'm attempting to use AJAX to pass that base64 encoded string to PHP and have PHP decode it. (I know I could send it back to Flash and Flash could decode it and send it to PHP, but I'm trying to eliminate the need for Flash on the decoding end).
It appears that AS3's encode...
can i on the basis of some string returned from the method can I hide and show div` using the ajaxbegin scenario
<% using (Ajax.BeginForm("EditOrganizationMeta", new AjaxOptions { UpdateTargetId = "textEntered" + OrganizationMeta.vcr_MetaKey + Lang.int_LangId }))
{ %>`
...
Is there any good reason why most rails developers use observe_field when they want trigger specific action when text input box is changed, rather then using onkeydown? I would expect, that in most of the cases using observe_field results much more code generated than just using native hook onkeydown.
...
I read the specs on http://api.jquery.com/jQuery.ajax/
and found that depending on the dataType, scripts are automatically evaluated for every response. Is it then possible to force jQuery not to evaluate the script parts of the response?
...
hello...i have a problem with my project..i want to use barcode scanner for input data to textfield (i'm using jquery). this barcode scanner read serial number and model name of each product..but after scan, serial number and model name appear in one textfield. how to make them appear separately into different text field..first textfield...
I'm having problems in Firefox with 302 redirects coming from my Rails app.
Right now I have
$.ajax({
url: '/model/33',
type: 'POST',
data: 'authenticity_token=efjowiejfoiwej&_method=put&model[value]=aaa',
complete: myFunc
});
function myFunc() {
//do what I want
}
This works fine in other browsers, but in Firefo...
the site in question: http://homecapture.ca/testset/index.html
The scenario: I have a tabbed menu generated from an unordered list, when a menu item is clicked it reveals an iframe which links to the page containing an image gallery. I am using jQuery UI tabs for the tabbed menu, and the galleries to which I'm linking are jQuery Galleri...
I'm using jQuery to load the images before displaying them. The problem is that I don't know how many images are going to be loaded. The page loads the image paths from a XML file. I'm using this:
$.ajax({
url: 'images/BYLINE/1.png',
dataType: "image/png",
success: function(data) {
alert('psil');
},
error: fu...
Hi ,
i am working on cakephp.
I have developed an application where i have used localhost in all ajax post and get..
like
var ht = $.ajax({
type: "GET",
url: "http://localhost/FormBuilder/index.php/forms/getInvitees/<?php echo $emailid;?>",
...
Normally when an exception is thrown, Error controller takes command and displays error page with regular common header and footer.
This behavior is not wanted in Ajax request. Because in case of error, whole html page is sent over. And in cases where I'm directly loading the content of http response in a div, this is even more unwanted...
I am using Ajax POST method to send data, but i am not able to send '+'(operator to the server i.e if i want to send 1+ or 20k+ it will only send 1 or 20k..just wipe out '+')
HTML code goes here..
<form method='post' onsubmit='return false;' action='#'>
<input type='input' name='salary' id='salary' />
<input type='submit' onclick='...
View:
function success(arg) {
var obj = arg.get_response().get_object();
if (obj.ErrorMessage === '') {
var answer = document.createElement('div');
answer.appendChild(document.createTextNode(obj.Answer));
document.getElementById('answers').appendChild(answer);
...
Hi there!
When Flex application make an asynchronus HTTP request, does it add a special header to the request, like some JavaScript framework does? Something that indicates whether this request is an AJAX call/not.
I just want my server side code to return different response format, depending on whether the request is made from browser...
Hello,
I have a table in my php code. In the second column of the table, normally it displays "---", and after i click the submit button, it will display the calculating result in the same page.
For example,
<table>
<tr><td>1</td><td>---</td></tr>
<tr><td>2</td><td>---</td></tr>
<tr><td>3</td><td>---</td></tr>
</table>
And in the s...
I'm trying to pass JSON from jQuery to a .ASHX file. Example of the jQuery below:
$.ajax({
type: "POST",
url: "/test.ashx",
data: "{'file':'dave', 'type':'ward'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
});
How do I retrieve the JSON data in my .ASHX file? I have the m...
Hi,
I am currently using JQuery's validation plugin for basic form validation such as required fields.
I want to add functionality so that when the user types in the username field, an ajax call is triggered to check whether the username is already taken. My requirements are:
Preferably integrate with JQuery Validation plugin, rathe...
Hi,
I have an edit form that uses an ajax form to submit to the controller. Depending on the data submitted I redirect the user to one of two pages (by returning a partial view). Both pages rely on javascript/jquery and neither use anything common between the pages.
What is the best way to initialise these javascripts on each page? I k...