[jQuery] How does the form plugin (or jquery?) determine if a server response is an error or success?
In my particular scenario, the form plugin <http://www.malsup.com/ jquery/> is triggering the specified success function, despite the server returning a 409 conflict error (as seen in Firebug). The error itself is okay - that’s what I am expecting given the content of the form. I’m trying to understand why the plugin reports success despite the 4xx error. I’m using the form plugin to submit a form that includes a file input and a hidden field. As described by the documentation, the plugin conceals
[jQuery] Thickbox + IE6 - Positioning problem
Hi, I just launched my new website http://basler-design.de/ but unfortunately the Thickbox does not work in IE6 right. The window is sometimes not visible for the visitor and the embedded iframe content (if you click on the e-mail or "Impressum) is not visible in IE6 either. Perhaps someone can help me :) I'm new to jQuery, I found these links: http://groups.google.com/group/jquery-dev/browse_thread/thread/91fca2de1689df37/e7b9c2fc508480c3 http://www.nabble.com/Thickbox-IE-6-Position-td14586218s27240.html
[jQuery] Help: Carousel Showing Current & Total count
hi folks, I'm new to JQuery can anyone help me find how to display current & total page count on carousel. Eg: Showing 1 of 10 Page I'm currently using this http://sorgalla.com/projects/jcarousel/examples/static_controls.html script. Please if anyone know help me figure out how to display text showing: 'Showing 1 of 10 page'. Thanks AM
[jQuery] Create array from li text
What would be the correct method to create an array from the text inside <li> items? Is below, the best method, or would it even work? var array_test = $(#test li).text().makeArray();
JQuery UI: CSS not applied bcause of wrong mime type?
Hi there, I tried using jquery ui for my website. right now, everything works just fine at least as long as the code itself is looked at. but none of my dialogues, tabs or whatever is styled! I tried custom themes, prebuilt themes, no themes, anything i could think of. the result was always the same: script works, but no css. so I included the css file by using "link rel…". still no css. and then i discovered, that there was an error in my webdeveloper: "Wrong MIME/Type for jqery-ui.min.js". Now:
[jQuery] dont waste ur time with this it dont work
ive spent all day trying to get this to work. are u sure it has been tested using v 1.2.6
[jQuery] listnav
does this thing only work when placed inside a form? what if my server does not handle asp? I simply cannot get it to work. Even the listnav bar does not display. I am trying to implement demo one. here is my page code: NB i have omitted header and footers from this snippet. <script type="text/javascript" src="/js/jquery/jquery.js" charset="utf-8"></script> <script type="text/javascript" src="/js/jquery.cookie.js" charset="utf-8"></script> <script type="text/javascript" src="/js/jquery.listnav.min-2.0.js"
[jQuery] Use jquery before the DOM is ready?
I'm trying to have jquery set an image's opacity to 0. Then, while the image is fully loaded, it will fade the image in. It seems to work fine, unless the images have already been viewed in the browser and are stored in cache. In this case, the image is already loaded by the time of $(document).ready, then it fades out, then fades back in. I'm doing it like this: Code: $(document).ready(function() { $("#mainimage").animate({opacity: "0"}, 0); }); $(window).load(function() { //when everything is finally
[jQuery] Sending js variables to a jQuery constructor
Is this possible? var tabSelectHandler = "handleTabSelect_Pers"; $('#tabs').tabs({ selected: '0', fx: { opacity: 'toggle' }, select: tabSelectHandler }); where I'm passing tabSelectHandler variable into the tabs constructor?
[jQuery] Code runs in FF but not IE
I've been using jQuery for years and I have NEVER had a problem like this. Here is the site in question: http://winterberry.wiremediahosting.com/ jQuery is used all over the site. The recent engagements area on the home page is an AJAX slideshow. There's some jQuery for the login form. On the Case Studies page, jQuery inserts a submenu into the subnav. There are also expanding/collapsing content areas on the About Us/Our Team page and several other pages. The jQuery code works perfectly in FF and
[jQuery] Another newbie "how do I"
Hi all. I'm totally new to jQuery, but have been assured this is the place to "do stuff". I'm still trying to work through the most basic basics, but in the meantime, hoping I can find an example of how to do this. On a given web page, the user sees two side-by-side areas of text (i.e. two columns). On the left is a vertical bullet list of lines of text. On the right is a "container" for text. The contents of the container vary according to which item in the bullet list is clicked. In other words,
[jQuery] Validation and autocomplete
Hi, I am trying to use validation plugin found at http://docs.jquery.com/Plugins/Validation but cannot get it to work when there is a autocomplete on the page. It validates even when a value is picked from the suggested values rather then only on submit. I am new to jquery, but here is how it looks like. Any help would be appreciated. <script type="text/javascript"> function findValue(li) { if (li == null) return ""; if (!!li.extra) var sValue = li.extra[0]; //set the value of the hidden input field
[jQuery] jQuery code works in FireFox but not in IE!?!?
I've been using jQuery for years and I have NEVER had a problem like this. Here is the site in question: http://winterberry.wiremediahosting.com/ jQuery is used all over the site. The recent engagements area on the home page is an AJAX slideshow. There's some jQuery for the login form. On the Case Studies page, jQuery inserts a submenu into the subnav. There are also expanding/collapsing content areas on the About Us/Our Team page and several other pages. The jQuery code works perfectly in FF and
[jQuery] ajax - no callback on timeout
Hi, Does anybody know how to trigger timeout function. If database does not respond in 5 seconds I need to display some notification to user. The following example did not trigger any callback after 5 seconds. jQuery.ajax({ type: "POST", url: 'proccess.php', timeout:5000, dataType: "json", cache: false, success: function (XHR, status, e) { alert('success: ' + XHR + ' status: ' + status + ' e: ' + e); } ,error: function (XHR,
[jQuery] jquery and XSS
Hi, I'm using jQuery to the last 2 years and in the past few weeks... I was wondering why there is no plugin to give us the options to: 1. Control/Log all the redirects that are being made on the page (window.location.replace). 2. Any other activity that 'looks' strange. E.g. amount of calls that are being made to a specific domain. Anyone know something in the wild that does it? ;) if not - I'll start hacking it... Thanks, Ido
[jQuery] Unexpected behavior of Cycle plugin in some browsers
Hi, i am making a cycle plugin implementation in my site and so far everything went smooth without problems. but while testing my site i noticed that after making full reload of the site (CTRL+F5) some of images are shown very small, after "normal" page reload (F5) images are shown as they should. I noticed this behavior on both: Fx3 an IE7. Another problem is that on IE images are shown a bit smaller and there are 3-4px white borders around them. Can anybody help me out with this problem.
[jQuery] Can't Get Jquery Slideshow to Work
Hello, I'm having trouble getting the Jquery slideshow to function properly. Here is my code: [code] <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>jQuery Slideshow</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/> <link rel="stylesheet" type="text/css" href="style.css"
[jQuery] JQuery and append().
Hello, I have written a code in which after clicking a button a html is appending inside a div, I have used append() method in jquery for that purpose. In the appended html code I have another button having id 'btnGo'. After clicking on this button I want some further functionality, For that I have written code like this: $("btnGo").click(function(){alert('Hi');}); But the alert is not getting fired, Means that the click event is not getting fired, Can anybody give me the solution ? Thanks and Regards,
[jQuery] jScrollPane issues
Evening All! I'm having a bit of issue with the jScrollPane plugin by Kelvin Luck. A couple of issues actually! First, in non-IE browsers the scroll will not apply to the container specified, even though that container IS wrapped by the .jScrollContainer div by the script. Second, the width of the container becomes as wide as the content without any line breaks?? I'll post code below, and can send private url for those who wish to see, unfortunately usual client rules apply on this! Thanks in advance
[jQuery] Having Trouble getting the Jquery Slideshow Plugin to work
Hello, I am not able to get the jquery slideshow to work. It seems like it should be so simple but I can't figure out where I'm going wrong. Here is the url to my site: http://sarahmadeit.com/slideshow/demo/ I would greatly appreciate any suggestions as to where I am going wrong. Thanks! Best, Chloe
[jQuery] Simple way to check for duplicate menu values in jquery?
Hi, I have a number of select menus on my page, each containing the same list of options (values and text). What is the simplest way to check that a value in one select menu is unique? My goal is to verify that all menu values are unique. Thanks, - Dave
[jQuery] Hide li elements if total ul height > container height
Hi guys, What I'm trying to do is hide list elements if their combined height is greater than my container div. I've got a start, but it's not perfect. My current script hides the last-child if their combined height > 406px, but there's still the possibility that it should hide more than the last element. Any advice? Some sort of a loop? <script type="text/javascript"> $(function() { var heightTotal = 0; $('#newsEvents ul li').each(function(){ heightTotal += +$(this).height();
[jQuery] validation plugin question
Can this plugin be used when there is no actual submit, just redirect via <a> tag. However before doing redirect I need to make sure that value entered in the filed is valid?
[jQuery] Find form input from click on child img
hi, I'm working on a cms and have hit a brick wall with something. I have the following html ul - li - - input.is-hero - - input.weight - ul - - li - - - img.thickbox (preview) - - - img.is-hero I'm listening to the click event of is-hero, but can't seem to get from that back up the tree to the input to set it's value. This is what I have (that's broken): $(".admin-add-edit-media-make-hero").click(function() { console.log('hello i have been clicked, click click click'); // parent li
[jQuery] fade and other effects don't work...
Hi everyone, I'm having a quite strange problem with JQUERY : It seems that effects dont work. Effects like animate, slide, fade etc.... I tried several things but there is not result. Here is my test code : <script type="text/javascript"> $(function (){ $("#effet").click(function (){ $(this).fadeOut("slow"); $(this).fadeIn("fast"); });}); </script> <div id="effet">bonjour</div> When I click, the div should fadeOut and fadeIn but it doesn't. Then, I tried another thing : <script type="text/javascript">
[jQuery] Validation on Multiple Selects Requiring 1
I have a e-commerce ticketing app that has multiple ticket types... each with a select drop down for quantity i.e. 0 - 10... How do I validate that someone has selected a quantity of 1 or greater for at least 1 of the select drop downs. I'm using that validation plugin Example of the select field is below. ADULT <select name="ticket[1].qty"> <option value="0">0</option> <option value="1">1</option>
[jQuery] $.post error on response
I'm using jquery 1.3.2 and trying to send some data using $.post to a PHP script. For some reason the response is not being returned and Firebug is reporting an error on line 3633 of jquery. function check_out_image(image_id) { $.post('ajax/checkout_image', {imageid: image_id} ); } A very simply function that POST's an image ID to my PHP script. The PHP script is getting run and updating a MySQL database so I know it's calling the right function and working but the echo response never makes it back.
Form validation help
Hi, I have a form with two fields. I need to validate the first field (embarkation_port) by considering the value of second field (embarkation_region_id). It works fine for the first time but when I changed the value of second field (embarkation_region_id), how can I execute the validation again ? What I understand is, if the first field shows an error then it doesn't validated until its value changed. How can I disable the error of a specific field ? The script is: <script type="text/javascript">
[jQuery] remove all center tags hidden
Hello everybody, I'm trying to remove all the "center" tags which have a visibility hidden. I tried : $("center[@style*=hidden]",pDocument).remove(); (pDocument is the node I'm working on) but this doesn't work. Any idea? Thanks a lot :)
jQuery Validation Plugin Working with IE only
Hey everybody, I've been working on a form and i'm getting a very weird issue, it's working perfectly with IE8, but it doesn't work with Firefox, nor Opera nor Chrome nor Safari :S here's the JS Code: jQuery(document).ready(function(){ // defining the rules and the error messages of the validation jQuery("#frmEmployees").validate({ rules: { LoginName:{ required: true, email: true }, Password:{ required: true }, LastName:{ required: true },
[jQuery] How to activate autocomplete in this case
Hi, i have a question, how to manually fire the autocomplete event? <input type="text" id="acTxt" /> <span class="pTxt">aa</span>, <span class="pTxt">bb</span>, <span class="pTxt">cc</span>, <span class="pTxt">dd</span> ... $(document).ready(function(){ $("#acTxt").autocomplete(theUrl, { minChars: 2, matchContains: true, max: 20 }); $(".pTxt").click(function() { $("#acTxt").val($(this).html()? $(this).html():''); }); }); if the user click on SPAN with
[jQuery] [autocomplete] trying to get work a virtual keyboard with autocomplete
Hi everyone, I have a question that i cannot answer, i am using the autocompleter plugin (http://plugins.jquery.com/project/autocompletex) for getting some suggestions along with JQuery Keypad for a virtual keyboard (http://keith-wood.name/keypad.html). The reason? Im developing for a LCD Touch Screen. The two plugins works just fine, but the problem with the autocomplete its that you must press a key fisically on your keyboard and it doesnt shows the suggestions or either activates the "autofill"
[jQuery] slideToggle multiple
Hi, i'm very new here so sorry if this doesnt make sense. I have created the following code which works ok but its only for 1 elements (more1/less1) but i want it to work for x number of boxes, e.g. more2/ less2, more3/less2 without having to code some jquery for each. here is the code: <script type="text/javascript" src="http://jqueryjs.googlecode.com/ files/jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".less-info").hide(); $("#more1").click(function(event)
[jQuery] jscrollpane: how to modify outside content depending on scroll position?
Hi! Using jScrollPane, I'd like to show a grahpical marker NOT included in the scrolling div. Use Case: 1. Page shows with [div class="scroll"] jScrollPane - all works fine, content is displayed at the top 2. Outside the .scroll div, I have two pictures (pUp and pDown: arrows) displayed to indicate that scrolling is available 3. At start pUp is hidden, pDown is visible 4. user starts to scroll down 5. pUp is shown 6. user reaches the bottom of the scroll area 7. pDown is hidden 8. user scrolls back
[jQuery] [autocomplete] item selection event in this official branch/version?
'm trying to use the ac plugin (great widget!) but need some advice. My remote data set is a json list and gets formatted approrpiately but I also need to use the selected item event but this doesnt seem available in this (but is in some other branches?). Does anyone have a way of getting use of the item selection event using this version of the plugin? TIA, dan <code> $('#' + targetForAutoComplete.id).autocomplete(serviceUrl, { delay: 500, max: 500, minChars: 3, dataType: 'json', formatItem: function(row,
[SOLVED] jQuery plugins and Scriptaculous
Hello, Yes, this is another jQuery and Prototype incompatibility problem. I am trying to use a jQuery plugin, Date Picker, on a page that also has to use Prototype. I *have* to use Prototype: it's a Rails (v1.1.6) application we use at work and I can't switch from Prototype to jQuery. I have used the noConflict() method, and it seems to work for jQuery, but not for the plugin -_- Here is the code of a page I wrote for testing: <html> <head> <link href="/stylesheets/datepicker/datepicker.css?1238662849"
[jQuery] Jquery Autocomplete
I group I am a new bee to jQuery. I have two textbox on my jsp page. I have applied the Autocomplete feature on first textbox where in list is generated by parsing a XML. On selection of an option on first textbox I want to list all the parameters associated with the selected parameter (on first textbox), would any one please suggest me how to go about ? A code snippet would be helpful. I need to pass the selected value (from 1st text box) process it and populate the 2nd textbox with Autocomplete
[jQuery] jquery validate error
Hello, this is my first post - hope everthing goes fine :-) today I get a strange error trying to use the validation plugin from bassistance - used it several times before but never mentioned something like this (using latest v.1.5.1 & jquery 1.3.1). Firebug shows me following error (my code follows at the end): validator.settings["on" + event.type].call is not a function The error isn't shown if I remove the event options (onfocusout,onkeyup..) but I want to use the options of course. Also the blur
[jQuery] Bug in jcarousel
There is a bug in the jcarousel if you using xhtml instead html. See: http://groups.google.com/group/liftweb/browse_thread/thread/973aabff8a95fa77/b143b4975ddb8124?hl=en#b143b4975ddb8124 Thanks to Marius again. The carousel works if you edit the js and replaced the UL with ul. A change in the xhtml file to UL breaks the picture load. Cheers Torsten
[Sortable] placeholder option
Hi all, I use sortable in my siteWeb and I want add the placeholder option... To start, this is my code : index.html <body> <p>Vertical : </p> <ul> <li class="vertical"> <div>oooooooo<br/>iuytrdsqsdfg<br/>hjklmlkjhgfd<br/>ooooooooiuytrdsq</div> </li> <li class="vertical"> <div>oooooooo<br/>iuytrdsqsdfg<br/>hjklmlkjhgfd<br/>ooooooooiuytrdsq</div> <div>oooooooo<br/>iuytrdsqsdfg<br/>hjklmlkjhgfd<br/>ooooooooiuytrdsq</div>
Next Page