• Events not fire after loading usercontrols dynamically in asp.net with c#

    I am loading UserControl Dynamically in aspx page by using jquery.But I am facing problem while firing a click event of button (as well as dropdownlist) within the UserControl. It does not get fire. I want to write insert/upadate code, in ascx.cs file (on button click event). Please find below herewith my aspx, aspx.cs, ascx and ascx.cs file code. -- Default.aspx -- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD
  • I got a question with Jquery .load() function

    I have a index.jsp and in this jsp i have a function for example:  $("#test").load('loadtag.jsp?tags='+tagarray); what i want to do is that: in the loadtags.jsp page, i would like to do something and then refresh the loadtags page only what can i do?
  • Having an issue with getting the current page name on PAGESHOW event

    . . . $('div').live('pageshow', function( e,ui ) {       alert( "prev page=" + ui.prevPage ); }); . . . When this alert is run, all I get is "[object Object]" displayed. I though it was suppose to be the actual page name, not an object  This is what the sample code on page http://jquerymobile.com/demos/1.0a3/#docs/api/events.html has $('div').live('pageshow',function(event, ui){ alert('This page was just hidden: '+ ui.prevPage); }); I'm using jQuery 1.5 and 1.0a3 of mobile, I actually would like
  • Dynamically updating accordion content

    I am developing a web-based application using jQuery for much of my interface. I just started using jQuery this week. I am using an accordion widget to power my sidebar. The content of the sidebar is dependent on the permissions given to the particular user. The authentication is handled via AJAX and then the sidebar content is generated dynamically by loading in html generated by a php file. The problem is that while this works when the sidebar is generated on load, it doesn't apply all the styling
  • a little JSON content validation in globalEval

    The SHOUTcast 2.0 API has an issue where sometimes requests for JSON come back as XML. By adding a couple lines of code to jQuery 1.5.1 I was able to properly deal with this by throwing an error instead of having a runtime error. I thought this may be useful for someone experiencing similar weirdness. Line 54 in jquery-1.5.1.js: // JSON RegExp rvalidfirstchar = /^(\[|{)+/, ... Around line 588 in jquery-1.5.1.js: // Evaluates a script in a global context globalEval: function( data ) {   if ( data
  • Button Set Centered in Header Element?

    Hi, I want to create a centered button set (with controlgroup) in the center of a header. Is there anyway to do this? There appears to be controls for placing buttons on the left or right side but none to center them. Thanks, Steve
  • jQuery DOM issue - very frustrated!

    Hi there Sometimes when I attempt to click on a link to a page all that the page returns is a JSON string and not the HTML of the page itself (In IE, FF and Chrome). the apache logs show a normal "200" page response. Why would a page just display the JSON string and not the entire page (with the JSON information placed in the DOM.. using.html..?) I would really appreciate some advice, as Firebug shows no issues as far as I can see, but the browser just displays the pure JSON string! Thanks!  
  • Linking to sections inside tabs

    Hey guys, I am not sure if this is possible at the moment, and the testing ive done seems to offer odd results. I have on one page a section of 4 tabs, inside these tabs are several sections of text that i have each given a unique anchor name. What i am trying to do is link from another page to say the 4th block of content in tab 3... the tabs are all working great, and if i link to content sections on the first tab it works great.. its when i want to link to the tabs that arent the first that it 
  • line break in message?

    Is it possible to have line break in messages? If it is not supported, isn't it nice to add it in case some users need more customized messages.
  • AJAX Form Field Values Not Updating

    I'm trying to make a simple AJAX HTML form. Here is an HTML snippet: <form> <fieldset>     <legend>Character Groups</legend>     <ul>         <li>             <label for="lowerLetters">Lower Case Letters</label>             <input name="lowerLetters" type="checkbox" checked="checked" required="required" value="on" />         </li>         <li>             <label for="upperLetters">Upper Case Letters</label>             <input name="upperLetters" type="checkbox" checked="checked" required="required"
  • How do you centre the tabs?

    http://jqueryui.com/demos/tabs/default.html I would like to be able to centre the tabs within it so they are not aligned to the left. Any help is much appreciated Thanks, Simon
  • How to correctly implement a jquery call to datepicker in php

    I setup the links:  public function headers()  {   return '<script type="text/javascript" charset="utf-8" src="/dka/swfobject/swfobject.js"></script>                   <script type="text/javascript" charset="utf-8" src="/dka/jquery.ui/jquery-1.4.4.js</script>                   <script type="text/javascript" charset="utf-8" src="/dka/jquery.ui/jquery.ui.core.js</script>                   <script type="text/javascript" charset="utf-8" src="/dka/jquery.ui/jquery.ui.widget.js</script>                  
  • Mobile browser idle will lose variable values

    Here's my problem. For desktop, I never had to worry about the javascrip variables losing their values because as long as the page is up and the browser is open, the values are there. But for mobile browsers, after idling for a few minutes, depending on the device, the javascript variable values are all gone, thus leaving my app in a strange state. I can detect if the variable values are gone by setting a test variable value to a known value and then check it to see if the value is still there. But I
  • ajax/php

    this example http://www.bitrepository.com/a-simple-ajax-contact-form-with-php-validation.html is not working in my local php environment.. I don't see 'success' msg...  I don't have php env online, so can't post a functioning example.. http://mayacove.com/ajax_jq/index.html php files: http://mayacove.com/ajax_jq/contact_php.txt http://mayacove.com/ajax_jq/functions.php http://mayacove.com/ajax_jq/config_php.txt it does connect to contact.php, b/c at bottom of contact.php I put "this is contact.php"
  • Trouble with error placement jquery validate

    I have several different fieldsets in a long form each one structured slightly differently. I have one that I can't get the error message to show up HTML: <form>     <fieldset id="Initial>          <div class="section">              <h3>Do you wish to add <span>Market Depth,</span> the ability to view <span>Nasdaq Level II data</span> and <span>futures market depth?</span></h3>                     <span class="row"><label><input type="checkbox" name="MKDPT" id="MKDPT">Add Market Depth</label></span>
  • Help me understand the HTML for mobile devices idea...

    Hello,   Let's see if somebody can help me understand the HTML for mobile devices idea.   If for example, I have a "normal" web page, working with HTML + AJAX, that renders well on desktop browsers, do I need to write a specific mobile version of the website? This is what is JqueryMobile for? If I am right at the first point, how do I send the user to one or other version of the website? If I'm not right... what is it jquerymobile for, and how should I implement a version of my website that renders
  • Current Location Google Maps / jQuery Mobile

    Hey, I'm trying to get my current location to register with jquery mobile.  However, after many attempts I'm coming up with a blank screen.  Can anyone point the direction?  (This is the initial events of a rather large project, so baby steps....) Click here or, my code: <!DOCTYPE html> z<html xmlns="http://www.w3.org/1999/xhtml">     <head>         <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css"
  • tablesorter + filter

    It doesn't work for lastest stable jQuery, there is a error on cache. http://www.tablesorter.com/ Plugin: https://github.com/jbritten/jquery-tablesorter-filter Does any one knows how to fix it? I really need it. Its very urgent, please.
  • How do i minimize closure while using jQuery.bind?

    Can someone tell me what the best practices with jQuery to minimize the effects of closures while doing event binding inside a self executing private function. I've been playing around and haven't found a satisfactory solution. Here is the sample code list below: The gist is i have a self executing function in private scope and in it i declare vars. eventually i may have another function scope and inside that i start doing bindings on DOM elements. There is a good chance when I do these bindings
  • (Cycle plugin) Text is not aligned correctedly when loading page for the first time

    I am using IE 8. If you go to http://site2.ewart.library.ubc.ca/, you will find the text below the (carousel) image is aligned to the right, while it is supposed to aligned to the center. However, if you click the left & right button to navigate the carousel, the text will be aligned to the center. I guess it might be some jquery (and its cycle plug-in) issue. But I am not sure. Also, the left & right buttons are not aligned corrected. It should be on the right of the dots. It works in FF but not
  • Looking for a way to protect/validate forms w/ about 200 textarea input fields and more

    Hi, I hope someone can shed some light on a custom program I created where a user enters their data into several forms w/ many many text area input fields, and when they click submit, it simply saves their work to a database. I am new to this and have gotten everything to work. Now I just have to protect it from malicious activities. I think I need to do two things from what I'm learning: 1. On all inputs I am using conditional_escape so that when user types in quotes, etc, it'll escape them so 
  • Problem to Transfer or redirect to other form in a page that used AjaxForm

    Hi all, I am using the jQuery AjaxForm plugin to create a preview of an an image the user select to upload to the server. I use an Http Handler to create an temp image file that is used for the image preview. In response to client side 'onchange' event of the FileUpload control the image preview is created successfully. I have a button that sends the whole form (UploadImageToServerStep1.aspx) to the server. In the server side Click event of that button I try to transfer the control to another page
  • data link and ajax

    Trying to use an object that is linked with the new data link plugin as the data for an ajax call fails without first unlinking the object. Doesn't work: var obj = {}; $('#main_form').link(obj); $.post('ajax_repeat.php', obj);The above will output an error: 'ev is undefined' for line 90: var target = ev.target, Works: var obj = {}; $('#main_form').link(obj); $('#main_form').unlink(obj); $.post('ajax_repeat.php', obj); $('#main_form').link(obj);
  • Licensing jquery form plugin, and others

    What the correct way to include jquery.js and jquery-form plugins into a LGPL project war file. Do I need to give credit on the actual html page by using it (linking to the creator) or is it enough that the actual js files have the original licensing info. Do I need to include any license.txt along with the project? In addition, the original jquery I can get linked from Google. But how about jQuery form plugin. Can I link directly to the js file in git hub or is that inappropriate? Thanks, Fred
  • validation plugin, validating by parts

    I'm using the validation plugin from this website: http://bassistance.de/jquery-plugins/jquery-plugin-validation/   The validation works good, but i have some trouble when i want to partially check for validations. I have the following markup:   <form id="myform">  <fieldset>   <legend>Page 1</legend>   Name: <input name="name" class="required" />  </fieldset>  <button id="page1"> GO TO NEXT PAGE </button>    <fieldset>   <legend>Page 2</legend>   Something else: <input name="something_else" class="required"
  • Tabs links inside tab to other tabs work but active class not visible & external link not working

    1)  I'm having issues with jquery and the tabs I'm using. My tabs work but... I want some more functions and that seems to be a big problem for a Javascript and jquery newby.  My HTML:  <ul class="tabs"> <li>Tab1</li> <li>Tab2</li> <li>Tab3</li> <li>Tab4</li> <li>Tab5</li> <ul> <div class="tab_container>  <div id="first" class="tab_content">...</div>  <div id="second" class="tab_content">...</div>  <div id="third" class="tab_content">...</div>  <div id="fourth" class="tab_content">...</div>  <div
  • Change galleriffic delay time dynamically?

    Does anyone know how to change the Galleriffic delay time dynamically?   I know the time can be set on initialization, but I would like to use a javascript slider on the page to allow the visitor to change the speed of the slideshow.   I am using scriptaculous.js and prototype.js for the slider control, something like this: <script type="text/javascript">   (function() {     var zoom_slider = $('zoom_slider');    new Control.Slider(zoom_slider.down('.handle'), zoom_slider, {       range: $R(2, 10),
  • Attach the <script> tag to the head

    Hi fellas! I have a problem with adding some script files to my page. I update all the content on the page via ajax, so if on a new page I have some new js/css - files I haven't on previous, I need to attach 'em. In success method: // Attach the css files if ( css.length > 0 ) {     for ( var i in css ) {         if ( $('link[href="' + css[i] + '"]').length == 0 ) {             $('<link />', {                 href : css[i],                 media : 'all',                 rel : 'stylesheet'       
  • here is the IE 8.0 error: HTML Parsing Error

    hi have this error in IE 8.0  it is due to the jquery files which i currently used. when ever i include them the IE 8.0 gives that issue. the files which i m using are as following,     <script src="js/jquery-ui-1.8.9.custom/development-bundle/jquery-1.4.4.js"></script>     <script src="js/jquery-ui-1.8.9.custom/development-bundle/external/jquery.bgiframe-2.1.2.js"></script>     <script src="js/jquery-ui-1.8.9.custom/development-bundle/ui/jquery.ui.core.js"></script>     <script src="js/jquery-ui-1.8.9.custom/development-bundle/ui/jquery.ui.widget.js"></script>
  • [jQuery validate] Issue with wrong widgets being validated

    Hi, I have the following structure using jQuery validate from bassistance.de: html: <form> <input type="text" name="object[attr][fname][value]" id="object[attr][fname][value]" size="25" class="fx-widget fx-validate" data-validation='[{"MESSAGE":"Required Field","TYPE":"required"},{"MESSAGE":"Minimaal 2 karakters vereist","TYPE":"minlength","LENGTH":"2"}]' /> <select name="object[attr][language][value]" id="[comboboxwidget_language][value]" size="1" class="fx-widget" data-validation='[]' > <option
  • livequery still needed?

    Hi, I'm using livequery on my pages...  I just read the documentation for http://api.jquery.com/live again, and can not remember why I required livequery plugin in the past... Is there any difference between the two of them?  I though there were limitations to live() earlier, but I don't see it anymore.  I'm sure there was a reason why we moved to livequery in the past, but perhaps we need to revise that decision. Can someone enlighten me perhaps? --- http://www.flexin.be
  • nth-child problem with generated table

    I'm creating the header and first line of a table and use jQuery to duplicate the first line. I'm then having trouble accessing a particular columns input field. I've created a small demonstration and it seems to work in Firefox 3.6 and IE8 but doesn't work in Safari 5 or Chrome 9. It should put an 'A' in the field 3 input box. Any work arounds?
  • Sorting by size and name

    Hi, well i wanted a little help i have a script which sorts things alphabetically as starting from A to Z, well that's awesome but it does another thing that is it also sorts things according to size, so i have issue with the size thing as it bring those first which has small size and puts the heaviest at the end as 100kb is placed first and 1200kb is placed later, i want size sorting to bring heavy size first and low size at the end, i mean to say i want it to be opposite of what it is doing, well
  • UI Tabs... weird behaviour after upgrade from 1.7.3 to 1.8.10

    Hi everyone I've just upgraded a project from jQuery UI 1.7.3 to 1.8.10 Everything seemed to work perfectly apart from a slight change in behaviour when using UI tabs with content loaded through AJAX. When selecting a different tab for the first time since page load, the user viewport gets scrolled up to just underneath the tab bar. When selecting a different tab that has already been loaded once, the viewport stays where it is. Here's a test site which should demonstrate what I mean... http://thenetzone.co.uk/fail/tabs_fail.php
  • Has anyone used jQuery Mobile in a production setting yet?

    In particular, e-commerce or other sales driven channels? Thanks! Chris
  • html() and IE

    simple code page with div content, there some things and i do :  alert( $("#content").html() ); gives me really nasty code in IE it adds some of default values, changes code to uppercase as for really old html opera and firefox works fine is there a way to avoid custom code added by IE? using ie8
  • draggable: lock/snap object to circle

    I'd like to have users drag and drop objects around circular paths, almost like hands on a clock or a radial dial. Is there any way to rig this up with draggable constraints or snapping? Thanks! Drew
  • how to target (and change) an element that contains specific html.

    Hi,   I have a html page that contains a number of <H2> tags.  I need to find this specific <H2> tag:   <h2>Submit Your Survey</h2>   ...and then replace the text 'Submit Your Survey' with something else (such as 'Click the button below').   How could I do this?   Thanks in advance for your suggestions!
  • Multiple accordions in the same page ?

    Hello everybody, First excuse my poor english but I'm a french girl :) I have succeed in using JQuery tabs + accordion in my page, it works perfectly. However, I need to use several accordions in the same page, so when I try this, the second accordion doesn't work : <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>jQuery UI Example Page</title> <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet"
  • iFrame ScrollBar Exists

    Please can someone help me with detection if iframe has vertical ScrollBar visible (exists). iFrame settings are: <iframe height="800" frameborder="0" width="690" scrolling="auto" hideadminborder="False" src="www.crossdomain-site.com" id="dnn_ctr869_IFrame_htmIFrame"></iframe> i have try  alert( $("#dnn_ctr869_IFrame_htmIFrame").css('overflow-y') ) but i get: auto even if vertical scrollbar is visible or not. Please if someone can contact me with pvt mail for sharing link problem ...
  • Next Page

  • Announcements

  • The Basics of jQuery AJAX

    A step-by-step tutorial for those new to jQuery and wanting to use AJAX in their projects. Includes valuable information about troubleshooting using the console and understanding the request / response. http://jayblanchard.net/basics_of_jquery_ajax.html
  • jQuery Conference 2010: Boston Announcement

      The jQuery Project is very excited to announce the jQuery Conference 2010: Boston on October 16-17, 2010.  The conference will be held at the Hilton Boston Logan in Boston, Massachusetts.  The best part of this announcement is that Tickets are on sale now!  This venue is the largest that the project has worked with to date (Harvard Law School in ‘07, the MIT Stata Center in ‘08 and Microsoft New England Research Center in ‘09) and we expect to sell out very quickly. A brief synopsis of some of