[jQuery] $.getScript and variables
Hi everybody... i have a question... i want to virtualise my admin section... by getting the script from a php file on post. is this real? and i want it to use current documents vars... i just copied part of the script and tried to load it using getScript... but this part doesn't work, when I put some global variables in it.... is there a way to make global vars work in included file? like global $var; in php...
[jQuery] Interface and Treeview plugins conflicting
Hello , I am not able use interface library's tooltip with treeview menus plugin. both are conflicting with each other. Menus are jerking while expanding when i remove the interface library then the menus are working fine now. pls suggest......... Thanks
[jQuery] using load cross site
Hello, I am working on a website for the BBB and need to load a document cross site, I am getting a permission denied message when doing so. Is there a way around that? Thanks
[jQuery] Problem: Event on image load in IE
Hi I am trying to fire an event in IE when an image has loaded, using the following code : var img = $("<img/>") $(img).attr({ 'class': 'image', src: $elem.attr('href'), alt: $elem.text(), style: 'margin-top: -10000px; margin- top:-10000px'}).load(function() { functions.imageLoaded(elem, this)} ) imageLoaded fires in FF, but not in IE Any ideas why ? weepy *...(
[jQuery] List of Useful jQuery Plugins
I viewed each of the jQuery plugins in the jQuery plugins repository. I couldn't believe how many there were! So I decided to make this master list to weeded out any plugins that were either broken or I didn't find any practical application for (view the link below). List of Useful jQuery Plugins: http://marcgrabanski.com/article/75/List-of-Useful-jQuery-Plugins P.S. Why am I simply linking to my own article? John Resig asked me to post this list to the mailing list.
[jQuery] Firing function on any form element changing?
I have a script that fires if any input or select element changes on my form: $('input, textarea, select').change(function(){ First, is this the correct way to do this? Second, how do I make sure that only the elements in form "myform" are the one that are being monitored for change? The form appears on a web page with other forms. I tried: $('input, textarea, select', myform).change(function(){ but it says that myform is undefined.
[jQuery] Expanding tree + styling
Hello, I have created a ul tree with a php script, and I am trying to make it a vertical expandable using jquery. Since every li could also be a link (reference to another php file), clicking on that link is not going to make the list expandable, therefore the jquery treeview is not working for me. How can I traverse all the elements of the tree, and attach a grafic anchor that will do the toggle of the next level children?
[jQuery] IE, Ajax and colspans
I'm having a very weird problem that manifests itself only in IE - both 6.x and 7.x I use taconite to retrieve a table from the server: <taconite> <replaceContent select="#data"> <table style="width: 90%"> <tbody> <tr> <td style="border: 1px solid #efefef; padding: 10px;" valign="top"> </td> <td style="border: 1px solid #efefef; padding: 10px;" valign="top"> <strong>Board</strong>
[jQuery] jQuery example: help in review
Hello, I've created a small game with jQuery: Fifteen puzzle. http://www.alexatnet.com/node/68 The jQuery part is very simple but I'm interested in ideas on how to make it smaller. Probably this can be a good demonstration of jQuery power, but it now contains 40 lines of jQuery code, when I prefer 20 :-) Thanks, Alex
[jQuery] Another site using jQuery...
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" 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 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] Found a dodgy copy of your book
Hey Karl, I was doing my usual Technorati feed for jQuery stories and saw this: http://e-liber.blogspot.com/2007/09/learning-jquery-better-interaction.html It looks like someone has put up a PDF version of the book for anyone to download, thought you might want to inform your publisher. -- Tane Piper http://digitalspaghetti.me.uk This email is: [ ] blogable [ x ] ask first [ ] private
[jQuery] Internet Explorer rounding numbers on data returned .getJSON request.
Hello All, This is my first round with jQuery, which I think is absolutely fantastic, btw. At any rate, I have encountered a funky bug which seems to be IE / Internet Explorer specific. after completing a .getJSON request, whenever a numeric value is returned, IE is rounding the number, not returning the full decimal. I am not seeing this behavior in Firefox or Safari. The code to generate the JSON return data is pretty straight forward: $json = '{ "avg": "' . $average . '", "count": "'.$count.'"
[jQuery] $.css() values from jQuery created objects return undefined in Opera
i've ran into the problem while finishing testing my website... it returns undefined values... can anybody help with this?
[jQuery] jquery interface elements : drag starts with delay on IE
Hello, I am using Jquery + the interface elements for JQ (http:// interface.eyecon.ro/demos) in order to implement a sortable list. The 'start drag' event seems to be triggered with significant delay on IE. On firefox there is no delay that can be described as 'sluggish' but in IE the delay is real problem. I have stripped down the html markup, minimized memory leaks in IE, took a closer look on js memory management but the only performance issue remaining in terms of a responsive UI is the 'drag
[jQuery] confusing children() behavior
I have a subpar understanding of Javascript and JQuery, but something I came across the other day seems counterintuitive to me and I can't find an answer. I've been working on an autocomplete search with drop down--most of it is based on Chapter 8 of Learning JQuery. In this search, pressing enter when an item is highlighted redirects to a new page. The code from the book reads similar to the following: var redirectPage = function() { var x = $autocomplete.find('li').eq(selectedItem).children()[0];
[jQuery] Remove plugin from an element?
Is there a way to remove a plugin from an element? Lets say I have plugin called foo. I attach it to all inputs. $("input").foo() Later I need a way to detach foo() from some input elements. One way would be to have conditionals inside foo code. However I would prefer detaching plugin for good. -- Mika Tuupola http://www.appelsiini.net/
[jQuery] Plugin doesn't seem to work in IE6 and IE7
This gives me an error in IE6 and IE7 on line 12 on position 3 and 5: alert('javascript running...'); (function($) { alert('1'); var settings = { effect: { duration: 100, }, }; $.fn.menu = function() { alert('2'); $(this).each(function() { alert('3'); $(this).find('/li').hover(function() { alert('4'); showItem($(this)); }, function() { alert('6'); hideItem($(this));
[jQuery] jQuery script not working.
Hi All, Just started working on jQuery. Here's my simple piece of code borrowed from the tutorials section of jQuery page. <html> <head> <script type="text/javascript" src="http://jquery.com/src/ jquery.js"></script> <script type="text/javascript"> $("a").click(function(){ $(this).hide("slow"); return false; }); </script> </head> <body> <a href="http://jquery.com/">jQuery</a> </body> </html> Now when I open this html file in either firefox, or IE , it doesn't do what it's supposed to, i.e. slowly
[jQuery] prob with
Hi, I have a problem with jquery recognizing elements of html that was inserted via ajax. here is the main html file where I input the ajax result <body> <div id='thesView'>xxx</div> </body> this is the html file that I include: <div class='center'>HEAT</div> <div class='left'>ccc</div> an this is my js file test = { load : function(){ var oThis = this; $('#thesView').load('database.html', '', oThis.afterLoad()); }, afterLoad : function(){ this.addBehaviour() },
[jQuery] Start effect after another effect is complete / Start effect after image is loaded? - wafflgallery.js
Hello, I posted earlier about a gallery for portfolio purposes. After being unable to find anything particularly suitable, I wanted to write my own but am having a few issues. I hope to release this gallery as a well documented and easy to use plugin for people with similar needs (very customizable and simple gallery in terms of divs that will be updated, reads from xml, preloader etc). Of course, it is far from complete, and as I am pretty new to jquery and not the most proficient javascript coder,
[jQuery] Taconite,tables cellspacing and cellpadding in IE6
Hi. In this taconite <replace select="#list"> <div id="list"> <table cellspacing="2" cellpadding="2"> ... </table> </div> </replace> the attributes cellspacing and cellpadding are not working with IE6. With Firefox they work correctly. Thanks, Stefano.
[jQuery] jQuery Edit In Place Help
Hello All, I am working to get this plugin http://15daysofjquery.com/edit-in-place-with-ajax-using-jquery-javascript-library/15/ working. I can successfully edit in place text, but I would like to take a php variable from my editing page and pass it to my updating the database page. Unfortunately I don't know javascript well enough to do this. The variable is the same for each div that is edited. Here is my code: Edit page: <html> <head> <script src="jquery.js" type="text/javascript"></script> <script
[jQuery] Scrolling Horizontal Marquee
I tried to reply to this thread: http://groups.google.com/group/jquery-en/browse_thread/thread/3fcd31510dfe2bc7/ , but for some reason it said that I couldn't reply to that message. What I am looking for is an answer to the second part of the OP's request: a horizontal scrolling marquee. I have used the <marquee> tags before, but it is really choppy, and I just wanted a simple and smooth way to do this with jQuery. Any ideas?
[jQuery] [REMINDER] jQuery Detection Script
Hi everyone. I just wanted to ensure that folks were aware of jQuery team member Paul Bakaus' awesome Greasemonkey script which helps to detect jQuery-powered sites by showing a little jQuery logo in the lower right-hand corner of the viewport when a jQuery-powered page is encountered. Here are the instructions to use it: 1) This is a Greasemonkey user script. To install it, you need Greasemonkey 0.3 or later: http://greasemonkey.mozdev.org/ 2) Then restart Firefox and revisit this script. ((http://paul.jquery.com/jquerydetector.user.js))
[jQuery] Horizontal Scrolling Text/Marquee
I tried posting to this thread: http://groups.google.com/group/jquery-en/browse_thread/thread/3fcd31510dfe2bc7/ but it won't go through. I'm basically looking for a scrolling horizontal text as a replacement to using marquee html tags. I want to try to find a smooth and easy way to do this with jQuery. Any help would be greatly appreciated. Thanks!
[jQuery] Is it possible to do something like Firebug `inspect` function with JQuery?
When mouse over an object, say a DIV for simplicity, I can use JQuery to get its absolute position in DOM tree, e.g. div#header < body < html Any idea?
[jQuery] selected html include the selector tag?
lets say i have this code: <div id="test"> <div class="inner_text">test1</div> <div class="inner_text">test2</div> <div class="inner_text">test3</div> </div> and then i do $('#text div.inner_text:eq(' + index + ')').html() but that will only select the text(ie test1, test2, test3) is there a way to also select the tag from th selector(so i would get <div class="inner_text">test1</div>, etc...)? -- View this message in context: http://www.nabble.com/selected-html-include-the-selector-tag--tf4406969s15494.html#a12572750
[jQuery] Newspapers Using jQuery
I was reading the thread about justfutoncovers.com and the sub-thread about getting a list of sites using jQuery, then I checked the listing page and saw MiamiHerald.com, well, as a developer for McClatchy Interactive (the owner of the Miami Herald as well as bunch of other papers), I am proud to say that most of our newspaper sites use jquery. When we transitioned the old Knight-Ridder papers to our platform, we decided to use jQuery to do some of the heavy lifting. http://en.wikipedia.org/wiki/The_McClatchy_Company#Dailies
[jQuery] jQuery script not working.
Hi All, Just started working on jQuery. Here's my simple piece of code borrowed from the tutorials section of jQuery page. <html> <head> <script type="text/javascript" src="http://jquery.com/src/ jquery.js"></script> <script type="text/javascript"> $("a").click(function(){ $(this).hide("slow"); return false; }); </script> </head> <body> <a href="http://jquery.com/">jQuery</a> </body> </html> Now when I open this html file in either firefox, or IE , it doesn't do what it's supposed to, i.e. slowly
[jQuery] Is it possible implement mutiple drag use jquery and interface?
like there is a all item list and every item with a checkbox, when i check some items and drag a checked item, all checked item will begin move. is that possible?
[jQuery] Gallery Site: JustFutonCovers.com
Very interesting shopping cart concept brimming with Jquery features judging by the <head> section calls. Elegant ecommerce too bad they don't have any with patterns, just plain colors. Check it out: http://www.justfutoncovers.com/ Not meaning to spam the forum, it's not even my site.
[jQuery] Refresh/Redraw on IE7
I am new to jquery, and I am trying to load HTML and CSS from a database and have them applied dynamically to the document. The CSS is returned as a string and I am using the cssEngine plugin to change the CSS: $.cssEngine.createStyle(myCSS,'page_theme'); Everything is working fine, the CSS gets applied correctly, however, as I toggle between different CSS the screen does not seem to completely redraw - until the window is resized. For example, between two sets of CSS, the background color changes
[jQuery] [NEWS] Lazy Load Plugin on Ajaxian
Mika Tuupola's awesome lazy load plugin got a nice write up over on Ajaxian.com. http://ajaxian.com/archives/lazy-load-plugin-for-jquery Great work Mika!! Rey...
[jQuery] Refresh/Redraw on IE7
I am new to jquery, and I am trying to load HTML and CSS from a database and have them applied dynamically to the document. The CSS is returned as a string and I am using the cssEngine plugin to change the CSS: $.cssEngine.createStyle(myCSS,'page_theme'); Everything is working fine, the CSS gets applied correctly, however, as I toggle between different CSS the screen does not seem to completely redraw - until the window is resized. For example, between two sets of CSS, the background color changes
[jQuery] Traversing ul elements
I want to do a Ul traversal to the n-th level but I can't understand how the selectors work. What I am trying to do is taking some generated php data (that are unordered lists within unordered lists), and toggle every element from each second level of <ul> and so on. I am trying to make a peculiar sidebar (you gotta love people who don't know about programming but want their own visuals) and it's driving me crazy. Due to the complexity of the menu, I can't use the treeview control of jquery. Is there
[jQuery] Redraw after changing CSS / Screen artifacts?
<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:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] Show Hide across divs with tabs and menus
This is probably very simple (, but not to me, I'm still learning so take it easy on me). When a user clicks a menu item while on Tab 2, I want the default area to hide, and then the relevant area to show. Here is the file so far with notes on what should happen on clicked events: ... <script src="js/jquery-1.1.4.js" type="text/javascript"></script> <script src="js/jquery.history_remote.pack.js" type="text/ javascript"></script> <script src="js/jquery.tabs.pack.js" type="text/javascript"></script>
[jQuery] Plugin does not work in IE7 and IE6
This script does not work for IE7 and IE6, it gives an error on line 12, sign 3 and 5: (function($) { alert('1'); var settings = { effect: { duration: 100, }, }; $.fn.menu = function() { alert('2'); $(this).each(function() { alert('3'); $(this).find('/li').hover(function() { alert('4'); showItem($(this)); }, function() { alert('6'); hideItem($(this));
[jQuery] Memory leak in 1.1.4?
Hello! I use utility Drip (http://www.outofhanwell.com/ieleak/ index.php?title=Main_Page) for the control of memory-leak. The Drip shows memory-leak even in such simple case: <html> <head> <script type="text/javascript" src="jquery-1.1.4.js"> </script> <script type="text/javascript"> $(document).ready(function() { $('.hover').click( function() { $(this).text('clicked'); } ); }); </script> </head> <body> <div class="hover">click me</div> </body> </html> It is a bug in Drip or in jQuery? Sorry for
jQueryCamp '07 (Boston)
Hi Everyone - We're going to be having the first all-day jQuery mini-conference October 27th, here in Boston, MA. Already, a large portion of the jQuery team will be attending and giving talks - so if you're interested in meeting some of the people who've helped to make jQuery possible and chatting with fellow developers, then this is a fantastic place to do it! More information about the conference: http://docs.jquery.com/JQueryCamp07 This will be immediately following the Ajax Experience: http://ajaxexperience.techtarget.com/east/index.html
Next Page