[jQuery] Site Blank in IE7
Hi, I'e just started using jquery and have to say I like it. One big problem though, my site (http://www.georgemauer.net) doesn't show up when I try to go to it in internet explorer 7. Nothing, its blank, just shows up as the background color. Strangely enough, all the html in view source is still there. The page works fine in firefox and opera (not sure about safari, ie6). But if I remove the reference to the jquery library then it works in IE too (though obviousy without the jquery functionality).
[jQuery] get index number of 'in focus' text box
As each text box gains the focus, I would like the index number of that text box to be displayed in a div. I tried to use the following but -1 was displayed each time. $(document).ready(function() { $('input:text').focus(function () { $('div').text( $(this).index()); }); }); Here is the full HTML markup and jQuery code. TIA <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <script type = "text/javascript" src="jquery.js"></script> <script type
[jQuery] Cluetip problem
I am using the cluetip plugin for my pages. It works very nice in IE7 but when using with Firefox the embedded flash content on the pages sort of flicker when a tip pops up. Yes I have set the wmode to "opaque" but no avail... Any help much appreciated hnzz
[jQuery] how to trim all elments of a form with "$.each"
I would like to go through all inputs in a form and trim the fields in them. How do I do this with the $.each function? I looked at the documentation and its not clear. Please give me code.
[jQuery] JQuery site is blank for one user
Hi all, I've built a JQuery website, www.constitreaty.com, and tested it successfuly on Win XP Pro and Vista with IE6, IE7, Firefox 2 and Opera 9.25, as well as Mac OSX 10.4.8 with Firefox 2. One user has contacted me, as he cannot view the site on his Win XP Home SP2 PC, with either IE7 or Firefox 2 (both fully updated, with Javascript enabled). He gets a blank page, not even the <noscript> html. When disabling his firewall (Zone Alarm Pro) and anti-virus software (AVG 7.5), it's just the same (I
[jQuery] Browser.Version for IE7 Vista returned as 6
I am trying to eliminate some width-related effects in IE6 but leave them intact for 7 - however, browser.version returns IE7 as 6.0, and I cannot find a way to differentiate the two. I am aware this is a known issue, but I haven't found a fix that works. Does anybody have a working solution they'd be willing to share (or have already posted somewhere?) thanks very much
[jQuery] jqModal - how to call jquery functions on returned AHAH?
Hi, I'm using jqModal:ajax to load a remote php into a div "modal" form. So far so good. But the returned HTML also has some jquery elements. I can't figure out how to get them to initialize (i.e. the function call that would otherwise be in the $(document).ready function). I tried doing something with onload like so:
[jQuery] jqModal, Ajax onLoad Problem On Jquery 1.2.3
Hi everyone. I have got some problem jqModal and jquery 1.2.3, and here it is. <br clear="all"> I am creating simple modal like this. $('#modalcontent').jqm({ajax: url,target: 'div.jq_content', trigger: false, modal:true, onLoad: modal_load }).jqmShow(); function modal_load (hash) { modalReady(this); } And it fires my "modal_load" function when ajax content loaded without any problem. My loaded modal content contains inline script like this. function modalReady(context) { $('a', context).click(function(){return
[jQuery] Change text in <label for.....
Hi, I am working on a project where the "creative people" use a product which generates HTML like <label for="fchk_menus1" style="position:absolute; top:39px; left: 9px; "> <input id="fchk_menus1" type="checkbox" name="fchk_menus1" value="true" style="vertical-align:baseline; margin-bottom: 0px"/> Administration </label> As we have standardized all names and ID, everything looks fine. I just need to replace the Administration part by something else (we are using Tomcat/Struts) and I don't want developpers
[jQuery] Can jQuery create Drop Caps?
I'd like to turn all instances of "tablink": <a href="#" class="tablink">Drop Cap</a> Into this: <a href="#" class="tablink"><span class="dropcap">D</span>rop <span class="dropcap">C</span>ap</a> That is, place a span around each uppercase letter. Is it possible to do? Thanks, Rus Miller
[jQuery] Problems with the overlay created by SimpleModal in Opera
I'm having a problem with Opera and SimpleModal... If I open the demo page on SimpleModal's website and test it with Opera, it works well, but if I download the basic sample and test it on Opera, it doesn't quite work. The problem is, when you click to show the modal dialog, it shows fine. But after closing it, you will see something odd... Look at the screenshot, it shows what's happening after closing the dialog: http://img408.imageshack.us/my.php?image=operavu1.jpg
[jQuery] Treeview Ajax Loaded Nodes?
I'm using jQuery 1.2.2, and treeview 1.4, and I've read as much as I could find on treeview. I can't seem to find, however, a demo on loading specific nodes with dynamic data when they are expanded. The async demo doesn't necessarily show how to do that, either, unless it's a full tree load. Am I missing something?
[jQuery] [validate] maxLength for elements that are not required
Hey Jörn, It seems that whenever I define an element as not required:false and set a maxLength the validation plugin wouldn't bother limiting the field to the maxLength, When I switch to required:true - everything works perfectly. Is there a solution to that? Thanks, Yuval Karmi
[jQuery] jQuery Form Validation Plugin with Rails
Hello, This is my first post in this group. I am trying to use the Form Validation Plugin with Ruby on Rails, and I can´t make it work. It seems only working with forms using the 'get' action, not with 'post. An this goes against the REST principles of the architecture I am using. Is there some problem with this?. Thank you very much. Juanma Cervera '
[jQuery] ".find" does not work in ".each"
HTML code: <div id="catalog_table"> <table> <tbody> <tr> <td id="order"></td> </tr> .......................... </tbody> </table> </div> JS code: $("#catalog_table TBODY TR").each( function(){ $(this).find("TD[id^='order']").html('TEXT') }); It does not work I try next code: $("#catalog_table TBODY TR TD[id^='order']").each( function(){ $(this).html('TEXT') }); It work fine Why the first JS-code does not work?
[jQuery] Are Drop Caps possible?
I'd like to turn all instances of "tablink": <a href="#" class="tablink">Drop Cap</a> Into this: <a href="#" class="tablink"><span class="dropcap">D</span>rop <span class="dropcap">C</span>ap</a> That is, place a span around each uppercase letter. Is it possible to do? Thanks, Rus Miller
[jQuery] jQuery is killing my xhtml strict validation
Not sure this is 100% jQuery's problem. I do this: $("#logo").html("<img src='images/logosmall.gif' alt='logopic' />"); But what lands in the browser is this: <div id="logo"><img src="images/logosmall.gif" alt="logopic"></div> Interestingly, the single quotes have been converted to double quotes and the trailing " /" has been lost, which kills my validation. Is it jQuery being funny here or the browser itself? What should I do? If it helps, my PHP file stats like this: <!DOCTYPE html PUBLIC "-//W3C//DTD
[jQuery] Can jQuery create Drop Caps?
I'd like to turn this: <a href="#" class="tablink">Iconic Figures</a> into this: <a href="#" class="tablink"><span class="dropcap">I</span>conic <span class="dropcap">F</span>igures</a> Is there a way for jQuery to search and replace uppercase letters?
[jQuery] checkbox in li keeps unchecking itself
Hi, I have the following html <ul> <li><input class="xx" type="checkbox"> text <ul> <li></li> </ul> </li> </ul> with code like this: $("input").filter(".xx").click(function(){ //alert('name: ' + $(this).attr("name") + ' ' + 'class: ' + $ (this).attr("class") + ' ' + 'id: ' + $(this).atr("id")); // code should come here return false; }); $("li").click(function(){ $(this).children().children("li").each(function() { if ($(this).css("display") == 'none') { $(this).show(); } else { $(this).hide(); } });
[jQuery] before() and after() does not work on unclosed tags?
hello again... why would this work... $('#somediv').before('I am just text').after('I am also just text'); result: I am just text<div id="somediv">...</div>I am also just text but this would not? $('#somediv').before('<table><tr><td>').after('</td></tr></table>'); result: <table><tr><td></td></tr></table><div id="somediv">...</div> does jQuery not like incomplete, i.e. unclosed tags? ::scratching head::
[jQuery] livequery, $.ajax and json
Hello, I have this code: $('input#add_imageupload').livequery('click', function(){ var image = $('input#add_image').val(); alert(image); $.ajax({ type: "POST", dataType: "html", url: "albums.php", data: "image="+image, success: function() { alert('works'); } }); }); I have to use livequery, because I'm loading new data into new fields etc etc. The current example should
[jQuery] jQuert Validate 1.2 issues
I have a slight issue and maybe it is because I don't know enough about this plugin but is seems like the validation is based off of the name of the form field so if I wanted to have a email validation on 2 imputs I would have to put 2 input both have the name "email" but that would then only send on through the form. am I missing something here? -- View this message in context: http://www.nabble.com/jQuert-Validate-1.2-issues-tp15231991s27240p15231991.html Sent from the jQuery General Discussion
[jQuery] IE/Opera problem using ClueTip
i was using clueTip to create a tooltip like netflix. i just ClueTip's ajax based approach to load other html files in tooltip. its working perfect in FF but not in IE and asked for username/pass in Opera. please check the link http://www.unirazz.com/tooltip.html thnx
[jQuery] Examples of RIA apps using jQuery
Are there any examples of full RIA applications built using the jQuery platform? Please post URLs. TIA
[jQuery] unbind LocalScroll?
Wondering if anyone can help me with the LocalScroll plugin: I'm using the LocalScroll plugin and would like to programmatically unbind it from the nav links and target so that I can modify the set of links and the target, then rebind it. I tried using the lazy:true setting, but I found that I was not able to programmatically fire .click() events on the nav links (which I'm doing for some custom next/prev stuff) when lazy = true. I'm thinking that if I can unbind it, then rebind it, what I'm trying
[jQuery] $.ajaxFileUpload into an ajax form
hi i'm using the ajaxfileupload plugin from this site http://www.phpletter.com/Our-Projects/AjaxFileUpload/ (which works great) in a form with different kind of input file. The form is "ajaxed" through the $.ajax jquery function. Following the form submitting is a mail with the data from the form. Problem: i use the '$.ajax' and the '$.ajaxFileUpload' on the same form which calls for the same php file, which is now called twice, once per function. So everytime i submit the form two mails are sent,
[jQuery] refreshing a div tag
I searched around the web a bit for a way to refresh a div tag at set intervals but haven't found anything that pertains to jquery. I saw some stuff about prototype and ColdFusion 8, neither of which were any help. Does anyone have a preferred method of doing this? I'd like to be able to have the div tag refresh at regular intervals and also be triggered by clicking a link or triggering an event. Thanks! -- ~Steve http://goodcf.instantspot.com/blog
[jQuery] How do I use my functions with jQuery syntax alike?
Hi, Let's say I have 2 different javascript files. I like to organize my code that's why I use 2 different files so each file will only have functions that fall into that file's category. Anyway, here's the files layout... file1.js: function Fn1() { ... } function Fn2(a, b) { ...} file2.js function FnX(a, b, c) { ... } function FnY(a, b) { ... } function FnZ(a) { ... } How can I call those functions in a syntax like this: $.groupName.Fn1(); $.groupName.Fn2('text', 123); or jQuery.groupName.FnZ(true);
[jQuery] Injecting jQuery with A Bookmarklet
I have a bookmarklet that reads like so... <a href="javascript:(function() { var script = document.createElement('script'); script.src = 'http://thinknola.com/files/superduper.js'; document.getElementsByTagName('head')[0].appendChild(script); })(); ">Super Duper!</a> Here is superduper.js SuperDuper = { load: function() { alert('Loaded!'); } }; (function() { var script = document.createElement('script'); script.src = 'http://jquery.com/src/jquery-latest.js'; document.getElementsByTagName('head')[0].appendChild(script);
[jQuery] How to select an element based on visibility
Hi,I cannot get my finger behind this one: I have this HTML: <p class="firstLine">This is the first line of the first paragraph And here is some more text. Bladibladibla <p class="firstLine">This is the first line of the secons paragraph</ p> And here is some more text. Bladibladibla <p class="firstLine">This is the first line of the third paragraph And here is some more text. Bladibladibla when I click a class firstLine, I want the paragraph immediately _below_ it to disappear if it is visible.
[jQuery] Firefox 3 (contentEdiable / execCommand).
Hay all, Firefox 3 as support for contentEditable. This is great and all, but i have a huge error. http://kevin-ruscoe.plesk3.freepgs.com/contenteditable/ I cannot run execCommand() on my text, this works in safari and IE6+ I found the reason why this happens. When i click the anchor tag, the DIV loses focus and the nothing is selected. I need to know how to to re-select the selection then do the execCommand. Thanks all :)
[jQuery] jquery form plugin submitting for multiple times after DOM is appended
I'm using the jquery form plugin from a form which is retrieved via ajax. I have multiple forms on the page. I'm using .livequery to make sure the form is only requested once, but didn't realize my problem is that the submit is actually occuring more than once. I've tried adding .livequery to the begging of the .submit function so that it would hopefully only be triggered once, but that hasn't worked for me. I would prefer to not do an 'unbind/bind' function because with cancelling of the form, etc.
[jQuery] $.( 'a:link' )
This has to be obvious - but I can't find it! I'm trying to have a script restyle the a:links. Using the CSS name (which is, precisely, #nav a:link) doesn't get a result. It does if I take the :link part off, but that overrides the child styles. Seeing as "link" isn't a DOM element, I've tried all sorts of combinations without success .... can somebody please tell me the one I haven't tried, that works? Thanks, Cherry.
[jQuery] Is this bug in jquery???
i am using jquery version 1.2.3. I was trying to attach hover on <area> inside <map>. but find that its working ok in FF but not in IE. when i try to set <area onmouseover=""> then it works for both IE n FF. is this the bug?? If IE supports onmouseover event for <area> tag inside <map> tag then hover should work. thnx Faraz
[jQuery] Call a function just before the window close
Hello folks, Probably this is a dumb question, but I'm not a javascript developer (yet), so be patience with me! :P How can I call a function just before the window close? When the user click the close button of the window I want to execute some tasks. Can I do that?
[jQuery] Issue with $.getScript() and $(window).load() - Not working!
Hi, Here's the thing, I'm using the SimpleModal plugin to show a modal dialog on my page. It doesn't really matter which plugin I'm using. Well, I think it doesn't but I haven't actually tested any other plugins in this scenario. When you load any page, the modal dialog will be opened at $ (document).ready(). The idea is to show a modal dialog saying that the page is loading. Then, at $(window).load() I close the modal dialog cause this event will be fired as soon as the page stopped loading. The
[jQuery] Why does it take so long for a new topic to be posted?
Why does it take so long for a new topic to be posted? It really is frustrating esp, if you want answers to questions.
[jQuery] Selecting the ancestor of an element
How would I select the ancestor or parent of an element?
accessing select boxes
How do I get the option text of the selected option in a select box?
onkeyup in jquery
Hey guys, Is there a way of catching an 'onkeyup' event with jQuery? ie. $('#name').onkeyup(function(){alert(this.value);}); ???? thank you.
Next Page