I have the following markup inside a master page
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
<link href="../../Content/jquery-ui-1.8.4.custom.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/jquery-1.4.1.min.j...
I'm using jQuery to parse XML which is retrieved via ajax, however I have found a problem/bug with using the actual XML input.
Consider the following example:
var $line = $('<example dir="value">Example Text</example>'), dir = $line.attr("dir");
console.info("dir: ", dir);
This example should return 'value' instead it returns an em...
Hi Guys,
I am trying to use the catcomplete part of the JQuery Autocomplete but it is not working.
I get this error Jquery Object # has no method 'catcomplete'
Here is my code
$('#searchForDelegate').catcomplete({
delay: 0,
source: data
});
I have checked the Jquery and there is no function for catcomplete.
Any ideas ? Jus...
I wrote function onclick of a element
<div class="left_collapsed">Որոնում</div>
<div class="container" style="display: none;">
<ul>
<li>
<a href="" id="search_refresh" >Թարմացնել համակարգը</a>
</li>
</ul>
</div>
</div>
$("#search_refresh").click(f...
Hi. For some reason jQuery's fadeIn is making my page jump to the top. Each different div it fades in makes the scroll bar go a different size so I think this might be why 'return false' isn't working. Here is the code:
jQuery(document).ready(function($) {
//When page loads...
$(".tab_content").hide(); //Hide all content
$("ul.tabs...
Hi, I have used a script I have found. Where it should do some thing when the mouse hovers over the element
$this.hover(
function () {
tip.html("<p>" + tTitle + "</p>");
setTip(tTop, tLeft);
setTimer();
},
function () {
stopTimer($this);
tip.hide();
...
Hi, I have been using the masked input plugin for jQuery for a long time.
http://digitalbush.com/projects/masked-input-plugin/
I never had any issues with the plugin until yesterday I got a support ticket regarding the plugin behaving erratically on the Driod phone.
e.g.
When the user tries to enter the phone number (123)345-9646 in ...
I have some jQuery code that runs fine until I add the jQuery UI library (1.7.2) and this causes the show() method to fail when I specify a callback.
$('#main.home ul#promotions').show(function() {
if (typeof f == "function") f();
});
It would seem that jQuery UI overrides show and now I need to specify an additional parameter for...
To parse JSON, I believe the best method is to use native JSON support in browsers.
I was looking for a good way to parse JSON in cases where native JSON support is not available.
When i looked at the code in http://www.json.org/json2.js, what i understood was it first checks whether the data is valid JSON using the regex:
if (/^[\],:...
I normally use ASP.NET MVC 2, but there were some problems with it, so I began to work with ASP.NET MVC 2 + jQuery and everything works. But there is one problem, jQuery doesn't load my reponse. On the ASP.NET MVC side I'm redering a partial view and I also get the respone on the client, but nothing is rendered. How can I solve this?
He...
how to assign line numbers for a textarea using jquery.the line numbers are suppose to appear on the lefyside of the textarea
<textarea name='comments' id='comments' cols=10 rows=10></textarea>
And the linenumbers and text should be inline with eachother
...
How to append a textbox to a table row with jQuery?
...
Dear all,
I have been asked to look in to a issue that has occured on a website that is using both the Google Website Translator and the JQuery plugin jShowOff, a slideshow type plugin (both great features).
The website is http://www.nic.coop and when you select another language to translate the website in to, it translates everything o...
I have problem with my ASP.NET MVC app when use Mozilla Firefox. I'm use JQuery and this code is not functional. In Google Chrome and IE 8 everything is fine. How solve this. If necessary I will post parts of my JQuerycode
In Site master page I include scripts, something like this:
<script type="text/javascript" src="../../Scripts/jq...
Im using the plugin detailed here:
http://www.thatagency.com/design-studio-blog/2009/01/refreshing-an-element-at-a-set-time-interval-using-jquery-and-a-sprinkle-of-ajax/
Here is my jQuery:
$(document).ready(function(){
var j = jQuery.noConflict();
j(document).ready(function()
{
j(".refreshMe").everyTime(5000,functio...
I have some code that I am using to count characters in an input/textarea and display a countdown on my page. My problem is that I want the ability to define which div I want the counter displayed in.
How can I add a variable to this code in which I can define which div I want the counter to appear in????
Help me geniuses!!!
(function...
Hi! If I subscribe dblclick() and click() for a DIV element and make double click by mouse on the DIV, the click() handler calls first before dblclick() is called. How to avoid handling click() before the dblclick()?
UPDATE:
The question has already asked before Prevent click event from firing when dblclick event fires. But here are goo...
I have a PHP script that I'm calling with the .post() function in jQuery. If everything goes well, it outputs "WIN", otherwise it outputs whatever database errors or whatever else it gets.
$.post("myscript.php", {key: "value"}, function(data) {
if(data=="WIN") {
// the stuff that I want it to do that it won't do
} else {
...
Hi.. I think I know this is an IE bug ...
I need to add new row to an HTML table at the exact position.
(don't want insertRow(index) cuz this looks like gonna be better for some other reasons)
function AddNewItem(td) { ///td comes from button at the HTML code, <input ... onclick="AddNewItem(this.parentNode)"
var grid = GetGrid();
...
Hi friends
when i click the anchor tag that hide the div, i get bump to top of page although the div gets hidden. How do i make browser stay at same place when div gets hidden by clicking that link ? here is the code
< a id="Student" href="#">Click here to hide</a>
$('#Student').click(function(){
$('#divHide').hide('slow');
});
...