jquery

How Firefox renders links

I just would like to share some of my observation on how Firefox 3.5 on Ubuntu Jaunty Jackalope renders HTML: I have the following entries in my JSP page: <a title="myLink" href="[some url]">link 1</a> <a title="myLink" href="[some url]">link 2</a> <a title="myLink" href="[some url]">link 3</a> <a title="myLink" class="hiddenLink" h...

Height 100% on SPAN with multiple column

I have the code below with 3 columns. I want to have the border of each column and each column also has its own color. I tried many previous examples of multiple column css problem and they don't work. For example, I don't want to use dirty trick of background image to render background color and border because the website allows changin...

How do you add scripts to custom buttons on rows in jqgrid?

I am trying to handle the click of custom button in a jqgrid. I have the buttons showing up, but when they are clicked, my function does not run. If I click a button outside the jqgrid, the script runs. Does jqgrid consume the button click? Not sure what I am missing or not understanding. Here is the grid. The reason I am not reloading t...

JQuery $.post on a submit event help

What I am trying to do is: When you click on a form submit button, the page doesn't reload, instead data from form is send to another page for processing and HTML output of that page replaces the form on current page. More specifically, I am trying to get the add comment form working without a need to reload the page (there is a video s...

How to pop up a simple div where clicking happens with jQuery?

Like what you see when modifying status on the left page in gmail. ...

As a designer who has become proficient in HTML and CSS, is it safe to start using jquery plugins instead of learning javascript? I'm not a programmer..

I have mastered for the most part taking my designs and coding them as read only web pages. I'm looking to go the next level. I have used some jquery plugin's and figured them out quite easily with a bit of trial and error. I have also started reading a book on Java script but it seems like nothing I'll ever really need as I don't pl...

How to activate some event on blur or on pressing return while focusing?

Onblur can be achieved like below: $().blur().. But how to catch the event of pressing return while focusing? ...

How to make value of <input type="text"> selected with jQuery?

Suppose the jQuery object of the input is $input. How to make its value selected(make it highlighted)? ...

About jquery append and automatic deleting

when you append by using an existing content, jquery will delete the orignal: $(new).append($('#ori')); then the orignal $('#ori') in the document will be deleted, is this by design? ...

How to make the following jQuery snippet work?

var func = function() { $(this).hide(); $parent = $(this).parent(); $parent.removeClass('my_signature_mouseover'); var text = $(this).val(); var $span = $("#status span"); $span.text(text); $span.show(); }; $("#status input").keyup(function (e) { var keyCode = e.keyCode || e.which; if (keyCode == 13) {...

How can I make my own buttons look and behave exactly like the ones created by jQuery UI?

I created some widgets with jQuery UI and I notice that buttons have a distinct look and feel (colors, hover effects, etc.) But it seems I cannot recreate the same with my own buttons. I duplicated the code, but I'm still getting different colors and no hover effects, so I assume that some of the visuals are done with JavaScript events....

How to make jQuery selector run faster or run it in chunks

I have a simple jQeury code that runs on a web page that has more than 50,000 lists of people. On IE I get the message that a script is taking too long. I would like to get rid of that annoying popup in IE. If I need to add 50,000 DOM elements then I could use timer to defer work in chunks. I am not sure if timer would be of any help in...

jquery zoom and pan

i am using jquery-1.2.6.js and jquery.panFullSize.js two js file to Zoom and Pan image. here is my html, <a href="#" id="zoom">Zoom< /a> <img src="testimage.jpg" alt="finnish winter" width="600" border="0" usemap="#mypicMap" id="mypic" style="border: medium solid black" /> Here is my javascript, $("img#mypic").panFullSize(700,...

JQuery live click not working in IE wit a tag

I have an anchor tag on my page that is added dynamically using jQuery: <a href="#" id="ClickMe">Click Me</a> I have the following jQuery within my $(document).ready(function() $("#ClickMe").live('click', function() { $("#SomeDiv1").show(); $("#SomeDiv2").hide(); }); This works fine in firefox, but not in IE. I am de...

jQuery DatePicker Issue: Set current date.

The datepicker setDate method, as described here is not working as expected. The datepicker is always taking browsers current date. But I want to set the current date of my choice. $(target).datepicker({ dateFormat: $.datepicker.W3C, closeText: 'X' }); //set the current date $(target).datepicker('setDate', cu...

How to implement bottom-position for IE6?And does the same problem still exist for IE5,say,all earlier versions?

No matter how you scroll, the div should always be at the bottom of the web page. Is there a solution using jQuery? EDIT: Should make it work in IE6. ...

Set max char (as visibility allows) on multiline textbox

Hi, Is it possible to have a multi-line textbox (im using asp.net c#) where the maximum characters inputted cannot exceed the visible textbox size? I have taken scrollbars off vertically (overflow: hidden). Now I want it so that say if the multi-line textbox shows say 100px height (or say 5 rows), the user cannot type more than the he...

How to dynamically fetch some html file and use it to create content of a DIV with jQuery?

Say,how to implement these three steps: 1.fetch a html source from server side 2.use the above source to create a DIV 3.append it to <body> Element ...

ASP.NET MVC: set value in other field on my view, how to?

Hi, I have a view where the user can change some settings, its basically a "edit" page. When the user checks a particular value in a radiogroup i set a hidden field (its a invisible input type=text field), but when i load the page i want that hidden field set from my code. How to do this? JQuery? or can i "findControl" somehow? This is ...

JQuery hover method?

I have an image on my page and when the user hovers over it with their mouse a tool tip (Using the qtip plugin) is displayed. The only problem with this is when the image loads if the cursor is already hovering over the image the onmouseover event isn't fired and the tooltip doesn't show unless the user moves the cursor off the image and...