jquery

resolve prototype & jquery conflict with dynamic script loading.

Hi, I know that I can use <script type="text/javascript"> jQuery.noConflict(); </script> to resolve the conflict between prototype and jquery after including all jquery and prototype libraries in the head section. However, I am including another .js file in the head section which dynamically loads a jquery plugin in window.lo...

Jquery style checking and finding the element.

Hello! In my script i'm looking for the DIV which has class .se and has style attribute display: block, and i need the DIV's ID. My method is wrong :( var usedse = $(".se"):has(css('display', 'block')).attr("id"); Could you help me please to fix this? ...

jQuery tablesorter plugin does not work after AJAX call

Hi, I have used jQuery table sorter plugin in my code. It works fine as long as I don't make an ajax request to load the table data dynamically. I am using combo boxes to filter the contents of the table by ajax. I read few posts which says using $("table").trigger("update"); can solve my problem. I tried it with my code but the problem...

jquery Alphanumeric plug-in not working onpaste event

I try to use the jquery Alphanumeric plug-in http://itgroup.com.ph/alphanumeric/ and it works fine.The problem is when I paste this text !@#$%^&*()_67890-qwertyuiopasdfghjkl'zxcvbnm,. the textbox accepted it. here is my code: $("#<%=txtAddCompanyName.ClientID%>").alphanumeric({ allow: "'-., " }); I tried to changed my code to shown ...

Why usually <form> used to aggregate elements and not <div> in case when form working with ajax submit event?

Hi, Why usually <form> used to aggregate elements and not <div> in case when form working with ajax submit event? Ajax jquery function: $('#parse-form').submit(function() { $.ajax({ url: 'controller.php', type: 'POST', dataType:'json', success: function(data) { a...

How to solve a problem with base tag?

I have a problem with base tag. It looks like <base href="http://myexamplepage.com/myfolder/" />. Everything works, besides this query: $.get("application/soft/calendar_month_change.php", ...) My computer thinks it's cross domain server and changes query to OPTIONS .... When I remove the base tag, it works correctly but my site doesn'...

jQuery - best tooltip plugin?

Hi I need a tooltip plugin that with the following characteristics: to be as small as possible to show a tooltip when mouse over a element, which contents are from another element (not just the title attribute) tooltip can open on mouse over of the trigger element and follow the mouse while still over that element, and closes on mouse...

CSS Effected by Javascript for EasySlider 1.7

I'm trying to get a nice overlay effect going with a slider using easyslider 1.7, not only should this include images but also text that represent the image. Now I'm having trouble lining up the text on the page where I need it. http://intranet.streamflame.com That is the home page, The section where you see the black overlay on th...

How to get the attributes of a HTML element using JQuery?

Hi, I am wondering whether there is a way in which I can get the value within a given HTML element using JQuery? Example <span id="45463_test"></span> (using the proper tags made the code to processed) What I want is the '45463_test' value within the id attribute (using JQuery). Thanx for the responses and the edit. I would it su...

jQuery animate: background position not animating, showing image instantly

There's something wrong with this code, or the way I've laid out my menu because animating the background position won't work. In my CSS I've simply assigned every a in the div.nav to have a background with 0 0 positioning as well as display: block and a specific width + height. What happens is image switch is done instantly instead of s...

Accessing Cross Domain Stylesheet with .cssRules

I get this error in FireBug when I try to access some CSS files hosted on external domains: Security error" code: "1000 rules = styleSheets[i].cssRules; The code I am using is: $(document).ready(function () { $("p").live('mousedown', function getCSSRules(element) { element = $(this); var styleSheets = document.sty...

how to properly size jQuery.ui dialog with an iframe

When I open a jQuery dialog with a predefined size (say, 800x600), the iframe within the dialog is not resized properly. It appears like it has the default size. In fact, the height is OK, but width seems to stay at 300px for no reason. I'm creating the iframe and dialog like this: someVar = '<iframe id="some-dialog" class="window-fram...

Use jQuery method as callback parameter

I have this little jQuery plugin: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head><title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript"><!-- (function($){...

jQuery plugin callbackfunction with parameter

http://stackoverflow.com/questions/3205565/jquery-function-probem I have managed to get the above plugin working with your suggetions. However, now I want to change it slightly to make it more generic. I want to pass in callbackFunctionSingleAddress and callbackFunctionMultipleAddress as well as how many parameters they expect in the s...

jQuery variables for multiple events

I'd like to be able to define the variable which I can then use for other events, such as mouseout, mouseenter, click etc. This is the current code: $('a div') // Get the width an height of the image //var $img_width = $(this).children('img').width(); //var $img_height = $(this).children('img').height(); .mouseente...

Question on JqGrid paging.

Hi, I would like not to lose the paging and the sort parameters when I leave a page with a grid and I come back to this page. Is it possible to get the page, rowNum, sortname, sortorder params (I think with getGridParam), put them in the URL scope, go to another page, and get those params back through the URL scope and give them in the...

What jQuery event/method can I use to bind on a dynamic button before click?

I'm trying to attach a jQuery plugin to a dynamically generated button. I've tried the following with no success: $('.myButton').live('click', function() { $(this).file().choose(function(e, input) { // ... }); }); I guess this doesn't work as the plugin needs binding before click. So I tried... $('.myButton').load(fu...

Syntax Hightlighter Problem Loading Partials

Hi I'm using the syntax highlighter found here: http://code.google.com/p/syntaxhighlighter/ I have a page wherte it works fine: <div id="codeArea"> <pre class="brush:csharp"> var customers = new Customer().GetCustomerList().AsEnumerable() .Where(c => c.CustomerID < 5); </pre> However,...

SlickGrid select editor

Hy, I want to make a dynamically populated html select for a select cell. I extract some information from a database which is different for every row item. The problem is that the editor loses the initial data and I don't konw how to keep some data for a specific cell. Has someone done this ? function StandardSelectCellEditor($containe...

How can I force a Save-As dialog box without leaving the page in php?

I have an anchor tag: <a href="file.pdf">Download Me</a> I would like for the user to click on it and then have a Save-As dialog box appear with a new filename I determine. I found this(http://www.w3schools.com/php/func_http_header.asp): header("Content-type:application/pdf"); // It will be called downloaded.pdf header("Content-Dis...