[jQuery] TreeView Cookie Persistence Problem
Hello, I'm having some issues using the cookie persistence, it appears that as long as the link is in the jsp directory the menu renders properly, however if the link is not in the jsp directory the cookie is set to null and when the page loads all of the trees are expanded. Any help would be greatly appreciated. Here is the abridged version of the file that I'm using, this is included on all pages of my application. <div id="main"><a href=".">Main Demo</a> <div id="sidetree"> <div class="treeheader"> </div>
[jQuery] JCarousel - how toenable / disable next button manually
I've got a major wall with this plug-in. You have to specify a size that is > than the # of images that are currently viewable to get the next button to be enabled. That mucks up my entire logic when trying to look up in a javascript array and paint a new set of pictures every time you move next in the caoursel. http://sorgalla.com/projects/jcarousel/ So I figured hey, maybe I can specify x images that does not go over what is shown. So if I pass 3 images, it will show 3 and not have to specify a
[jQuery] Firefox, Opera.. GOOOD!.... IE... Chrome... BAAD. Initiating a download from a listbox.
hi I have a php script that initiates a download. This occurs when I file is selected from a drop down box and the js/jquery redirects them. Is there a reason this works perfectly in FF and Opera and has no response in Chrome/IE ? I tested the download code to execute when the page is loaded rather than when its selected from the box and it works fine, so I;m guessing its a problem with the js. Suggestions?
[jQuery] Add / Remove Element dynamically
Hi all, How i Add/Remove element dynamically using jquery , i want to Add/remove not more then 8 element (ie Textbox) Thanks bharanikumar
[jQuery] jqGrid - show editable column (hidden in grid)
Hi, I am trying to achieve fallowing functionality. Hide grid column (when grid view), but edit this field when inline editing popup shows. Currently when i hide a column in grid it is not visible in EditForm too. colModel: [ { name: 'Id', hidden:true, index: 'Id', width: 0,display:false, sorttype: "int", search: false }, { name: 'Email', editable: true,index: 'Email', width: 170, search: false }, { name: 'Comment', editable: true,index: 'Comment' , hidden:true, editrules:
[jQuery] Unique url and browser back button in an ajaxified page.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#666666"> <font size="-1"><font face="Calibri">Hi, Does jQuery provides any feature or plugin to handle unique url and browser back button in an ajaxified page. thanks in advance. </font></font> <div class="moz-signature">-- <meta http-equiv="Content-Type" content="text/html; "> <meta name="ProgId" content="Word.Document"> <meta name="Generator" content="Microsoft Word 12"> <meta
[jQuery] Superfish menu: IE 7 problem
Please have a look a main menu at this demo. http://www.okadadesign.no/vitaveritas/ Om oss and Medieomtale have sub menus. The submenu works fine with FF, IE8 etc. But it fails with IE7. I have to use sprites background images and the second level sub menu have to be positioned at a certian place. When I hover top of sub menu, it is ok. But the below of that sub menu, such as Radio, Artikler, Hvem er vi?, I am not able to select in IE7. Can anyone help me please? Thanks in advance.
[jQuery] simple JSON parse problem!!!
Why won't this work??? Nothing pops up for the alert. <script type="text/javascript"> var theObject = {"key": "value"}; var JSON = eval ("("+theObject+")"); alert(JSON.key); </script> -- View this message in context: http://www.nabble.com/simple-JSON-parse-problem%21%21%21-tp24283450s27240p24283450.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
Returning a value from a script called via ajax
Howdy, I've got a form that has some dynamically produced content via jQuery, anyhoo, I've also got a few fields that when submitted, fires off a call to an ajax script to then run a php script that performs some database work. Now, the issue I'm having is trying to action the return value of the php code. I'm firing off the ajax via... var ajaxPost = { type: "post", url: "/my_php_script.php", data: "&value1=hello&value2=rob", success:
[jQuery] Newbie question
Hello. I am trying to do something like this $(element1 || element2).click(function(){}) unfortunately this does not work, both element1 and element2 work independently but not together and i have no clue how to get them to work together. Basically what i need that either when element1 is clicked, OR element2 is clicked, do identical thing. I know this is a very simple issue, but i havent learned Javascript at all, i've started with jQuery. Thank you
[jQuery] ui.jquery.com down?
Is the UI section of the site down? I have a few websites that link to it and they're all taking forever to load, seemingly hanging when "waiting for ui.jquery.com..." This is the first time I've seen this and am wondering if anyone else is aware of the problem. Thanks, Vorge
[jQuery] AutoComplete - Raising event when custom item is selected
Concerning Jörn Zaefferer autocomplete. In many cases the autocomplete list is being filled with Key Value pairs, such as a list of FooBars with their name and id. Using the result function one would get the id, and drop it into a hidden field. I want to allow users to either pick an existing FooBars from the list, or enter a new one if he cannot find a suitable one. But for that to work I need to know that the autocomplete box contains a custom item, with other words: an item that was not in the
ABN Validation
Hi thanks for your time. I am wondering if you might be able to help me. Do you know of a JQuery solution that can validate an Australian Business Number (ABN). Here is a Javascript version that I have managed to find, but I can not seem to find a JQuery version. It would be preferable if it was contained in the one field rather than over 4. http://www.mathgen.ch/codes/abn.html Cheers zero
[jQuery] Bubble Issue with the browser
<br clear="all"><span class="postbody">Hi I am having problem with the coda bubble window.. please check the urls: InternetExplorer view: <a href="http://img133.imageshack.us/img133/7538/83905753.jpg" target="_blank" class="postlink">http://img133.imageshack.us/img133/7538/83905753.jpg</a> Mozilla View: <a href="http://img29.imageshack.us/img29/1955/mozillan.jpg" target="_blank" class="postlink">http://img29.imageshack.us/img29/1955/mozillan.jpg</a> </span> <table class="code" align="center" cellpadding="3"
[jQuery] unsubscribe
unsubscribe
[jQuery] Autocomplete - finding out (on blur) if the user has picked an item from the list or not
Concerning Jörn Zaefferer autocomplete. In many cases the autocomplete list is being filled with Key Value pairs, such as a list of FooBars with their name and id. Using the result function one would get the id, and drop it into a hidden field. I want to allow users to either pick an existing FooBars from the list, or enter a new one if he cannot find a suitable one. But for that to work I need to know that the autocomplete box contains a custom item, with other words: an item that was not in the
Jquery mousover fade issue
Hi all, I have some jquery that shows a hidden div when moused over an object, and then hides it when moused out. It works really well, but when I change the show/hide for fadeIn/fadeOut, it seems to play up. When it shows, if you hover over the span inside the div it fades out. Also, if you move quickly to another div below or above it (its a menu), it will fade out the new one rather than the old, and then show nothing... Heres the code: Html: <div class="navhead" rel="2" title="View all of the
.change() not working in IE 7
Hi Guys, Stuck with a small problem of .change() function not working in IE, i was going through some blogs which said the same thing, i tried using .click() without any help... i am attaching the code below... please help... the code is as follows <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(':input','#prefForm')
[jQuery] FadeOut issue
Hi, using your example $.blockUI({ message: $('div.growlUI'), fadeIn: 0, fadeOut: 0, timeout: 3000, ... )} It seems fadeout is happening even if fadeOut parameter is set to 0. Thanks, Florin
Bubble Issue with the browser
Hi I am having problem with the coda bubble window.. please check the urls: InternetExplorer view: http://img133.imageshack.us/img133/7538/83905753.jpg Mozilla View: http://img29.imageshack.us/img29/1955/mozillan.jpg <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>Coda Bubble
Help with extremely simple two lines of jquery
<table id="myTable"> <tr><td>test</td></tr> </table> <input type="button" value="click" id="myButton"/> $("#myButton").click(function () { var html = "<tr><td>test</td></tr>"; $(html).insertAfter("#myTable tr:last").fadeIn("slow"); }); The above code doesn't seem to work as expected - the inserted element doesn't fade in, it just 'appears'. Can anyone explain why this doesn't work? All the documentation I've googles seems to suggest this should work...[/code]
Selectors
Hi, I have the following code: <p> <a class="test" href="#">name</a><div class="loader">loading...</div> </p> <p> <a class="test" href="#">name</a> </p> <p> <a class="test" href="#">name</a> </p> If a-tag with the class "test" is $this (e.target) and I want to acces the next element (div=loader) I thought I have to take the next() selector. But it's not working. When I change the div to an a-tag I can use next() and siblings() without any problem. Why is that and how can I access the element
$('ul#tmp li a').click() vs. javascript getElement
Say I have a jquery script like this $('ul#tmp li a').click() If just use javascript to get the node, I have to get nodes like this document.getElementsByTagName('ul').getElementbyID('tmp).getElementsByTagNames('li').getElementsbyTagNames('a') And then define the onClick for each nodes I get? But in jquery $('ul#tmp li a').click Simple codes like this will do?
jQuery to fade/slide movie files
Hi, I have tried jQuery to slide and fade images and works great. I am looking at getting the sliding and fading effect on videos, i.e. I have 3 links and clicking each of the links, the video needs to slide/fade and start playing. Can anyone suggest me links that have this script? Thanks
[jQuery] basic jQuery/JavaScript pattern
I keep running across this type of pattern in the jquery source code. (function(){ ... })(); How is this basic to understanding how jQuery works, and how JavaScript works? Thanks in advance.
[jQuery] Eval issue ?
Hi, I'm trying to to something in javascript but I don't know how to do that. Basicly, I have something like this : TAGS = new Array( $(".class"), $("#foo") ); B = new Array( "hey", "oh" ); for (var i=0; i < TAGS.length; i++) { TAGS[i].click( function(event) { alert(B[i]); }); } I would like to alert "hey" when the user clicks on a tag of class "class" and to alert "oh" when he clicks on a tag of id "foo". This doesn't work because B[i] takes the "i" when the callback
[jQuery] just trying to get more efficient with jQuery coding
This is a FAQ page I built with custom jquery function that toggles the answers open/closed on click of a question, and Im just wondering if anyone has a suggestion to make the code leaner and meaner: http://dfrecruiting.com/faqs The code: $(".entry h4").click(function() { if ( $(this).hasClass("active") ) { $(this).removeClass("active").next().animate({ opacity: 0 }, 200).slideToggle(500).removeClass("active"); } else { $(this).addClass("active").next().addClass ("active").slideToggle(500).animate({
[jQuery] Target specific ul list items for css
How would I target (with jQuery or normal javascript) the 5th and 6th li in an unsorted list for styling? I need to change the css for only 2 items in a list. Thanks in advance for your help.
[jQuery] jQuery cycle plugin pager not working in FF and Safari
I am having an odd error where the pager generates links but they don't change the slide in FF and Safari. The biggest surprise of all is that it actually works in IE. Here is the page I am referring to: http://76.12.208.222/ Any suggestions?
[jQuery] copy and paste event
I have a text input box, is there a way to detect a copy and paste event into the box? keyup, focus doesn't really do it. thanks
[jQuery] jquery prompt replacement
Hi, I've seen a number of jquery prompt replacements that allow you to have a customizable prompt of some sort but none that allow you to actually use it the way a prompt is normally used - that would say var x = prompt("please enter your value"); alert(x); Is there anything like that? If not - I have a situation like this where I have functions that take a function as a parameter - for example: newProc(Command('info')); Command returns a value based on, in some cases at least, the value a user inputs
[jQuery] Modal Boxes Position Off on Centered Layout
I have a few sites with centered layouts and any modalbox script positions the containing item in a relative position to the parent item instead of left:0; bottom:0; or whatever it will be over to the right in relation to how much space is outside the main site container. So if I have a 900px wide site an the window size is larger than 900px, the modal position will be off. I applied "position: relative;" to very element I could think of, is there somthing else I should look for?
[jQuery] Event for when a <select> is changed?
How can I trigger a jquery event for when a user changes the option that is selected in a select statement? I need to update a variable with the new selected item when this happens. thanks -- View this message in context: http://www.nabble.com/Event-for-when-a-%3Cselect%3E-is-changed--tp24281551s27240p24281551.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
Cookies
I'm just starting in jQuery so i'm trialling some simple codes. Can anyone tell me how to set a cookie so that when I hide/show the block it will remain shown/hidden after a page refresh? here is my code. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $(".close").click(function () { $("#welcome").fadeIn("slow");
how to break out of hover function
First post ... yayyyy! Ok, here's the problem. I have a hover function that also has the "rollout" function attached to it. However, I also call a different function when the user clicks. This function when clicked, changes the class name, however, the hover function, is waiting for my "rollout" and does stuff that I don't want after the click has happened. Ok, that was confusing. Let me show you with code: Hover Function: (basically turns on/off an image) $(document).ready(function() { $('.hotelCat').hover(function(){
[jQuery] mouseover on image in jCarousel
Is there a way to create a mouseover effect on an image that is in a jQuery carousel? I want a description to appear by my image when you mouseover it. Does anyone know if this is possible and how to do it?
How to open a link and send to it a post request?
Hi to all! I was guessing if it was possible, using jQuery, to have a link that, when clicked, opens the relative url and sends to it a post request. I'm trying to do this with the $.post function, but i found the problem that the request is sent, but the page isn't opened. This is my code: <html> <head> <script type="text/javascript" src="jquery.js"></script> <!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script>--> <script type="text/javascript">
[jQuery] Plugins and context
Is there a way for plugins to know the context of the jQuery object?<div> </div><div>According to the jQuery Core docs, I can create a jQuery collection by passing in a selector and a context, and I should be able to retrieve the context from the object's context property, but it's not working within plugins.</div> <div> </div><div>For example, here's a simple plugin and some code to run it:</div><div> </div><div>$.fn.myPlugin = function()</div><div>{</div><div> console.log('selector:', this.selector);
[jQuery] Using live() within context of a node
Hello,<div> </div><div>I am building a plugin and need to use live() to capture click events on elements with a configurable class name, but only if they are children of specific node (that may or may not have an ID).</div> <div> </div><div>For example, I want to create several containers (divs) on the page, and if any element with a class name of "close" within the container is clicked, it should remove the container.</div><div> </div><div>I tried this using live():<br clear="all"> </div><div>var
[jQuery] Form Plugin Question
As jQuery has both a serialize() and serializeArray() method for serializing an HTML form to a String and JSON respectively, why does the Form Plugin at malsup.com include yet another serialize() method in the form of formSerialize()? I understand the fieldSerialize() method, but not the former. My concern is that the file is 25K uncompressed and 8K compressed which, to me, seems like a very heavy footprint even if the cost/ benefit is worth the size. If removing a potentially unnecessary method
Next Page