[jQuery] [NEWS] MTV & Adobe team up for AIR contest: HUGE PRIZES
MTV and Adobe are having a contest to find the AIR app the makes the coolest use of MTV assets (eg: RSS feeds, podcats, etc.). Considering that this community has some of the best developers around, I know this is something that would be a perfect opportunity for some big time prizes: Total Request Application - Grand Prize * Two night trip for two to New York City * MTV "VIP" Night On the Town * "Pitch Session" with MTV Networks Product Development Team * Adobe Creative Suite 3 Master Collection
[jQuery] Need help using #id
i have some code that looks like $("#myID").fadeIn("slow"); and it works fine, I have some other code that looks like function fadeOut(inID, speed) { var theID = "#" + inID; $(theID).fadeOut(speed); } And it does NOTHING. The fadeOut function I wrote because I need to be able to dynamically assign which objects get faded out. I have NO idea what the objects will be named. Why doesn't creating the string 'theID' and using that as the address work? How do I make it, or something like it work? PUH LEASE
[jQuery] multiple ajax selects; dynamic selects don't support onchange?
Hi all, i'm creating a search interface based on select dropdown methods.. the user selects the option from the first menu and the second is created dynamically using ajax. their is a third option which will be populated based on their selection of the second dropdown. however this does not work... seems the onchange method isn't workin? any ideas guys? here's a snippet of my code <!-- ajax requests for category search --> $("#jumpMenu").change(function() { var x = $(this).val();
[jQuery] Announce: jqPuzzle - Customizable Sliding Puzzles with jQuery
Hi all, First post, first plugin! http://www.2meter3.de/jqPuzzle/ jqPuzzle lets you easily turn regular images into sliding puzzles. The puzzles are highly customizable (number of rows/cols, hole position, initial appearance, controls, animation speeds) and can be styled individually. See http://www.2meter3.de/jqPuzzle/demos.html for some demos. All you have to do: - Simply add a class name to your image to get a default puzzle, or - Use a css micro format for basic customization, or - Use the jqPuzzle()-method
[jQuery] getJSON, I don't get it
Here's my file: <html> <head> <script language="javascript" src="jquery.js"></script> <script language="javascript"> $(document).ready(function() { $.getJSON("home.json", function(data){ alert(data); }); }); </script> </head> <body>Err....</body> </html> The "home.json" file loads just fine, but the callback is never invoked, i.e. alert(data) never runs. It had been working fine, and all of a sudden it just stopped working. So I stripped it down to just what you see above, and it still doesn't work!
[jQuery] Syntax for bind using a string from a variable for the callback functions name
Hello, I'm stuck on a silly detail. I want to bind a click to a function whose name is a simple string in a variable from a database I've tried a number of different syntactical combinations but none seem to work. Here is my code: $( ".object" ).each( function() { var element = this; var click_func = $( "#"+element.id + " .dp_properties").attr("dp_click_func"); if ( typeof( click_func ) != "undefined" ) { $(element).bind( "click", click_func ); // This doesnt' work, it's a function
[jQuery] How to dynamically load javascript from a database instead of using getscript?
I have looked high and low and can only find references for dynmically loading javascript using ajax from a file. I have chunks of javascript that I want to keep in MySQL and load them on demand. They are simple chunks of text that end up in a variable. I need to inject the text from that variable into the dom and have it be functioning javascript. Thanks for any insights as to how to do this. I'm really stuck and have been for a few days on a deadline that is overdue. ml
[jQuery] Flash and jQuery
Can Flash communicate with jQuery? I would like to use flash to interact with jQuery like opening up a dialogbox using the greybox.js plugin. How would I go about doing that any ideas? The code is activated by the class="greybox"
[jQuery] draggable and droppable tabs
I am trying to create draggable/droppable tabs. I've got it partly built, but I'd love some community input on this. A working model can be seen here: http://scottnath.com/tabs/draggable_tabs.html Below I will paste the jquery code I'm using. First, here are some issues I'm running into that I really need some help with: 1) tabs can only be moved once 2) moving tabs from left-to-right works, but not vice/versa 3) I'm having trouble figuring out the dragged tabs original index jQuery code: $(document).ready(function(){
[jQuery] Why people love the jQuery JavaScript library
Read Ben Nadel's posting title "jQuery And The Anticipation Of Greatness" (http://www.bennadel.com/index.cfm?dax=blog:997.view) Rey...
[jQuery] Emulating css :first-letter
Hi group. I'm on the way to have a plugin doing typographical ameliorations on the texts, like hyphenations, but for the moment i'm only working on basical stuff. I want to implement an emulation of the css :first- letter, but doing it better. For example if you have a number at the beginning, the whole number is taken, and if you have some non-alphanumeric characters at the beginning, like " or the spanish reversed ?, they are counted inside the initial. You can see a little example there (I started
[jQuery] IE7 jQuery event problem
Hi! I have a script that adjusts the layout of the page, depending on the window size, but IE7 throws an error. The script works fine in FF/Safari/IE6. When the page loads both scripts are fired, and the layout is set. If you then resize the browser window IE7 throws an error. Can someome tell me what is wrong with this script? jQuery is 1.2.1 $("document").ready(ypos); $("document").ready(wresizeListener); function ypos(){ var content_height = $('#content').height(); var secnavi_height =
[jQuery] Superfish and PNG transparency for IE
Hi I have png background image for a drop-down menu, made using superfish. Both jquery png plugins are breaking, when applied to it. pngFix works, but gives a potato shape to my image. ifixpng simply breaks and produces js errors. Any thoughts ? I'll try to debug it, but I hate so much js in IE... -Olivier
[jQuery] IE7 jQuery event problem
Hi! this script works in FF/Safari/IE6 but breaks in IE7. When the page first loads the function work as intended, and adjusts the height of the given element, but when you resize the window IE7 throws an error "Invalid argument" adn the scrtipt stops. I use this script to adjust the page layout. both functions are called as: $("document").ready(ypos); $("document").ready(wresizeListener); here is the code: function ypos(){ var content_height = $('#content').height(); var secnavi_height =
[jQuery] tablesorter AND hide/show toggle in table
There might not be a solution for this out thiere, but I have thrown tablesorter 2.0 on a table that has rows that are initially hidden. Of course those hidden elements get sorted and end up at the bottom of the table. So I am wondering if table sorter can ignore every other row, or if there is something else I could do to keep the data in proximity to the hide/show toggle switch? Any ideas would be helpful. Frank
[jQuery] Some issue with "parent > child" selector with XML and namespaces
Hi all. I'm trying to use the "parent > child" selector on an XML document which contains namespaces : the XML : <?xml version="1.0" encoding="ISO-8859-1"?> <lib:catalog xmlns:lib="http://localhost/"> <lib:book name="bookext"> <lib:user name="user"> <lib:book name="bookint"> </lib:book> </lib:user> </lib:book> </lib:catalog> and the jQuery Code (xml is the xml object): function parse() { $("catalog > book",xml).each(function(i) { console.log(i); console.log("node:
[jQuery] JQuery loads multiple times gives error (ajax calls)
I'm using JQuery + Interface and I'm trying to to a sortable list. The problem is that I load a html-page (via ajax) into a list and that page includes jquery + interface which it needs to do (it has ajax methods inside) and they work but after the load my original ajax stops working (in my parent document). It gives me this error message: jQuery.iDrag.helper has no properties http://localhost:8888/mypage/js/libs/jquery/interface/interface.js?_=1192614999368 Line 12 unique()jquery.js (line 23) [Break
[jQuery] Can't understand a Jquery statement
Hello all, I'm beginning working on a project which has been writing using Jquery (I'm novice) and I really can't understand that line: $($("virtual-sensor",data).get(i)).attr("name"); Can you traduce it to me? Thank you Charlie
[jQuery] bug with empty() , quicktime plugin and safari
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi there, Im not sure if im messages came through however Ive narrowed down a bug with empty(), quicktime plugins in layers and safari.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV
[jQuery] Writing a plugin - tips needed
I'm working on a jQuery plugin, which is primarily a series of utility functions. I need to worry about namespace problems, so I have opted for the option to add an object to the base jQuery object. i.e. jQuery.myObj = { . . . }; What I'm not clear on is if this is the best approach. Thus far everything is working fine, but that jQuery.fn.myObj approach and the jQuery.fn.extend() method are a little over my head (so far). Are these better approaches to be using? The methods I'm creating return various
[jQuery] Suckerfish problem with overlapping vertical submenus
Hi! I would like to solve this problem: I wanted to the opener submenu overlap the menu items below. I made an example for this it will be clear what I intend to say: http://wapurl.co.uk/?11HM7XC I made nothing with the original example but changed the overlap ul elements left css parameters 9.45 to 7.45. Can you help me to solve this problem or the superfish menu can not support this menu style? THX! Den
[jQuery] automatically changing states when country is updated
I have a form with two select form elements. If I change one form element ( country ) I would like the states to be updated too via AJAX. Can someone point me to the right direction with this? Thank you, <select id="states"> <option>AL</option> <option>AK</option> ... </select> <select id="country"> <option selected>USA</option> <option>UK</option> ... </select> Upon clicking on country, how do I update the states. I store them in an array.
[jQuery] accessing offsetHeight
I'm new to Javascript and jQuery, so I'm sorry if this is basic stuff. How do I access offsetHeight for an element? This is what I have, but offsetHeight comes up undefined: var headerElem = $("#header"); var headerHeight = headerElem.offsetHeight; whereas this works: var docHeader = document.getElementById("header"); headerHeight = docHeader.offsetHeight; Thanks --MERC
[jQuery] advanced selector question
Hi, I am trying to implement ifixpng for all elements that have a .png as the background image. Is there a way to grab these (and only these) with one nicely written selector? Thanks, Jeremy
[jQuery] How would I replace one class with another?
Hi Folks, Could jQuery replace instances of a class with another class? For instance replace <img class="one-class"..> with <img class="another- class"..>? If so, how would I go about this? Thanks! Chris
[jQuery] [NEWS] New site BestPartyEver.com
Found it while surfing: http://bestpartyever.com/ Rey
[jQuery] Event binding doubt
Hi, I have a doubt about the right way to perform an event binding. In a page a I have a select with id #cat1 and class="myselect". During the use of the page depending on the element selected on cat1 a do an ajax call, that get a list of elements and generate a select that has id="#cat{id_of_the_cat_selected}" and class "myselect". Now I want that #cat{id_of_the_cat_selected} be able to do the ajax call, then In the success function of the ajax call I bind the event to the object created. In this
Help needed with Interface elements Autocomplete
Hi guys, I'm playing around with the Autocomplete function of [url=http://interface.eyecon.ro/]jQuery Interface Elements[/url]. Now I've managed to put all the pieces together except one... i.e. when you start typing in the autocomplete field, the data is being sent to the ajax backend - but I can't figure out what variable to look for in the backend to grab that data and match it with the autocompletion list. My field is a country names field and the backend contains an array with all the country
[jQuery] Newbie - works once in IE6 but not twice
HI all, Very new to all this so I'm afraid this will be a very general question. I can call an action once and it works fine but when I hit the same link again all I get is my 'waiting' screen. This only happens in IE6. Using clueTip demo as a base for what I'm doing. Any ideas would be greatly appreciated.
[jQuery] Script Question: Toggle between 6 Pictures
Hello! I have a question ref. to a "Toggler" to switch between 6 (fix) Pictures without reloading the Page. There are two kinds of images. A big one and a thumbnail wich has alsways the prefix "save_". Now i have 6 thumbnails and 1 big image in a certain div. When i click on the thumbnail 1,2 oder 5 the big image have to change, too. I didnt find any scripts wich fit my need. Maybe you can help me out. Thank you!
[jQuery] Hover delay possible without additional plugin?
I've created a menu system simialr to the Brown.edu homepage except I've done it without js due to target audience restrictions. I'd like to have a hover delay so that when the user mouses over the link the menu will display after a couple seconds. I'm interested in using jquery and I spent the day looking around for a way to do it without having to use any additional plugins. I know that superfish menu is an option, but that would be too heavily js powered for this menus purposes. Additionally,
[jQuery] can't get load() to work properly
I would like to load html content into a div based on a specific event and created a function to do that: function loadContent() { $("#myDiv").load("/somepage.html"); } Problem is, the loading only works if I put loadContent() into an <a> tag, such as <a href="#" onclick="loadContent()">click</a> But I really need this to work based on a parameter that gets figured out during page load (the content is a browser incompatible message). I can throw an alert into the loadContent function and it will
[jQuery] Get the value of a radio button ?
Hello, I have a radio button like this one: <input type="radio" name="othersTransLink" value="familiale" class="radio"> Lien familiale <input type="radio" name="othersTransLink" value="étroit" class="radio"> Lien étroit <input type="radio" name="othersTransLink" value="Intérêt direct ou indirect" class="radio"> Intérêt direct ou indirect How can I have the value of the checked radio button ? Is this possible ? I know how to get the value with the idea like $('myInput').val() but in
[jQuery] Queueing and Dequeueing AJAX calls
I want to create a queue of ajax calls to be triggered at a certain point. But I want to also be able to dequeue calls, so that the user can 'undo' his decisions. I seem to think, for some reason, that there is some mechanic like this in jQuery already; but I'm not sure how it works or where it's at.
[jQuery] Problems with IE - X
Hi!!! I have a little problem with the animate in IE - 6 and IE -7... I have a conteiner (inside of this conteiner I have some links) who will be animated in onclick event. In FF it works fine, but on IEs, the text inside didn't animate. Anyone have a clue or a cheat to resolve this problem? Thanks!!
[jQuery] 1.2.1 remove() forgets bindings?
Hello again all! I just upgraded one of my web apps to jQuery 1.2.1, and noticed that .remove() no longer retains event handler bindings (i.e., if I have a .click() bound to an element). Previously, I was assigning the the return value of .remove() to a variable to stash a small chunk of the page in memory, and append it back in later on. In jQuery 1.1.2, I could recall it from memory, complete with previously bound click events and all, but in 1.2.1 it doesn't appear to work that way. Is there a
[jQuery] Why is this example duplicating my content?
Hello, I made a recent post asking how to wrap a table around content. I have a working example, however, if I have more than one member of the 'class' on the same page, jQuery is merging the content of the two in the following fashion: BEFORE: <img class="wrap-table" src="test.jpg"> <img class="wrap-table" src="test2.jpg"> AFTER JQUERY FUNCTION: <table>...<img class="wrap-table" src="test.jpg">.<img class="wrap- table" src="test2.jpg">...</table> <table>...<img class="wrap-table" src="test.jpg">.<img
[jQuery] jqModal Opacity Issue (IE7)
I've been toying with this for a bit. I'm using the latest version of the jqModal plugin (r11) and having the opacity issue that's appeared on this list before with IE6/7. I've moved the dialog div so that it is a direct child of the <body> tag, and I've even gone through and added some extra opacity attributes to the .jqmOverlay class in jqModal.css (this included using" filter:alpha(opacity=50); filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50); opacity: 0.50;"). Even with doing these
[jQuery] jquery 1.2 and rails
So I just tried upgrading from 1.1.4 to 1.2 and everything breaks. I have gotten ajax calls working with the json data type. However anything with the type of script is seen by rails as a html request and it work accept the data as well. I am manually setting the headers, which I have had to do so rails can recognize it as a javascript request. I am even using the compatibility plugin and nothing works. I can just go back to 1.1.4 because a lot of the plugins I am wanting to use require 1.2. Anyone
[jQuery] two subscriptions to the same group
Hi All, This is strange, and I am not sure how it happened, but I think somehow I got 2 different subscriptions to this group, one as rsmolkin and one as pixelwizzard. I went to edit my membership and changed it to only get 1 daily e-mail, yet I am still getting every message posted. Any idea how I can fix this? -Roman
Next Page