[jQuery] Forms: Convert spaces to +'s, and how to GET only certain form elements?
Hi, I am working on a search form where I need to convert the spaces of the submitted data (using GET form method) to +... For example: Search term: dog cat horse whale would be Search term: dog+cat+horse+whale Any tips for doing this using jQuery? Additionally, is there a good way (using jQuery) to not submit certain fields? For example, when I submit my form using GET form method, I see all of the unwanted fields showing up in the resulting URL search page. I assume that probably the best solution
[jQuery] Lighbox not working
Dear all , I've test the lastest release of Lighbox it doesn't seem to work .. has any body any idea about whats wrong with the Plugin by the way I've test it by Safari this is the Link http://www.balupton.com/sandbox/jquery_lightbox/ Regards Pedram
[jQuery] Separating HTML special characters from their escaped counterparts in a textarea.
This may not really be a jQuery question; if you can suggest someplace better to ask, please let me know. I have some HTML in a textarea that the user will need to be able to edit (eventually in FCK Editor.) This is stored in a DB as HTML, with some things that look like escaped XML start tags included, e.g. Some text, including a <CustId> in the middle. I would like the editor to use the regular markup such as " " as editing marks, but to treat the escaped code such as "<CustId>" as
Basic ajax question
Hello, what is the easiest way to get 4 variables from a php file back to the original page? $j.ajax({ type: "POST", url: "edit/remote.php, success: function(response){ } }); I need response to let me get 3 variables that I can echo in remote.php The variables are single words... Is the easiest way like datatype: text, html, or xml. I'm lost. Thanks
[jQuery] Create a class on run-time?
Is it possible to create css class on run-time with jquery/javascript? if yes, how?
[jQuery] attr(style: ) vs. css
Hi all! What's the difference between: 1. attr(style: "prop./val.") 2. css({prop./val.}) and 3. animate({prop.val.}, 0) Are all the changes set in the html inline-style? Thanks! Reference for my question: http://groups.google.com/group/jquery-en/browse_thread/thread/10ce43d5f882b642?hl=en
[jQuery] ycodaslider in an iframe
dosent work anyone know a fix?
[jQuery] jQuery Corner plugin not working
Hi, I'm pretty new to jQuery package and as a training opportunity I 'm converting my asp.net ajax site to use jQuery instead. Now, I need to use round corners functionlity and I downloaded the jquery.corner.js plugin, but when I try to use it, it doesn't seem to work right. Consider this simple html file: -------------------------------------------------------------------------------------------------- <html> <head></head> <body> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"
[jQuery] [Validate] Maximum call stack size exceeded.
Jörn, Ok, I am not sure which lib is causing the error. I am using the latest of jQuery and Validate. I get the console error "Maximum call stack size exceeded." This appears in the error pane of Coda which uses WebKit for rendering. Below is the code in my <head> if it helps track the issue down. $.validator.setDefaults({ submitHandler: function(form) { $("#loginBtn").hide("slow"); $(form).submit(); }, errorClass : "error" }); $().ready(function() { $("#logon").validate({ rules: { username: { required:
[jQuery] Cookie problem in Safari 3.1.1
Dear folks, My system is working with AJax and I need to save some of my data with Cookies as you all know I have to handle this with javascript cookie and Server Cookie both.... when I call the AJAX I change the Value of the Cookie then when the AJAX loads the Server PHP file it recognizes the Cookie and it accepts the change .. I don't have ant Problem in IE7 and FF and netscape but I do have Problem with Safari ... Safari would not Recognize the Change by Javascript unless I refresh the Page ...
[jQuery] LightBox (or Modal) with ajax response from a POST type
I've been trying this a while using multiple types of lightboxes, as well as jqm - modal (and another modal but I can't remember what it was called). I have an ajax page that I retrieve with [code] $.ajax({ type: "POST", url: "add.php", data: "c="+c+"&sid="+sid, success: function(response){ $('#pop-up').html(response); } }); [/code] but I'm unable to get any sort of lightbox that works with a POST, all the onces I've seen take the parameters
[jQuery] [jCarousel] Contiunuous Scrolling
Hi, When using the jcarousel plugin - http://sorgalla.com/projects/jcarousel/ - I would like the carousel to keep on scrolling until the end, as long as the user 'hovers' over the arrow. Hovering isn't the problem, continuous scrolling is. Maybe I have to use a different plugin but I haven't found that yet. juro
Did I miss something?
Okay, I've got to believe that there's some small error in here that I'm missing, because I cannot get this to work. Any ideas? <script type="text/javascript"> $(document).ready(function(){ $("client_login").hover(function(){ $(this).animate({ opacity: .9, top: "-1"}, "normal"); }, function(){ $(this).animate({ opacity: .4, top: "-28"}, "normal");
[jQuery] Need help: "Access to restricted URI denied" error, but code should be on same host
Dear Jquery list, I've read about this "Access to restricted URI denied" error before, but I do not understand why it is happening to me. I have a PHP file sitting on http://vgmworld.com/specialorder/specialorder.php that makes an AJAX post call to a file also sitting on the same host at http://vgmworld.com/specialorder/orderhash.php. Orderhash is supposed to return data to me so I can fill out the form properly. The AJAX call is made when the price field is changed, but when this happens, Firefox
[jQuery] .click with confirm coming up multiple times
I have been working on a script, that will put a URL into a var when a link is clicked. Then, when a second link is clicked a confirm dialog appears, if you click ok, that var is printed. Problem is, it works only the first time you click one of the first links. If you click a second link, and then the link that activates the confirm, it throws 2 confirm dialogs, one for the first link, and one for the second link. How can I make the var get overwritten each time a new link is clicked? $("a.test").click(function()
[jQuery] Navigation scrolling
How would i make Navigation layer fix it self at top of the window after some point of scrolling, so its always visible..... Like the right side menu at this link: http://www.plosone.org/article/info%3Adoi%2F10.1371%2Fjournal.pone.0002240 thx.
[jQuery] Rapid mouse click, stopping animation queue
Im somewhat new to using jQuery and I am loving it so far. One problem that I encounter is if you have a element, say, for example, that is a button and on press a paragraph of text fades in. If you press the button again, jQuery fades the text out. Well this in fact works rather well, but the problem is, if you go crazy on that button and press it rapidly with your mouse, the animation will just open and close and open and close.. is there any way to prevent this from happening? Essentially it would
[jQuery] passing parameters to new Function as array... possible?
its really a javascript question... The 3 parameters var1, var2, var3 that are used my my new Function - I'd like to be able to do this using an array. After an hour on the web I haven't been able to find a way... var fn = new Function( 'var1','var2','var3', func); fn( var1, var2, var3); in my imagination I had hoped to do something like this: var my_array = new Array('var1','var2','var3'); var fn = new Function(my_array , func); fn( my_array);
[jQuery] using the load method in Firefox
Hi, I'm creating a page that loads content from another page using the JQuery load method. The problem I'm having now is that the content on the page I am loading from has Javascripts that it needs to run functionally. When I load that page, .load('../WebSite/ReportSlide08.html', function() { $('#content').slideDown("slow"); }); none of the functionality of the Javascripts that are in that page work in Firefox. In IE7, the functionality of the Javascripts is seen. Any thoughts on why this
[jQuery] UI Tabs - closable tabs
[FWIW, another follow up for http://groups.google.com/group/jquery-en/browse_frm/thread/b8bd6f7913896b8f/0502d90518a6015f?#0502d90518a6015f] Though the thread says the behavior is fixed, it's still buggy... Steps to reproduce: 1. Add about 5 new tabs 2. Choose any one of "Close me" tab and click the "x" and close that. 3. Now, the "x" buttons in other "Close me" tabs are gone. Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16 -- <?php echo 'Just
[jQuery] jQuery.ajax():success(data) - data truncated on IE, not FF, when using gzip
<div dir="ltr">Hi. There seems to be a problem with IE reading gzipped content. If on the PHP end i gzip the data, my data var in success() of jQuery.ajax({}) is truncated and thus unusable. If i dont use gzip then all is fine, i get the full data. Has anyone else experience with IE barfing on gzipped content? Is there a workaround so i can use gzip for IE? </div>
[jQuery] xml data parse to ms accessdatabase using jdbc dynamically
hi all, I am unable to write a java code for parsing the data from xml data file to msaccess please help me a example code for this. - kiran
[jQuery] JTemplates site gone ?!
Hi, Seems like http://jtemplates.tpython.com dropped of the face of the earth since a week or 2. Anyone know if it just moved, is comming back or anything at all? Cause i really need to get my hands on the doc/samples ..just in case. Btw, jtemplates is a very nice plugin to abstract the UI. I'm currently using it sucessfully with jquery on a site with up to 25K simultaneous users chatting away :) Thank's for any info! Robert
[jQuery] autocomplete pass extraparams with value of another autocomplete
I have 2 autocomplete fields (using Dylan Verheul's autocomplete plugin)...one for city and one for zipcode. I'd like to pass the value of the zipcode field as an extraParam of the city autocomplete and vice versa. My problem is I can't seem to figure out how to get the current value of either field (they are hardcoded in the example below). Any idea how I get the values? These are my autocompletes... $("#city").autocomplete( "index.cfm?event=household.proxy_cities", { delay:10,
[jQuery] Maintain state in plugin
I'm writing my own plugin that can be applied to various elements on the page. Each instance of the plugin needs to maintain its own state and this state needs to be "visible" to other plugins. Whats the best approach to achieve this?
[jQuery] Can't get the selection range from the body.
Wondering if anyone can help me. I'm trying to access the body of an iframe, (done) and want to see the selectionStart or get the selection range from it. Only problem is it doesn't contain the selection range, or selectionstart. How can I retrieve this? Thanks Have tried the following: $(dsrte) $(dsrte.body) $(dsrte.iframe.body) etc... None contain the selectionStart property. I'm wondering if its only used in fields, if so, what do I need to do to capture the body selection? Marcus
[jQuery] Adding click handlers in a loop
What I'm trying to achieve is build a table programmatically using DOM like so: var Html = []; Html.push('<table> ..... ') ..... Html.push('</table>') Inside the table I'm adding <tr> rows using a for loop like so: for (var index = 0; index < length; index++) { Html.push('<tr><td>......</td></tr>'); ...... } And inside each table cell <td> I'm adding an anchor like so: Html.push('<a href="javascript:void(0)" id="'); Html.push(index); Html.push('">'); Html.push("Click HERE"); dayViewHtml.push('</a>');
[jQuery] Taconite support effects?
I'm trying doing some effects with Taconite and have some sucess. My XHR return this: <taconite> <empty select="#tbproduto tbody" /> <append select="#tbproduto tbody">some tr xhtml codes</append> <fadeIn select="#tbproduto tbody tr:eq(0)" /> <fadeIn select="#tbproduto tbody tr:eq(1)" /> <fadeIn select="#tbproduto tbody tr:eq(2)" /> <fadeIn select="#tbproduto tbody tr:eq(3)" arg1="5000" /> </taconite> That work fine, inclusive that XML <taconite> <empty select="#tbproduto tbody" /> <append select="#tbproduto
[jQuery] jQuery in the wild
<div dir="ltr"><span style="font-family: trebuchet ms,sans-serif;"><a href="http://www.sears.com/shc/s/s_10153_12605_Appliances_Dishwashers_Built-In+Dishwashers#viewItems=84&pageNum=1&sortOption=ORIGINAL_SORT_ORDER">http://www.sears.com/shc/s/s_10153_12605_Appliances_Dishwashers_Built-In+Dishwashers#viewItems=84&pageNum=1&sortOption=ORIGINAL_SORT_ORDER</a></span><br style="font-family: trebuchet ms,sans-serif;"> <br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet
[jQuery] sfHover Suckerfish not working in IE 6
We are trying to add this horizontal menu to a wordpress site. We are using News Premiums's Live Wire 2.0 Template. You can check the site here http://www.laseleccion.com.ar/argentina, the site is under contruction. This is the css for the Menu /* Menu Horizontal Multi Nivel */ #menu, #menu ul{ margin:0px; padding:0px; list-style-type:none; list-style-position:outside; position:relative; line-height:1.9em; } #menu a{ display:block; font-family: Trebuchet MS; font-size:10px; padding:0px 10px; border:1px
[jQuery] Dynamic checkbox not included in submit by jquery.form
Hello, I have a form with a drop down list which populates a div with checkboxes based on an AJAX query each time it changes. I'm then using ajaxSubmit to post that data along with a few additional form elements. All of the elements are included in the post <u>except for the checkboxes</u>. HTML and code snippets are listed below... the checkboxes are populated in div#account. Any suggestions? thanks, Michael <u><b>HTML</b></u> <form id="frmAdd" action="createHold.rails" method="post"> <table
[jQuery] Strongly recommend jQuery In Action book
As a newbie, I am always appreciative of recommended resources. And this one time, I get to return the favor by highly recommending "jQuery In Action" from Manning press by Bear Bibeault and Yehuda Katz. It is very well written and well organized. The examples are accurate and complete. Given I have had no javascript experience and, by extension, no jQuery experience, I found this book to be a great intro to both subjects. An appendix on the key javascript features combined with another book I highly
[jQuery] .removeClass() performance is very low on IE7
//only 2 elements to remove $("#id").removeClass('onesimpleclassonly'); It took almost 3 ~ 4 seconds to remove the class. What can I do to speed up the process?
[jQuery] Getting "this" to work with my function and jquery
I might be getting confused about the proper use of "this". I thought I understood how this worked, and that since I am triggering the onclick even on an anchor, that the "this" would be in the context of that anchor tag, so that I could grab its href. Here is what I have done, but it is returning undefined for asseturl. function deleteAjaxAsset(message, assetid) { var asseturl = $(this).attr("href"); alert(asseturl); var confirmDelete = confirm(message); if (confirmDelete == true) { if(action ==
[jQuery] Demos at docs.jquery.com not working in Opera
I couldn't find any previous posts about this issue. For some reason none of the demos work in docs.jquery.com using Opera 9.5 nor 9.27. For example page http://docs.jquery.com/UI/Dialog http://docs.jquery.com/UI/Dialog displays only an empty area where the demo should be. A quick look with the Opera's Dragonfly shows that the demo iframe is empty with only head and body tag. They work fine with both IE and FF. Hasn't anyone else had this problem before? -- View this message in context: http://www.nabble.com/Demos-at-docs.jquery.com-not-working-in-Opera-tp18516162s27240p18516162.html
[jQuery] Hide DOM when clicking outside it? (Newbie Question)
I have a simple menu which are shown when you click on a link. Is it possible to hide the menu when I click outside it? Any help are appreciated. Thanks.
[jQuery] "not" not working (newbie)
Hi. I am doing a simple thing summarized as follow: when i click on a paragraph i want it to do something only the first time. I was able to do it using "one( type, data, fn )" but before that I tried using a different approach like this: $("p:not(.open)").click(function () { // do something ... $(this).addClass("open"); )}; or $("p").not(".open").click(function () { // do something ... $(this).addClass("open"); )}; I know I am missing some basics here but I'm out of ideas. Oh and not spending another
[jQuery] ajax response content type interception
I submitted a patch a long time ago here http://dev.jquery.com/ticket/2890 that allows the response content type to determine how jquery handles the response (script, html, etc). This is not being looked at or applied (not sure why) so I was wondering if there is a way to intercept the response to change the 'dataType' property with some kind of listener so that I won't have to keep maintaining a modified jquery.js ? Any ideas on how to alter jquery's handling of the responseText on a success ? I
[jQuery] jQuery injecting problem
Hello, everyone! I need some help. I'm trying to inject jQuery into the page using a bookmarklet (http:// www.learningjquery.com/2006/12/jquerify-bookmarklet). It works with all pages except this one: http://www.laist.com/2008/02/08/bansky_banksy_a.php giving me "jQuery(window).bind is not a function" error. Any suggestions?
[jQuery] Issues with .css( )
I have looked and looked, and I get the same error everytime I try to use the .css( ) function with { }: missing : after property id Here is my code: $(this).css({ font-weight: 'bold', font-size: 'larger' }); Maybe a fresh pair of eyes will help?
Next Page