jquery

How to load one div into another.

Hi, I have a page with 10 different div contents in it. Based on my button click i want the 11th div to load content or just take a copy of div 1 to 10. I mean like on button1 it should load div 1 and on button 2 i will load div 2 etc. All my div 1 to 10 will be hidden and the 11th div alone will be visible. I need this because of my b...

Unobtrusive horizontal scrolling with CSS and jQuery

One of my most favorite websites is that of the Oxford Hotel in Romania. I like the simplicity of the site and how it flows. I am trying to create a similar scrolling effect using jquery and I've been somewhat successful to a point. My trouble is with css... I am not a wizard in that department. Anyway,...my questions! 1. How can I fi...

performance problem looping through table rows

Hi, I am using jquery to loop through table rows and save the data. If the table has 200 rows it is performing slow. I am getting the javascript message "Stop Running this script" in IE when I call this method. Following is the code I am using to loop through table rows. Can you please let me know if there is a better way to do this. ...

Validation with AJAX and jquery

Greetings, Is there a different between using Ajax and jquery to do input valuation with ASP.NET? For example,I want to input mask. I can use ajax maskededitextender or jquery masked input plug in to do the mask. is there a different between using any one of these two?? ...

How to put a div above flash file ?

Hi , I used jquery tools tooltip and i positioned icons 30 px under flash banner . The problem is when i hover icons , tooltips hide under flash banner , I gave high z-index to the tooltip div or other parent div in order position that above flash banner, but no difference . Is there any way to overcome this problem ? At the bottom pic...

JQuery help, How to Hide all button in JQuery

Hi guys, I'm trying to make a request/reply section in my project. I want to achieve these functionality in that code (that I'm not able to implement; so guys please help me out): 1> When user click on reply button; other reply area(text-area +button) should be hide (means at a time only one reply area should be visible to the user). 2> ...

Force page reload with html anchors (#) - HTML & JS

Say I'm on a page called /example#myanchor1 where myanchor is an anchor in the page. I'd like to link to /example#myanchor2, but force the page to reload while doing so. The reason is that I run js to detect the anchor from the url at the page load. The problem [normally expected behavior] here though, is that the browser just sends me ...

jQuery jcrop how to get the position to save it

I am trying to get the position from a jcrop'd image but the values it returns from h w c.w c.h Are not the same as required by animateTo, i need to be able to return the selectbox back to the original position of a previously jcroped image. ...

How to set fixed width for columns of a table with expand/collapse functionality?

I have a table with expand/collapse functionality. How do I enforce fixed width for columns in such a table? I used COL tags with width property. But the table becomes distorted when I expand/collapse the rows. ...

is jQuery 1.4.2 compatible with Closure Compiler?

According to the official release statement version 1.4 has been re-written to be compressed with Closure Compiler yet when I use the online version of closure compiler I get 130 warnings. This is the code I use. // ==ClosureCompiler== // @compilation_level ADVANCED_OPTIMIZATIONS // @output_file_name default.js // @code_url http://ajax...

Why can't I use the return from an insertAfter as a regular jQuery object?

I'm trying to insert a link after form elements to clear them. This demo code with headings doesn't work: h2 = $('h2'); clickytest = $('<a href="#" class="clicky">click me</a>').insertAfter(h2).click(function() { $(this).append('foo'); }); But this does: h2 = $('h2'); clickytest = $('<a href="#" class="clicky">click me</a>').inser...

How to show javascript warning , if user click on link which will open in new window?

How to show this type of reminder warning to user (mainly i need this for screen reader user), if user click on link which will open in new window? Is my wording ok, please suggest if it can be better ? I want to show this message for any link of website or file like PDF, DOC etc. which is opening in new window? Sometime user clicks mi...

how to load a page and then run a jquery function

on master page i put this code to load page in same master page and then run jqeury function This is my Master Page code <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html x...

how do you select items in a listbox using jquery

how do you programatically select items in a multiselect listbox using jquery? ...

How To Add/Remove Multi Rows In jQuery And Wordpress

Hey All I'm making a wordpress theme options page, and one of the options I want to make is how to add/removes dynamic rows by that the user can make it when he want to add a block. something like this <table id="block" width="350px" border="0"> <tr> <td> 1 </td><!--Nomber of the row--> <td><input type="tex...

Including/Organzing HTML in large javascript project

Hi, I've a got a fairly large web app, with several mini applets on each page. These applets are almost always identical jquery apps. I am looking for advice on how I should organize/include smaller parts of these jquery apps within my larger project. For example, each app has several independent tabs. If possible, I would like to stor...

scroll by number of elements on jquery-just-another-carousel

Hi, It is possible to scroll by fixed number of child items that will be specified on configuration for jquery-just-another-carousel. Like when we click Next or Previous link then the carousel will be scrolled by 2 child items. http://intrepidstudios.com/projects/jquery-just-another-carousel/documentation.aspx ...

Change cursor to loading animation

Hey, I've got a few loading bars that appear during any postbacks. How can I use CSS to have the cursor change into a custom loading animation? In examples I've come across, I can only turn the cursor into other preset images (such as an hourglass). Is it possible for me to use a custom gif as the cursor? Thanks ...

jQuery child selector expression

<div id="div"> <div> <!-- first level --> <div> <!-- second level --> <div>1.1</div> <!-- third level --> <div>1.2</div> </div> <div> <div></div> <div>2.2</div> </div> </div> </div> What are the jQuery selector expressions for selecting the followin...

Firefox jquery flicker bug problem

This is possibly a really silly question but I've stared at this code way too long for it to make sense! I'm having problems with a flicker of the screen in firefox; It is related a filtering script... I have a website that is a one page vertical scroll; with different anchors to define sections and a smooth scroll script to make it pr...