[jQuery] Quick javascript question (not jQuery)
Not strictly speaking a jQuery question but I thought somebody on here might have some insight into this. :) The Powers That Be have asked me for a system whereby the contents of a form is automatically saved to the server whenever the user leaves the page. I looked into onunload but from what I can asertain by the time that event fires the form already no longer exists and can't be submitted to the server. Doing an AJAX post whenever the form changes isn't acceptible because that would generate
[jQuery] Determining show / hide state
Does jQuery .show() and .hide() set a flag anywhere on an object to indicate if it was last show()n or hide()n? Sam
[jQuery] $.getJSON manipulation
Hi all, I use $.getJSON with flickr REST API, unfortunately flickr is answering: jsonFlickrApi({"photos":{"page":1, "pages":10, "perpage":100, "total":"938", "photo":[{"id":" I guess i should remove "jsonFlickrApi(" header to get the json interpreted. So i tried: $.get(url, function(response){ response = response.split("jsonFlickrApi(")[1]; response= response.substr(0,response.length-1); //var json = JSON.parse(response); } but don't knoe how to parse the remaining data as an object Somebody
[jQuery] Print Preview
I would like to add a print preview funcionality to my web app. Any one knows a component to use it?
[jQuery] drag to scroll in jquery
Hi, I want to implement a feature like Google Map's drag to scroll in jquery, but has no ideas right now, and I haven't found this kind of drag&drop in interface yet, or maybe there is? Someone can give a suggestion? Regards
[jQuery] jQuery and IE7 issues with Star Rating Plugin
I am using the Star Rating Plugin located at http://sandbox.wilstuckey.com/jquery-ratings/ to create a rating system for each item in a list. It works great in IE 6 and Firefox but for the most part will not work in IE 7. I have setup a clean and simple test page at http://www.songdiscovery.com/dsp_community_test.cfm for anyone that is able to take a look and give some input. I have a deadline for this Friday and am unable to find a fix at this point. Any help will really mean a lot and save me big
[jQuery] .ready and javascript library loading
Does $(document).ready ensure that all javascript libraries are loaded in addition to the DOM being ready? I have a case on a very slow network connection, where a call to a library function is made seemingly before the library is loaded. ~ ~ Dave
[jQuery] jQuery featured POTM
Please forgive the self-advertisement, but I just wanted to share that I've added jQuery to the list of featured projects I've been coordinating this year: http://www.garfieldtech.com/blog/potm-jquery For the rest of the featured projects, see here: http://www.garfieldtech.com/potm http://www.garfieldtech.com/blog/project-of-the-month Thanks John and everyone for an awesome project! -- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing
[jQuery] Events firing twice
Maybe I'm not understanding binding correctly, but when I select a different item from the list below, the change() event fires twice. Why is it doing this? <select id="testselect"> <option value="1">Testing1</option> <option value="2">Testing2</option> <option value="3">Testing3</option> </select> // jquery $('#testselect').change(function(){ alert("I am showing alerting twice!"); });
[jQuery] function are getting called twice
hi, I have a webpage (say webpage1) that include another webpage (say webpage2). Both the pages have $(document).ready(......to attach jquery function to elements of their page. However, since webpage2 is included within webpage1, the functions within webpage2 are getting called twice. Is there a way to avoid calling a function twice I want to keep $(document).ready in both the pages as, sometime the webpage2 can be directly called.. Please help me with this Regards, bingo
[jQuery] Widgetbox variables, problems with $()
I just released a Farbtastic Widget on Widgetbox.com During the creation of the Widget, the website allows you to specify parameters. They all look like: var userlanguage = ${config.userlanguage}; Here is the problem: Because of the $, jQuery doesn't work anymore. Is there a way to fix it? Their help says: These parameters are passed via the query string: http://yourwidget.com?param=value How (besides $()) can I access the parameters? (The Url to the widget is: http://www.widgetbox.com/widget/farbtastic-widget
[jQuery] extra parameter at the end of .click() in older code
<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] function on element printed by another function
I trying to do something like this: $("#one").click( function() { $("#frame").html( "<div id='two'>Printed Element</div>" ); } ); $("#two").click( function() { alert("Hello!"); } ); <div id="one">Click me</div> <div id="frame">Empty</div> when I click on the #one, #two is printed in #frame, but there is no response when clicking #two How can I declare action (like .click) on element printed by jQuery function? Somebody can help me?
[jQuery] Still im looking for help
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.6000.16441" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV> </DIV> <DIV><FONT face=Arial size=2>Is the same question, can found the problem, if someone can pls helpme, thx too much</FONT></DIV> <DIV><FONT face=Arial size=2>------------------</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV> <DIV><FONT
[jQuery] Textarea Filter
I'm trying to create a textarea on a form for prayer requests on a church web site and I need to find a script that will prevent objectionable words from being entered or submitted. If an objectionable word is entered the form will not submit and present a warning message. Is such a script already available or can someone direct me to such a script
[jQuery] switching color function
I have several lines of code that are almost identical like this: $(function(){ $('p.productColorWhite').click(function(){ switchColor(this); }); $('p.productColorTranslucent').click(function(){ switchColor(this); }); $('p.productColorBlack').click(function(){ switchColor(this); }); }); How can I write this in a way that is less repetitive or uses better practice? I'd like to do something like this: $(function(){ $('p.productColor*').click(function(){
[jQuery] Using close images
I´m trying do that $("img[@id=^fechar]").click(function() { alert('u can do it!'); $(this).parent("div").hide(); }); fechar = close Even with a alert do nothing, where is wrong?? -- []´s Jean www.suissa.info Ethereal Agency www.etherealagency.com
[jQuery] .attr( "type" ) returns 'undefined' for <select> element
The following line returns 'select-one' in IE6 and 'undefined' in Firefox 2.0.0.3. $( "#Province" ).attr( "type" ) <select name="Province" id="Province"> <option>Ontario <option>Alberta <option>Nova Scotia </select> I get the same results in jQuery 1.1.2 and 1.1.3a releases. Is this is a bug? If I use document.getElementById("Province").type I get the 'select-one' value in Firefox.
[jQuery] Coldfusion 8 Public Beta now available
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.6000.16441" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=947230413-30052007><FONT face=Arial size=2>For any of you that have been wanting to try Coldfusion, THIS is the email for you.</FONT></SPAN></DIV> <DIV><SPAN class=947230413-30052007><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=947230413-30052007><FONT
[jQuery] IE not evaluating script tags in get
Hi, I'm using $.get like such : function ajaxLoad(x) { $.get(x, {dataType : "html"}, function(html) { ajaxLoaded(html, "") }) } the HTML loaded contains some script and some tags. in FF the script runs fine, but in IE it silently fails. any ideas what the problem is ? weepy
[jQuery] Having difficulty binding keypress handler in IE 6 & 7
I'm trying to bind a keypress event handler to the input element in the last cell of a table row. In the real application this will be used to check for a tab key and call a function to add another row to the table. I have it working in FF but apparently the keypress event never gets bound in IE 6 or 7. I've created a small table and some simple code to target the desired element and attempt to add the bound function. I've been messing with this for a while so I'm suspecting that I've developed "code
[jQuery] TreeView
Hi, i have some problems with the treeview plugin. It works quite well with FF and Opera, but in IE6 everything breaks. Examples of this behaviour can be found at http://131.130.183.109:8080/whav/subjects/ and http://131.130.183.109:8080/whav/objects/ As the examples in the repository seem to work, it probably has to do with the enclosing <div>. I have hardly any experience with IE bugs, so maybe somebody could take a short look at the page and give me a hint on what might be wrong. cheers, Sean
[jQuery] ANNOUNCE new plugin jqMultiSelects: move options between select boxes
Hi all, I've consolidated my code for moving <option> elements between <select> boxes into a jQuery plugin. It is currently very simple and is the first release, available from <a href="http://code.google.com/p/jqmultiselects/"> http://code.google.com/p/jqmultiselects/</a> Any suggestions would be most welcome :-) --rob
[jQuery] trigger "$(document).ready" manually
Good evening, It is possible to call 1. $('#field').trigger("click"); 2. $(document).trigger("myOwnEvent"); But it seems, that this is not possible to call $(ducument).trigger("ready"); Is "ready" not an event? (Yes, I mean ready from $ (document).ready(function() {...})). I need to recall this event, because I have changed a big part of my page. Mathias
[jQuery] jQuery.noConflict() problem
<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] $(document).ready limits
Hi I have a project where I am using Ajax to squirt some HTML and script into the DOM. The script currently has a document.ready around it which appears to fire ok when in FF but not in IE Does any one have any experience of this ? weepy
[jQuery] ajax request error
Hi, I am calling an Ajax request to the server (J2ee, Struts Action) to get a number : ************************************************************************* alert(date); alert(flight); var html = $.ajax({ url: "ATBAjaxHandler.do", data: "service-name=nb_places_available&date="+date+"&flight="+flight }).responseText; alert("HTML = "+html); document.getElementById('nbPlacesAller').innerHtml = html; ************************************************************************* in IE the last
[jQuery] [ANNOUNCE] jQuery powered plazes.com relaunched
All, I have the pleasure to announce that the jQuery powered plazes.com has relaunched. plazes.com is using Thickbox Reloaded, Tabs, jCarousel, rating and the form plugin and a tiny bit of Interface so far... and standard jQuery of course for unobtrusive DOM manipulation, effects and Ajax. I went ahead and created a jQuery group you can join if you like: http://www.plazes.com/groups/146?by=carhartl Cheers, --Klaus
[jQuery] thickbox window to be opened automatically after page loaded
Hi all, is there any way how to open thickbox window after page is loaded? For example invoke thickbox with something like <body onLoad="open_thickbox()";> - how to define function open_thickbox() or other way how to provide automatic click on <a href='' class='thickbox'> tag after page is loaded? ... tryinng to solve something like new window to be opened after page is loaded, but I don't want to open new page, but thickbox window over loaded page. Thanks for some howtos. Leos.
[jQuery] Interface: Rearranging a table by drag and drop
I am trying to implement a system whereby a user can rearrange rows in a table by draggign and dropping them. I quickly made something rather basic with the interface draggables and droppables but it's not ideal. I suspect I'm not using it properly as I've seen drag and drop tables before. Here's the code I'm using. $(document).ready (function () { $('.favRow').Draggable ({ containment : 'parent', snapDistance : 10, opacity : 0.7 }); $('.favRow').Droppable
[jQuery] Block UI when user submits a slow page
Hi all do you know any example using BlockUI with "normal" form(otherwise Ajax)? I have a very slow form(processing text files). I'll want to block UI when user submits that form and, after execute that page, unblock again. Cheers
[jQuery] How to pass variable from link
Hello list Let's say I have a list of items (retrieved from a mysql-db with PHP). To edit the records, one has to click a link (<a href="#" ...>item 1</ a>) which opens a form (achieved with the show/hide jquery). How can I pass the id of an item back to php. I guess I have to use the $.get or $.post function, but I am stuck on this. All help is highly appreciated! Thanks. QT
[jQuery] Select multiple widget
Hi, I did not find any plugin that would convert a "select multiple" box into 2 "select multiple" with the ability to move an item from the one to the other by clicking on an item. Do you have such function or any clue on how to achieve that ? I have tried hard by creating a second list which contains the selected item(s) and by hiding (option.css("display","none")) them in the original one, but I did not succeed in selecting the item in the original list without unselecting the ones that are already
[jQuery] Where is the button plugin ?
Hi visual jquery is describing a button plugin, but I cant find it on the plugin page. Does anybody know where to find it ? Olivier
[jQuery] index of an element
Hi I'm trying to get this working: jQuery('#accordion input[@type=radio]').click(function(){ var rank = jQuery('#accordion p').index(function(){jQuery(this).parent('p').eq(0)}); }); my markup: <div id="accordion"> <h2>bla blah</h2> <input type="radio" name="q1" value="1" />Yes <input type="radio" name="q1" value="0" />No when I output 'rank' it keeps giving me -1. I tried jQuery(this).parent('p') or jQuery(this).parent('p')[0]
[jQuery] tableFilter Beta 2 is now live
For those of you who are interested, I just uploaded another beta of my tableFilter plugin. New features include performance improvements, saving (some..more later) settings in a cookie, support for plugins, and an increased number of "I hate IE" comments in the code. I did two plugins to test the architecture - one is called "Aggregator", creatively enough, and it automatically aggregates data for numeric columns based on your filters. (sum/avg/min/max) The second is called "ColumnStyles" which
[jQuery] Finding first text element
How do I find the first text-node of a given DOM object? Input: <div> here is some text</div> Output: " some text" Input: <h1><a href="#id1"></a>Header 1</h1> Output: "Header 1" ~ ~ Dave
[jQuery] getting DOM values
Hi BjQ (before jQuery) I can do this: document.getElementById('foo').clientWidth to get a DOM value that Firebug tells me is set to something other than 'undefined'. I can't figure out how to the do same in AjQ (after jQuery). I've tried the following: $('#foo').attr('clientWidth') but keep getting undefined. Am I trying the wrong syntax? If so, what syntax will achieve the results I'm after?
[jQuery] jQuery on Rails-related
Hey guys, Great news! Hpricot has accepted my patches to make hpricot compatible with jQuery, which means you'll only need to checkout the latest hpricot from svn to use jQuery on Rails.<br clear="all"> -- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325
[jQuery] Metadata plugin
Hello, I don't know why my example on metadata plugin won't work, in IE7,nothing has been show up...(no error) Source Code: ============== <!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=utf8" /> <title>Demo</title> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="metadata.js"></script>
Next Page