[jQuery] Validate Not Working in MVC (Validate)
I have an MVC application and I am trying to do some validation but the Validate doesn't seem to fire. I can get it working in a basic html page but for some reason it is not working in my aspx page and I am not sure why. I have all the js files included that I need and the CSS classes defined exactly as they are in the basic example in the jQuery documentation. Here is my code: <script> $(document).ready(function() { //alert(); $("#main").validate({ rules: { // simple rule, converted to {required:true}
disable an entire form
Hello. I'm looking for a way to disable an entire form until someone checks a check box. I would like it if the form is visible but has a "grayed out" look, and cannot be submitted. So by default the form elements are all disabled. Once the checkbox is clicked the elements are enabled. Any help appreciated. chinaski
[jQuery] $.get ajax call on http page to https on same domain
I'm successfully able to make jQuery $.get ajax calls, everything works great. But some ajax calls pass credentials, so I need those calls to be secure. I simply try $.get("https://localhost/ajax.xml", etc...); instead of http. But now it's not working, instead of an http get call, I see in firebug an http OPTIONS request is sent to the server and without the cookies. So my tomcat server returns a redirect to my login page (as it doesn't see a session id in the cookie or url) and the ajax call fails..
[jQuery] i want to make my tabs scrolling like firefox
How to make tabs scrolling like given in following link using jquery http://extjs.com/deploy/dev/examples/tabs/tabs-adv.html please help me its very urgent
[jQuery] how to make scrolling tabs using jquery
can anybody tell me how to make scrolling tabs like this using jquery http://extjs.com/deploy/dev/examples/tabs/tabs-adv.html please anybody help me its very urgent
[jQuery] Problem with jquery.form.js and jquery.validate.js working together
Hi, I feel pretty stupid, but I can't seem to get the jQuery Form plugin (http://malsup.com/jquery/form/#getting-started) and the jQuery Validation plugin (http://bassistance.de/jquery-plugins/jquery-plugin- validation/) to work together. I can get them to work separately, but I can't seem to make them play "nice" together. :( I've been prowling through this group, trying to uncover any ideas from past posts... but so far, they're only serving to confuse me even more. I've got a test page up that
[jQuery] function delay
Why not a plugin like (small correction void should be a string) $.fn.delay = function(delay){ if(typeof delay==="undefined") delay = 1000; return this.animate({"void":0}, delay); } This way you can call it like this $('#element').delay().effect('pulsate');
get the id from several span-tags
Hi, I get html from a post like this: <tr> <td align="center"> <input id="stk2" type="text" size="2" value="1" name="stk2"/> <span id="2" class="akt">akt</span> </td> <td align="right">8.75 €</td> </tr> <tr> <td align="center"> <input id="stk4" type="text" size="2" value="1" name="stk4"/> <span id="4" class="akt">akt</span> </td> <td align="right">8.75 €</td> </tr> It's a part from a basket. I want to change the number of items and then refresh (.akt) the basket. To identify the entry I need
JQuery AJAX load of external JavaScript redirects browser
I am having issues with loading external javascript using JQuery. Everytime when I try to load this external file, browser window becomes blank and in Firefox it redirects to somethink like: wyciwyg://40/http://mydomain.com/myfile.html What I am trying to do, is to load walkscore google map into one of div's on the page. I tried using $.get() method, .load(), $.getScript() and $.requireScript() jquery plugin, and nothing works EXCEPT one case, when I put alert() right after the $.get() method. In
jQuery Dropdown Menu Issues. Please Help
Hi. I've been struggling with a simple dropdown menu script. for some reason when i hover over the menu it expands fine but the minute i pass over a hyperlink that's behind the menu it registers the hover out function. My jquery code is: $(function() { //nav control $('.mainNav > li[class*=Nav]').hover( function() { $(this).find('a:first').addClass('hovering'); $(this).find('ul').show(); }, function() { $(this).find('> ul').hide();
[jQuery] getJson failing silently
I have a problem with the getJson callback in jquery. Here's the scneario. The user enters a query online and hits 'execute'. At this point make a call to a java servlet that returns the results of the query. The results include one row contiaing the column names which is followed by multiple rows of data. The results are formatted and returned as a Json to the javascript. The problem is I am not able to see any alerts put within the $getJson callback function. I think it is failing silently, but
[jQuery] Display subnav through external action
I have a navigational element that is distinct from the rest of my navigation and is a graphical icon. Therefore, I'm not using the standard <li> elements to display it. I'm simply using an <img> tag. The <li> tag for that nav element is not being displayed. I do however want the subnav to display when you mouse over the image. You can view it here: www.gingerninjas.com Question: How would I activate the display of the subnav (and hide the current subnav) using an object outside of the navigational
$.get not working as it should
Hi. I'm trying to use $.get to grab a Google CSV file but for some reason I'm not getting any data back, I wondered if anyone could help. Inputting the URL produces the CSV, but jquery is refusing to return the data. Here's the script: jQuery.get("http://spreadsheets.google.com/pub?key=tiEtvAqWPaJ6C_YyWwELEGw&single=true&gid=1&output=csv", function(data) { alert(data)}); There isn't any alert. It's probably not a jquery error, just something I've forgotten to do, but if there's anyone there who can
[jQuery] namespace content
Does anyone know if this plugin works with RSS feeds with namespaces? Also, many RSS feeds have CDATA included. How does the plugin work with CDATA? An example RSS feed is: "http://sports.yahoo.com/mlb/ rss.xml".
[jQuery] mcDropdown jQuery Plug-in v1.2.07
I am using this FANTASTIC drop down plugin for jQuery, but wondered how I can customise it so that rather than hit the button ont he right, I can click the whole active area to get the dropdown to appear. I currently have the menu attached to a single line text box and would like it to open up when ever I click in the text box, or on the dropdown arrow? Also, how can I specify some default text in the text box that is acting as my dropdown launchpad? Regards Darren
[jQuery] Jcarousel problems in the buttins with IE6
Hi all, I have a big problem with Jcarousel. I don't know what to do! In IE6, when I open my page, the button NEXT is disabled and so I can't view the other photos. Any help, please? Thanks a lot Bye Andrea
[jQuery] Is there a more efficent way to write this script?
Hi there I am new to jquery tonight and I have already build the below script and everything seems to be working however I suspect there is a better way to write this out? like for instance here $(this).children("h3").children("a").css("text-decoration", "underline");$(this).children("a").css("text-decoration", "underline"); I am changing the css text decoration on A tags within H3 elements and also on child A tags is there not a way to bundle these together? so I would only have to write out the
[jQuery] jQuery in an eBay auction template? Is it possible?
Ok, let me start by saying I'm not a great programmer. I can do well with HTML & CSS but don't know a ton about js & jQuery. Anyway, I'd like to include some jQuery in the form of a gallery of images in my eBay auction. However the problem I run into is that when I paste the completed code into the eBay I get a message that says "Your listing cannot contain javascript(".cookie", "cookie(", "replace (", IFRAME, META, or includes), cookies or base href". So I revised the code to include no hrefs to
[jQuery] Can I catch the property of CSS filter?
the image is like <img style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (src='aa.png')" ... > $('img').css('filter') will get progid:DXImageTransform.Microsoft.AlphaImageLoader(src='aa.png') Can I get the aa.png directly?
Need this to be a generic function...
I needed to create a graphical version of a filtration form that creates hidden fields when the user selects certain elements as well as have a "select all" option, so here's bit I wrote and i need it to be able to work on multiple parts of the same page. The problem is that I couldn't figure out how to target the "cousin" element generically(this.parent.sibling.child...???), so I went with the ID, but now I need it in more than one spot on the page...argh! Any ideas would be super helpful! script:
[jQuery] Invitation to view my posts on FriendFeed
<div style="font-family:Arial, sans-serif; font-size:10pt; color:black"> <div style="margin-bottom:10pt"><a href="http://friendfeed.com/?ic=vQE8YD9uha"><img src="cid:8.png@f68e1daa8cbb3169497708615b3628f7" style="border:0" alt="FriendFeed" width="187" height="37"/></a></div> <div style="margin-bottom:10pt; padding-bottom:10pt; border-bottom: 1px solid #ccc"> <table style="border-spacing:0; border-collapse:collapse"> <tr> <td style="vertical-align:top; border:0; padding:0; padding-right:10px"><a href="http://friendfeed.com/cdcchen?ic%3DvQE8YD9uha"><img
[jQuery] img src attribute after append(), html()...
When I call $('#mydiv').append(' <img src="a/b/image.jpg" />'); I get <div id="mydiv"> <img src="http://localhost:53072/pathtocurrentpage/a/b/ image.jpg" /> </div> Which is not what I want. Can anyone tell me why I get this or even how I can stop jquery from changing my src attribute? Thanks in advance.
[jQuery] malsup's jcorners script leaves artifacts in Safari/Chrome
I'm using the script from http://www.malsup.com/jquery/corner/ to round corners. Works fine in IE, FF and Opera. But it leaves artifacts at the corners when displayed in Safari and Google Chrome. You can see what I mean by browsing to http://www.scripts.oldguy.us/v3/ using either Safari or Chrome. It puzzles me because it there is no black background styles anywhere in my css so it can't be as simple as the color being a leftover of an inheritance. If I play around a bit in my css I can get some
[jQuery] save ajax query to global variable
Hi, When trying out jquery, I ran into seemingly very simple problem. I did a search on internet and did not get any satisfactory result. I am suspecting that the mistake is very simple, so anyone more experienced can help me. What I am trying to do is load data from server, then present it in the table, and plot it later. Since I am intending to use flot plugin, and it accepts arrays as an argument, I thought that I load the file, save it to some array, and then plot it when time comes (when user
[jQuery] Access <li> by item in the array
Is it possible to target certain <li> in an unordered list by index with jQuery? I thought maybe I could use .index but was not able to get the syntax right. I thought maybe something like this would work but is has not: $("#mycarousel > li").index(i).css("margin-right", "5px");
[jQuery] noob problem with selector and wrapped set
Greetings, I am attempting to use jQuery in a Prototype environment (Request Tracker RT3.8). My ready handler is working, but my first attempt at establishing a wrapped set is not working. Some snippets: jQuery.noConflict(); jQuery(document).ready(function() { set_max_length('Object-RT::Ticket--CustomField-29-Value', 4); } function set_max_length(id, max_length) { alert("There are " + jQuery('#' + id).size() + " elements in the wrapped set."); } My alert message comes back with 0 (zero) elements
1st post! Question about using a jQuery path as a variable
So I have a switch statement that I dynamically assign a variable that includes a path (parent().parent().parent()... etc) that I reference later in a for loop to dynamically append an element based on this path. But I can't figure out how to do this to make it work. I think it has something to do with my "this" usage. Also, any help that actually explains what I'm doing wrong, rather than just an answer, is greatly appreciated. I need to understand why my code doesn't work rather than just being
[jQuery] validating on blur without submit
I could very well be totally missing this, but is there a way to make the fields invalid by default? I would like the fields form fields to validate on blur even if no data is entered. For example, a name field that the user focuses on then blurs, but doesn't enter a character would validate.....
[jQuery] Question: Form focus to prevent fadeOut?
Apologies if this is read by a common moderator between here and jQuery-UI, I was in the wrong tab, haha. Anyway, I'm having a little trouble coming up with a concise way to do this. I've created a div containing a registration form that fades in when the user hovers over a triggering link, and the code I'm currently using is as follows: $(document).ready(function() { var hide = false; $(".reg1, .register").hover(function(){ if (hide) clearTimeout(hide); $(".login, .about").fadeOut(40);
[jQuery] Scroll Event on iframe in IE
My event listener for iframe scrolling works fine for FF and Safari but doesn't work for IE7 at all. $($('#myIframeId').contents()).scroll(onFrameScroll); Does anyone have any experience getting this to work?
[jQuery] Superfish parent menu
Anyone have an answer for a noob? I am using Superfish on a Joomla web template. Looks good--but---how do I "disable" the ability to click on a parent item as the menu expands?
Jquery + Ajax returned results
Hi All, new to the Forum and also jquery so please be kind! I have a page with a url. This URL uses jquery ajax function display a php page showing some results from a mysql database. In these results I generate a "view details" link for each result. I have assigned a class and ID to the link which is actually the id number being pulled from the database. So the link looks like <a href="#" class="details" id="id number from database">View Details</a> Problem is, on pressing the View Details, nothing
[jQuery] Function now working in safari
Can somebody see if if I am doing something wrong here? here is my html <div class="box JQorangeHighlight JQEqualHeightsA"> <h3><a href="#">Volunteer Opportunities</a></h3> Become a Games Time Information Host and welcome the world home to Whistler. </div> and here is a function that I run once the document is loaded $(".JQorangeHighlight").hover( function() {$(this).animate({ backgroundColor: "orange" }, 500) }, function() {$(this).animate({ backgroundColor: "eggshell" }, 500) }); This does
New to jQuery
I have searched everywhere on google and can't find exactly what I need so I hopefully someone can help me here. I have a list of friends listed for a user on his profile page and I want the ability for him/her to delete a friend if they would like by clicking an 'X' image so I have two functions in php. One that pulls out the firends and echos them in a table and the other that deletes a given friend. Here is the jquery and html I am using: '<script type="text/javascript"> function osmajax(thediv,
[jQuery] remove and opera 9.6.4
Having a strange bug in opera 9.6.4. When removing objects from the dom, opera leaves a "ghost image" of the removed object, till you scroll away. .hide() works fine, so tried hiding before removing, but the ghost is still there, tried running the remove in the hide callback, no luck, tried hiding with .css and still no luck. Has anyone come across this bug and found a workaround? - Liam
[jQuery] Problem with jQuery Validation
Hello... this is my code: $("#form_atividades").validate({ rules: { ds_atividades: { required: true, minlength: 10 }, 'hr_inicial[0]': { required: true }, 'hr_final[0]': { required: true } }, messages: { ds_atividades: { required: "É obrigatório preencher a Descrição da Atividade", minlength: "É
[jQuery] jquery.ui.autobox
having multiple autoboxes on a page doesn’t seem to work out too well anyone know of a work around for this ? here is a link to the plugin, http://www.bigredswitch.com/blog/2008/12/autobox2/ also posted this same comment on the site thanks Mean Mike
Get HTML of element and children
Hi, I'm trying to get an unordered list and its children as an HTML string on a mouseout event, but html() only selects the child elements: var theHtml = $('ul', this).html(); I've tried using andSelf(), but that doesn't return the result I want: var theHtml = $('ul', this).andSelf().html(); I can't choose $(this).html() as I need only the list. What am I missing?
[jQuery] Generating path
Hello, I have an HTML page where when user clicks on a paragraph I want to find out its path. I have written a jquery script for it: jQuery.fn.extend({ getPath: function( path ) { // The first time this function is called, path won't be defined. if ( typeof path == 'undefined' ) path = ''; if ( this.is('html') ) return '/html' + path; // Add the element name. var cur = this.get(0).nodeName.toLowerCase(); var index = this.prevAll().length; // Recurse up the DOM. return this.parent().getPath( '/' +
[jQuery] .wrap when targeting a frame generates an error in IE
The following function fails when running on IE 6 or IE 7, works fine on FF curContext = $('#mPreviewFrame')[0].contentWindow.document; $('#mydiv',curContext).wrap('<div id="myNewOuterDiv"></div>'); To isolate the problem I changed the 'curContext' to a div on the current page and tested, and that works fine in IE, so it appears to be specifically releated to using a frame as the context. Does anyone know another way this could be written to achieve the same result? Is this a bug? Thanks!!
Next Page