Hi,
I am just trying to cycle the focus between elements inside a particular element when the tab key is pressed. What I want to do is not to set focus to any element which is not a descendant of an element when tab is pressed from the last control inside the element. At that time the focus must be set to the first input element inside ...
hi,
UPDATE: set the mimetype to application/json and it works.
In the website I'm working on (http://piem.org:8000/) I've got an issue with an ajax post request.
Every time the search button is clicked or the google maps 'idle' is triggered I send a request to get some data. While the request works as expected in most cases, it returns...
Hey guys. I'm trying to access the innerHTML of a span tag modified by jQuery using C#. This is my first project shunning the AJAX libs in favor of jQuery, so I'm not sure how I can get the codebehind to recognize the manipulated innerHTML. I've set all the spans I want to tap into with runat="server", but all I pull are the values I've ...
I'm using jQuery autocomplete plugin from jQuery website
calling the controller url which return json in return. The problem is the parameter sent to the controller is always null.
Here is the in-browser jQuery code for the autocomplete:
$(document).ready(function() {
var url = "/Building/GetMatchedCities";
$("#City").autocompl...
I've been building a site in PHP, HTML, CSS, and using a healthy dose of jQuery javascript. The site looks absolutely fine on my Mac browsers, but for some reason, when my client uses PC Safari, she's seeing strange bits of my HTML show up on the page.
Here are some (small) screenshot examples:
Figure 1: This one is just a closing <...
Im trying to add jquery grid to my site. (codeigniter php)
It loads the data just fine but the grid ends up looking awful.. I dont know much about css....
heres an image of what Im getting
...
Hi. I'm a Dojo n00b.
In jQuery, a DOM node or jQuery object can be passed as an attribute in a query, which sets the scope:
var myScope = $('#someDiv');
$('a',myScope).addClass('red');
$('li',myScope).css('display','inline');
Now, in Dojo I can chain several .query()s after each other, but what should I do if I have a certain DOM nod...
I have the following DOM:
<div class="qtip qtip-light qtip-active">
<div class="qtip-wrapper">
<div class="qtip-borderTop"></div>
<div class="qtip-contentWrapper">
<div class="qtip-title">
<div class="qtip-button"></div>
**Text I need to extract**
</div>
<div class="qtip-...
Hi all,
I'm trying to add a class to some input elements depending on the type, so if it's type='text' iI want to add .txt class and if it's typt='button' I want to add .btn class. I tried some stuff but so luck, it adds .text to all of them:
var text_type = $('#right input').attr('type');
if(text_type=='text'){
...
Dear community,
I just want to have my question posted here but just from the beginning:
For a personal web project I use PHP + JQuery.
Now I got stuck when I try to use the ajax posting method to send data to another php-page. I planned to have some navigational elements like next + previous on the bottom of the page by saving the us...
I know how I would achieve this using PHP, but with jQuery / JavaScript I'm not sure how to, here's the string I'm dealing with (It's the name attribute from a input element):
Field[0][some_random_text]
I want to retrieve the value some_random_text and slap it in a variable, I guess I would usually use regex to accomplish this task bu...
Hello,
My Html is like this:
<div style="height: 90px;" class="tabtextarea">
<div>Description:</div>
<textarea style="height: 85px;">TEXT...</textarea>
</div>
As you can see textarea is contained within a div with specific height so that it doesnt break layout on some browsers due to float styling and etc I ...
I've uploaded a test file here:
http://dl.dropbox.com/u/2201804/IE8test.html
If you click on the "Click me" divs, you'll see the "Feedback" divs appear using slideDown(). Clicking a "Click me" in another box slides the currently showing feedback up and slides down the appropriate feedback.
In IE8, after the slideUp()/slideDown() actio...
Hello,
I'm using jQuery Datepicker but I'm having trouble when editing records.
// js code
$(function(){
$(".datepicker").datepicker().datepicker('option', 'dateFormat', 'yy-mm-dd').datepicker('option', 'changeMonth', 'true').datepicker('option', 'changeYear', 'true');
})
// the input
<input type="text" name="valid_from" value="20...
Using a jQuery UI accordion menu (navigation: true) with named anchor targets for the menu items, i.e. menu items refer to named anchors on the current page.
Accordion works fine with highlighting a clicked menu item if navigating to a different page, but if the menu item refers to a named anchor on the current page it does not change t...
I have a simple nav made up of the following HTML;
<div class="inner">
<div class="button"><img class="portal" src="images/portalbutton.png" /></div>
<a href="#"><div class="prod_description"> </div></a>
</div>
There are a number of items (All set to float left along side each other) to make up a nav bar.
When I hover over .butt...
I basically have a booking engine unit results page which must show 40 units and per each unit there's 1 large image of the first thumbnail and an X number of accompanying thumbnail images.
I've been using the jquery lazy load plugin, but it's not thorough enough ( I'm invoking it on DOM Ready ), plus it doesn't really work in IE ( 50% ...
I use some jquery to centre images on my website:
fixImg = function(){
w = $(this).width();
if (w > 500)
$(this).css('margin', '10px ' + (parseInt((800-w)/2)-30) +'px');
};
$(function() {
$('#pagecontent img').each(fixImg).load(fixImg);
});
The problem is they only get centered after the entire page has loaded. I...
$('a#next').click(function() {
var tags = $('input[name=tags]');
if(tags.val()==''){
tags.addClass('hightlight');
return false;
}else{
tags.removeClass('hightlight');
$('#formcont').fadeIn('slow');
$('#next').hide('slow');
return false;
}
});
I would like the above code to fire the fadeI...
I have a search form that is an Ajax form. Within the form is a DropDownList that, when changed, should refresh a PartialView within the Ajax form (via a GET request). However, I'm not sure what to do in order to refresh the PartialView after I get back my results via the GET request.
Search.aspx
<%@ Page Title="" Language="VB" MasterP...