[jQuery] Question regarding JQuery tabs UI
Hi, I am working on an application in which I use JQuery Tabs plugin. The basic layout of the page is that there is a tree structure on the left side of the page. When the user clicks on any node of the tree, it fires an Ajax call and the server returns a fragment of html which includes tabs. The problem I encountered is that in IE, when the tabs get loaded, the initialized tab will be loaded once, while in Firefox, when the tabs loaded, the initialized tab gets loaded twice ( 2 Ajax calls to the
[jQuery] Jquery call strips away "<script>" tags
Hello! have a jquery ajax call that returns some HTML that has javascript code in it but it seems all the javascript is being stripped away. I read somewhere that that is the way the jquery acts. Is there anyway around this? I posted about the same topic last week but no one replied. HELP! Here are two things I have tried that just have NOT worked (all HTML is returned EXCEPT the javascript code): # method 1: $("#target_div").load(url); msg = $.ajax({ type: "POST", url: "http://localhost/myproject/getHtml.php",
[jQuery] Problem with classes
Hi everybody, it seems that I am doing something wrong concerning CSS classes with JQuery. I am using the plugin cluetip to open a new iframe tip. Now that works perfectly, just it does not if I have the invoking <a href tag inside another div that containes any css class. How come?! Example working: <div class="myactions" > .. come code </div> <a class="myactions2" href="go.html" rel="go.html" style="font- weight:regular;">test</a> Example not working: <div class="myactions" > .. come code <a class="myactions2"
[jQuery] Only number
Hello, i'm working in a automatic validation for forms. Ok, but the problem is how can i allow only numbers in a input? or, numbers and "."? or only alpha caracters, you know? i need allow and deny what i want! i found a plugin, called jQuery AlphaNumeric, but it doesn't allow "delete", ctrl + v or arrows. Please, help me! sorry my english! thanks! Lourenço
[jQuery] Tabs 3 Update tab content
Hi There I'm realling ejoying using tabs, especially the ajax content. I would like to know if there is painless way of updating the current tabs content via ajax without using the tabs. For example you view the content of a tab, click on a link within the tab, and the current tabs content updates dynamically, without changing the order of the current selected tab? Any suggestions would be greatly apprecated.
[jQuery] Duplicate values in form fields
Hi all, Need a little help turning theory into code! I have a series of text boxes in a form - there could be hundreds of them, all of which have the class "bbi". Most of them are disabled, but can be enabled by clicking a tickbox (basically it's a list of advertisers and if the tick is ticked, the box opens up to put a reference code in). I need to write some code that, when the form is submitted, checks all the filled in .bbi boxes to ensure there are no duplicate values in them. But I keep getting
[jQuery] return true/false
I have the following jquery code $('.menu li').click(function() { $(this).children("ul").slideDown("fast"); $(this).siblings("li").children("ul").slideUp("fast"); if ( $(this).children("ul").length ) { $(this).css("background-color","black"); return false; } else { $(this).css("background-color","red"); return true; } }); Everything works as expected. However, the "return true" part doesn't work. Is this wrong
[jQuery] Tablesorter and event handlers on table rows
Hi, First, a big thanks for creating this great plugin! Very nice. I am using TableSorter 2.0 on a table which contains rows on which I have added some event handlers (using jquery; the events have nothing to do with sorting, they're for highlighting and processing clicks). These event handlers work fine, until I click on a column heading to sort the table. The sorting works fine, but the event handlers don't work anymore. After having a look at the sourcecode, it seems to me that TableSorter effectively
[jQuery] jquery draggables() not working
Hi I was wondering why the draggables demo on the documentation site is not working. It also seems the draggables javascript file: "http://dev.jquery.com/view/trunk/plugins/ui/ui.draggable.js" is inaccessible.
[jQuery] Adding jQuery Libary to JSEclipse
JSEclipse has stated that they don't support jQuery, but with the ability to add your own libraries, I was wondering whether anyone has taken the time to put something together, so we could get jQuery code completion in jseclipse!!
[jQuery] limits using dblclick if too many elements ?
Hello, My script has a strange behaviour and I can not found why. My html code looks like : <div class="bioNumUnit"> <span class="siteSelector" id="s1">1</span> <span class="siteSelector" id="s2">2</span> <span class="siteSelector" id="s3">3</span> <span class="siteSelector" id="s4">4</span> ... ... <span class="siteSelector" id="sn-1">n-1</span> <span class="siteSelector" id="sn">n</span> </div> I use jQuery 1.2.1. and have a script like this : $(document).ready(function() { $("#test").load('cgi-bin/alignTmp/num')
[jQuery] Generate unordered list (noob)
Hello, I need to generate an unordered list based on array values, this is what i've been trying (where body is empty to begin with) var data = new Array("option 1", "option 2", "option 3") $(document).ready(function(){ var ul = jQuery("body").add("<ul></ul>") for(i = 0; i < data.length; i++){ jQuery(ul).append("<li>"+data[i]+"</li>") } }); This does not work, the LI's are generated fine but the UL is nowhere to be seen. What is the best technique to acheive what i'm trying to do? (there may be more
[jQuery] problems about jquery.validate
Hi there, can jquery.validate use custom validator? And another problem is about email validator,it can't pass validate with my email address Jacky.HF@gmail.com.It exactly validate email address. sorry for my poor english. Best Regards Jacky
[jQuery] retrieve text from selected option of select
getting the value is easy. how do I get the text (what displays to the user) of the selected option?
[jQuery] how to know which radio button is checked?
I have two radio buttons, user can choose one of them, when it is clicked, it will trigger some function calls, now, how to know which radio button is selected at this time? thanks. $("input:radio[@name=rb_meas]").click(function() { });
[jQuery] Better way of finding another descendant of an ancestor?
Hi everyone, I find myself doing this a lot, and thinking there must be a more elegant way... <div class="A"> <div class="A1"> <a href="" id="clickme">Click me</a> </div> <div class="A2"> <div class="findme"></div> </div> </div> $("#clickme").bind('click', function() { var container = $(this).parents('.A'); var findme = $('.findme', container); }); Is there a way to make those two traversals into a single jQuery line, without knowing what the structure is beneath '.A', only that there is a '.findme'
[jQuery] Tabs / Cluetip conflict?
Using Jquery UI Tabs / Tabs 3 - the Ajax Tabs implementation... working great, because each tab's content calls RSS feeds, etc, and is heavy... But having difficulties implementing Cluetip plugin within Tab content... Cluetip works fine when called at the top of the 'master' HTML document, but doesn't work when called from within Tab content... Can you point me in the right direction?
[jQuery] Firefox uncaught exception
It seems that others have found and been able to work around this problem, but I am not experienced enough with javascript and ajax to fix this. I am somewhat desperate. I have been able to get the jQuery cluetips to work fine in IE. However in Firefox I am getting the "uncaught exception". Error. The tip I have associated with a div element and the div contains other items. In fact here is a copy paste of the div... <div class="nav" id="q1230" onMouseOut= "change(event, 'up')" onMouseDown="change(event,
[jQuery] How do I convert an Array to a Map-Object?
Hi, I'm trying to use the $.get Operation with multiple input arrays for the parameters list. This is no problem: $.get('http://...', {key: 'value'}, function() {}); But how do I merge two Arrays and send them as one parameter list? For example somehow like this: $.get('http://...', arr1.concat(arr2), function() {}); Thanks for your help! Ben
[jQuery] No fullscreen with jQuery Media Plugin
Hi All, Hope somebody can help me... I use jQuery Media Plugin (http://malsup.com/jquery/media/) to embed Jeroen Wijering Media Player (http://www.jeroenwijering.com/? item=JW_Media_Player). But when embedding this player with jQuery Media Plugin it doesnt switch to fullscreen. Without embedding with jQuery Media Pluging it fully functions and switches to fullscreen. Who knows what to do? Thanks!
[jQuery] Validation with Jorn's Validation Plugin - zero
Hi all I have to validate a form with required fields. Super easy with Jorn's Form Validation Plugin. But how to avoid user to insert number 0(zero) in that fields? Cheers
[jQuery] JSASUploader yet another jQuery+SWF multiple file uploading tool.
Hi everyone, I been working lately in a multiple file uploading library similar in functionality to SWFUpload http://swfupload.mammon.se/ but a little different in approach. Sorry for the cross posting, but since I'll be using jQuery for it I thought I should post it here too. You can read more and download at http://woobiz.com.ar/index.php?id=4 what is JSASUploader: JSASUploader is an attempt to build a flash 'state machine' like interface to be used from Javascript for working with multiple file
[jQuery] getting height of frameset window
I'm trying to get the height of the enclosing frameset window in a page that is using traditional framesets. I am in a function called by the lower frame. I've tried the dimension plugin, and $ (window).outerHeight() is reporting the height of the window the current frame is in. I'm in a frame called myframe, this works: var ht= top.myframe.$(window).height(); But trying to get the other frame fails, and I can't get top.$ (window).height(0 to report the height of the parent window. What is the correct
[jQuery] how append part of xml response from ajax to dom ?
Hi, i was searching but i didn't find working solution. I've got xml document and i like to extract part of it and append to one element in dom tree. xml: <elements> <element> <id>1</id> <name>Trusty</name> <data><tr><td><button>name of button</button></td></tr></data> </element> <element> <id>2</id> <name>Trusty2</name> <data><tr><td><button>name of button 2</button></td></tr></data> </element> </elements> and i need to retrieve data betwwen <data> and </data> tags which are valid html tags - with
[jQuery] SimpleModal Question
When I try to click a button with the SimpleModal Plugin it gives me the following error $('#basicModalContent').modal is not a function instead of showing the hidden div. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <script type="text/javascript" src="../jquery.js"></script> <script type="text/javascript"
[jQuery] Scan html variable content
Hello. I have a question, I think this is a small things, but I don't know the answer. I have a variable: var myVar = '<div class="css-error">You must fill</div><div class="field">Fields...</div>'; How can I decide: Is there a "css-error" class in myVar? Thanks Cati
[jQuery] An important parent bug
Hello! I'm trying to do a window plugin with jQuery, but I have a serious problem. My code is based on the UI jQuery Dialog, but I need to imlement the windows with canvas and a lot of functions. I call my function: $j('<iframe src="http:// www.google.es/').ventana(), for example. (function($j){ $j.fn.ventana = function(opciones){ var o = $j.extend({}, $j.fn.ventana.defaults, opciones); return this.each(function(){ if (!($j(this).parent(".ventana").length || $j(el).is(".ventana"))){ $j.fn.ventana.crearEstructura(this,o);
[jQuery] Problem with Jcarousel in IE
Hello all, A friend has asked me to sort their website since the their old web designers screwed it up, they are using jcarousel on the main page, in firefox it displays great everytime, however, in IE it will sometimes work but most the time does not put it in the carousel properly. The website is www.clevergreen.co.uk and if you scroll down the main page you will see what I mean. Any help would be greatly appreciated, I'm pulling my hair out!! Thanks, Jaxx.
[jQuery] jQuery.ajax POST is getting a 411 error.
We're using Rails + jQuery for our xmlHTTPRequests, served up on nginx. When making a jQuery.ajax type:'POST', the reponse is: HTTP/1.1 411 Length Required Doing some curls, I was able to send a post successfully the server by setting 'Content-Length: 0' as an additional header on the request. I don't see an obvious way to set additional headers using jQuery.ajax, though. Has anybody else run into this issue before?
[jQuery] Help making a table resizable with jQuery UI
i would like to make a table resizable. i thought that i could achieve this with jquery ui. so far, i'm not doing so well. examples show a div, textarea, and image. i thought that i could put the table inside the div, but that didn't work. any ideas? thanks.
[jQuery] Detecting elements with click handlers
<font face="trebuchet ms,sans-serif">I have a script that decorates all links with an extra tracking click handler. First version: $("a").click()... However, I would also like to find elements that have an onclick handler already on them. Second version: $("a,[onclick]").click But how could I detect all elements that have onclick handlers, even if they were added after the fact using a javascript library? Thanks, Glen </font>
[jQuery] Problems loading images into WYMeditor using livequery
Hi, I'm using a modified version of WYMeditor to load an external image dialog into the Wymeditor instance using AJAX. To connect the dialog to WYMeditor, I use the livequery plugin. When adding the first image to the content of the WYMeditor instance, everything works just fine. But when I try to add en second one it all goes wrong, the image gets added two or more times (the livequery calls stack up) or does not get added at all. Does anyone know how to prevent livequery from stacking up the calls?
[jQuery] IE issue with .ajax()
Anyone run into an "Error: Could not complete the operation due to error 80020101." when doing an $.ajax call in IE? It works in FF/OP just fine. The call is as follows and is triggered via an onchange() event from a <select> dropdown: $.ajax({ type: "POST", cache: false, url: "documentsearchlogic.asp", data: queryString, success: function(html){ $("#criteria").html(html); } });
[jQuery] cluetip: opening tips from non cluetip elements
[Help me Karl. You're my only hope!! Well my best chance of success at least!] As I mentioned in a couple of other posts I am building an interface using the cluetip and validate plugins for jQuery. I have both working well but I am trying to integrate them smoothly now and I have a few issues. I want to be able to control cluetip "tips" without clicking on the elements used to define the tips in the first place. I have: <label for="name">Name</label> <input id="name" /> <span id="help1" class="help"
[jQuery] uncaught exception: Permission denied to get property HTMLDocument.getElementsByTagName
I have run into an issue working with Iframes. I am manipulating the content inside an IFrame with JQuery, and this works perfectly fine when the source document inside the IFrame is a local document. However, when I try to use a document in a different domain I get the following error: uncaught exception: Permission denied to get property HTMLDocument.getElementsByTagName I assume this is an issue related to XSS, however, as both of these are internal servers and not exposed to the intranet, we
[jQuery] Events double firing?
http://localhost/allonenet/index.html If you mouse over the globe in the top left, you'll see it fades in, then fades out, then fades back in. When you mouse off, you'll see it fade out, then back in, then back out. The relevant code is: $('body').append('<div id="fill"></div>'); $('#fill').load('public/launcher', null, function(response, status, request){ $('#launcher').css({display: 'block'}) .fadeTo(1, opacity) .bind('mouseover', function(e){ e.stopPropagation(); e.cancelBubble = true; $(this).fadeTo(0,
[jQuery] Changing the state of multiple checkboxes - looking for comments on this...
I'm trying to convince a supplier to adopt jQuery instead of using their own (awful) javascript library and so I'm knocking some examples based on the html pages they've already got. One of the pages is your typical message list with a checkbox to select messages individually and a checkbox in the header to select them all, there's also delete and move buttons that get disabled based on the state of the checkboxes. I've knocked up the following example and it appears to work fine, but I wondered
[jQuery] 1.2.2
Hi All! Can you answer me a question, when it is planned to release the version 1.2.2?
[jQuery] Tracking "add to bookmarks/favorites" event
Hi guys! Is there any way to track the user when he adds my website as favorites using standard browser function? I have a google analytics controlled website so I would make a "conversion" if an user add my website to his bookmarks... Sorry for my bad english guys! Antonio http://www.resetstudio.it http://www.convert2web.com
[jQuery] fadeout a div after a few seconds
Hello all ! I have a DIV which I update after an ajax form submit (form plugin). This DIV is filled with a message like "Your details have been saved". I would like to fade out the text in this DIV after a few seconds. How can I do that ? Thanks ! G.
Next Page