jquery

open file browser using jquery.

I have the following code: <p onclick="jQuery('#file').click()">Select a file</p> <input type="file" id="file" name="file" /> When the user clicks on "Select a file", it's also supposed to open the file browser like when you press on the "Browse" button generated by <input type="file" />, where the user can select a file. It works fi...

Button in popup that get selected text - Chrome extension

Hello, In my popup.html in my chrome extension I have a button that will get the selected text in de webpage and put it in my textarea in the popup.html. First I select text in a webpage I click on my extension. An popup will show with a textarea and a button. When I Push the button the selected text will show in my textarea. is so...

Getting pixel value of margin in ie7

Hello, the problem is that if the margin is set to auto ie7 returns auto, while other browsers return the px value, for example look at this: http://jsfiddle.net/Pyadk/ In chrome it returns 0px, while ie7 returns auto So, is there any way to force explorer to return the computed value of that margin? Thank you ...

Use FCKeditor in JQuery UI Dialog

I try to use FCKEditor in JQuery UI dialog. It works for Chrome, but I have some problems with Opera and FF. When I try to create FCKEditor, it submits page without any reason. <div id="dialog" title="Basic dialog"> <form method="post" id="myform"> <script type="text/javascript"> //<![CDATA[ var oFCKeditor = new FCKeditor('...

JQuery: best place to put html tag handlers

Where do you personally prefer to put html tag handlers with JQuery-powered Html page and why: html tag element or document.ready function ? <a onclick="javascript:foo()" /> ... function foo() { ... } or <a id="mytag" /> ... $(document).ready(function() { $("#mytag").click(function() { ... }); }) Thank you in advance! ...

jQuery class within class selector

<div class="outer"> <div class="inner"></div> </div> how do I find the inner div here? $container.find('.outer .inner') is just going to look for a div with class="outer inner", is that correct? so I tried $container.find('.outer > .inner') but that doesn't seem to be working. Edit: I know its easy to find with something l...

Callback with thickbox in an iframe

I'm loading a page in Wordpress (on the same domain with thickbox, the page that is being loaded also uses another jQuery plugin to change the scrollbar), I cant seem to get it to do a callback to load the all the content , it leaves out the area that jQuery instantiated on that iframed page. I've scoured the net and I am having trouble...

jquery and user city

Hi, at first, sorry about my english. My question is: I have php generated dynamic div, with id and image source.. If user click on dynamic div its swap img source. My script works, but its swaps all div images, but not selected div img source. Where is problem? how I can swap clicked div img source? Can someone, help me please? My sc...

jquery load function

Hi, i have this jQuery function: $("#text").load("test3.php?id="+ Math.random()); And this code is in page: user.php When i runt this page in this address: http://127.0.0.1/user.php - everthing is OK. But, When i runt this page in this address: http://127.0.0.1/user/ in div "text" insert all root page. test3.php page code: <?php ...

How can I do a simple asynchronous query implementation in JQuery

Is there a simple tutorial for this somewhere? Ideally I'd like to have a textbox and a button, and when the user clicks the button, the textbox is sent to the server, which returns a value based on it. The client then populates another textbox with the return value, but all without refreshing the page. If it's possible, showing/hidin...

Broken DOM in IE and FF after Ajax call

Hi, i get a strange behaviour of IE and FF while perfoming an ajax callM; Chrome works as expected for me ;) In Grails i use the <g:formRemote/> Tag which results in the following code : <form onsubmit="jQuery.ajax({type:'POST', data:jQuery(this).serialize(), url:'/url/morUrl',...

pagination autocomplete

Hi , Am some free open source auto complete plugin same like this demo link text OR ANOTHER DEMO link text I am looking pagination on auto complete , or auto complete that should contain the pager also, I tell u , why am looking with pager, actually i want to populate uk postcode ,more then of postcode first 3 character like...

IE6 and JQuery Selectors with Spaces

Hello all, The following doesn't seem to work in IE6. However, it works with IE7+ and firefox. I think I have had a similar issue before where IE6 doesn't like spaces in JQuery selectors. However, I don't know how to re-write this so IE6 will accept it. $('#other_stages :checkbox:not(#section_2_active, #co_t)').change(); I have also ...

What triggers the IE Enhanced Security warning

Is there a published set of IE enhanced security blocking rules? Background: When I try out certain jQuery scripts, I sometimes trigger the IE enhanced security warning - then its a matter of trial and error removing bits of the code until I find the offending part,and see if the jQuery can work without it. commenting out the code doe...

how to disable whole body other than a div

Hi friends,I have a div which is creating through ajax, i would like to disable the whole body once the div is popup and until, unless the div is closed.Is this possible in jquery. Please let me know your suggestion Thanks,Praveen Jayapal ...

JQuery dependent Dropdown list doesn't calculate value in IE8(Asp.Net MVc)

Here is jquery code for calculation .This works in Firefox but doesn't work in IE8.I'm using Asp.net mvc. var multiplier; var multiplicand; multiplier = $("#ddlExchangeRate_" + exRateId).val(); if (multiplier != "") { if (exRateId == 1) { multiplicand = $("#grossTotal_" + exRateId).val...

Acessing json using proxy

Hi freinds, I am rails developer, i need to fetch json in the remote server but it is not working form me .If it is local means working.How to set the proxy in jquery or rails .I am getting proxy only for php . Any suggestions?????? ...

position of div in particular div

i have one card window div in which <div id="cards_window" class="popup_window ui-dialog ui-corner-all" title="Cards"> <div id="cards_title"> Cards <div id="cards_window_close" class="ui-button ui-icon ui-icon-circle-close popup_close"></div> </div> <div id="cards"> ...

jquery if statement detecting if there are tr with "X" class below

I am trying to apply css rules to tr elements depending on what class would be the following tr. ex. <table> <tr class="x"/> <tr class="y"/> <tr class="x"/> <tr class="x"/> </table> So those tr with class x that have a following tr with class y will have different css style than those tr that the next tr is with class x. <script ty...

Jquery ajax load problem

Why doesnt this work? $('#websitedesign').load('test.html', function() { alert('Load was performed.'); }); Jquery version using: 1.3.1 min html code: <body> <div id="top"> <div class="wrapper"> <a href="http://www.bmvisuals.nl/" id="logoh1">BMvisuals</h1></a> <div id="menu"> <a href="index.html"> <span id="mhome">Home<...