[jQuery] Select change, multiple selects
Hi everyone. I'm fairly new to jquery and I am kinda perplexed with this issue. I've got a page (dashboard.php) with 2 select boxes. The first select box triggers the jquery script below, which populates the 2nd box with values: /////////////////////////////////// <script type="text/javascript" charset="utf-8"> $(function(){ $("select#startstate").change(function(){ alert($(this).val());//debug $.getJSON("admin/startcities.php",{id: $(this).val(), ajax: 'true'}, function(j){ var options =
[jQuery] Need nested tabs...
Hey all. Can anyone show me code to create nested tabs that work in the latest version of jquery? I see plenty of examples in previous versions but I can't get them to work. I have a single line of tabs working fine, but I need nested tabs. Any help would be appreciated. ...
[jQuery] Can't get onclick of tab to fire....
Hey all. I'm slowly but surely working through my tab issues. My latest is that I can't get the onclick even to fire. I copied the code, bt it won't work. Also, is there a way to fire an event when a specific tab is clicked? Here is the code I'm working with. CODE BEGIN <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ TR/html4/strict.dtd"> <html> <head> <title>WDS Web Main Screen</title> <link rel="stylesheet" type="text/css" media="all" href="/styles/ common.css"> <link rel="stylesheet"
[jQuery] How to use superfish menu style
Dear All, Please help me in installing and using superfish menu in my website. I downloaded the file but I don't know how to make it work in my website for the menus. Thanks in advance Jay
Adding text fields to a gallery
i’m currently trying to wrap-up a website for a friend of mine. i am using JQuery for here portfolio, but being such a JQuery/JS noob I’ve hit a wall. I am hoping someone can help. here is the portfolio: http://www.dorothyalig.com/gallery/prints what I am wanting is to display the title, description, price/availability. i have created the custom fields for description, and price/availability that are necessary when using Expression Engine CMS but can’t figure out how to add that to the JQuery
[jQuery] Malsup Form Plugin and Cross Domain issues
Has anyone figured out how to do a successful callback to a cross domain post using malsup's from plugin. I'm working with another groups in aspx and they are getting the data, but my page just get redirected to the post url. I've tried using "datatype: json" but not luck. As a dug in deeper I found a "Access to restricted URI denied" code: "1012" in firebug and figured it was a cross domain issues. I know this is a security issue, but I'm wondering if the end of the day and I'm missing something.
[jQuery] Resizable: aspectRatio bugs with containment?
Hi Folks, I'm new with jquery ui, but it seens that there is a bug with the aspectRatio when used with the containment parameter. When you're resizing and the "#crop" object hits the border of the containment ".image", it loses its aspect ratio and keep resizing in the other axis. For example, if it hits the right border, it will keep resizing it's height. Am I doing something wrong? Is all necessary .js linked? Here's my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Repeated $(this)
In jQuery, the element being acted upon is often passed to the function parameter of a jQuery function as this. It can be made into a jQuery element object by using $(this) in the function parameter, ex: $('.menu a').each(function(){ $(this).animate({paddingLeft: $(this).width()}, 200); }); My question is, since (I assume) at least the first instance of $(this) initializes the a element as a jQuery element object with all of the extended features of jQuery, does the second one do this all over again,
[jQuery] Problem with supersubs plug-in - 2nd repost because of problem with links
Hi, I'm reposting this since there was a problem with the picture links in the previous posting. I have a problem with one of my drop down menus acting erratically due to a possible conflict with the supersubs plug-in. The highlighted menu option extends beyond the edge of the display. It only seems to be a problem with only one of the menu options. The others work fine and I've tried to delete/redo the problem menu option but to no avail. When I deactivate it the menu works fine except that it doesn't
[jQuery] Where can I get download files?
I'm looking for effects.core.js but I can't find the file anywhere on this site, The demos all use "latest-file.js". I've checked the downloads, searched etc. Can anyone help?
[jQuery] Issue with Supersubs plug-in
Hi, I have a problem with one of my drop down menus acting erratically due to a possible conflict with the supersubs plug-in. The highlighted menu option extends beyond the edge of the display. It only seems to be a problem with only one of the menu options. The others work fine and I've tried to delete/redo the problem menu option but to no avail. When I deactivate it the menu works fine except that it doesn't auto resizes to fit the menu option. Here's a pic of the problem: [img]http://i641.photobucket.com/albums/uu134/yakfinatic/1dropdownmenu-
jQuery Random Image
I want to use jQuery to show a random image from a location on my server but do not know how to. Can anyone help me please? Many thanks Craig Eves
[jQuery] [treeview] More than three levels?
Hello! Can be used more than three levels? I'm using 4 levels, but treeview only show links to expand/colapse nodes/uls in the first two levels. A sample code is: <script type="text/javascript"> $("#browser").treeview(); </script> <ul id="browser" class="filetree"> <li><span class="folder">Folder 1</span> <ul> <li><span class="folder">Folder 1.1</span> <ul id="folder21"> <li><span class="folder">Folder 1.1.1</span></li>
[jQuery] jQuery Form Plugin ROOKIE in need of help :(
Hey everybody - I'm definitely an amateur, but I have a pretty good understanding of PHP / MySQL / Firebug / FirePHP so I think we can work through this. If using the standard form plugin model - I have the callback: function showResponse(responseText, statusText) { $('#myForm').html('<h1>Submission was successful</h1>' + responseText); } I do see the HTML change in the browser / firebug for this element: <form id=myForm> but when I view source (in Firefox) ---> I see the HTML that would of existed
[jQuery] Fixing a jQuery plugin (will pay for help)
Hello, I've recently worked with a freelancer that developed a jQuery plugin for me, he did a good job, but unfortunately - he couldn't finish it... It is a RTE (Rich Text Editor) plugin (WYSIWYG - What you see is what you get), which works pretty good, there are only a few bugs left that needs to be fixed... The code seems very readable and understandable, and well indented... it is currently ~400 lines of code (16kb, when not packed/minified). If there's anyone here with some knowledge in RTE's,
[jQuery] Superfish Menu Keyboard Access
I was wondering if there are any methods that are currently in place to allow keyboard shortcuts to focus Superfish menuitems. Also, is it currently possible to press a keyboard shortcut combination to focus a parent menu item and have it display the submenu's underneath it? I would use the following structure for example: <ul class="sf-menu"> <li>First</li> <li>Second <ul class="sf-with-ul"> <li>Sub One</li> <li>Sub Two</li> <li>Sub Three</li> </ul> </li> <li>Third</li> </ul> So, essentially I would
[jQuery] jQuery UI 1.6rc6 & Google Loader
How would I include jQuery UI 1.6rc6 with the google api loader? Or do google only host the last full releases?
[jQuery] [autocomplete] changing value of hidden input
I'm using Jörn's autocomplete plugin and I'm having trouble changing the value of my hidden input. The first part works fine - it searches the array and I can select select any of the results. However, I'm trying to grab the "id" key value from the array and use it as the value of my hidden input (name="account"). Here's my test page: http://www.viktorwithak.com/Test/AutoComplete/index.htm (I'm using a "GET" form, so submit the form and you'll see that the "account" value is currently empty) Here's
[jQuery] Hide/Show when Check Box is selected
Hello, On a form how can I Show a fieldset when a checkbox is Selected and Hide the same fieldset when the same checkbox is unselected? Thanks, Miguel
[jQuery] finding eq index of clicked element
Hi, I'm trying to find the index of a click element this doesn't work (specifically the eq part, rest is fine) this.children("a").click(function() { var eq = $(this).eq(); console.log(eq); $(this).parents(".thumbnails").children(".current").animate({left: ""+eq*currentSlide+"px"},opts.fadeOut); return false; }); how would I find the index, as this is returning nothing. - Liam
[jQuery] Var from Ajax success not defined?
Hi, $.ajax({ type: "POST", url: "/ajax_add_selected_product_to_session.php", success: function(msg){ /* add here what to do on success */ //alert(msg); var how_many_checked = msg; } }); alert(how_many_checked); if(how_many_checked > 0) ....... the FF returns "how_many_checked" ist not defined. Why? How can I define a var and use it for a later coming if / else part? Thanks a bunch!
[jQuery] Compatibility Mode of jquery library
On my website I want to use a module that uses the Java-Framework "jquery", together with a plugin that uses the framework "mootools". However I didn't got them to work. It seems to be due to a conflict between namespace and equal functions in the js-files. On several pages I read about using the compatibility mode of jquery to resolve the problem. Unfortunately is the jquery. js of my module compressed so that I can't see the '$' characters that are to be replaced. Can I use the compatibility mode
[jQuery] UI-sortble lists
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.6000.16809" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV>I have two sortable lists connected to each other using:<BR><BR><BR>$("#listOne").sortable({<BR> connectWith: ["#listTwo"]<BR>});<BR>$("#listTwo").sortable({<BR> connectWith: ["#listOne"]<BR>});<BR><BR><BR>What I am looking for is a way to select
multiple selectors
Hi all! Noobie here. I began learning javascript two months ago, and have been encouraged to use jQuery by many reliable sources. Upon examining the jQuery documentation, it became clear that this library will help immensely. I see that one can easily select all elements that match any of a list of specified selectors, (http://docs.jquery.com/Selectors/multiple#selector1selector2selectorN) but how would one select ONLY the elements that match ALL specified selectors? For example, in <body> <form
[jQuery] MultiFile plugin not overwriting default options
Hi, I was previously using version 1.29 of the MultiFile plugin and it was working. Then I upgrade to jquery-1.3.1 and since then the MultiFile plugin seems to fail to apply any options. I have upgraded to the latest version of the MultiFile plugin and it still is not working. I have the following call in my document.ready: $('#frmEmailFrm input:file').MultiFile({max: 5,namePattern:'$name_ $i',STRING:{remove:'Remove'}}); It allows me to add more than 5 files, the namePattern stays as just $name and
[jQuery] facing problem in datepicker
Hi, i am tring to build datepicker by using the jquery but i am facing a problem like "$(".date-pick").datePicker is not a function" wven i inlcude all the plugings and javascript files and also css. please help me thanks
[jQuery] jQuery 1.3.2 Not working at all
Hello All, I've just updated my jQuery to the latest and now I'm getting this error in firebug. [Exception... "'Syntax error, unrecognized expression: [@rel^="collapse-"]' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] Anyone know what it happening with this? Thanks for your help.
toggle boxes
Hey there.. Well I'm not that good @ jQuery.. I started with it about 10h ago.. So here's my little code: $num = "1"; while($num<=2){ echo "<a href='#' id='showcode'>Show code</a>"; echo "<div id='codebox'><textarea rows='2' cols='52' readonly='readonly'/>".$num"</textarea></div>"; } It displays 2 items.. But now I have this code: $(function(){ $('a[id=showcode]').click(function(){ $('#codebox').toggle(1500); }); }); So here's
[jQuery] Get all inputs but not a specfic one?
Hi, is there a way to do this: $("input:checkbox" -> but not this one id = #notwanted <- ).click (function(){ ..... Thanks a bunch!
stumped noobie needs help
Hey Everyone, I've just started playing around with jquery and hit a big roadblock that I've worked my way around but still don't understand and am wondering if anyone can clarify it for me. I'll post two js codes below, the first one has the problem where the third click function wont respond at all though it seems to be written properly. The second code is the one that I've got working by changing the position of the closing parenthesies and braces so that now the third click is inside the second
[jQuery] Submenu on Tab
Hello, I have a series of tabs on my page that I'd like to have dynamic content inside. Throughout the course of reading over multiple issues, I've discovered that what I'd like to do most likely can be done; but I may be taking the wrong approach. First, a copy of my script block: <script type="text/javascript"> $(function() { $("#tabs").tabs({ fx: { opacity: 'toggle' } }); $('#link a').unbind().click(function(){ $('.link').ajaxContent({
[jQuery] SlideUp/SlideDown Causing Alignment Issues.
Hello Guys, Take a look at the following example: http://www.coldbeans.co.uk/expanding_table.html Any ideas why the nested table alignment all goes tits-up when the JS gets involved? Cheers, Robert
[jQuery] Change image attribute based on variable
Hi, pulling my hair out here. When the page loads I'm collecting a variable from the url which corresponds to the class of an image. I want to then change the image source. I'm doing this because the page doesn't reload and the menu needs to respond to the content if you get my meaning. $url = location.href; $hashtag = $url.search(/#/) $url2 = $url.split("#", $hashtag); $finalurl = $url2[1]; This is the code I use to get the class name. When I try to add $finalurl to the attr (see below) it throws
[jQuery] Cancelling the behaviour of a link-initiated function
<html> <body> Hi folks, I'm after some help/ideas of how to link a couple of "things" together. I have a page which holds several pieces of text that are hidden on pageload. These are toggled into and out of view via a function tied to an a.showme class combo. I also have functionality to load content into the page via an ajax call after page load. I bind an a.txtload combo to a function that loads the content. In some instances I have both classes ('showme' and 'txtload') on the same link - I
[jQuery] Question on JQuery Licensing Issue
This is Vicky from China. I came across to know JQuery last year and felt very interested in this masterpiece. My brother once adopted some features or plug-in of JQuery during his graduation thesis of designing a web application. He found it's very practical also. Now I have some questions which need your kind clarification. 1. May I know the licence for the plug-in called "table sorter"? JQuery is in dual licence(GPL and MIT), but I'm not sure whether this specific plug-in is in both? MIT? or GPL?
serical scroll: how to target a section via navigation
hei, how can i target a "section" from the tab navigation: http://demos.flesler.com/jquery/serialScroll/ plugin: http://plugins.jquery.com/project/SerialScroll thanks in advance for your help, chatnoir
[jQuery] Does a plugin like this excist allready
Hi I am looking for a plugin with same functionality as <a href="http://www.bbc.co.uk/">http://www.bbc.co.uk/</a> notice the + - and when clicked it expands or contracts one. Before we start on this, is such a plugin or code allready avaiable that I missed thanks Armand
FF3 CSS Refresh Issue
I made a collapsible panel with JQuery to mimic the asp.net ajax toolkit collapsible panel. it works great on a test page, but when I create 8 of them on a more complex page they leave a white space in FF3 when collapsed. If I disable any css style using firebug the white space is removed. So it seems like a css refresh issue. Has anyone ever experienced this? Or, know how to fix it?
Problem displaying Jquery Cycle pager thumbnail images
Greetings, I am trying to make a prototype of a feature powered by Cycle function properly (and am a beginner at Jquery/JS). I am attempting to produce a rotating series of images and related content which are accompanied by pager thumbnails. I have been successful at getting the thumbnails to work when rotating the images only: Example However, I'm not sure how to properly use the pagerAnchorBuilder function in order to create thumbnails from the images when they are within a container div with
[jQuery] jQuery, Shadowbox + Postback
Hi, I've been trying to do a postback from a shadowbox. And I've acctually succeded, but it's not using jQuery witch I think could help me out alot easier than I have now. What I want to do is to post back a value from my shadowbox, and then I close it with document.Shadowbox.close(); The value should then be parsed into a input form field. The tricky part is that I want to make jQuery do something to the input field and the value. It's going to check the value if it's valid and if so change it to
Next Page