[jQuery] Pretty XML?
Hi. Any thoughts on how to take an XML string, transform it into a pretty HTML string, then insert it as an HTML element? Basically, I want something that looks like the IE or FF XML display to be injected into my HTML document. Any ideas? Thanks! -bill
[jQuery] don't get it: how to pass a variable to a callback function
hi, i got a silly little question: ho do i pass a variable from a function to a callback? see this example for better understanding: var options = { success: showResponse, url: 'inc/application.adv.func.php' }; function showResponse(responseText, statusText) { jQuery('div#adv_content').load('inc/de.application.adv.inc.php? page='+pageNumber); } $('#step1').click(function(){ var pageNumber = '0'; $('#myform').ajaxSubmit(options); return false; }); can you help
[jQuery] Ajax links not working
Hello, I'm having a problem running a function on links inserted with Ajax at the following address http://tinyurl.com/3crrvv I have three unordered lists a main, sub, and sub-sub. When a link in the main is clicked it retrieves the corresponding sublinks and inserts them into the sub list. Then for test purposes if I click a link in the sub list a sub sub list appears. For test purposes the sub- sub list is prepopulated just to see it show. However my function won't run when the second lists links
[jQuery] preventing open element from being closed and reopened in accordion menu (not using accordion plugin)
Hi I have a simple accordion menu and would like to prevent the already open dd from being closed and reopened when clicked on. eg. $("#menu dt a").click(function(){ // only activate if dd is hidden so currently active block is not reopened if(hidden???) { $("#menu dd:visible").slideUp("slow"); } $(this).parent().next().slideDown("slow").addClass("open"); return false; }); Can anyone suggest how to test the state of the current element I'm guessing $(this).parent().next().something? but don't
[jQuery] Attribute selector (^=) problem with "multiple" values
Hi jQuery group, The simple piece of code below is designed to highlight table cells whose class name is that of the currently hovered one (to visually group them). In my example the class name itself is film + id (film1, film2, etc) so I use the [attribute^=value] selector. OK to that point, but if the class attribute happens to have whitespace-separated "extra content" for css purposes (eg class="film1 small" ), the selector doesn't capture the element. More generally it seems to dodge any attribute
[jQuery] Superfish menu extremely slow/clunky in IE6 with wordpress
I need some help... The following page uses superfish pulldowns: http://www.sharevault.com They work great in all browsers. Great! The following page, however, doesn't work well in IE6: http://news.sharevault.com The code is virtually identical except that the 2nd page is based on the Wordpress blog platform. Can you tell me what to do to make the menus work well under IE6 on the 2nd page? Thanks! - John Badger Pandesa
[jQuery] JQuery accordion and TBODY
Hi everybody, I am having problems with slideUP - slideDown applied to TBODY tag. The initial state is hide - all. when I apply slideDown, it slides down the content of TBODY (correctly) and instantly places it below the table. Here is a simple code: $j(document).ready(function(){ $j('tbody.cnt').hide(); $j("#td1").click(function () { $j("#bd1").slideDown("slow"); }); $j("#td2").click(function () { $j("#bd1").slideUp("slow"); }); }); The table, which it applies to: <table width="100%" border="0"
[jQuery] Trying to show a div on mouseover of menu item...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000"> <TITLE>Trying to show a div on mouseover of menu item...</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">Hi, all</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Consolas">…</FONT></SPAN><SPAN LANG="en-us"></SPAN></P> <P DIR=LTR><SPAN
[jQuery] .animate({width:'show'},"2500") misbehaviour in FF,IE7 (width scales up to 1000)
Hello, on the breadcrumb-element (bottom right) on http://www.pcwehle.de/demo/hm/index.htm .animate({width:'show'},"2500") seems not to be able to read the correct width of the li elements in FF2 and IE7 - IE6 works just fine. What happens is that it scales the width of the elements up to about 1000 and then gets back to the actual width. HTML-src: <div id="brdcrmb"> <ul> <li class="li-frst"><a href="index.php">Startseite</a></li> <li><a href="">Konferenzräume und Veranstaltungen
[jQuery] Sever Push - "live" site
Hey all, i have been researching googling and many other ways to try to find out how to make my site as close to "live" as I can. I read this by John: http://ejohn.org/blog/streaming-http-server-push/ but am still kind of confused. My site is: http://rksdesignstudios.com/magnet/ - Drag a word - Add a word - Delete And many features to come, etc. I want to make it like you can seeo ther changes being made..stuff being dragged, any idea how to do this? I have been STUMPED on this. Thanks! Ryan
[jQuery] iframes and event firing
hi, someone knows how to execute events from the main page but when something in the iframe happens? I have an iframe made by jqModal, and I can access divs, forms... by something like this; //iframe and the 'name' of the iframe $('iframe#info').contents().find('#id') But trying to fire an acion when a form in the iframe is clicke, from main page: $('iframe#info').contents().find('#contactForm').submit(function() { //console.info($('iframe#info').contents().find('#contactForm')); alert("eiiii");
[jQuery] traditional query string format vs mcv format
hi guys, I'm using php mcv framework incorporate with jquery. Is there any plug-ins or a way to make jquery understand natively mcv format in ajax's url ? what i mean is, if i have kind of like this script: $.ajax({ url:someurl.php, type:'GET', data: {c: 'controller', m:'methods', p1:'param1', p2:'param2'} ... }) jquery will interprete this to: someurl.php/controller/method/param1/param2 instead of: someurl.php?c=controller&m=methods&p1=param1&p2=param2 so my php script will understand it. I hope
[jQuery] ajax php selecting problem
hi, i am trying to select a objects that is generated with PHP through jQuery AJAX. but its not working any one please help me. thank you JQuery :: $(document).ready(function(){ $.ajax({ type: "POST", url: "demo_cal.php", data: "fnum=2&snum=4", success: function(msg){ $(".result").html(msg); } }); $('#hide').click(function(){ // this is not selecting the #hide div genarated from php $(this).hide(); }); }); html body :: <div class="result"></div> in demo_cal.php :: <? if(isset($_POST['fnum']) & isset($_POST['snum'])){
Creating a function for random number of events
Hi guys, i have an idea of how to do this, but Im just not quite there. What im trying to do: I have a php script that produces titles with an editing textbox accompanying each based on what is in my database. Assume i have 3 textboxes: TB1 - TBedit1 TB2 -TBEdit2 TB3 - TBEdit3 i have a jQuery add-in that I can make a dialog box appear, and I am trying to find a way to create a dialog div for these textboxes where if I added more to the DB later, I wouldnt have to change my JS. All I need is a for
[jQuery] jQuery + call PHP function
I'm wondering how can I asynchronously call the php function which is placed in the same file as the js code and html (just on the top of it, before the <html>). Something that 'xajax' do. Thanks for replies
simple help
Can someone please convert this simple javascript for me? $(document).ready(function() { var options = { target: '#magerror', success: showResponse }; $('#magOne').submit(function() { $(this).ajaxSubmit(options); if(responseText.length > 400) { return true; } else {return false; } }); }); function showResponse(responseText, statusText){ }
[jQuery] ClueTip Absolute Position Relative to Screen
Is there a way to position the cluetip relative to the same position on the screen? Bill
[jQuery] Pretty Horizontal Rules with jQuery
Hi all, Thought I'd share a little piece of code I whipped up this morning. This turns hr elements into pretty div based dividers. In action here: http://www.deft.co.nz Turn js on and off and compare! In the HTML: <hr title="some text!" /> In the JS: $(document).ready(function(){ $('hr').each(function() { var divText = $(this).attr('title'); $(this).before('<div class="HR_DIVIDER center">' + '<div class="HR_LEFT"> </div>' + '<div class="HR_RIGHT"> </div>' + '<div class="center"><div class="HR_TEXT">'+divText+'</div></
[jQuery] Superfish appears behind Flash in IE7
I'm having a problem with Superfish drop down menus appearing behind a flash object in IE7. I use FusionCharts for a Flash Chart system and I've set the flash settings with <param name="WMode" value="Transparent"> and <embed wmode="transparent" ........ > but I still have the problem. It only occurs in IE (go figure) and it works properly in Firefox. I've even tried increasing the z-index of the menu items in the css file, but still no luck. Here is a static post to see what I mean. I really need
[jQuery] Superfish: problems with second tier
I've got this simple menu: <ul id="NavMenu" class="nav"> <li><a href="/default.aspx">Home</a></li> <li><a href="#">Reports</a></li> <li><a href="#">Testing</a></li> <li><a href="#">Links</a></li> <li><a href="#">Profile</a></li> <li> <a href="#">Info</a> <ul> <li><a href="#">One</a></li> <li><a href="#">Two</a></li> <li><a href="#">Three</a></li> <li><a href="#">Four</a></li> <li><a href="#">Five</a></li> <li><a href="#">Six</a></li> </ul> </li> </ul> So there's 6 items on the top level... on the
[jQuery] Opposite of .contains() ?
Hi, I'm trying to select elements that do not contain certain text. In effect, the opposite of .contains(). e.g. 1: 1: 2: 3: 4: How can I select all s without a 1 in the text? like... $("p").doesNotContain("1") Various attempts with not: and filter() have failed... Thanks, SEAN ________________ www.sean-o.com -- View this message in context: http://www.nabble.com/Opposite-of-.contains%28%29---tp14758914s27240p14758914.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] [ANOUNNCE] Comet
I have been working on implementing the Bayeux protocol in jQuery and with the recent talk on the list about LIVE ajax and server pushing I thought now would be a good time to release the early work and start getting some feedback. It will work on Jettys Cometd Echo Demo. To get it to work, remove all the dojo scripts, and jquery and this plugin. In your on ready add $.comet.init('/cometd'). Bind a listener to an element listening for '/service/echo' and publish ($.comet.publish) a message to the
[jQuery] Follow code not working in IE6
This works in FF2 just fine. But doesn't work in IE6. I think it is a problem with the .html() $(this).after("<tr class='expanded'><td colspan='4'><table class='insert' border='0' cellpadding='0' cellspacing='0' width='95%'><thead class='theadinsert'><tr><th>Line</th><th>Date</ th><th>Amount</th><th>User</th></tr></thead><tbody id="+thisorder+"></ tbody></table></td></tr>"); $.getJSON("Lines",{order:thisorder},function(jsonString){ $.each(jsonString, function(i){
[jQuery] Apple Mac IE 5.23
What percentage of your visitors use this browser? It's next to nothing, is it not? Thickbox doesn't seem to work in this browser, but if there's hardly anyone using this browser anymore I don't want to worry about it...
[jQuery] Changing inline styles?
I have to massage the output of a Microsoft Tree control in alternate browsers. In Firefox the tree output looks like this (simplifed and wrapped): <div id="TreeViewControl"> //table definition and other non-essentials omitted <tr><td> <a target="edit" href="managePagesEditor.aspx?pgID=1121"> <IMG align='top' border='0' class='icon' SRC='/cms/images/html.gif'> <font COLOR="#00FFFF" SIZE="2" style="display:inline;font-size: 10pt;font-face:Times;text- decoration:none;cursor:hand;overflow:hidden;color:#00FFFF;background-
[jQuery] problem with hide()
Hello people; i'll go straight to my problem; when i load a certain page inside it's $(document).ready(function(){ }); function i hide some tables which (some) have images inside. The problem is that the tables take a while to completly hide at the beggining, as i wish, and take for a couple of seconds...; i need to know what am i doing wrong, and how can i do those tables not to appear at the begging, many thanks, Nicolas.
[jQuery] jScrollPane not working in IE6, but works in Internet Explorer 7 and Firefox
This is the code I'm using to initiate scrollbars on pages that need them: // add scrolling code to select pages $("code, #project").append("<code class='jquery'>$ ('div.content').addClass('scroll');</code>"); This looks for a <code> tag and then adds the class "scroll" to div.content // run the code in the markup! $("code.jquery").each(function() { eval($(this).text()); }); // Add scrolling where needed $(".scroll").jScrollPane({scrollbarWidth:16, scrollbarMargin:0, showArrows:true});
[jQuery] Why do click events stopped after the first one?
I have this code below which I reduced to this for posting. Essentially, I have a bunch of screen shots which I display in reduced size as a <div> block "menu" with the idea that when the user clicks on a image, it is fully displayed in a <DIV id="divImage"> block below the "image menu." What is odd is when I have the <DIV id="divImage"> above the "menu", I've able to click on the images and it will show. However, if I move the <DIV id="divImage"> below the menu, then the first click works, but subsequents
[jQuery] clueTip activate
I want to use the clueTip plugin to give helpful advice or help to users filling out a specific form field. But I only want the clueTip to display if they type invalid characters. For example, I only want numbers to be typed into a field. If they type letters, or any other special characters, I want a clueTip to display suggesting that they fix it. I don't want the tip to appear when the user hovers over the field or clicks on it. Is it possible to disable clueTip's activate option and only have
[jQuery] Please help me correct this
I am new to jquery. After a lot of trial and errors, I managed to accomplish what I wanted: beforesubmitting to a form, I check for php errors and then I display them in a div above the submit button. Works great. But the problem that I am having, if there are no errors, the form submits as wanted BUT the next page displays in the div!!!!! Can someone kindly complete that one line that is missing in below code? Thank you. $(document).ready(function() { var options = { target: \'#myerror\', beforeSubmit:
[jQuery] .NET Field Validators and jQuery
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] checkbox and toggle function
Using toggle() with a checkbox disables the checkbox's ability to check itself on and off. http://tinyurl.com/yo9onz http://tinyurl.com/yo9onz -- View this message in context: http://www.nabble.com/checkbox-and-toggle-function-tp14695370s27240p14695370.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] how to have jqmodal resize itself so content does not show through?
hi! i use jqmodal to show images. Does anybody knows how to make jqModal resize itself to the image inside? Thanks for any clue.. Alex
[jQuery] Birthday is coming
is 1.22 going to be release on Jan,14? Seems lots of bugs were fixed.
[jQuery] [SITE ADDITION] pythonline.com
seems that the pythons also recognized jquery as a quality product :).. http://pythonline.com/ dennis.
[jQuery] htmlspecialchars($string) equivalent
is there a javascript/jQuery equivalent to htmlspecialchars($string) in PHP
[jQuery] [Fwd: [jQuery] Pagination stop propagation]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> I really need help badly with this -------- Mensaje original -------- Anyone have an idea why i cant cancel the the normal action of the button, im keep getting redirect to the "somethin.htm" in this example? <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.d-scribe.de/webtools/jquery-pagination/demo.htm">http://www.d-scribe.de/webtools/jquery-pagination/demo.htm</a>
[jQuery] Want to move content back and forth between containers with jquery
Hi Everyone, I will make this example as simple as possible. I have 2 divs, each containing list items. When an item in box #1 is clicked, I want to move it to box #2. When that same item is clicked in box #2, I want to move it to box #1. My co-worker and I are working on this and here is some code he put together: http://pastie.caboo.se/137728 My original method was using something like this: $(document).ready(function() { $('#suggestedCategories ul li a').click(function() { $('#selectedCategoriesList').append('<li><a
[jQuery] Event handler executes method, without assigning it as a callback
Hey folks! Just started a few days ago using jQuery and i really learned to love it! :) While building a little JavaScript formular validation "framework" i found a strange behavior. First i add the following function to the prototype of the Object class, so i can check on EVERY object if it owns a specific method: Object.prototype.methodExists = function(methodName) { return (typeof(this[methodName]) == "function"); }; Now i bind a function to the "onfocus" event of the input field "abc". $(document.forms[0].abc).bind("focus",
[jQuery] jqModal to get info from database fails
please... could someone check why this simple code fails when trying to open in a jqModal window? Or at least someone with experience in jqModal tell me if I'm losing the time trying to connect the new window with data coming from a database? Please,you can take a look at: http://edit3.csic.es/fitxers/xmls/jqModals.html I think it has no sense to show all the files, but if someone need them, tell me. Any help will be very appreciated. I was wondering why doesn't the new HTML file listen the $().ready
Next Page