Probably a simple solution but I'm stuck and it's late... :)
$j('#thisImage').html('<img src="image.jpg" id="box" />');
var imgWidth = $j('#box').width();
When I do a console.log(imgWidth) it's returning 0...
I'm pretty sure that it's because the .html(...) is not fully finished before the width(...) call is fired. I've tested it out...
hi,
i have an check boxlist with (6 items under it). and i have an search button. if user clicks Search button it gets all the result.
i am binding the items for checkboxlist using database in .cs file
condition1:
but now if user selects a checkbox[item1] its gets selected
and he tries to select an 2 checkbox[item2] ...
I am using modal dialog box from jQuery UI. I want to make a ajax call to display the content in my dialog box.
$(function(){
$('#myLink').live("click", function(){
$('#lbContent').dialog('open');
var url= $(this).attr("href");
$('div#lbContent').empty();
$('div#lbContent').load(url);
return f...
I have a form with dynamically created form elements.
I need to get the value of each element, and send an ajax request to make sure the data is ok (the easy part). I can get each elements value easy enough, but the problem comes in with radio buttons. For example:
<input type = 'radio' class = 'form_element' value = '1'>
<input type =...
I want to make the last/third div to be filled the whole remaining space. I given the 100% height but there is scroll bar is coming, which i dont want to show. I there any CSS solution for same. if not possible from css then the jQuery/JS solution will be fine.
<html style="height:100%">
<head>
<style type="css">
html , body {
...
I have register a trigger on window resize. I want to know how can I trig the event to be called. for example , When hide a div, I want my trigger function can be called.
I found window.resizeTo() can trig the function, but is there any other solution?
...
Hi, I´m working in a jQuery pluging, and i have one error, i want modify the option of one instance of the plugin, but when i try it, i change the options for the all instances. Ok, my english is horrible, so is better than i put my code. Is a universal language ...
(function($){
$.fn.interruptor = function(options){
// Variable inic...
I have a page that uses jquery ui's tabs. Each tab content is an iframe with a local page in it. These local pages have been importing their own jquery.js when their parent also have jquery.js imported.
Is there any way i can use the parents jquery inside the iframes, so I dont have to add jquery.js to every single page inside the ifra...
The datepicker in jQueryUI renders with a dynamic position. It renders according to its css if there's enough room for it, but if there isn't enough window space it tries to render on screen. I need it to stay put and render in the same place every time, independent of the screen position or other circumstances. How can this be done with...
Hi guyz,
I'm trying to add next/prev buttons in the default add in form of a jqgrid.
Do you have any idea or example to help me?
I could add my own buttons, but I'd like to call the same function as framework to navigate...
Thanks in advance.
Cyril
...
Hi Guys,
I have below input hidden with value ="/fr/images/findacourse_logo_tcm10-268.gif".
<input type="hidden" id="Qt_Email_Image" value="/fr/images/findacourse_logo_tcm10-268.gif"/>
I have another input image below with src = "/images/quote/Quote_Email_Button.JPG"
<tr>
<td>
</td>
<td colspan="2" class="">
<inpu...
I have had to write some JQuery specifically for IE6, fixes some bugs with compatability between IE6 and IE8. However I only want to apply the IE6 JQUERY to IE6 and not have it load with IE8.
Can anyone suggest a way of detecting IE6 and running the IE6 Specific JQUERY?
...
I'm using an ajax function that builds fill the innerHTML of a span and then build the jquery function. The first time I call the jquery function it works fine, yet if I called the ajax function again the jquery click function is being called twice, and if i call it once more the jquery get called 3 times and so on. This the jquery metho...
I'm working to replicate the iPhone unlock screen using jQuery. I'm having trouble implementing auto-tab and a delete button for the passcode unlock page.
Not Solved
Also, how can I implement a delete button which auto-tabs backwards while clearing input fields?
$("#keypad li a.delete").click(function() {
$("input.focus").val("")....
I have a partial view which renders a table.
On page load, I am using JQuery to perform Zebra Stripping on it.
Whenever ajax refreshes the table, DOM elements are updated, but since JQuery code to do the Zebra Stripping is not executed; table looks ugly.
I have tried adding Javascript in my partial view
if( Request.IsAjaxRequ...
Hi all
I'm having a problem with a series of social buttons, and their rollover event.
I have 6 images, with class 'social32' which I'd like to change from their 'off' status to their coloured one. All files are named like 'facebook_32.png' & 'facebook_32_off.png'
$(".social32").each(function(){
var t=$(this);
var src1= $(this)...
Hi,
I'm currently attempting to retrieve a list of objects from my database using jQuery. I have been attempting to use getJSON but the callback is never fired. However, if I use
$.post(url, data, callback)
... then it seems to fire just fine.
My controller actions is thus:
public ActionResult GetTemplates()
{
IEnumerable<Temp...
There are some preferences I have observed for the selection syntax such as:
$('#mydiv > a.selectMe').hide();
$('#mydiv').children('a.selectMe').hide();
To me, it seems a bit confusing as the documentation for jQuery is a bit ambiguous here:
"
parent > child Returns: Array
Matches all child elements specified by "child" of element...
I have the following code in my controller after the user posts the form but if the validation fails (_applicationValidator.Validate), I normally reload the "Edit" view but in this case I want to keep the dialog open and simply show these errors inside the dialog.
Controller Code:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult...
Hi There,
I have a simple UL in a div with the overflow set to automatic and a fixed height. Each LI is draggable via jQuery.
Problem is that I cannot drag them from the div (they disappear when dragged to the boundaries).
I have looked at this question and its answers, but the solution here does not seem to work for me (setting the scr...