Autocomplete menu goes behind asp.net control
Hi, i am using the autoupdate plugin. I have a listbox(asp.net control ) just below the autocomplete textbox. In IE6, the autocomplete menu goes behind the asp.net control. this happens only in ie6. It works fine in ie7. This issue is critical for me. Kindly solve it at the earliest. John
[jQuery] New SlickGrid example page - AJAX loading
A lot of people have been asking for an example of how to use SlickGrid with remote data stores. I've just added a new sample page that does just that: http://slickgrid.googlecode.com/svn/trunk/examples/example6-ajax-loading.html The page will pull all Apple-related stories from Digg.com and display them in a grid. I've also added an option to set a user-defined row height (something I've meant to do for a long time). Check it out at http://code.google.com/p/slickgrid/
[jQuery] jQuery blockUI overlay color and cursor doesn't work on firefox 3.5.3 (linux)
jQuery blockUI shows a grey overlay on all browsers on window. But on linux firefox (3.5.3 & 3.0.10) the overlay is transparent no matter what color and opacity is set. The 'wait' cursor also doesn't work on linux firefox while it works as expected on all browsers on windows.
select menu styling
hi, i am looking for some script ect that will modify the default select menu disply settings. thanks guys
[jQuery] Select element in form?
Hi, I have a form and want to select a text input element _in that specific form_. This is my code: $("form [name=" +formName + "] :text[name=" +textInputField+ "]")) formName: a form in my document textInputField: a <input type="text"> in my document If I do this alert($("form [name=" +formName + "] :text[name=" +textInputField+ "]")).length) I get 0 If I do this alert($(":text[name=" +textInputField+ "]")).length) I get 1 I have no idea what I am doing wrong...
[jQuery] Ajax - Disable script eval
I am using the jQuery load function to grab HTML from other pages. I am only interested in the HTML and the scripts in the page are irrelevant. How can I skip the scripts eval? I tried to add a filter but the following doesn't seem to work: load("page.html *:not(script)") I was also considering overwriting the GlobalEval function (I don't want to alter the jQuery library itself), but I don't know how to do that... Thanks for your help!
loss of focus and click on non-target
Hi, i am having trouble finding a way to solve this little problem i have. Therefore i turned to this forum in the hope any one here could me out! Let me point out my problem: I have an anchor, and when it is clicked, there will be a new dropdown box visible, BUT when you mouse out on either the dropdown box OR the anchor, and you CLICK, the dropdownbox must dissappear. I have had no luck with the blur(), if(focus)else{} or any combination between. The same goes for the mouseout function, which (
simple jquery navigation
I'm trying to create, which is probably very simple jquery (but I'm new at this), a nav system for my website, and I can't seem to get it to work. I have a set of 3 links, which control 3 divs. When you click a link, I want it to check if that div is already open. If not, fadeTo the currently opened div, and then slide open, or animate open that div controled in the link. I was trying something like this. It worked initially, but once I tried to make it more complicated it stopped functioning...
Disable Links
I have a div where all the links need to be disabled. They are triggers for events so cannot be removed, but I don't want them to go to the url when the links are clicked. So far I have this (very simple) $('#maindiv a').click(function() { return false; }); Which doesn't work and I found this online $("#maindiv a").click(function() { return false; }); But whichever I use, all links still go to the url The target is actually div => ul => li => a => input So not sure if I should be targeting better.
[jQuery] Simple Tooltip
Hello, I need a simple tooltip which html markup is only a div. I have the following: this.tooltip = function(){ /* CONFIG */ xOffset = 10; yOffset = 20; // these 2 variable determine popup's distance from the cursor // you might want to adjust to get the right result /* END CONFIG */ $("a.tooltip").hover(function(e){ this.t = this.title; this.title = ""; $("body").append("<div id='tooltip'><span>"+ this.t +"</span></ div>"); $("#tooltip")
Bind function to class?
Stuck to a hopefully simple problem. When the window loads, I want a function to check all text fields with a certain class if there is a value. If there is no value in the text field the value 0 will be set to the field. So far this is my code, but it does not work: $(window).load(function() { $(".classx,.classy").(function() {if ($(this).val() == "") {(this).val("0")}}); });
[jQuery] Obfuscated jQuery
I realize I could go through and obfuscate (condense) the file myself for the purpose of faster performance, but it's 4,377 lines of code. Is there an obfuscated version of 1.3.2 anywhere?
Jquery Tools Tooltips.... Really Stuck
So im trying to implement the jquery tools tooltip plugin and I thought i did everything right and I've triple checked it. I have no idea why the effect is not working. Here is my code and the site is up at http://mizirawi.com/merit-limousine/reservations.php and scroll down to Card Security Code and I'm trying to get the effect to apply to "what is this" : html <a id="csc" title="what is this">(What is This?)</a> <div class="tooltip"> <p>Hello World</p> </div> css .tooltip { display:none;
[jQuery] LavaLamp problem in IE
I have a site where the horizontal LavaLamp top menu is fine in FF, but in IE6 is so spaced out that it overflows and looks horrible. As a work around I have squeezed all of the links together so they fit in IE. However they are now all squeezed together and off-center in FF, so it now looks rubbish in FF. Any thoughts on how to fix this would be appreciated. site is: http://www.wilkinson-associates.co.uk/ Thanks. Peter
[jQuery] [BUG?] Ie8 span.show() on a.hover()
Hi, i'm trying to make a div showing when user moves mouse over a link, so html is this: <a href="page.php?id=3" class="menuItem" id="news">news</a> <span id="newsBar"> <a href="mandi">provanews</a> <a href="mandi">provanews</a> <a href="mandi">provanews</a> </span> <a href="page.php?id=3" class="menuItem" id="eventi">eventi</a> <span id="eventsBar"> <a href="mandi">provaeventi</a>
[jQuery] How to link the JQuery
I am confused as to how to link an external JQuery file to my web page. I understand using <script src=""/>. My question is regarding the file I downloaded from Jquery.com. Do I add code to that file and link it, or do I link that file and then create a new file with javascript in it and link that as well? Do I create a javascript file and somehow link the Jquery file to that javascript file? I guess I would need a step by step walkthrough on how to set up Jquery using all external files. thanks
Creat plugin with jQuery, select just this ?!
Hi all ! I want creat a jQuery plugin for colorPicker, so I have write this function : $.fn.colorPicker = function(options) { // Options options = arrayMerge( { colorDefault : "#DDDDDD" },options); This = this; init(); This.click(function(){ setColor('#000000"); }); function init() { if(!getColor()) setColor(options.colorDefault); else setColor(getColor()); } function setColor(color)
[jQuery] Assigning CSS 'display:block' by jquery not working
Hi, I am trying to display a hidden ul by using the $("id").addClass() method. For some reason the ul stays hidden. Can someone please help me?? Thanks ##mystyle.css ul#sitenav { padding:0; } ul#sitenav li{ display:inline; list-style-type:none; } ul#sitenav li ul{ display:none; } .selected { display:block; } ---------------------- ##sitenav.html <ul id="sitenav"> <li>Home<ul id="home-subnav"> <li>Events</li> <li>Restaurants</li> <li>Movies</li> <li>Nighlife</li>
Select an element inside $(this)
I'm trying to select an image inside $(this) but can't figure out how to do it! I can select it directly by using: $('#nav a img').fadeIn(500); but that targets every element that fits into that criteria, not just the one I want to select. Does anyone know how I can select only the image inside the $(this) variable?
[jQuery] Error message
Hi, Three values must add up to 100%. I have used two selects; #Stock_materials and #Stock_WIP with then third #Stock_Finished automatically displaying the result. Issue is that I want to highlight #Stock_WIP in red with an error message if the total in Stock_WIP is =>100. How do I add it into the below? $(document).ready(function() { $("#Stock_materials, #Stock_WIP").change(function() { $("#Stock_Finished").val(100 - Number($("#Stock_materials").val()) - Number($ ("#Stock_WIP").val()) +"%"); });
[jQuery] Publish & subscribe / event pooling
I've been noodling around on how to create a pubsub system that doesn't depend on linking objects and events together. Based on previous post it turns out to be straight forward with bind and trigger (see code below).<div> </div><div>However, two things I can't figure out.</div><div>I can't figure out why namespaced events don't work with this. The event's never fire...or at lest the 'bound' objects never receive them.</div> <div> </div><div>The other thing is related to 'live'? Shouldn't this work
[jQuery] Using jquery ui plugin. Don't know what functions name to use.
HI, I am using this: http://jquery-ui.googlecode.com/svn/branches/labs/carousel/demo/index.html plugin to jquery ui. The problem is that it's not working at all. I downloaded the firefox debugger and it's spitting out a error saying that it can't find the function of carousel. I am not sure what the function is called. Their is no documentation but their are demos that I can look at the source code. I see them using .carousel as a function so I used that same function call. Yet I can't get my carousel
[jQuery] My code is not working getting an error missing )
Hi Everyone I have been given this code to add to my effects.js $(".button").hover(function() { $(".button").addClass("imgbuttonhover"); $(".button").removeClass("imgbutton"); }, function() { $(".button").addClass("imgbutton"); $(".button").removeClass("imgbuttonhover"); } But when i add it to my file i get this error via firefox. missing ) after argument list [Break on this error] }\n Can someone please tell me what i'm missing? Thank-you. Jess
[jQuery] tablefilter with IE8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=iso-8859-1" http-equiv=Content-Type> <META name=GENERATOR content="MSHTML 8.00.6001.18812"> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT size=2 face=Arial>Hi all,</FONT></DIV> <DIV>I use TableFilter but it d'esn't work with IE8. <BR>I need to sort, search, and view a pager. <BR>I tried to correct by following the instructions: http://www.sitepoint.com/forums/showthread.php?t=61598,
Please help! Simple! Search the element on id and click it
Dear guys, hi! I searched the forum and can't so far find the answer! I hope you can help me! I'm new to programming and jQuery. So what I need to do is to click the element id's with javascript (as I think). I have <script type="text/javascript"> $(document).ready(function(){ $(".iframe").colorbox({width:1035, height:652, iframe:true}); }); </script> </head> <body> <a class='iframe' href="photogallery1.html">1</a> <a class='iframe' href="photogallery2.html">2</a>
[jQuery] I load an external page in a div but it's java script functions didn't work
I load a page in a div and i use some effect from jquery in these pages but effect's didn't work <script type="text/javascript"> jQuery(document).ready(function() { jQuery('#m12').click(function() { jQuery('#left_intd').load('eee.html'); return false; }); jQuery('#m22').click(function() { jQuery('#left_intd').load('logintemp.html'); return false; }); }); </script>
[jQuery] Problem with accordion and rules and messages
hi, i use this example http://jquery.bassistance.de/validate/demo/multipart/ i change it in hItp://assuranceauto.tv/form/demo/test.php But i have a problem, how can i get rules and messages just for accordion 0 the first form,then accordion 1 the second form var v = $("#cmaForm").validate({ rules: { sexe : "required", datenai: { required: true, dateNAI: true }, dateper: { required: true, datePER: true }, condacc : "required", actpro : "required" } , messages: { sexe: "sexe",
How make HOVER for image map areas?
I have some image with map. Main idea is to make some special roll-over effect on every area. How can I make HOVER on each area of image? This code does not work in IE: ---- js ----- $("#area1").hover(function(){ alert ("area1 mouseover!"); },function(){ alert ("area1 mouseout"); }); ---- html ----- <img id="my_img" usemap="my_map" src="images/img.jpg" width="500" height="500" alt="" /> <map name="my_map"> <rea id="area1" href="inf.html" type="poly" coords="..." /> <rea id="area2" href="ord.html"
[jQuery] scrolling text within a div
Hello guys, in a page I'm working on I have room for a div height not more than 200px, however I need to fit in a text that requires 300px and I don't want to show the scroll-bar on the right side so I'm looking for some ways/plug-ins in order to scroll the text within the div. I'd like to be able to scroll down, to scroll up and to stop the scrolling. Any suggestions about? Thanks and have a nice weekend. Sig
[jQuery] jQuery update (internal) function
Hi everyone, I was wondering if anyone knew anything about the internal update function that seems to be used for effects. My real question is, is it really necessary to change the css "display" property to "block" when an animation involves changing the height or width of the element to animate? I'm sure there's a reason for it, but I just don't know what... I'm trying to animate some elements but I really need the "display" property to stay on "inline", would there be a trick for that? Thanks :)
[jQuery] Fade in/ out image
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=us-ascii" http-equiv=Content-Type> <META name=GENERATOR content="MSHTML 8.00.6001.18813"></HEAD> <BODY> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=994323823-10102009>How can i remove the image in an id but keep the div?</SPAN></FONT></DIV> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=994323823-10102009></SPAN></FONT> </DIV> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=994323823-10102009></SPAN></FONT> </DIV>
[jQuery] how can i write a function that accepts a callback function
hi there, how can i write a function that accepts a callback function? $(selector).myFunction(argument,options,function(){ //do the thing }); i want myFunction to load some data via(an unordored list actually) load method end then somehow to return the wrapped elements for the callback function, exactly like load() does.
[jQuery] Ajax Request Order
Hello, I have a page that makes two ajax calls when the function is called. I have noticed while testing the page that sometimes the second request does not run, the first request works but then sometimes the second ones gets skipped. Is there a way to make sure the second request fires only after the first one? Here is my code below: <script type="text/javascript"> function InsertOrder(id,tbl) { $.ajaxSetup({dataType: "html"}) $.get('demo_orders.asp?PID=' + id + '&TBL=' + tbl,function(datanew) {$
[jQuery] Jquery and nvelocity
Hi, I was wondering if any one has used jquery and nvelocity and also if they have use jquery within the macros?
[jQuery] jquery and regular expression
Hi, I have a question about how could I create a textbox that will use jquery to add a regular expression that a user passes in. I want to be able to us a variable to pass in regular expression using jquery. Any help please. thanks
[jQuery] Repeating Data Regions
Hello, I am brand new to jQuery. I am trying to determine if there is a jQuery equivelant to Adobe Spry's "data region" and "repeat regions," where a variable is defined as an HTML or xml datasource, then a region is defined in the body where elements are repeated and populated with values from the data source. Something like this: ---------------- var ds1 = new Spry.Data.XMLDataSet("../data/my.xml","channels/channel/ item"); Then this in the HTML: <div spry:region="ds1"> <div spry:repeat=ds1">{@title}</div
Jquery conflict - Pls Help!
Hi Everyone, This should be an easy one to fix but obviously has me baffled! I am not a JS programmer by any means so really could use your help. I have JQ installed on our site and it is working perfectly. We have a couple of pluggins such as the tooltip pluggin and the thickbox. Both are working perfectly. The problem is that when we go to include the in the site, the other functions stop working. I suspect the problem is with the <script> function </script> - does one need to be renamed or something?
[jQuery] Debug says I'm missing a paren, but all parens are matched!
In this line of code, I'm looking for a div whose Id is in variable b1, and which has an input button field whose value is "Show" or "Hide", and this line is to toggle those values. $(("[id$="+b1+"]") input).attr(value, attr(value) =="Hide"?"Show":"Hide"); This doesn't work, and Firebug gives me the error "missing ) after argument list" Does anyone have an idea what the problem might be?
.ajax in IE
Okay, I've been beating my head against a wall for a few hours trying to figure out what is going on, and I'm not getting it. The following code works in Firefox, Safari, and Chrome. The only browser I seem to be having trouble with is IE, and I'm not sure what's up. So, basically, I'm using an ajax call to pull a div from one of my blog pages (same domain) into the home page. Here's the code. $.ajax({ dataType: "html", error: function() { $.ajax({ error:
[jQuery] Textarea and newlines
There is a textarea with id 'tresc'. Am taking data from it by: var tresc = $("#tresc"); then -> tresc.val() How i can add tag after every new line, so I can add this do the database or sent by mail? Was googling for solution for about 3 hours, nothing works. Cheers.
Next Page