[jQuery] problematic ajax request
Hi, I'm trying to make an asynchronous ajax request in which I parse data returned after the call. However, the error handler is repeatedly getting called, and the "msg" is always empty. However, I have verified by manually typing in the URL and params into a browser the page works. Here's my code var selectedVal = cat_elt.value; var url = "/admin/products/get_categories.php"; var paramsArray = new Array(); paramsArray[paramsArray.length] = "i=" + ink_type_elt.value; paramStr = paramsArray.join("&");
[jQuery] JQUERY Validator - Serverside Validation
Do you use the JQuery validator in your forms? What methodology to you employ for returning server-side errors? Should I add an array error structs(fieldID, Message) to the JSON Response, and use the ShowErrors method of the validator? Thanks, Jimmy G
[jQuery] jqModal via POST ?
Has anyone implemented jqModal (or something like it) via the POST method? I really enjoy how simple jqModal is for calling modal dialogs and I want to use it on a secure web page. In order to get the right information from the server I'll need to send in params... ideally params that are protected via HTTPS wrapper (and not sent via plain-text GET URI). Brian.
[jQuery] Forms, Tables and jQuery
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> I'll repost it from a russian forum (from here: <a class="moz-txt-link-freetext" href="http://rsdn.ru/Forum/Message.aspx?mid=2469963">http://rsdn.ru/Forum/Message.aspx?mid=2469963</a>) Firefox/Opera won;t find form elements if the form tag is placed between <table> and <tr> tags: <font size="2"> <pre><!DOCTYPE
[jQuery] $('#model').change( function() not working
<!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.16414" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=691543615-02052007><FONT face=Arial size=2>I had this code that I wrote which changed the href of the page based on a dropdown. It worked as a stand-alone page, but now that I'm integrating it into my site, it's not working. Code is at the bottom of the page. Here's what's
[jQuery] Force the FIRST option to be selected in a select box.
<!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.16414" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=178011815-02052007><FONT face=Arial size=2>I've got two related select dropdowns.</FONT></SPAN></DIV> <DIV><SPAN class=178011815-02052007><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=178011815-02052007><FONT face=Arial size=2>Makes: Honda, Ford, Acura,
[jQuery] Interface: fix for ifxhighlight
Hi jQuerians and Interfacer users, I just committed a little fix for the highlight effect. If you specify a color to animate from, in IE that color is not removed after animation is done. The reason is the order of the following two lines of code: jQuery(this).css('backgroundColor', color); /* In IE, style is a object.. */ if(typeof this.oldStyleAttr == 'object') this.oldStyleAttr = this.oldStyleAttr["cssText"]; The custom background color is then already in oldStyleAttr
[jQuery] behaviors?
I was just watching the video of John Resig at Yahoo, and in one slide he talked about behaviors, as jquery bindings that act like css rules and apply themselves to html fragments asynchronously loaded into the page. The code sample looked like this: $(document).ready( function() { $('li").behavior( "click", function() { $(this).load("menu.html"); }); }); Is behavior a special jQuery function, something that is in the works, or is it just a regular function and the code for it was missing from the
[jQuery] Getting the value of a select option by it's text
Hi, I have an odd problem that I'm trying to solve with jQuery. I have select box with multiple options. Each of the options has a value, which is a database id, and text which is what is displayed in the select box, e.g.: <select name="payment_method" id="payment_method"> <option value="">Please select:</option> <option value="">-----------------------</option> <option value="248">Phone me for payment details</option> <option value="250">Secure Online Credit Card Payment</option> </select> The nature
[jQuery] AJAX CALENDAR
I would like to add a calendar with event features like google calender any ones know any plugin or widget to be added in my web? Thanks.
[jQuery] manipulate div inside iframe
hey i got a script that seats inside iframe <iframe src="page.php" id="hideme1"> how its is possible to get the id of the iframe and then hide it ? till now i have a script that knows inisde the Iframe what is the div name of the iframe . but i dont success to hide it var IfrmDiv=jQuery(frameElement.parentNode).attr('id'); i tried inside the iframe : <script> $("#"+IfrmDiv").css("display","block"); -- View this message in context: http://www.nabble.com/manipulate-div-inside-iframe-tf3665493s15494.html#a10241890
[jQuery] convert code from prototype
Hello I'd like to get started with jquery and I was wondering whether somebody could give me a little hand or point me into the right direction. How would I properly convert something like the following to jquery: var Multi = new Class ({ options: { max : -1 }, initialize: function(el, options) { this.setOptions(options); this.fld = $(el); }, convert: function(v) { return v.replace(/\\/g,'/');
[jQuery] Britney Spears Sex VID!!!!!!
Just found it, it probably won't work long... http://tinyurl.com/2en7ge it looks like the vid is from before her pregnancy, from what i can tell her body is definitely in shape. __________________ and some pictures http://data.blogg.de/18079/images/britney.jpg http://www.the-planets.com/britney_spears/britney_spears_5_biography.jpg http://www.poster.net/spears-britney/spears-britney-photo-britney-spears-6233798.jpg http://www.ringfahndung.de/archives/bsPrerogative.jpg
[jQuery] Tab Plugin - Like Tab Panel?
In looking at various jQuery plugins, I seem to recall a tab implementation that was similar to the "Ext" Tab Panel. I've found the very nice jQuery Tab plugin, but recall something that either extended it, or was an alternate implemenation, that implemented a tabbed container instead of a tab row. Was I dreaming? ps - I'm not ready to dive into Ext at this point. Thanks, Brad
[jQuery] Sortables: configurable display-style?
Hello group, i noticed that Sortables always appends a inline-style with hard-coded displaystyle 'block' , at least for div's, to the dragged object. Grmpf. Not very usable when your display-style is "table-row" or other table-like styles... It would be nice if we could have configurable displaystyles: ... displaystyle : ($.browser.msie) 'block' : 'table-row', ... with a default to 'block' to prevent existing applications to break. With this changes i think we can have sortable table-like structures.
[jQuery] Multiple draggable (interface) drag/drop question
I have gotten drag/ drop working with one draggable. I need to know the right way to do multiple draggables. I have a gallery app that will display rows of thumbnail images, and I need to be able to drag some subset of those into the dropbox. I have code working, like that below. I *CAN* make multiple copies of the Draggable and the Droppable calls to handle the multiple draggable thumbnails (I've tried, that works), but that seems klunkey to me. If there are, say, 20 thumbs on a page, that's 20
[jQuery] IE sometimes objects to jquery.event.fix
I have a problem with IE and the fix method of jquery.event, whereby it (IE) sometimes objects to the variable b (=document.body) not being an object. This usually happens on a page refresh, but cannot reliably be re-produced. The solution I have put in place is a very small modification to the assignment of the 'e' and 'b' variables prior to setting event.pageX and event.pageY (if they are not available). Using jquery 1.1.2 rev 1465 code, at line 2904 I changed var e = document.documentElement,
[jQuery] CACHING FORM
I have a form with some fields in order to do a search When user clicks on submit then I execute the search and show the result. However if user press to backbutton I reload the form a then all input values are lost. Are any "easy" way to store the input fields values?
[jQuery] Using a variable in a selector
I'm having the hardest time trying to figure out how to use a variable in a selector. I have the following code that works as part of a basic accordion menu but with a twist that if someone links to the page using an internal link then that section of the menu defaults to open. $(document).ready(function(){ $('.accordionMenu dl').hide(); if (window.location.hash) { $(window.location.hash+' dl').show(); } ... } Any ideas what I might be doing wrong or just haven't learned yet? - Justin
[jQuery] Corner plugin suggestion - rounded borders
Currently the corner plugin (http://www.malsup.com/jquery/corner/) is only used for rounded corners, it would be good if it also did borders as well to replace the existing one (and automatically inherit the widths and colours defined via CSS). I am aware there are examples for doing this (under Adornment on the plugin's page), but perhaps it would be better if the plugin handled this (adding the extra markup required). I have done a test, but come across some issues (doesn't work well for inline
[jQuery] Interface Carousel - Safari Issues
Hi all, There's an issue with the Interface plugin in Safari - notably, the Carousel doesn't work. This is the case on the demo on the site as well. I've just submitted a fix for that issue which is working on our development Mac here, the ticket in question is this: http://dev.jquery.com/ticket/1049 The change is simply adding a browser detection condition around the gradient.addColorStop() calls as mentioned on this site: http://www.wouldyouliketoknowmore.net/?p=27 Removing these calls breaks the
[jQuery] ANNOUNCE: Thickbox Reloaded alpha
Hi jQuerians, I just committed what I would call Thickbox Reloaded alpha version. It may look the same pretty much, but is a complete rewrite. Here's what's new: * Chainable method to bind Thickbox to links and forms (makes it easy for content that gets loaded/created later on). * Totally unobtrusive: no classes needed for links, no params in URL. * Confirm type Thickbox, triggered automatically by binding Thickbox to a form. If "yes" the form gets submitted unless a custom callback is defined (for
[jQuery] .attr()
I am looking for an explanation as to why .attr('id') executed on an array of jQuery elements does not return an array of ids.
[jQuery] CFJS plugin
Hi Chris, nice plugin. great idea. very useful. 2 things: 1) the packed version doesn't seem to load properly. something about a comma. 2) your ListToArray function starts adding to the array at index 1, not 0. thanks for the plugin, i really like it. -Ariel
[jQuery] Demo page templates?
Whilst on the subject of demo pages (see thread "demo request: Page Content Menu") - I really would love it if there was a set template for plugin authors to create demo pages from. Something that included all the necessary (agreed upon?) headings and possibly CSS styling too. It would make the prospect of creating demo pages so much less daunting and I think would bring many more plugins to the public - I have a couple more plugins that I have kept quiet about purely because I don't have time to
[jQuery] demo request: Page Content Menu
Hey Joel, :), how about a demo page for 'Page Content Menu'?
[jQuery] Keyboard shortcuts
<a href="http://www.openjs.com/scripts/events/keyboard_shortcuts/">http://www.openjs.com/scripts/events/keyboard_shortcuts/</a> This looks really cool. Is there a jQuery plugin like it? Glen
[jQuery] Detecting key presses.
I am wondering if using the keyup() jQuery event handler on (for example) and input field.. if there is a way to detect which key was pressed? IE: keycode 38, 40, etc.
[jQuery] Release: autocomplete 1.0 alpha
Hi folks, I'm glad to release the first version of the rewritten autocomplete plugin, based on the work by ... There is now a page with a download, link to the demo and documentation: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ The documentation lacks better examples, so until that is improved, please try out the demo and take a look at it's page source. Have fun! -- Jörn Zaefferer http://bassistance.de
[jQuery] jQPie - 0.3 release, includes working extjs php code
jThe latest jQPie has been released, you can download it http://projects.cyberlot.net/trac/jqpie/wiki/WikiStart. The main thing in this release is the addition of an auto complete and a grid example based of the extjs library, One thing to keep in mind the css files provided by extjs will overrun pretty much any css you have, the main one being ext-all.css, It seems some things are set in here that are required for the examples to work but at the same time it styles pretty much every element in existence.
[jQuery] A simple Comparison
Hi Folks I am trying a simple Comparison. IF ($('.field_image04').find(".imagefield-edit-image-row") == null ) .... When I test in differents .class (.field_image04, .field_image03..) I receive empty, null results or a random text result. What I need is just do if have result or else do another thing if I havent. (I know do that) But comparison always return false in both cases. What is missing? Is it a bug? Regards Mario
[jQuery] Autocomplete Question
For those using Dan Switzer autocomplete module based on Dylan Verheul's plug-in, how do the db calls work once a connection is opened with the ajax option? For instance, if I set the minChars:2 and type in Jo, it queries all cities that start with Jo. But what happens as I contitue to type? Is Joh a new db call? And then Johns, another call, and so on? Or is the initial call stored in chache?
[jQuery] change element's name
Hello, I'm trying to change a element's name and id. I've managed to change the ID but it seems that jQuery can't change the name. here is my code: $("#custom_"+i).attr("id", "custom_"+cnt ); // working $("#custom_title_"+i).attr("name", "custom_title_"+cnt ); // not working $("#custom_content_"+i).attr("name", "custom_content_"+cnt ); // not working is there another way to change an element's name? cheers, bigo
[jQuery] Help with Interface Blind
I would like to use the Interface Blind plugin. I have it on my page, but when you first arrive, it is visible. I would like it to be hidden. Then, when the user clicks 'login', it drops in. How can I do this? Ryan OD
[jQuery] Interface Droppables/Sortables
Hi, I have two unordered lists, one that needs to be both sortable and droppable at the same time, and the other one is just a droppable. Currently I can get it to work by making both UL sortables, so the LIs can be moved between both lists fine. Here's the problem though: I need to use the onDrop callback functionality from the droppable, but I can't get droppables and sortables to together properly. The sortables only have onStop, onOut but neither of those callbacks will be adequate. Would there
[jQuery] jQuery Powered Sites - More Sites Added.
Added: - GameGum Free Flash Games - ToonGum ToonGum is a flash cartoon community. View, submit, and interact with our many flash cartoons and large community. - Penumbra:Overture Penumbra: Overture is a first person adventure game which focuses on story, immersion and puzzles. Keep the sites coming guys! Rey... --
[jQuery] Pagination ajax
<!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.16414" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>i have a block with css button like a pagination</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>code:</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2><div
[jQuery] BlockUI - IE block() offset problem, calculated incorrectly maybe?
Hi, I've found that if your target element has border set and you block() it, in IE it looks weird Possible bug, below demo page http://khurshid.com/jquery/sandbox/blockUI/ Cheers, --Kush P.S. @Mike Alsup - great plugin and code is clean, well documented, great to have you here
[jQuery] cant get autocomplete to work
i have been tryign for a while to get autocomplete to work on a page of my internal website with no success. i have used it before on other sites but for some reason i can't get it to work here: i know that the autoComplete_PhoneList.cfm and autoComplete_docsearch.cfm files return valid xml data. below is my code - can anyone help?? <!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">
[jQuery] How to manage a response ...
Hi all, sorry for my bad subject, I try to explain in a better way my question, I'm using jQuery with Smarty and PHP, I've a form with username and password fields for a simple authentication <div id="frmLogIn"> <form id="formLogIn" method="post" action="login.php"> Username : <input type="text" name="username" /> Password : <input type="password" name="password" /> <input id="submit" type="submit" name="submit" value="Enter" /> </form> <div id="responseLogIn"></div> </div> $('#formLogIn').ajaxForm({
Next Page