[jQuery] Broken selector in jQuery 1.3
Hello, I just updated to jQuery 1.3 and I am having trouble with the following selector: var options = $('option[value=""]'); Firebug says: [Exception... "'Syntax error, unrecognized expression: value=""]' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] This selector used to work in jQuery 1.2 and I need to know how I can re-write the selector to be 1.3-compatible. The HTML snippet looks something like
[jQuery] AHAH- Working with return data.
What is the best way to work with HTML data returned on an AJAX call. Want to do something like this but I know it doesn't work. Do I need to stick the data into a temp div and then work with it? function (data) { $(data).find("....."); } Thanks
[jQuery] Array values disappear when ready event fires
I have some old jsp pages with bad coding, where I created javascript arrays in the jsp code, so in the end I've got an html page with lots of script tags where I add values to a Javascript array. I know it's a really ugly way of doing things, but that's the only way I thought of at the time. Now (since I switched to 1.3) I've seen that none of those pages are working due to a strange behavior. When I trigger a function that uses any of those arrays, nothing happens, so I've been debuging and I've
[jQuery] Is .parent() only one level up?
Hello, pretty noob question here. I have this example: <div> <form> <div> <label>Example</label> <input type="text"/> </div> </form> </div> Now let's say there's this jQuery: $("input").click(function(){ $(this).parent("form").css("color","#F00"); }); My question: Does the parent() method work like that, or do I need to do something like $(this).prev().prev() to get to the form? I guess I'm trying to better understand how flexible the parent() and children () methods are. Thanks in advance.
[jQuery] function after "each" -loop
Hi Need som smart advice here, I have a "each"loop like this. $("input[@name='category']").each(function(){ }); And then I want to run a function after the "each" i done Is that possible? all the best / johannes
[jQuery] Alternate row colors using Ajax
I have some code that reads an xml file and outputs to a table. I would like the rows to have alternate colors but cannot get it to work properly. Below is my code. Hope someone can help. Thanks! <script src="../jQuery/jquery-1.3.1.min.js" type="text/javascript"></ script> <style type="text/css"> tr.alt td {background:#e1e7e8;} tr.over td {background::#99a4a4;} </style> <script type="application/javascript"> $(document).ready(function(){ $.ajax({ type: "GET", url: "FTF_OLL.xml", dataType:
[jQuery] Array Plugin
Does anyone know of a plugin that duplicates Prototypes array methods. The closest I've found is the Rich Array Plugin. http://plugins.jquery.com/project/rich-array Any others?
[jQuery] Can jQuery calculate "CSS Width/Height"
jQuery has innerHeight/Width and outerHeight/Width methods, but is there a method that can return a 'CSS Height/Width'. A CSS width is the width that would be applied via CSS to achieve a given 'outer width'. This value will differ depending on the box model and other older browser idiosyncracies. Here is an example... DIV#Test { width: 90%; height: auto; padding: 7px; margin: 11px; border: 3px solid #000; } <DIV id="Test"> line1 <<BR> line 2 <BR> line 3 </DIV Now I want to increase the DIV width
[jQuery] [autocomplete] use of parsed data vs. raw data (v.1.0.2)
I apologize in advance for not searching extensively through the list to see if this issue has already been raised. While implementing the autocomplete plugin v.1.0.2 (excellent work, btw) - we overrode the parse() function in the options to grab an arbitrary json object and load the data array. That worked very well. However, we found that the populate() function is referencing back to the original raw data rather than the parsed data, which caused the plugin to fail, and struck us as a bug. By
[jQuery] [autocomplete] use of parsed data vs. raw data (v.1.0.2)
I apologize in advance for not searching extensively through the list to see if this issue has already been raised. While implementing the autocomplete plugin v.1.0.2 (excellent work, btw) - we overrode the parse() function in the options to grab an arbitrary json object and load the data array. That worked very well. However, we found that the populate() function is referencing back to the original raw data rather than the parsed data, which caused the plugin to fail, and struck us as a bug. By
[jQuery] [AjaxContent plugin]
Somebody uses AjaxContent plugin (http://www.andreacfm.com/os/ ajaxcontent/)? I downloaded the version ajaxContent2.1b from the site and simply do not work (at least for me, seems not load ajaxContent()): no messages, load content like a normal link... tested on Ubuntu, Firefox 3.0.5 and Mozilla. I also tried to use the version used on the site (including plugin files plus jquery) and at least show the downloading message in the div, but then behaves like a normal link. Something like http://groups.google.com/group/jquery-en/browse_thread/thread/c5cd4b918d2c455/2b4ee6bad45b7a17?hl=en&lnk=gst&q=ajaxContent#2b4ee6bad45b7a17
[jQuery] $('#list').unbind().html('') -- redundant?
I have a dynamically generated a long list of items with events bound to them. I was wondering, when I clear the list, or replace it, is it necessary to unbind all their events before clearing its parent container? I know I can experiment to answer this question, but I wanted to know if perhaps html('') on the parent container runs unbind() anyways? ...Rene
[jQuery] Cycle plugin: Replay button won't replay
I have a slideshow: <script type="text/javascript"> $(function(){ $('#slideshowBoxRetouching').cycle({ fx: 'fade', speed: 300, timeout: 2400, pause: 0, autostop: 17, end: function() { $('#replayRetouching,#ellipsis').fadeIn(); $('#page').fadeOut(); } }); }); </script> I have a replay button appear at the end, and a click function assigned to it: $('#replayRetouching').click(function() { $('#slideshowBoxRetouching').cycle('play'); }); But all this does is return
[jQuery] jQuery sortable: How can I cancel a selection
I am using jQuery sortable to allow users to manually sort a list(<ul/
[jQuery] How to block the javascript engine when jQuery.ui.dialog is pop up?
Hi, I am trying to replace javascript built-in alert & prompt with jQuery.ui.dialog, the problem is dialog won't block the javascript engine from excuting statements following the dialog("open"). Is there an elegant solution for this? Thanks.
[jQuery] feedback for alert replacement plugin
I wrote a quick plugin to replace alert (I didn't like that I couldn't copy and paste from the alert window, and that it was modal). I decided to use window.open instead of absolute divs to show it. I've also used toJSON plugin for when an object is passed in. Faced a couple of problems with getting outerWidth of the browser in IE, and using scrollWidth/scrollHeight to determine window size, which I'm unsure I solved right. feedback? <body> <script src="jquery.js"></script> <script src="json.js"></script>
[jQuery] This site is to famous beautiful female actresses adult pictures.
This site is to famous beautiful female actresses adult pictures. sex video & sexy dresses and nude actresses pictures http://www.geocities.com/ksameera86/ $$$$$$$$$$$$$$$$$$ http://www.geocities.com/ksameera86/ $$$$$$$$$$$$$$$$$$ http://www.geocities.com/ksameera86/
[jQuery] Event delegation and hover(over, out)
Hi, I'm appending elements to a list and want to attach a hover-event (show or hide image) to links inside of that list-element. The HTML ist: <ul class="removable"> <li><a href="#">1<img style="display: none;" src="icon_remove.gif" /
[jQuery] syntax issue w/ tablesorter
Can any1 help me? I've just downloaded tablesorter and jquery and included them in my cold fusion project at the root. I'm not very good at javascript syntax.. and I'm getting an error, but I don't know why. Here's a chunk of code from my <head> section: <script type="text/javascript" src="jquery.tablesorter.min.js"></ script> <script type="text/javascript" src="jquery-1.3.1.min.js"></script> <script type="text/javascript" id="js">$(document).ready(function() { $("table").tablesorter({
[jQuery] Reversing the SlideUp and SlideDown functions to slide from the bottom and not the top
I saw this was posted before, but there was never a solution posted. I want to use the Toggle function but have it slide up from the bottom of the div instead of the top, I have tried searching through all the plugins, and even tried writing my own but have had no luck. If there's anyone who can help me I would be extremely grateful.
[jQuery] paragraphs disappearing from accordion when jquery applied
I'm trying to use the accordion box as show on http://www.webdesignerwall.com/demo/jquery/accordion1.html I'm using PL/SQL to pull my content from the database which it does perfectly. I then applied my CSS and it also displays the way I'd expect. However, when I add my jquery.js file and extra bit of code, the content displays with one exception; any paragraphs after the first don't display. My content is like so: [code] <div class="accordion"> <h3>question</h3> answer para 1 answer para 2 answer
How to pass parameter to the "close" event handler
How to pass parameter to the "close" event handler of the jQuery.ui.dialog? The following codes won't work. If you call rPrompt twice with different index value, the second index value won't be passed to the "close" event handler. I can work around this issue by using a global var like gIndex to store the index value, but I would like to know if there is a more elegent solution. Thanks. function rPrompt(index, msg) { alert(index); if($("#prompt").length == 0){ $("<div
Calling Functions
I'm writing a script that will only write certain code based upon the value output by an ASP script and I can't seem to get it to work. Basically I have a common.js file with the following function in it: function thisPop(){ alert("welcome"); } Then, just to test the javascript part of the script, on the next line I have this: <script type="text/javascript"> <% response.write("$(document).ready(function(){ thisPop(); })") %> </script> When I do this, I the alert does not work. However if I remove
trouble posting a reply in stuck sub-forum
im trying to reply to a post, but i'm getting a "server unavailable" error whenever i try to post a reply or pm the original poster. glitch?
[jQuery] Force GET on $.load()
I have written a small script that uses $.load() and I am trying to show a div through the callback. However, whenever I use more than one argument in the $.load() function, jQuery automatically assumes I am doing a POST request, causing my server to blow up. Anyone know how to force it into GET?
jquery and jquerUI block not work in IE7
the code is working in ff,ie6,safari but not work in ie6.give me suggestion
[jQuery] function in plugin not running
I tried to debug my first attempt to write a JQuery Plugin, and found out that none of the functions inside my plugin-attempt are executed. Looks like this: $.fn.galletri = function(){ console.log("inside galletri1"); TNL = $(this); return this.each(function(){ console.log("inside galletri2"); $(TNL + " a").fadeTo(0, 0.4); $(TNL + " a").hover(function(){ $(this).stop().fadeTo(100, 1); }, function(){ $(this).fadeTo(100, 0.4);}); $(TNL + " a").click(function(){ console.log("inside click"); ManageClick($(this).attr("Picture1"),
[jQuery] SimpleModal on opera mobile
Hi! I found that Simple Modal has a positioning issue on opera mobile 9.5. When the screen is zoomed the lightbox is always moved lover then visible portion of zoom. It should be an easy fix. Regards, Rostilslav
[jQuery] This code, no response...will this work, if modified?
Hi, all... Are the first three lines of code below legitimate? I've got a page full of dropdowns (.agents) and when a user uses one to change the agent, I want to send the choice to my processing page via ajax. I want to trigger the ajax function when the user changes the selection and I saw in the docs where the option selection could be used to do that, so I tried to modify the code to suit my needs. Apparently, I've got something wrong, because I get no response from changing the dropdown. No
[jQuery] cycle plugin scrollLeft has flickering white line if boxes have a background color colour
Although I did manage to fix it by changing this line opts.cssBefore.left = next.offsetWidth; becomes opts.cssBefore.left = next.offsetWidth-1; so does move everything along by 1 pixel but no more bug & client is happy.
[jQuery] Cloning list items in OL screws up numbering in IE
Hi all, I've got an ordered list <OL> with 5 list items. Each list item contains an input and the list is, as you would expect, numbered from 1 to 5. There is a link to add another item to this list which I have bound the following function to: $("#materialadd").click(function() { $("#materialol li:last").clone().appendTo("#materialol"); $("#materialol li:last").hide().fadeIn("fast"); return false; }); #materialol is the list - the last item is cloned and appended to the end
[jQuery] Passing an HTML page fragment as an Ajax XML field
Hi, I would like to pass an fragment of HTML as a field in my Ajax response and then insert this into the DOM. For example if part of the Ajax XML response (ajax_xml) is as follows: <cityid>2</cityid> <frag> <div class=citybox><h2 class=citytitle>City of London</h2><p class=desc>London is on the River Thames</div> </frag> (I want to generate the fragment markup server-side for consistency.) I can extract the HTML fragment as follows: var frag=$(ajax_xml).find("frag").children(); But when I come to
[jQuery] cluetip with an dynamic aspx content
hi! i have a problem with ajax-loaded contents with the cluetip-plugin... the loading of a .html-file works, but i want to load a .aspx-file – and this is my problem. there is always the message "sorry, the contents could not be loaded". anybody knows this problem?
[jQuery] onblur Firing Ahead Of onclick
jQuery('form[name=myForm]').bind('submit', validateForm); jQuery('#login').bind('focus', validateForm); jQuery('#blur').bind('blur', validateForm); Problem: when I click "login" text field and then "Submit" button what happens is that instead of alert('submit'); I get alert('blur'); What can I do about it? I need to have alert('submit'); triggered every time I click it. <form name="myForm" id="myForm" method="post" onsubmit="return false;"> <input type="text" name="login" id="login"> <input
[jQuery] HELP!!! wait for fade out before replacement div fades in
Hi. Here is my code.... I'm trying to get this to fade out first before the fade in happens. Please help!! $(document).ready(function() { $("a.linkclass").click(function() { $('.msg_body').fadeOut("fast"); $($(this).attr("href")).fadeIn("fast"); }); }); Thank!
[jQuery] newbie: autocompletion using hidden data inline in document
Hi, I have something like the following (fragment but shows context): var currentActiveCommands = jQuery("#menudiv ul li.runnable").find ("a.c"); var len = currentActiveCommands.length; var resulthtml = ""; var field = document.getElementById("run_command"); var currentidtoclick =""; var display = jQuery("#autocompletval"); var incrementer = 0; if(which != 13){ if(len > 2){ var reg = new RegExp(field.value,"i"); currentActiveCommands.each(function(i) { if(reg.test($(this).html())) { if(incrementer
[jQuery] hiding flash content on a page
I am relatively new to javascript but wondered if anyone could help me. I am trying to hide flash content on a webpage and am using the following script: $(document).ready(function() { $('object').hide(); }); This seems to work on firefox and opera on a mac (not tested on a pc yet) but for some reason it wont hide the object in safari? I guess this is a bug but does anyone know of a work around? I have tried defining a direct id too but that doesnt make any difference. Any help would be greatly
Using Event Delegation to monitor links and execute .load()
I'm having trouble using event delegation to load pages via Ajax. You can see the page at: http://www.ispycreativity.com/concept07.htm and the relevant jQuery is at: http://www.ispycreativity.com/scripts/global.js Currently only one of the links is working correctly (The paint pallet icon) the main nav bar isn't working. Here's a snippet of the jQuery: $(document).click(function(e) { var $linkClicked = $(e.target); alert("$(e.target) is "+$linkClicked); if( $linkClicked.is("a")
[jQuery] IE7 "dead pixels" in jpg with animation effect
http://lunaroja.net/upload/files/dead-pixel1.jpg http://lunaroja.net/upload/files/dead-pixel2.jpg Please view files. This issues is only happening on IE7 (not even ie6) when these images (set as bg to a div) they have an animation opacity from 1-0 for transitioning the images for a slide show. I would think its related to the filter implementations in IE7. The strage part is that There are two other images that are not suffering from this issue. Anyone have any ideas? Thanks!
[jQuery] Sending Arguments to Event
I understand jQuery has parameters stored in event.data.* But Is there a way to achieve this using jQuery ? var someVar = { init : function () { $('#someID').bind("click", ['arg1', 'arg2'], this.add); }, add : function(p1, p2) { alert(p1 + ' : ' + p2); // Doesnt show arg1 : arg2 } }; Thanks
Next Page