I am using :
function AuthenticateUser(alias, password) {
//$(document).unbind('keypress');
$("#Login").unbind("click");
$.getJSON(RPC_URL + "?c=User&password=" + urlencode(password) + "&alias=" + alias + "&m=login&jsoncallback=?", function(data){
CheckAuthentication(data,alias,password);
});...
I've searched the questions on here, but I don't have a good understanding of how to use the error handling in jQuery's AJAX (im a noob, so it just really doesn't make sense.)
Can anybody describe this to a beginner? I'm currently posting information to a PHP script via AJAX, but want to allow jQuery to recognize if the returned data fr...
I have a form within a draggable() div. The form simply looks like this:
<form id="add_interface" name="add_interface">
USB Type:
<select name="type-id">
<option value="68">Micro-A</option>
</select>
Use:
<select name="use-id">
...
I have multiple text files, which are simple reports, that must be reviewed and validated by users. I would like to pull the report into an html div element then add form fields at absolutely positioned locations.
For example, the report may have monthly sales by sales rep:
Jan Feb Mar
13 9 11
I want the user to see t...
What is the difference between class and id in jQuery? For example:
<span class="lalal"></span>
and
<span id="lalal"></span>
Because one works good with jQuery and another not really.
Thanks.
...
I have some Ajax that runs on a button click. Sometimes it takes a few seconds to return, so I wanted a visual clue to the user that the browser was doing something.
So, I have this:
$('#SubmitButton').attr("value", "Working...");
$('#SubmitButton').attr("disabled", true);
//Synchronous Ajax call goes here
$('#Submit...
Hi,
Im trying to make a function return a string from a ajax call.
This is my code:
function GetText(getThis) {
var current = GetMarketAndLang();
var dataToReturn = "Error";
$.get('inc/ajaxGetText.php', {lang : current.lang, market : current.market, name : getThis},
function(data){
dataToRetu...
Hi
I am using Dday calendar library and I want to export the users calendars. So I use the Dday to take all the users records and make it into ical format(.ics).
Now I want to take this and send it back to the user. However I really don't want to first generate a file on the server then send it to them. If I can I rather do it in in m...
Here is my problem:
I need to "enable" a button if the text is at least 5 characters long, and "disable" the button if it's less than 5 characters.
If the text is 5 chracters long, I also add an $.click funtion to trigger a "whatever" function.
Now, I also need to "disable" this click funtion if it's less than 5 characters long.
But e...
Currently I am using jQuery to hide/show select options using following code.
$("#custcol7 option[value=" + sizeValue + "]").hide();
This works fine in Firefox, but doesnt do any good in other browsers. How to I hide options from select in Chrome, Opera and IE?
...
I have a select field that is dynamically populated with an ajax call that simply returns all the HTML select options. Here is the part of the PHP that just echo's the select tags and dynamically fills out each option/value.
echo "<select name='player1' class='affector'>";
echo "<option value='' selected>--".sizeof($start)." PLAYERS LO...
How do I post a form using jQuery.post() to a Coldfusion.cfc method and return json data? Is there a certain way I need to format the url or form values in order to specify the cfc method to invoke remotely? How do I tell Coldfusion to return json data?
I've searched the existing jQuery/Coldfusion.cfc questions and I'm looking for some ...
I'm having trouble calculating a time (hours:minutes) difference between three time values presented as HH:mm strings.
I'm calculating time worked in a day from time in, lunch time and time out.
e.g.
var time_worked = time_out - lunch - time_in
or 07:00 = 17:00 - 01:00 - 09:00
I'm familiar with the php dates but the javascript date o...
I am using this script from snipplr, How would I set it so the container div is 100px less than the newWindowHeight height, like -100 or something.
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
//If the User resizes the window, adjust the #container height
$(window).bind("resize", resizeWindow);
function...
I know I have a similar post, but it only answered part of my problem.
Her is my challenge to you: Can you make the alert display the correct number of characters?
Even when you press backspace?
Here is the code:
jQuery('#input_Name').keydown(function(e) {
var count = $(this).val().length;
alert(count+1);
});
Hint: The ascii key...
Hi
I have this
MemoryStream export = new MemoryStream();
iCalendarSerializer serializer = new iCalendarSerializer(iCal);
serializer.Serialize(export,System.Text.Encoding.UTF8);
return export;
so I am using the C# DDay.iCal library for exporting my calendars. Serialize takes in a "stream" so I passed it a memory strea...
I am trying to post an ajax call as if it were the following form element:
<input type="text" name="data[BlogPost][title]" />
But I'm not having any luck here is my source:
$.ajax({
url: "/add/",
type: "POST",
data: ( /* what do I do here */),
success: function(msg){
alert(msg);
...
I am using jQuery to have a promotional window opening up -say- 5 seconds after a page is loaded. But the effect is lost for people who open the page in a new window or a new tab. When they get to my tab the window will already be open.
Is there a way to get this to fire when people actually start viewing my site?
I was thinking about ...
Let me give a better description of exactly what I'm wanting to do here. I'm using Wikispaces, and by default, when a user adds a new page link to the side navigation bar, wikispaces inserts either one of two classes: wiki_link or wiki_link_new. Here's what it looks like...
<a href="/Map+Page" class="wiki_link">Map Page</a><br/>
<a hr...
In Wikispaces, when you add a Table of Contents to the Main Content area, any heading (h1-h6) you use within that main content area is automatically placed within the table of contents, and serves as an anchor link that when clicked on, takes you down the page to the heading referenced from the table of contents.
By default, wikispaces ...