[jQuery] Selecting readonly textboxes
Hello list, Is it possible to select non-readonly textboxes with JQuery? I've tried the following queries, non of which worked: $("input:text[@readonly]") $("input:text[@readonly='false']") $("input:text[@readonly!='true']") However it was possible to select readonly textboxes with the following query: $("input:text[@readonly]")
[jQuery] Best tooltip plugin
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Arial size=2><SPAN class=918004118-17082007>I'm probably going to be implementing a basic tooltip in my current project and I'd like to hear from the list which one might be the "best". IE: simplest to implement, but most importantly, the easiest to style.</SPAN></FONT></DIV>
[jQuery] event bubbling - checking for the right element
Hi, I've got a problem with event bubbling. That works fine: $(function() { $("body").click(function(e) { if ($(e.target).is("h2")) { alert("Test"); } }); }); But now I want something like that: $(function() { $("body").click(function(e) { if ($(e.target).is("#test h2")) { alert("Test"); } }); });
[jQuery] Autocomplete problem
Hi, I have a textarea and i will write news related to mobile phones in it. But i want each phone must match the name in my database and be a link to its description page like journal form in last.fm In order to do this autocomplete should start to search whenever i type [phone] and when i find the phone it should modify it like [phone href="http://www.xx.com/phone.php?id=3"]Nokia N90[/phone] or just [phone]Nokia N90[/phone] If you needed something like it and achieved to do that, can you tell me
[jQuery] File upload plugin available?
Hi all, I'm looking for an elegant and visual appealing file upload plugin. I don't need any stunning effects, just something appealing to the eye, and can allow a user to upload an image or directory on their local system. Can anyone recommend such a utility with jquery? Thank you all! - sf
[jQuery] Where is the latest autocomplete plugin?
Just curious which is the latest - last one I used was on Dan Switzer's site: http://www.pengoworks.com/workshop/jquery/autocomplete.htm But I also found this one: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ Which says "Heavily improved Dylan Verheul's initial plugin, integrating modifications by Dan G. Switzer and Anjesh Tuladhar" That the latest and greatest? Thanks, Jim
[jQuery] flicker on tooltips fix ?
On a website I am making I'm having a problem with some tooltips. If you have a look ( http://www.rockbandlogo.com/test_index.html ), you'll see three icons, which when you hover over them you'll get a tooltip type pop up. The problem occurs when you hover over both tooltip and icon underneath, it begins to flicker. I know why this happens, but I don't know how to solve it. I'm relatively new to jquery so I'm not sure how to go about fixing this. Any help would be great. Cheers, Al
[jQuery] "jQuery is not defined" in line 1400 in 1.3.1.1
""jQuery is not defined" in line 1400" Now and then, I'm getting this error in FF. The line is: // Clean up added properties in IE to prevent memory leak if (jQuery.browser.msie) Is it a known issue or am I mistaken? TIA -- <?php echo 'Just another PHP saint'; ?> Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
[jQuery] Focus Disappears After Effect Ends
I have a login box that slides down when the 'login' link is clicked. It also is set to automatically focus on the first input in the login box when it slides down. The problem is that the focus only happens for a brief second until the toggle effect is complete. Then the focus is gone. Here's the code I'm using: <code><pre>$("a.login").click(function() { $("#loginbox").slideToggle("fast"); $("#hidebox").slideToggle("fast"); // Focus on first input $("#loginbox :input:enabled:first").focus(); return
[jQuery] Select 2 types of elements
Hi, I did not find in doc, can I select 2 types of elements in only one instruction? My purpose is to capture values from input and select elements in a form to serialize it. Thank you
[jQuery] jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names
What do you guys think of this critique of jQuery I found on Simon Willison's site (which is good reading). http://simonwillison.net/2007/Aug/15/jquery/ <quote> jQuery is definitely a popular utility function library, but the sheer amount of dual/triple/quadruple special-case uses for both function calls and method names is an instant turnoff for me. The jQuery object itself can perform a selector query, embed a DOM element, create a DOM element from HTML and assign a DOMContentReady event handler
[jQuery] Autocomplete problem
Hi, I have a textarea and i will write news related to mobile phones in it. But i want each phone must match the name in my database and be a link to its description page like journal form in last.fm In order to do this autocomplete should start to search whenever i type [phone] and when i find the phone it should modify it like [phone href="http://www.xx.com/phone.php?id=3"]Nokia N90[/phone] or just [phone]Nokia N90[/phone] If you needed something like it and achieved to do that, can you tell me
[jQuery] columnize large text ...
I´m having a text on my page and I´d like to split that text into 2 (or even 3) columns. I´ve seen this before but I can´t remember where ... any suggestions are appreciated. thanks, patrick
[jQuery] ColdFusion tag for Tabs
jQuerians and ColdFusionistas! Andrea Campolonghi wrote me an email the other day: "I played a bit with your plug-in ( very nice ) and I made up a ColdFusion Custom Tag for an easy implemntation of your plg-in in CF. I am a CF developer learning jQuery ( really impressed from the library)." There's no blog yet so I'm just posting it here! I don't understand much of ColdFusion, hope it is useful! --Klaus
[jQuery] Sugestion to better receive the post file to php
Hi, I was working with this plugin and found some trouble with it. Each input file added has the name + number that is increasing by one. This is dificult to php receive this data or any server language. So the better way its puts in the name attributte the termination [] to a server side language understand that is being send multiples files. That way, its just change the line 156 to: e.name = (e.name || x.attr('name') || 'file'); That way you avoid the plugin increase the value of name atribute.
[jQuery] jQuery Validation plugin and Tabs plugin
Hi... Anybody can tell me about how can I use jQuery Plugin Validation and Tabs plugin, because they can't work... this is my javascript source code: <script type="text/javascript" src="/js/jquery.pack.js"></script> <script type="text/javascript" src="/js/validate/jquery.validate.js"></ script> <script type="text/javascript" src="/js/validate/jquery.metadata.js"></ script> <script type="text/javascript" src="/js/tabs/jquery.tabs.pack.js"></ script> <script type="text/javascript" src="/js/tabs/ jquery.history_remote.pack.js"></script>
[jQuery] Search for a parent element
Hi, is it possible to find a parent element? See following example: <div _prop="test">1 <div>2 <div>3 <div>4 </div> </div> </div> </div> $("div[@_prop=test]").bind("click", function(ev) { alert($(ev.srcElement).html()); }); If you run this you will always get the element under the mouse instead of the _prop element (which you want to get). What I'm searching for is something like: $("div[@_prop=test]").bind("click", function(ev) { alert($(ev.srcElement).findParent("div[@_prop=test]").html()); });
[jQuery] Hover Delay
Hi, I have a image which underneath has a p tag which contains some text, when the image is loaded the p tag is hidden until the cursor hovers over the image, then the p tag is shown. What I want to know is, is there a way I can only show the p tag if the cursor is held over the image for a set amount of time, else keep it hidden. Heres is the code I have for the hover. $('.full_img').hover(function(){ var description = $('a.selected img').attr("alt"); var width = $(this).width()
[jQuery] new Plugin every: jQuery-oriented setTimeout and setInterval
So I actually wrote this plugin almost six months ago, but a few weeks ago I fleshed it out for use at work. The main external change was a change in the order of the arguments to simplify the code. And the main internal change was moving the structure of the timer tracking code to more closely mimic jQuery's internal event module. There wasn't anything wrong with the way it was written before, but this way, the code will appear more friendly for people trying to hack it in the future who are already
[jQuery] Do my emails make it to the list?
I can see my emails in the Gmail interface but it doesn't seem that they're actually making it to everyone else. Please respond (off list). Thanks, Chris.
[jQuery] Jquery and IE problem
Hi All! I have a problem with my jquery code in IE browser. See bellow: I have two <select>: first - brand auto, second - model of auto. <select> with models is generated depending of brand using jquery instruments brand.js $(document).ready(function() { $('select#id_brand').change(function() { var url = '/ajax/brand/'; $.getJSON(url, {id: $(this).val()}, function(j) { var options = ''; for (var i = 0; i < j.length; i++) { options += '<option value="' + j[i].id + '">' + j[i].name + '</ option>';
[jQuery] Superfish - huge issue with IE6
Hi Joel, I am attempting to integrate superfish with my css menu. IE6 looks like a nightmare though! I use different css for my menu than you have provided in the example - I use visibility rather than tucking the ul levels up and away from view. When I turn the menu "on" (in my php script) so that Superfish is activated, I remove the "visibility" portion and add your css (-999em) so that they are compatible. All of this works like a charm in real browsers, but IE6 creates a complete mess of it.
[jQuery] stupid dev tricks: marking "current page" links
Hi, all! We've all attempted several different ways of highlighting navigation links which point to the current page. Often times we mark the page via our PHP by adding a class (e.g. "currentPage") to the navigation link which points to the current page, or some such. Here's a slightly different approach... Today i bought Eric Meyer's CSS book from O'Reilly book (unfortunately, they only had the German edition :( ) and reading the section on selectors gave me an idea which i haven't yet seen used
[jQuery] How i can replace?
I want to replace a word from <a> tag's title attributes. Is there any function for this situation? I was look jquery's api browser but i cant found any function for my wish. Thanks.
[jQuery] Interface.js Exception: Access to Restricted URI denied
Hi, Was trying to make a horizontal accordion with nice ease-in effects etc. I first made the widget separately in an HTML file (which worked fine) and then tried to embed it in my main HTML file. I got a funny exception. Error: uncaught exception: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "file:///D:/work/ClientWork/Ask%20for%20Original/Site%20Design/HTML/interface.js Line: 8"] The code that gives the error is the last
[jQuery] ajax - tabs plugin question: proper anchor tags
Hi I am using the ajax version of klaus hartl tabs plugin. I try to do crosslinking between the files which are called ahah_1.html etc by using <a href="ahah_2.html">link</a> this does not render properly. So what is the proper html to put in the anchor tag?
[jQuery] Switching the Content of the Carousel on Click
Hi Board, the last 8hours i spent trying to work out a way to switch the Content of the List on click. (ie. Tabs) I started out with the Javascript Array Example where it loads external Content. Then i wrote a onClick Function which assigns mycarousel_itemList a new set of Data. This works but now i need to Reload/Reset the actual Carousel Object so it adjusts to the new Data Array. I tryed everything i could think of but it just doesnt work. Heres an Example: <-- onClick --> $('#mycarousel').jcarousel({
[jQuery] pngfix and css background images problem
Hi all, check the background of this page on FF and in IE: http://www.ortelli.net/temp/woo/ The footer background works well in IE: it's a background image, not repeated. For the header and the main content the background is vertically repeated and the transparency/background is not applied... Very strange behaviour... any idea? You can download the full package here: http://www.ortelli.net/temp/woo/woo.zip Thanks in advance :P
[jQuery] Jquery cant manipulate inline TinyMCE. Why?
Hi Folks I am trying use inline TinyMCE with Jquery. <a href="http://wiki.moxiecode.com/examples/tinymce/installation_example_05.php">http://wiki.moxiecode.com/examples/tinymce/installation_example_05.php</a> I follow instructions to make Jquery work with Other Libraries and its working. When I try manipulate elements into the inline doesnt work. If I print the script into "inline page" (when inline page is load). I cant bring elements outside of inline (from my original DOM). After
[jQuery] Documentation on $('#foo')[0] or $('#foo').get(0) ??
Hi All I've been hacking with jQuery on and off lately and I've now hit the annoying problem of not being able to access simple DOM 0 properties unless, apparently, using either of the following syntaxes: $('#foo')[0] $('#foo').get(0) Eventually after scratching my head each time, I've found this syntax answer again. However is this documented? I really find the jQuery documentation very handy but I do not remember seeing this crucial information within it. It seems from searching this group, I'm
[jQuery] AJAX error in IE with jQuery 1.1.3
Hi, <div id="result_box" dir="ltr">I would like to know if somebody already had problems with IE when using the method of ajax with jQuery 1.1.3. The generated error was "object does not support this property or the method" and "access denied" and what was the solution? </div><span></span> a hug Estevão Lucas
[jQuery] form ID is messed up if an element in the form is named "id"
<form id="form_id" class="form_class"> <input type="text" name="id" class="text_class" id="text_id" value="my name is ID" /> </form> $('form'); I expect would get form#form_id.form_class but this is the result: form#[object HTMLInputElement].form_class I'm using the firebug (firefox) console, and the object referenced above links to the input class Because of this, I can't name an element "id", and also be able to select a form by ID using $("form[@id=form_id]"); There are many workarounds, but doesn't
[jQuery] What does "Unobtrusive Javascript" mean?
I"ve seen this term referred to a few times, especially here: http://simonwillison.net/2007/Aug/15/jquery/ What does Unobtrusive Javascript mean? I am getting the idea that jQuery offers a way to bypass a user turning off JavaScript? How does jQuery do this? Thanks
[jQuery] select menu replacement plugin ?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=296154511-16082007><FONT face=Arial size=2>hello friends,</FONT></SPAN></DIV> <DIV><SPAN class=296154511-16082007><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=296154511-16082007><FONT face=Arial size=2> i remember once someone posted a very nice select
[jQuery] question about attr()
i want to make all tds have a top vertical align, so i write the following code: $("td").attr("valign","top"); but it failed. and i found if i change the letter a in "valign" to uppercase, it works well. code as follows: $("td").attr("vAlign","top"); anyone can explain it? test on window xp sp2, ie7. firefox works well all the time.
[jQuery] One callback for two ajax requests
Hello, the following code provides one callback per ajax request: $.getJSON("url1", {}, function(json) { do something... }); $.getJSON("url2", {}, function(json) { do something... }); The problem is, that I need to call a function when both ajax requests are finished. Has anybody an idea? Another question: Does anybody know a german jQuery group or something similar? Jones
[jQuery] Broken link
Trivial, but the dev mailing list link at http://dev.jquery.com/wiki appears broken. Cheers.
[jQuery] IE6 ActiveX bleed not working jQuery 1.1.3.1 jqModal r10
I have a problem with IE6, jqModal r10 and jQuery 1.1.3.1. I cant get the Activex bleed / iframe for hiding the form elements to work properly in my version of IE6 with my code (attached). I spent close to 4 hours yesterday pulling apart my page to find that even at the lowest level with my version of the examples on the jqModal page it doesn't work. IE7 and FF are both fine on windows. However, (and here is what is really getting up my nose) when I run http://dev.iceburg.net/jquery/jqModal/ examples
[jQuery] Totally new to this...
Totally new to this and code ignorant but I did try to build a template webpage with the functions I want to have, so http://www.qbox.gr/test_asxeto/sitetest.html here it is... (I did use 2 different/irrelavent scripts but I think that I could add in terms of content and fx and lose on KBytes just by using one framework). Since these are my baby steps in jQuery I did gave it a http://www.qbox.gr/test_asxeto/jq_test/dragJq.html try but stumbled again in programming... Basicaly I would like to know
[jQuery] changing class
I have the following code. Basically, when the home_sel anchor is clicked, I want to change the class to "home select" and have all other li elements have select removed if they have it turned on...I'm having problems getting this to work properly in jQuery. How can I do this? Thanks! <div id="tabs"> <ul > <li class="home select"><a href="#" title="Home Page" id="home_sel">Home</a></li> <li class="packages"><a href="#" title="Ad Platform" id="packages_sel">Packages</a></li>
Next Page