[jQuery] html(val) method and script
If I inject through the html method some html code with a script (for example <div></div><script language="javascript>alert('Hello');</ script>) A) is the code always executed? (under all the supported browsers) B) is the code always executed BEFORE the end of the html method? (so that I can manipulate the global namespace before and after the method to pass "parameters" to the script code) (I've read that injecting code with innerHTML could be tricky and I wanted to know if jQuery implemented the
[jQuery] Accordion, there are too many
There are just too many accordions out there, can someone point me in the right direction. This need not be fancy: <div class="post> <h3>title 1</h3> some copy here some more copy here and some more copy here <h3>title 2</h3> some copy here some more copy here and some more copy here <h3>title 3</h3> some copy here some more copy here and some more copy here </div> On load, I would want the all p's hidden, which are in the class post, or, if I could say
[jQuery] AutoHeight IFrame
Hello, i want to make a iframe page that loading a page from other site. I have try "jQuery iFrame Sizing" to set auto height in iframe... but it is failed. What's the problem...? This is my code : ------------- on Head <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/iframe.js"></script> on Body <iframe scrolling="no" frameborder="0" width="1025" src="http:// www.apexdyna.com/eng/company.asp"/></iframe> ------------- thanks
[jQuery] jQuery For Absolute Beginners
<div><a class="normal12blue" href="http://www.ziddu.com/download/6894154/jquery.flv.html"><b>http://www.ziddu.com/download/6894154/jquery.flv.html</b></a></div> <div> </div>
[jQuery] Unable to download jquery
Upon trying to download JQuery in either Internet Explorer or Firefox, I get the same error. Windows Script Host Script: C:\Documents and Settings\Couture\Local Settings|Temporary Interent Files\Content.IE5\RVWA8J02\jquery-1.3.2.min[1].js Line: 12 Char: 6947 Error: 'document' is undedined Code: 800A1391 Source: Microsoft JScript runtime error I have tried reinstalling Java, Internet Explorer 8, bought Registry Mechanic and cleaned my registry, I have tried a lot of things recommended on web sites,
[jQuery] jQuery Opacity functions doing strange things to 1px semi-transparent png background
I have a div with a 1px semi-transparent png background on a page in IE8 (rendering as IE7). Every time I use .css("opacity") or .animate ({"opacity"}) on any element on the page, the div's background becomes a gradient that fades away to being fully transparent at the end of both it's x and y axes. This occurs regardless if the div is a child of the element the jQuery is applied to, or it is not a child. Viewing the source of the rendered page reveals nothing out of the ordinary. If I give the div
[jQuery] Expanding or contracting on resize?
Is there a way to tell if the user is expanding or contracting the window when resizing even if he changes directions during the same event?
[jQuery] Call function in load
Did I do this right? I can't test right now but I think this should work: function doSomething() { ... } (".someImage").load(doSomething()) ; I want to fire off doSomething() when the image is fully loaded.
[jQuery] Standards
Am I wrong to say you should never use onclick in an element as this would be contrary to the purpose of using jQuery which means onclick would totally bind mark-up to javascript? So it would not be unobtrusive in that case. And can't you do this another way other than this: document.getElementById("productImage"); And what about this, isn't the point of jQuery is to use Load? $(document).ready(function() { prodImage = document.getElementById("productImage"); prodImage.onload = extraLargeLoad; });
[jQuery] Problems in a jquery drop down menu
Hi there! In this site: http://work.r-m.me/termogreen/v2/ If you hover over a couple of times the Produtos's submenus (second level menus): - Energias renováveis - Água quente sanitária - Climatização - Tubagens e acessórios The sub sub menus won't appear (third level menus)... Anyone knows why? Thks in advance!
Problems in a jquery drop down menu
Hi there! In this site: http://work.r-m.me/termogreen/v2/ If you hover over a couple of times the Produtos's submenus (second level menus): - Energias renováveis - Ã
[jQuery] jQuery bug reports
In preparation for the push to a new release of jQuery, I've been cleaning up bug reports in the jQuery core bug tracker. Many tickets languiished because they weren't actually jQuery core bugs, but instead should have been reported on the forums or sent to the author of the plugin. jQuery UI also has its own bug tracker, http://dev.jqueryui.com/ . If I accidentally closed a ticket for the jQuery core code, feel free to reopen it. Please take the opportunity to check that the ticket has a clear test
Double-Click here to respond... (How I cant just click)
Ok so its probably right in front of me but for some reason i cannot see it. So i want this code to just be able to click and not dblclick (its easier). Here is my code. $(document).ready(function(){ $(".respond").bind('dblclick',replaceHTML) function replaceHTML(){ $(this).html("").html("<form><textarea id='respond_to_conversation' class='respondBox'></textarea></form><center><a class='btnSend menu'>Send</a> | <a class='btnCancel menu'>Cancel</a></center>") }
[jQuery] strange position by using "after"
screenshot: http://tinypic.com/view.php?pic=2hd4f7l&s=4 currently I've implement a key listen for moving the cursor (a gif actually) between each digits. my code looks like : var cursor = jQuery("#cursor"); var current=... //current jquery element before cursor gif. if(keycode=....){ current.after(cursor); } everything works fine with other numbers in the digit. except the last "1" in the numerator of the fraction. As shown in the screenshot, once we called "current.after(cursor)" here, the gif is
[jQuery] About load function
Hi, When i use a load call to get some HTML content from a remote page, the result display in the destination DIV is not immediate, but i have to call it again to see the result, but it is the result of the previous call How to make the display of retrived content immediate ? Thanks
[jQuery] (validate) Using text input arrays do not work
If you have the same 'name' for an input type, the error is only shown for the first one. For example, take the dynamic forms example: http://jquery.bassistance.de/validate/demo/dynamic-totals.html change the template it uses for adding rows and change it so the name of the input does not use the format {0} argument: <input size='4' class="quantity" min="1" id="item-quantity-{0}" name="item-quantity" /> This should work as all the id's are unique and the names will cause an array to be formed. While
jQuery.live and validate
Im using latest jQuery version with latest version of validate plugin http://bassistance.de/jquery-plugins/jq ... alidation/ Did anybody success to make this work with jQuery.live? or another hack because if I ajax load content where I have form that I must validate, it somehow doesnt cache the validation... Any ideas?
[jQuery] animate queue :)
how can i create a queue what i want to do is onblur of a field 1) fade out current message in a div, 2)change the message 3) fade in new message (same div) when i try to do it it changes the html in the div then fades out and then in...... this is the code ive writeen $("#txt_user_name").blur(function () { $("#txt_user_name_msg").html('<img src="/_images/ajax_loader.gif" alt="O" />'); if($(this).val() === ''){ $("#txt_user_name_msg").fadeOut(1000); $("#txt_user_name_msg").html('<font
[jQuery] [autocomplete] Incorrect selection on mouse click in IE7+
For clarity, I have modified the code in the demo application to demonstrate the bug. 1. Please download code from http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ and place attached AutosuggestBug.html in demo folder. 2. Launch AutosuggestBug.html in Internet Explorer (I used version IE7). 2. In "Multiple Cities (local)" text area enter letter "a" (Observe autosuggest list displayed with focus on Aberdeen) 3. Press enter (to add Aberdeen) 4. Enter letter "a" again (Observe autosuggest
dynamic event stack for excel-like input box?
Hey everyone.. I'm implementing an advanced search for my company where the user is building rules and all the options are coming dynamically from the database. I have an input box where the user can type free text, or use available functions like in Excel. They can press the = key and I have an autocomplete attached that returns available functions. Then when they select one, a function could have n options, and I have an autocomplete for most of the parameters as well. So, I'm dynamically binding
[jQuery] Selecting all last cells in all rows?
with this html: <table> <tbody> <tr> <td>...</td><td>...</td><td>...</td> </tr> <tr> <td>...</td><td>...</td><td>...</td> </tr> <tr> <td>...</td><td>...</td><td>...</td> </tr> </tbody> </table> what would the selector be to get all the *last* <td>'s in each row ? I'm looping through the rows, and then getting the last <td> in each row and doing what I need to do, but I recall an earlier topic where it was a single selector to get all those last cells in one shot... damned if i can find it though...
[jQuery] how to customize 'active menu' color in superfish menu??
How do i adjust the color of the selected menu for the superfish menu? the most i could do was this: .sf-menu a:active { background: red; } but that only changed the menu to red when its clicked on and it'll change back to grey... i can't figure this out. My website (far from complete, and only a test site): http://www.covenantofgrace.exofire.net/
[jQuery] Clean code. Could someone, please, help me out?
Hello, I am using Bassistance tooltip but I need to simplify the markup. So instead of using: helper.parent = $('<div id="' + settings.id + '"><h3></h3><div class="body"></div><div class="url"></div></div>') I would like to use: helper.parent = $('<div id="' + settings.id + '"><span></span></div>') However, when I did this change everything stopped working. I think I need to clean some extra code but all my tries didn't solve the problem ... Could someone help me out with this? Here is the plugin
Trouble using .wrapAll on multiple elements
Hello there, because the content I need altered is being generated in a specific way, I need to wrap a certain amount of p tags inside certain divs in order to toggle it later. I have the follwing code : //This function hides/shows a portion of text inside the post //Wrap all p elements into a div with a class of toggle $j('.post-alt > p').wrapAll("<div class='toggle'></div>"); $j('.toggle').before('<h3></h3>'); //Calculate
Toggle 2 Div's
Hi, Wondered if someone could help me with a problem I'm having. I have 2 links, one for "Search" and one for "Filter". I have code in place to handle the show/hide of one link. this code (below) changes the link text and shows a div and does the reverse. I need to modify the code so that it can work with 2 Div's. For example, if the Div for "filter" is showing and "search" is clicked, then, hide "filter" and show "search. And vice versa. The code below is what I use to handle one toggle... //Search
[jQuery] Newbie trying to Ajax in IE8
hello, im newb in jquery & ajax. im trying to make this code work in IE8 and i dont know what im doing wrong. is a simple call with $.ajax to get a word from a php Works fine in Firefox and Chrome, but in IE8 seems like .find wont find the <word> tag. i been looking at the discussion mails but cant find an answer, i hope someone can help me. thanks. pd : sorry for my bad english. =D test.html ------------------------------ <html><head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"
[jQuery] [form] stop success message return if validation fails on server side
Hi all, I am making a call to a php file which right at this minute has no validation, all validation is been done by the jquery form plugin. I post to the thanks file but if the validation (xss prevention soon to be implemented) in the thanks fails I want to stop the processing of the form i.e. stop the return of success. How do I do this, any insight appreciated. Code: $("#myform").validate({ submitHandler: function(myform) { jQuery(myform).ajaxSubmit({ type: "POST", url: "thanks.php", success:
[jQuery] jQuery Documentation for Visual Studio
Hi, I have VS Express 2008 SP1 and Patch VS90SP1-KB958502-x86 installed. I can't get VS Intellisense to work for , jQuert 1.3.2. When i ex. type $, I get this: The object is not compatible with this property or method @ 2139:1 If I change to jQuery 1.2.6 it works well? Any suggestions to what I can do to get jQuery 1.3.2 up and run with VS Doc? Thanks, Paul
[jQuery] no filenames list in multi-upload control
Hello, I
[jQuery] Jcarousel Add Link
I would like to use the carousel at http://sorgalla.com/projects/jcarousel/examples/dynamic_javascript.html My company needs a product slider and it works well with a few changes to the CSS. I am having trouble however adding links to the images. If someone could show me a function or how to declare <a href>'s in this code, it would be greatly appreciated. Mantilla
[jQuery] Low Pro instance talking to each other
Hey all, I'm pretty new to Low Pro for jQuery and trying to get things right first time around http://www.danwebb.net/2008/1/31/low-pro-for-jquery I am trying to get multiple instances of low pro behaviors to fire custom events in other low pro behavior / instances. I do have a solution that seems to work ok for now, However I wonder if anyone has a better solution as what I've got seems like it could be a little more elegant. Here's my example ... <script type="text/javascript"> $(document).ready(function(){
[jQuery] using jquery ui plugin to make carousel effect
Hi, I am trying to use this plugin:http://jquery-ui.googlecode.com/svn/ branches/labs/carousel/demo/index.html I don't know what the function name to use to make a carousel effect. I even looked at the source code of those demos and tried to use the function carousel. I have firefox debugger installed and it spits our one error saying that carousel isn't a function. I would like to know what the name of the function that I should be using to create the carousel effect. I have asked on jquery irc
JQUERY IE bug
My page works fine for me in FireFox. But, the leftnav (being loaded by JQUERY) won't load in IE. I don't get any JS error messages so I'm stuck! Here's my JQUERY code <div id="nav" style="width:126px;"> </div> <script> $('#nav').load('flyout_nav_chief3B.asp'); </script> Here's a test URL if that helps: http://qa.chiefsupply.com/ When I alert the returned data like this...I get the correct response...even in IE: $.get("flyout_nav_chief3B.asp", function(data){ alert("Data
[jQuery] the implementation of jQuery.boxModel
in jq-1.2.5, jQuery.boxModel = !jQuery.browser.msie || document.compatMode == "CSS1Compat" but in jq-1.3.2, jQuery(function(){ var div = document.createElement("div"); div.style.width = div.style.paddingLeft = "1px"; document.body.appendChild( div ); jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2; document.body.removeChild( div ).style.display = 'none'; }); I wanna know why the implementation of jQuery.boxModel changed?
[jQuery] Changing a text in a div
I am very very new to Jquery, being more of a designer than a programmer. I have a fairly (I believe) simple issue, that I'm hoping you will be able to assist with. I have a div class called "child-pages", that calls up some text in <h2> tags, which says "Children Pages". I am wanting to use a simple Jquery script to change "Children Pages" to "Sub-pages". How do I go about implementing a script that will make this change? Many thanks!
Problem intergrating Fancybox with Grid-a-licious
I'm in the middle of integrating fancybox with the wordpress theme Grid-a-licious Currently hosting on my PC so I'm sure it will load as slow as crap but heres the link http://78.86.140.126/ (I hope my security is up to scratch) Everything appears to work fine but there is a specific action, which breaks the functionality of grid-a-licious which is supposed to always align your divs into a set of columns. First resize your browser window and you'll see that the layout remains flexable. Now, click
Jquery form ajaxsubmit, stop of server side validation fails
Hi all, I am making a call to a php file which right at this minute has no validation, all validation is been done by the jquery form plugin. I post to the thanks file but if the validation (xss prevention soon to be implemented) in the thanks fails I want to stop the processing of the form i.e. stop the return of success. How do I do this, any insight appreciated. $("#myform").validate({ submitHandler: function(myform) { jQuery(myform).ajaxSubmit({ type: "POST",
[jQuery] $.post() speed
I am not entirely sure if i am using proper definitions here, but here it goes.. I have $.post() inside javascript functions. If ajax is successfull, it returns data from the server. I am trying to assign this data to javascript global variables. The problem is that my global javascript variables end up to be empty. It seems it takes time for the ajax to return the data and by the time the server data is returned, the browser has comploted reading through the rest of the javascript functions. Thus,
[jQuery] Hide checkbox when choosen value in select > 0
Hello, <span id="thmr_5" class="thmr_call"> <div class="form-item" id="edit-sitewide-wrapper"> <label class="option" for="edit-sitewide"><input type="checkbox" name="sitewide" id="edit-sitewide" value="1" class="form-checkbox" /
javascript conflict PLEASE HELP!
hello guys i think i have a js conflict goin on here. basically i have a website with 3 included js applications. 1- coda slider - http://www.ndoherty.biz/demos/coda-slider/1.1.1/#1 2- jquery menu 3- jquery fancybox you can see the website here: http://www.cliccaqui.org/NUOVO/allestimenti.php the problem is all three are based on jquery, and the fancybox is not working. you can try it on the first thumbnail of the gallery. i have no idea what to do, i have been trying to solve the problem from some
Next Page