Hi, I have the following code.
$(document).ready(function() {
$('#btnOpen').click(function(e) {
$('#content').modal({
onOpen: function(dialog) {
dialog.overlay.fadeIn('slow', function() {
dialog.data.hide();
dialog.container.fadeIn('...
I have an asp page with dropdown box. user selects an item and submits page. how do i show the selected item using jquery.
...
So I am trying to make a tabs in a menu but cant make the whole width of each of the tabs 219px. it only allows me to make the li 219 but I wanna make the li a 219px. I cant seem to figure it out. Also is there a way to make a next button or would the best way to go to each tab and literally put in the next tab in a type of way?
any he...
Hi I have the following codes
$('#<%= btnOpen.ClientID %>').click(function() {
$('#content').modal();
});
<asp:Button ID="btnOpen" runat="server" Text="Open" />
When I click on the button, the modal window will appear for about 0.5 second and disappear right away.Can anyone help me please? Thanks a lot!
...
TLDR IE is still caching my requests even with Math.random() included in the URL.
So I added math random onto the end of my url:
var MYKMLURL = 'http://' + host + 'data/pattern?key='+ Math.random();
I also added math random onto my function param:
window.setTimeout(RefreshPatternData, 1000, MYKMLLAYER);
function Refr...
I been trying to make this work for the last couple of days, I'm a new into web designing so I hope someone can help me out with this. I'm trying to run an animation after dragging the div container depending if the user is dragging up or down. This is the code that Im working on.
this is the code when calling the jquery widget
$ $('#...
example of what I'm trying to do
I'm trying to expand and collapse a <div> by clicking some text inside the <div>. The behavior right now is very odd. For example, if I click the text after the <div> is expanded... the <div> will collapse and then expand again. Also, if I click somewhere inside the div after it is expanded, it will coll...
By default it's like this:
$.fn.ellipsis = function() {
...
return this.each(function(){
//do some operation on each element here to see if it qualifies
}
}
But now I want to return a subset of all, only those qualify in this.each(function() {}),
how to modify the code so that it finally returns only those that qualify?
...
Hi, I'm trying to get work this code:
$("#list").jqGrid({
url: 'employers.php',
datatype: 'json',
mtype: 'POST',
postData: {c : "", n: "", a: "", d: "", t: "", e: "", f: "", g: $('#selectSalary').value(), p: "", call: "report"},
colNames:...
Is it possible to align grid column headers in jqgrid? eg align left right or center?
In the jqrid documents http://www.trirand.com/jqgridwiki/doku.php?id=wiki:colmodel_options it says:
align: Defines the alignment of the cell in the Body layer, not in header cell. Possible values: left, center, right.
Note that it says "not in the ...
Hi there,
I have a cycle plugin set up on a page (images) with a pager to control the horizontal slide. My issue is that there is a transparent overlay that needs to sit over part of the images for some text relating to each image but would rather have that with a different transition effect for this so it doesn't slide in from the left...
I have the following markup which I do not have direct access to...
<a href="javascript:void(0);" onclick="window.open('/BulkDiscounts.asp?ProductID=318&ProductCode=' + escape('LB30X40ES') + '&Orig_Price=22.95', 'Discounts', 'scrollbars,status,resizable,width=330,height=300');"><iimg src="/v/vspfiles/templates/100/images/buttons/btn_qua...
i have this code for get data from textfield:
<script type="text/javascript">
var mod=document.getElementById("mod").value;
ajax(mod);
function callback() {
if(ajaxObj(mod) {
document.getElementById("divResult").innerHTML=ajaxObj.responseText;
});
};
</script>
this code for show r...
$('.tabs a ').click(function () {
var a = $(this).attr('href');
if (a == '#tab-1') {
$('.btn-buy').hide();
$('.btn-sell').show();
} else {
$('.btn-sell').hide();
$('.btn-buy').show();
}
return false;
});
... it works, but the code is ugly, too many lines. Can it be reduced any further...
function send_mail( token, loader ) {
$(".send_mail").bind( "click", function() {
try{
var to = $(this).attr('ref');
var mail_form = $("#mail_form");
mail_form.find("li:eq(0) input").val("sdsds");
//mail_form.find("li:eq(0) input").attr("ref", "sdsds");
//mail_form.find("li:eq(0) input").attr("value", "sdsds");
$.fan...
I want to get the object of this code ,
<input class="radio"
id="conversation_sub_kind_id_208"
name="conversation[sub_kind_id]"
onclick="set_department_name('department_name208')"
type="radio"
value="208" />
I want to use jQuery Framework to get the object, like the document.getElementbyTagName("con...
1.) I have a jQuery dialog that is opened whenever a particular textbox is focused. The dialog's contents are loaded from ajax and the unique ID of the textbox that was focused is passed in the ajax call (like this):
$('[name=start_airport[]],[name=finish_airport[]]').click(function(){
var id = $(this).attr('id');
if($('#use_advanc...
If I navigate here: http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js
I download 70k using Firefox 3.6.3 and I can confirm it is sending Accept-Encoding: gzip.
If I use the Microsoft one: http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js
I download 30k (and it comes through as Content-Encoding: gzip)
I am also exp...
Hi All,
I am new to jquery. I am trying to parse xml string using jquery. I have found one sample:
$(function () {
$.get('data.xml', function (d) {
var data = "";
var startTag = "<table border='1' id='mainTable'><tbody><tr><td style=\"width: 120px\">Name</td><td style=\"width: 120px\">Link</td></tr>";
var en...
I have a series of line graphs in a jqplot chart. What i want to do is turn off highlighting for all the graphs except one graph for which i want the Highlighting to happen. How can i do this.
...