Hello,
I'm having an annoying issue, on complete i get undefined when trying to make simple url validation. success working fine.
i get a valid json response:
{"error":"some error"}
and this is my jQuery
$("#myform").submit(function(){
dataString = $("#myform").serialize();
$.ajax({
type: ...
Hi,
I am using facebook's graph api to retrieve user's information. First I retrieved the access_token.
Then, I tried using jquery.getJSON() method to retrieve user's id and name.
<div id="result"></div>
<script>$.getJSON("https://graph.facebook.com/me/?access_token=111978178853984|2.lg65A3c0atficNsFcf7Rog__.3600.1279922400-100001XX...
this is a nutts job here. Not sure if jquery can handle this. I have a php page called page1.php where I have drop down like this
<select id="startRecord" >
<option value="0"></option>
</select>
Now I caclulate some values here and then send the values to page2.php. Now on page2.php I do some more caclulations and rum a query. If...
I'm just starting to learn about jQuery and am becoming familiar with how jQuery allows me to use selectors to search for particular IDs and classes. But is it also possible to identify strings of plain old text inside a paragraph?
For example, say I wanted to find "gasoline" within these paragraph tags and convert it into a link:
<p>H...
hi friends...
i'm a graphic designer (: therefore, i will ask questions may seem funny to you..
i want to do something but i've never been able to make a kind..
my english is not good for i want to do with pictures will tell :/
i hope you can tell (:
i use them all the code;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...
I'm developing a web site, which would make use of PHP, Javascript (JQuery) and use AJAX to connect the two. My question is, how should the coding process go.
I know that Javascript is supposed to be used as an extra kick, and should not be relied upon because it can be turned off. So, should I code the entire site in PHP, and then afte...
Here is my code
<div id="AuthenticateUser" runat="server" style="display:block" >
//login control
<asp:button id="ValidateUser" ... />
</div>
<div id="ForceToChangePassword" runat="server" style="display:none" >
//reset password control
</div>
On click of "ValidateUser" button, I do check whether user is valid or not. Based ...
I have a series of DIVs on a page which each contain a nested DIV which I need to be able to toggle on and off when the user clicks on a link contained in a UL. Here's some sample code:
I need to be able to add an <li> </li> to each UL within a certain div on my page. Here is the code I have:
<div class="gallery" style="width: 67px;">
...
I have an unordered list, each list item has an id (id="6~OriginalName") - when I do a toArray on this list, I get a nice array and each item looks like "6~OriginalName" that I can parse later on.
$("#roleList").sortable('toArray')
The problem is that now I've embedded a TextBox in each list, which its value that of the OriginalName, ...
I'm new to jQuery and I'm trying to code a page in jQuery that allows the user to see a loading spinner while the larger version of the thumbnail they just clicked loads above, and then have it disappear after the image is done loading.
...
Hi there,
I've been coding a site using JQuery to load different .html files into a content div on the page. Of course this means that the back and forward buttons don't do much to navigate within the site. I've done some research, and found a bunch of options like history, and even found this Stack Overflow question regarding my issue....
When an ASPX page needs to make a call to a potentially long-running operation (lengthy DB query, call to a remote webservice, etc.), I use RegisterAsyncTask, so the IIS worker thread is returned to the pool, rather than being tied up for the duration of the long-running operation.
However ASMX webservices don't have a RegisterAsyncTask...
Hello,
I just download FullCalendar today and I've been trying to combine the JOSN calendar with the gcal. In addition to my JSON data i would like to show national holidays too, Can someone please tell me if this is possible or not.
I've tried this and it's not working. thank you!
$(document).ready(function() {
var date = new Da...
I created an date array using this:
var holidays = ["7/24/2010","7/25/2010"];
var holidaysArray = jQuery.makeArray(holidays);
and then testing to see if myDate (a date object) exists in the array:
if ($.inArray(myDate, holidaysArray ) == -1) {....}
However the test always return -1 even though myDate is one of the two days. I wa...
I have a stepped form that has validations on each step. So to submit the full form I created 2 methods to search through each step form grabbing all the elements to fill a hidden form on the page and submit that. What I have works well for everything but check boxes. It grabs the checkbox, adding it to the final form, regardless of w...
Hi All,
Thanks for reading.
I have a form with a few elements in it. Inside the form is a div (.graph). When the form is submitted, the div is .load()ed with the result, which includes some additional form elements, such as a page selector. The form is then submitted repeatedly with part of it updated each time via the .load().
It'...
I have an asp.net page that is using and update panel and am including some javascript via a {script src=abc.js} tag. I have tried loading my javascript using both $(document).ready and $(window).load. Both fire on the initial load but fail to fire on an update panel postback.
Is there anything I can wire up client side that would fire...
Hi,
I'm trying to pass JSON array values into my javascript file and use the values as selectors to call methods on corresponding html divs.
for example:
function clickEvents(items) {
for (var r = 0; r < items.length; r++) {
var omega = items[r].id +;
$(omega).click(function() {
alert('Thanks for adding item numb...
Using the BlockUI JQuery plugin I find strange behaviour from within an ASP.Net page.
I've implemented one of the BlockUI plugin demos (you can try out the original here - http://malsup.com/jquery/block/#dialog ) within an ASP.Net page.
When I serve this page from Visual Studio (MVWD 2010 Express) the 'Would you like to continue' dialo...
I am generating a dropdown on a completely separate page by jquery append function. I was getting duplicate rows of data if I just use append
if(params.totalRecords > 50){
var i, j;
j = 0;
for(i=0; i < params.totalRecords; i++){
if(i%50==0){
$('#startRecord').append(
$('<opt...