[jQuery] [Validate] showErrors does not update numberOfInvalids
Hello all, In general the plugin is great and I have a working solution using a global variable to keep track of invalids because of this problem in the library. Short description, in the validator method that I added, I am calling showErrors because the message needs to be dynamic. I call showErrors with the dynamic string and then return the same string from the validator method. However, right after that runs, while the screen is showing the error, calls to validate().element do not return any
Eaiser method then what i am doing
I have about 4 div layers and right no wit works when you click on product 1 the div layer comes up when you click on product 2 the div layer comes up. Now is there a easier method to do this without having to write a custom function for each product link. <script src="http://cdn.jquerytools.org/1.0.2/jquery.tools.min.js"></script> <style> img { border:none; } #rotator { margin:0; width:920px; } #rotator #product1 { background:transparent url(images/productpages/img1.jpg) no-repeat top left;
[jQuery] Dropdown menu top and left border Superfish
Hi, How can I take off the top and left border that shows on my menu? Thx Henry
Tooltip on hover, ajax window on click- both variable
I have a number of DIVs on a page. Each DIV has two classes, for example: <div class=".classOne .eventDiv"></div> .classOne is semi-unique. There will be a few variations. .eventDiv will be found on every DIV. When a user moves their mouse over a DIV I need a tooltip* to appear. The tooltip will need an extra class attaching, matching the first class. So for example, the above DIV would attach the class "classOne" to the tooltip. When the DIV is clicked a window needs to appear, with AJAX gathered
[jQuery] AutoComplete Plugin + Json not work in IE!
Hy guys, im new in jQuery ;) My problem is the autocomplete plugin: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ It works very well and i'll find it much usefull, but i got a problem with it.. Using the remote procedure (ajax requests), if the returning value from the script is a string containing a Json object, IE completely fall to parse the array (while firefox and others browser obviously do it correctly). The error occour even in the official demo page: http://jquery.bassistance.de/autocomplete/demo/json.html
[jQuery] AutoComplete Plugin + Json not work in IE!
Hy guys, im new in jQuery ;) My problem is the autocomplete plugin: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ It works very well and i'll find it much usefull, but i got a problem with it.. Using the remote procedure (ajax requests), if the returning value from the script is a string containing a Json object, IE completely fall to parse the array (while firefox and others browser obviously do it correctly). The error occour even in the official demo page: http://jquery.bassistance.de/autocomplete/demo/json.html
change an img clicked when ajax start
Hi. I can't figureout how to do this. I have 1 img when you click on it start an ajax call that call a php script. I know the ajaxStart function but what I have to do for having that when I press the img, it replace this with a loading gif and when the call is complete replace with the original img? Thanks
[jQuery] jquery autocomplete keypress database
am trying to use jquery autocomplete plugin, I want it to suggest ItemCodes as user types... The problem is its not showing autocomplete box/frame/.... Just to make sure webmethod returns data on every keyup event, I assigned data to a div element, and it works as it should. <script language="javascript" type="text/javascript"> $(document).ready(function() { var strItmCodes = "SELECT"; $("#txtItmCode").autocomplete(strItmCodes); $("#txtItmCode").keyup(function() { var search; search = $("#txtItmCode").val();
need help with drop down refresh problem
Here's the problem - use this page for example - http://www.petcratesdirect.com/dog-crates-icrates.html note that when you first visit the page the drop down box list is showing the heading of "available model-size options". Choose an option from the list and click the add to cart button. This will take you away from the page to display your cart contents. If you click the browser back button or my continue shopping link to return to the product page, it displays the page with the drop down list
[jQuery] triggering multiple events
is is possible to trigger mutiple events in sucession? each depending on the previous?
[jQuery] Changing elements inside a dynamic iframe
Hi, I'm loading a dynamic iframe (Google Moderator) and trying to change elements of DOM which are built by scripts inside this iframe, to no avail (the callback is called too soon, before the iframe is ready). Here's an example: $(document).ready(function() { callIframe('http://moderator.appspot.com/#16/e=c9', translate); }); function callIframe(url, callback) { $("div#wrapper").html('<iframe id="moderator" frameborder="0" width="830" scrolling="no" height="635"></iframe>'); $('iframe#moderator').attr('src',
[jQuery] Keep the focus on field with validation error
Hi folks!! I'm working with ajax validation in a sign in form. My validation is perfect, but I need to back focus to previous field, if validation against previous field return false. I'd tried something like this: $("#myInput").blur(function(){ // All validation code if(!valid){ $(this).focus(); } }) But not working... Some ideas??
[jQuery] syntax error - Expr.attrHandle.href = sw_httprp_rewrite_url(function(elem){)\n
Hi all, I am getting the above error which is part of the jQuery library when running my application through SonicWall reverse proxy and all the javascript using jQuery is no longer working. Has anyone had the same problem or if you know of any suggestions on how to fix this? Thanks, Angela
Link desactivation
Hi, I'm working on an AJAX pager. each element of the pager links to its relative page. When Javascript in enabled, I'd like this link to be disabled, because I will load the new page via AJAX. I try to use return false;, but the link is still working. Here is my pager : <div class="pagination right"> <a href="index.php?page=3" class="previous"><<</a> <a href="index.php?page=1" class="1" id="active">1</a> <a href="index.php?page=2" class="2" >2</a> <a href="index.php?page=3"
php and jquery
Hello everyone this is my first post, i found jquery excellent, but recently i have a problem with a php and jquery.I´m using a query to a database in postgres and load it in a php page in a table, this is load into a html page using jquery, until that it works perfect, but i have a problem when the php is loaded, i want to modify the table via jquery using the jquery.colorize.1.4.0 plugin, but nothing happen the information is load as a normal table without load any detail of the plugin. The way
[jQuery] Newbie some help needed
I have the following requirement for functionality in the sequence listed, I wish to implement this in JavaScript preferably JQuery where possible can anyone help me with any pointers how I can do it? One restriction we have is that we can not use any AJAX. Page1 1.A user hits the submit button 2.JavaScript/JQuery captures the submit event pops up a new and makes the new window submit the form so it can handle the response. 3. After popping up the new window, call submit on another form in the page
[jQuery] jquery beginner question
I'm doing a logo display for my company site and I want the caption to fade in each time you hover over the logo and to fade out when you hover away. I've got that part squared away, but I wanted to know how to edit my code so that i can reuse my classes for each logo on the page. Right now if i hover over a logo, the text for each one fades in and fades out at the same time. I'm too new to scripting to know quite how to do it. I was thinking maybe using jquery's .each() method or a for each loop,
[jQuery] simple beginner question
I'm doing a logo display for my company site and I want the caption to fade in each time you hover over the logo and to fade out when you hover away. I've got that part squared away, but I wanted to know how to edit my code so that i can reuse my classes for each logo on the page. Right now if i hover over a logo, the text for each one fades in and fades out at the same time. I'm too new to scripting to know quite how to do it. I was thinking maybe using jquery's .each() method or a for each loop,
[jQuery] jQuery 1.2.6 AJAX problem in Firefox extension
Hello, I wrote a little FIrefox extension, and i have a some problem. This is code is working: function testAjax() { doc = gBrowser.selectedBrowser.contentDocument; $.ajax({ type: "POST", dataType: "html", url: "http://testsite/", success: function(data) { alert (data); } }, doc); } This code is wrong, nothing error, but does not work: function testAjax() { doc = gBrowser.selectedBrowser.contentDocument; $.ajax({ type: "POST", dataType: "html", url: "http://testsite/", success: function(data) { $('#block-user-0',
[jQuery] Jquery and setInterval() does not work together
Hello everybody, First time in this list. I've developed a plugin for a simple slide show. and here is the code http://pastie.org/516507 The problem is when I mouse over the pic, the console error logs: "slideSwitch is not defined" The same error would still happen if I define function slideSwitch(){} and call setInterval("slideSwitch()", 1000); Any ideas on this error guys? Thank you
[SOLVED] Missing } after property list
Forgive be ahead of time if this has already been posted (I searched and could not find it). I have a jq function that uses the $.post and have never really had an issue until a couple of days ago. I have looked over the code many times and can't figure or the issue. I think that it may be something right in front of me but for some reason or another I can't figure it out. The error "Missing } after property list" is given in FF and IE also gives an error, both on page load. Here is the function:
[jQuery] jqModal dialog plugin - need ajax response text as a variable
I am having problem with accessing content of ajax response for requested url from JQModal plugin that we are using for popUp dialog boxes in our application. here is what I need to do. var url= 'index.cfm?event=work.RejectTask&personId='+ patientId + '&fDocumentId=' + DocumentId; $('#summaryPop').jqm({ ajax:url,overlay:40, modal:true,toTop:true}); $('#summaryPop').jqmShow(); my concern -- I need to check response text of requested url so i can check if response has any error text or not, if respons
document.ready() with iframe.attr('src') -- not ready yet ?
I'm setting up a function to window.open() the contents of an iframe (a pdf document) to a new window, so I can print it. However, binding img.click() in document.ready() to a function with window.open($('myframe').attr('src')), there is occasionally an error that I think is being caused by the page loading slowly -- it appears that the src attribute is not always ready. Does this mean that that the src of an iframe is not included in the elements that need to be established before document.ready()
[jQuery] Online Dating Tips - What You Need to Know Before Dating Online
Online Dating Tips - What You Need to Know Before Dating Online <a href="http://secret-dating.we.bs/dating-tips078.html">http://secret-dating.we.bs/dating-tips078.html</a>
[jQuery] using multiple triggers with ajax
i have 5 multiple select boxes each of which get populated when the previous box is clicked on. ex. i select a value from box 1 that populates box 2 then i select box 2 that populates box 3 etc. is it possible to have them all populate with out the clicking. ex. i click in box 1 and box 2, gets populated, box 3 get populated based on the new box 2 value etc. I'm using Shelane's plugin: http://code.google.com/p/jqueryselectcombo/ http://lasso.pro/selectCombo/ here is he code that calls the plugin
How to use $(this) in a quoted selector
I have a UL list with hyperlinks in the LIs. When I click on the hyperlink, I want to go up the list, and get the html() within the first LI in the list. I have a ('a') click function that returns the hyperlink as $(this). Now how do I get up to UL and down to LI? (It's actually more complicated because I really want to go up to a top level UL and down to a top level LI...but let's start here). When I start with $(this) how can I integrate it into a selector? For example, I can supposedly do ("LI
[jQuery] Jquery pagination using ColdFusion and SQL Server and lots of records
OK so I've been searching for a week now for an example of pagination of data using jquery, ColdFusion and SQL server. I'm finding tons of examples using PHP and MySQL. Have any of you successfully got pagination working with Fusion and SQL Server? I am trying to run a report that could end up having thousands of results that I would like to paginate using jquery. Most of the pagination plugins though rely on you returning ALL of the results to the client first whether in JSON, XML or just straight
[jQuery] simple beginner question
I'm doing a logo display for my company site and I want the caption to fade in each time you hover over the logo and to fade out when you hover away. I've got that part squared away, but I wanted to know how to edit my code so that i can reuse my classes for each logo on the page. Right now if i hover over a logo, the text for each one fades in and fades out at the same time. I'm too new to scripting to know quite how to do it. I was thinking maybe using jquery's .each() method or a for each loop,
[jQuery] Nutty dilemma with a time picker and calendar dates
Hi All, Ok, nutty dilemma with a time picker and calendar dates. First, some back story! I've got a week view of a calendar (Sun -Sat) showing events and times that opens into a lightbox-type window. This calendar is just a table created by a loop that runs for each day of the week. It is basically a "datepicker on steroids" to enable us to view our consultants current schedule so we can properly schedule new appts for them. Each day has a jquery time picker (clock icon and associated input box)
Calling page method using jquery
Hello,, I am trying to call a page method that returns today's date time. But i am not able to do so... can some one help me <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#DropDownList1').change(function() { $.ajax({ type: "POST", url: "Default.aspx/getDate", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success:function(data){ alert(data.d); $("#DetailsDiv").html(data.d); } });
[jQuery] alternative to .live("change") in IE6
So I have a set of <SELECT> elements that are ajax'd in and out depending on what is selected using the event "change". I know that .live("change") is not fully supported, but I was wondering if anyone had come up with a real creative way around this.
[jQuery] [selectors] XML IE6 problem
Hi, I have the following XML structure: <getusername> <login>any name</login> </getusername> I do an ajax call on this and try to select the value in <login> like this: ... success: function(data) { $(data).find("getusername").each(function() { var user = $(this).find(".login").text(); if(user.length > 0) { //do something } ... FF and IE7+ are reacting on this because I get back a proper value. IE6 (exept the one or other version) returns only 0. Why is that and what do I have
[jQuery] Datepicker covering textbox
(Cross-posted from the jQuery UI group, as my post is not showing up over there. Hope it shows here.) Hello all, When viewing the page in 1024x768 resolution, the jquery UI datepicker is covering the text input to which it is attached. This input is near the bottom of the page when viewing at that resolution, which seems to be causing the issue. I can't move the element so is there a way to move the calendar? I'd like it to open with the bottom edge of the datepicker at the top edge of the text input.
[jQuery] How can I improve the performance of this code?
the code: var choiceShownArray = new Array(); var cache1 = $("span[class^='matrix_choice_']"); var cache2 = $("input[id^='showChoice']"); var cache3 = $(".has_outcome"); var cache4 = cache3.find("span[class^='matrix_choice_'] [cchar='']").next().andSelf(); function changeShowChoice() { cache1.show(); var showingAll = true; useNum = document.getElementById ("option_matrix_outcome_use_number").checked; cchar = useNum ? (document.getElementById ("option_matrix_total_use_fraction").checked
Dropdown menu not working in Safari
Hi, Thanks to MattN, I got my dropdown menu to work in the left sidebar here: http://chelseajewish.org I checked today in Safari and the dropdowns do not display when a button is clicked. If anyone has had experience with this, I would love some advice. For the time being, I am hoping the client will agree to some conditional commenting to display the menu in Safari. Thanks! Jenn
[jQuery] Find parent form
Hello, i need to find a parent form of an submit button with jquery. The method $('#submit').parent("form") only works when the submit is direct in the form element. But when I surround the submit element with an div it does not work. Sample: This work: <form action="bla"> <input type="submit" id="submit" /> </form> This work not: <form action="bla"> <div> <input type="submit" id="submit" /> </div> </form> How can I find the form element? Best Regards Johannes Geppert
[jQuery] what is the correct way to test 'display' value in jQuery?
This code works, but it seems inelegant: if ($("#subnav-1")[0].style.display == "block") $("#subnav-1") [0].style.display = "none"; This seems to violate The One True jQuery Way: [0] I assume I'm not suppose to do that. The each() method is more elegant, but it is more verbose: $("#subnav-1").each(function() { if (this.style.display == "block") this.style.display = "none"; } Curious if there is another, shorter way to do this?
[jQuery] Issue with Cycle Plugin
I am not great with jquery (yet), but I have used a few plugins with me newest site. I am using the cycle plugin and it works great, but I am having one issue. When I load the page initially (http://vintom.com/ gfc) it stacks the images on top of each other until the plugin kicks in (which is only about 2 seconds). Is there any way to get around this? I would like to just have the first image in the cycle show up, and not have it affect the rest of the site layout. Any help would be great: With problem:
[jQuery] Add Class to all form elements
Hey everyone, I need help with a jquery task. I have a form that has it's HTML inserted into the database (yeah yeah I know..not my idea..I'm new here and just finding this out). Anyway, each form field has an embedded class in the HTML. The form is dynamically generated. Can be anywhere from 5 to 10 to 20 to 50 fields. How can I loop over each form field and add a new class to the field (either input or radio or checkbox)? Thoughts? Thanks!
AJAX load div by div
Hello! This is my first post. I am running through this problem: I have an external file (entries.html) with this structure: <div> Content 1 </div> <div> Content 2 </div> . . . <div> Content n </div> I want to load that file div by div everytime a link is clicked. This is, at the beggining, I have the first div loaded. When the link is clicked, second div should be loaded, second click, third div... and so on. This is what I have so far (not working at all): $(window).load(function () {
Next Page