[jQuery] Superfish - Horizontal Internet Explorer Width Problem
I have a horizontal navbar that if the persons screen is under 1024 wide it sticks out of the table. In Firefox it works fine so it's only an IE problem but one I need fixed. link http://dev2.azaz.com/scott/ahno/index_testnav.html If you just shrink the browser down until you see the nav break free of the table you'll see what I mean. Again, doesn't happen in Firefox. IE fix please?
[jQuery] Passing arguments to event handler
I'm trying to pass arguments to a function that's called from within anonymous function that acts as an event handler for the click event. The problem is that once a thumbnail(gallery.images[i]) is clicked the startSlideshow function gets the final iteration's values passed as the arguments, instead I would like for it to get the values(filename, folder, width, height) of the loop iteration it was created in. The code in question is: $(_gallery.images[i]).click(function(){ slideshow.startSlideshow(filename,
Need help w/jQuery UI and themes
Hello, I'm trying to get started with my first jQuery UI project. I want to use the datepicker widget but am having problems getting any theme picked up at all. I included the following code in my page: <link href="/stylesheet/ui-lightness/ui.all.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/js/jquery-ui-1.5.3.custom.min.js"></script> <script language="JavaScript"> $(document).ready(function() { $("#datepicker").datepicker();
[jQuery] .append misbehavior in MSIE7 with cross-window element injection
I need to alter a parent window from its pop-up (customers insisted) child, using dynamic data. The following works in Firefox 3, but not in MSIE7. <script type="text/javascript"> var newElement = $("<li />").text("Mod State"); $(opener.document).find("#injectHere").append(newElement); </script> See http://www.5pmstudio.com/js/base.htm (click on the word "popup") for a demo. If I were to write out the newElement as just a string, MSIE7 accepts it. If I were to write in an element as a string and
[jQuery] Helping IE support Border Radius
http://gist.github.com/77516 // Use like : $(".myClass").borderRadius() will attempt to apply curved corners as per the elements -moz-border-radius attribute // Good: // - supports textured forgrounds and backgrounds // - maintains layouts // - very easy to use // - IE6 and IE7 // Bad: // - not fluid. Reapply if the dimensions change // - only supports rounding all corners // - no hover // - no Opera
[jQuery] Switching Content in same div
Hi, Switching content in same div which contains images and text. As We see a product more views or red and blue Default loads the red when u click on blue the image and description changes. same when u click on red. Help me out here thanks
[jQuery] Treeview node click behavior
Is there a way to make a node in the treeview expand/collapse ONLY if the +/- is clicked but not the folder icon or folder name but still make the node selectable?
[jQuery] Tablesorter with inside delete link
Hi! I'm using tablesorter, which content is generated by a $.get (from a php script) when the page loads. I want to add to my table a column 'delete' with a delete link (for each row of course). The problem is I can't catch the click action with jQuery: nothing happens. But when the link is outside the php-generated content, I can trigger the action (displaying for example an alert). Do you understand the problem? Maybe it's a basic jQuery situation I don't know. -- View this message in context:
[jQuery] ajax, scripts and bowser cache
Hi I submit data to a page and load response content into a div using an ajax POST request. The response can contain new scripts to load and some which have been already loaded by the main page. The browser does not sort out already loaded/cached scripts because jquery adds an additional flag to the url which looks like '&_=1236778004669'. This is also the case if I define the "cache: true," parameter. This is what my ajax function looks like: $.ajax({ type: "POST", url: "SomeUrl", cache: true, data:
[jQuery] ajax script resources and bowser cache
Hi I submit data to a page and load content to a div by a ajax POST request. The response can contain new scripts to load and some which have been already load by the main page load. The browser does not sort out already loaded/cachedscripts because jquery adds an additional flag to the url which looks like '&_=1236778004669'. This is also the case if I define "cache: true," parameter. This is what my ajax function looks like: $.ajax({ type: "POST", url: "SomeUrl", cache:
[jQuery] jQuery validation plugin -- how to validate an input only if it contains info
Hi -- I've got a contact form here http://www.dianlofton.com/contact.shtml ...using the jquery.validate.js plugin. The form has an optional input for a phone number, which I'd like to have validated -- but only if there is info in the input. If you look at the source code for that page, you'll see some commented out code for the phone number validation. However, when this scripting is active on the page, it makes the phone number a required field, which is not what I'm after: $.validator.addMethod("phone",
[jQuery] Problem importing XML file
Hi, I'm trying to import my sitemap.xml file, and the code below works when i have the alert('.....') placed in there, but the moment I remove it, the data isn't imported, can anyone help? $.ajax({ type: "GET", url: "/sitemap.xml", dataType: "xml", success: function(xml) { var name_text; alert('got it!'); // <<<<<--------------------------------- IF LINE REMOVED, CODE BREAKS. $(xml).find('loc').each(function(){ name_text
[jQuery] Copy a class links to a paragraph works on all browsers but Firefox
Hello, at this <a href="http://baustelle.besucherring.org/frontend/ karte.htm">page</a> I use the following jQuery Script to highlight the towns at the map when the user is hovering over the items at the navigation $(document).ready(function(){ $("#block_2 h2").after("<p id=\"kartenort\">"); $("#navi_ring a").hover(function(){ var kort = $(this).text(); var ortcl = $(this).attr("class"); $("#kartenort").html(kort); $("#kartenort").addClass(ortcl); },function(){ $("#kartenort").removeClass();
[jQuery] jQuery & TinyMCE
I am having an issue with tinymce and jquery ajax form submissions. I have 2 fields (title/content) and a hidden input (id) that I am submitting via ajax. when I use serialize var form = $("form").serialize(); title = My title id = 2124245 content = null It seems to be an issue with tinymce but I if I post using normal form it works. I imagine some kind of scopes are butting heads but I have no idea. If I take off tinymce and just use the textarea, it works great. Anyone got any ideas?
[jQuery] ajax post with tinymce
I need to have this: function nuovo_articoloPOST(){ //Se e solo SE il form è stato validato if($("#nuovo_articolo").valid()) { //Assegna alle variabili il nome del campo! var imageName = $("#imageName").attr("value"); var titolo = $("#titolo").attr("value"); var categoria = $("#categoria").attr("value"); var abstract = $("#abstract").attr("value"); var descrizione = $("#descrizione").attr("value"); alert(abstract);alert(descrizione);
[jQuery] [Validate] Validation plugin adding random validation rules depending on message
I'm having a strange issue with the validation plugin. I have a field for the users telephone number, but the only rule that is set is that it is a required field. However, if you type any character apart from a number it gives a "Please enter a valid number" error which it shouldn't (as I never told it to validate on numbers). The message for the required rule is "Please enter the contact telephone number of the payee.", if I remove the "number" in the message then it works fine. I am using the
[jQuery] slideToggle error in IE
I'am using the slideToggle function to toggle all boxes at my page. It worked in all browser at first, but now I get an error in Internet Explorer7 (Element is not defined). I tried to figure out where the problem is, because no javascript works at all in IE now. The error is trigged at: $(".expand").click(function() { }); The problem only appears when this jQuery code is added so I tried to find the click event in jQuery to debug the error, without any result. Where does jQuery loop through all
[jQuery] [Announce] jOWL 1.0 released
I'm happy to announce the release of jOWL version 1.0 jOWL (http://jowl.ontologyonline.org) is a jQuery plugin to load and visualize semantic information from OWL (Web Ontology Language) files. This version incorporates smarter reasoning, faster loading and many other goodies. David jOWL semantic javascript library : http://jowl.ontologyonline.org Visualizing ontologies with treeviews, html templating, touchgraphs and SPARQL-DL
[jQuery] Reset individual form objects to their original display state
I have a need to reset individual form objects to their original state. When the document loads I save the element like this: var origFormData = {}; $(document).ready(function(){ // Save original form data for each input field $(":input").each(function(){ origFormData[this.name] = $(this); }); }); For example I have a form with fields named name, age, and dept selectable by $("#name"), $("#age"), and $("#dept") respectably. How would I go about later
[jQuery] Missing semi-colons in form plugin.
FYI: Semi-colons are missing on lines 87 & 605 of the form plugin, thus making it hard to compress/obfuscate.
[jQuery] Open a Pop Up Window Using jQuery
Hi, How Could I open a open a pop window using jQuery? ~.Nil
window -> all browsers
Hi, possibly very stupid question: I would like to resize the visual part of the browserwindow (the actuall viewport) if it is to small. The project uses jquery. Is there a convenient way to do this? I'm not very familiar with jquery or even javascript. Sorry ^^ Thanks so much for your help
[jQuery] filter(fn)
Hi Experts, I am trying to do something like this; $("form#submit").submit(function(){ var name = $('#name').attr('value'); var $out = $("#message"); //Send the request $.ajax({ type: "POST", url: "post.php", data: "oname="+name, complete: function(data){ $out.html(data.responseText); if(($out).filter(':contains(Invalid)')) { $out.fadeIn(); $(".txtHint:visible").slideDown("slow"); $(".client").hide(); }else if($out).filter(':contains(successfull)')){ $out.fadeIn(); } to be able to determine what
[jQuery] [validate] grouped select boxes
Hi. I have two select boxes for differrent classes of tickets , like so: <select name="seasonmember" id="seasonmember"> <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </select> <select name="season" id="season" <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option>
[jQuery] Unable to remove append data to div using remove() method.
Hi all, I am unable to remove html data after append html data to div, I can remove initially data using this function successfully with out getting any problem. Jquery --------- $(function(){ $("#addrow").live("click",function() { var len = parseInt($("#mainlayout .row").length); alert(len); var rlen = len+1; var html ="<div id=\"row"+rlen+"\" class=\"row\"><ul class=\"ulpanel \"><li><div class=\"close\" ><img src=\"images/delete.png\" /></
[jQuery] jQuery treeview click to open
Hello! when page first time loads, i want to open, for example first level of items...is any possibility to do "click" on treeview item (if i know li id or something...)
[jQuery] Click function dosen't work, after append new html data.
Hi all, I am new to jquery. My close click event function dosen't work, when ever i append new html data to my div. Intially it is working fine with static data. Please help me to fix this problem. $(function() { $("#addrow").click(function() { alert($("#mainlayout .row").length); var len = parseInt($("#mainlayout .row").length); var html ="<div id=\"row1\" class=\"row\"><ul class=\"ulpanel \"><li><div class=\"close\" ><img src=\"images/delete.png\" /></
load() with additional call inside - how to make it work?
I am having issues with loading external content and having the external content callback to the main jQuery code. I am using: $("element").load("index.php",{type:"test",id:IDvar}); When this is fully loaded how can I have my code be used in the external content without re-calling the code? I have the same issue when I have an element with hide() and then I go to make it show(). Here's another example: var ThisLinkLoc = ID; $("#lightbox").html("<iframe allowtransparency='true' marginwidth='0'
[jQuery] [validate] submit button keeps adding "required field" to the older message
hi, i'm new to jquery, i'm currently using the validation plugin to validate my forms. here's my code <script src="includes/jquery/jquery.validate.js" type="text/ javascript"></script> <script src="includes/jquery/cmxforms.js" type="text/javascript"></ script> <script type="text/javascript"> $.validator.setDefaults({ submitHandler: function() { alert("submitted!"); } }); $().ready(function() { $("#addrest").validate({ rules: { restname: "required"
[jQuery] How do I adapt this code for multiple uses?
I have got some code http://pastebin.com/mc99132c which counts how many characters have been entered in a textbox and subtracts it from the maxlength to show how many characters are left. If I add a new textbox I don't want to copy and paste the code down and rename the variables so is there a way of navigating the DOM tree to change just the element currently being edited? Cheers, Ian. http://pastebin.com/mc99132c
problem with resizing
Hi, I have trouble with this code: <head> <link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" /> <script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script> <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.core.js"></script> <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.draggable.js"></script> <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.resizable.js"></script>
[jQuery] [validate] jquery validation problem
hi, i new to jquery, i'm using the jquery validation to validate my form. using this code <script src="includes/jquery/jquery.validate.js" type="text/ javascript"></script> <script src="includes/jquery/cmxforms.js" type="text/javascript"></ script> <script type="text/javascript"> $.validator.setDefaults({ submitHandler: function() { alert("submitted!"); } }); $().ready(function() { $("#addrest").validate({ rules: { restname: "required" },
[jQuery] How to reload page after specific time period
Hi! How can I reload page [05 seconds gap] after successful ajax reply from server. Like youtube shows SUCCESS message and then whole page is refreshed after a while. Thanks in advance
[jQuery] Undefined function
I have been having trouble trying to define a function. I've tried every idea I have come across on the internet but nothing worked. I hope some one here has an of how to get it defined properly. The code that is not defined is: var currentUl = 1; function showMe(n) { $("ul#gallery").click(function(){ $("#"+currentUl).hide(); $("#"+n).show(); $("div#picture").show(); $("span#picture").show(); $("img#space").hide(); }); currentUl = n; }; This basic setup
[jQuery] Jquery 1.3.2 bug in getting checkbox ..... maybe
Hi guys, I upgraded to 1.3.2 from 1.2.6 and the following stop working: $("input[@type=checkbox]").each(function(i, item) { }); where I have almost spent an hour to diagnose it. Hence, I change to the following then it works : $("#form1 :checkbox").each(function(i, item) { }); hope this may help someone out there regards, Mark Thien Menggaris | The Technology Buddy markt |@| menggaris.com -- View this message in context: http://www.nabble.com/Jquery-1.3.2-bug-in-getting-checkbox-.....-maybe-tp22447984s27240p22447984.html
[jQuery] $(element).animate() shifts elements out of order while animating
Hi guys, I'm new to jQuery and I need some help. I have a UL with LIs. In each LI there is a DIV with a bunch of content. The LIs are set to display inline. Anyway, when I run the animate function, the LIs get shifted into their default display (a list) and when the animation completes, the LIs return to their inline display. It's driving me crazy trying to figure it out, and I could definitely use some help. Here is the entire code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
[jQuery] [tooltip]
I need help. I have image "planets.gif" on my main page. In this image with tag I did some clickable areas. I need to show tooltips for this areas with ajax-loaded content from other pages of my site. For example: in body of main page I have something like this : <img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" /> <map name="planetmap"> <area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun" /> <area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury"
[jQuery] How to turn a bulleted list into a pseudo select box
I have a bulleted list that I'd like to convert into a pseudo select box. The result would be appear to be a select box, but would merely expand the list container and display the list within. Does anyone have something like this? Andy Matthews Senior Web Developer www.dealerskins.com P Please consider the environment before printing this e-mail. Total customer satisfaction is my number 1 priority! If you are not completely satisfied with the service I have provided, please let me know right away
jquery slider
Sorry to post a problem as my first post, but this is really getting annoying now. I'm trying to get a slider working, it works fine in internet explorer, but only works until you refresh in firefox/safari etc... http://www.lime-five.com/wordpress/ ^^ that's the link to a wordpress theme that i'm trying to use it on, it works first time, just slides one item at a time, but if you refresh it breaks, unless your using Internet Explorer, which is quite odd... http://www.lime-five.com/wordpress/wp-c
[jQuery] Cannot create jCarousels when not visible
I just lost a lot of time on this, so I'm posting it here to hopefully save others from the same fate. You cannot create jCarousels when they are not visible. The code that computes the dimensions uses offsetWidth and offsetHeight, which only work for visible elements. I had several tabs that had carousels but the elements were not drawing correctly in the tabs that started out behind - the width of the list was being set to 15. This was due to zeroes being returns for offsetWidth. I have now changed
Next Page