[jQuery] Validate textbox (required=true) on combobox selected value
Hi all, I have to validate a textbox if the user select a particular value in a combobox. For example, if the user select the "Specify new color" in the following combobox: <select id="color" name="color"> <option value="-1">Specify new color</option> <option value="1">Red</option> <option value="2">Green</option> <option value="3">Blue</option> <option value="4">White</option> <option value="5">Black</option> </select> I have to validate the following textbox: <input id="newColor" name="newColor"
[jQuery] Help ::Without URL / pagerefresh to get into login ((-->very urgent<--))
Hi all ,<div> </div><div>Yes this is second post , i don't get reply for my first post ,</div><div> </div><div>Am working on the travel booking site,</div><div> </div><div>In my site user select the oder , after selected , there i given the divertion , pay by card or cash , </div> <div> </div><div>Assume if they choose card , then i show the links like , login(existing customer) , register , directly enter card details ,</div><div> </div><div>So if they click the login LINK,</div><div> </div> <div>Then
How to use Document.Ready function in Content pages
This question may be simple, but I don't know how to do it. (I'm getting hava script error) I have 04 master pages and around 100s of ASPX pages. So when I want to work in some conent page where should I use my $(document).ready(function(). I already have used this in Master pages. as an example if I want to use <script type="text/javascript"> $(document).ready(function(){ $("#accordion").accordion(); }); </script> in one of my content page, where should I use the above function and according.js
JQuery grid sorting stuffs up my checkboxes
hi everyone, am using jqgrid within my web app. now my record contains a checkbox followed by some string data. if the user checks some (say 5) checkboxes and then click on the table heading to sort, i lose track of all my checkboxes. this seems to be happening on all my grids. can somebody suggest a solution to this issue. thanks.
Site Preloader - Help Needed!
Hi Everyone, I'm at an intermediate level with jQuery; I've been learning to animate, to select specifically and to do AJAX posts etc. I've been given a very trendy webdesign in work, which is going to have a lot of flash animations on it (roughly eight animations). The forseen problem is that when it's all made, the animations will sluggishly load one by one. I'm looking for any help at all on how I would make a fullscreen overlay (the css won't be an issue for me, i'll get that no probs) which
Colspan after table is rendered
Hi all, i have an sql-report that put out an html-table. Some of the columns (not in any row) has no value this are empty. This empty colums are side by side. How can i use jquery to span this columns after the table is rendered to one column in all? Or can i span the whole row to one column, if some of the columns are empty?
[jQuery] Can I get code example ?
Hello Doc, Can I get example which uses jquery autocomplete which fetches json data using webservice. I am not able to figure it out myself. Thank YOu
[jQuery] Object as Function argument
I have used an object in the past as a function argument, but this was for a plugin that I wrote. Using it in the architecture of a plugin it worked. BUT, this time, I just want to write a normal function, but still use an object to set defaults and pass in changes to those defaults through as a param. Is this possible, or do I have to make this a jQuery function like $.myfunction() ? I am trying: function test(defaults) { var defaults = { test: '' }; alert(defaults.test); } test({test:
[jQuery] Expand and close Accordion List by choice without hover
hi, i would like to ask what must i change and in which file / line so i can have instead of on hover and closing automatically the ability to expand by myself and close myself the menu with accordion list choise...the site preview is: http://preview.nosmoke.gr ty in advanced for your help
[jQuery] Autocomplete - trouble with getJSON callback function not executing?
Hi, I'm a jquery newbie, and I'm having trouble making the autocomplete plugin working with cross-domain calls. The alert in my callback function is never executed. Can't figure out why! Here's the plugin I'm using: http://plugins.jquery.com/project/jq-autocomplete Here's the simple JSON data returned from external server http://include.classistatic.com/include/c3js/classifieds/rel1/auto/a/p3.js: {"kjq":["apple1","apple2","apple3","apple4","apple5","apple6","apple2"]} //Let me know if this is invalid
[jQuery] getJSON flicker works but not mine -- URGENT HELP
Hi, I'm a newbie trying to understand getJSON callbacks. I have 2 getJSON calls below. One for flicker which works fine - the alert goes off - but when I tried my js file, nothing happens. Both files are returning the exact same JSON data. I know I'm doing something wrong. Can someone help me out? <html> <head> <script src="http://include.classistatic.com/include/c3js/classifieds/rel1/jquery-1.2.6.js"></script> <script> $(document).ready(function(){//alert("1"); $.getJSON("http://include.classistatic.com/include/c3js/classifieds/rel1/auto2/a/p10.js?jsoncallback=?",
[jQuery] Slide back affter slide from right to left;
Dear all, I'm a newbie , glad to know you, i have read the tutorial about Animate Left Margin ( http://www.learningjquery.com ): The code: [ 1. $(document).ready(function() { 2. $('#slidemarginleft button').click(function() { 3. var $marginLefty = $(this).next(); 4. $marginLefty.animate({ 5. marginLeft: parseInt($marginLefty.css('marginLeft'),10) == 0 ? 6. $marginLefty.outerWidth() : 7. 0 8. }); 9. }); 10. }); ] Every thing go well but i want to click the button again, and the frame return to the
[jQuery] jQuery autocomplete - clickable links
Hi all ! How to make mailto links clickable if html returned formatItem?
Jquery Tabs moves to 2nd row when tab is clicked on Fireforx
Hi. Can anybody help me on this. I have 2 issues with the JQuery Tabs. 1.) I am using a JQuery tabs with 4 tabs which works well with IE6 & 7 and safari. But not perfectly in Fireforx. When it first loaded, the tabs are lined up correctly, and can see the first tab's content. When I click the 2nd, 3rd or 4th tab, the tabs moves 1 row down, and I see a small light color spacer on the first row that may have pushed down the other tabs. I can see the content of the tabs from one to the other without
[jQuery] jQuery Cycle Plugin <pre><code> is appearing inside DIV's
I'm using DIV's and I can't figure out how to remove the html text from the inside DIV from the last slide. I've tried everything. When I remove the <pre><code> outside the DIV, the script won't work!! http://www.enaturalskin.com The Main Banner. Erik
[jQuery] Jquery Tabs moves to 2nd row when tab is clicked on Fireforx 3
Hi. Can anybody help me on this. I have 2 issues with the JQuery Tabs. 1.) I am using a JQuery tabs with 4 tabs which works well with IE6 & 7 and safari. But not perfectly in Fireforx. When it first loaded, the tabs are lined up correctly, and can see the first tab's content. When I click the 2nd, 3rd or 4th tab, the tabs moves 1 row down, and I see a small light color spacer on the first row that may have pushed down the other tabs. I can see the content of the tabs from one to the other without
[jQuery] Jquery Tabs moves to 2nd row when tab is clicked on Fireforx 3
Hi. Can anybody help me on this. I have 2 issues with the JQuery Tabs. 1.) I am using a JQuery tabs with 4 tabs which works well with IE6 & 7 and safari. But not perfectly in Fireforx. When it first loaded, the tabs are lined up correctly, and can see the first tab's content. When I click the 2nd, 3rd or 4th tab, the tabs moves 1 row down, and I see a small light color spacer on the first row that may have pushed down the other tabs. I can see the content of the tabs from one to the other without
[jQuery] browser window size change event?
Does jquery have an event defined for when the user changes the size of his browser window? I couldn't find one, but sometimes I don't see the forest for the trees. Thanks!
[jQuery] one div, multiple clicks
Hi! I have one div (.masterpiece) and now i can open it by click and close it by move mouse out. How I can make it so that it also close when i click it again (when it's enlarged)? $(".masterpiece").bind("mouseenter",function(){ $(".shade", this) .animate({ opacity: "0.4" }, {duration: 500, queue: false}); }).bind("click",function(){ $(this) .animate({ height: "450px" }, {duration: 500, easing: "easeOutBounce", queue: false}) .css('zIndex',
javascript variable
I'm a new comer for the jQuery, and I browser through some examples like the one below and I'm muddled with why the variable declaration with a $ at the front? For example, var $tabs = $('#tabs').tabs(); http://css-tricks.com/jquery-ui-tabs-with-nextprevious/ Thanks for your help in advance
[jQuery] Nested Fieldsets
So I have a nested fieldset group 4 levels deep (potentially). I'd like to be able to click on the legend to expand and collapse the fieldsets within. I don't want to hide the fieldsets, just reduce the height so that the contents within are not seen until they click on the legend. ideas?
[jQuery] The Balance between PHP and JQuery
Hello Everyone! I am new to both PHP and JQuery, and I am running into conflict over which language is right for which task. For instance: I have a simple content management system (PHP) which allows administrators to add and update stories with a textarea form. I then use PHP to retrieve the input from the textarea, find the new line breaks and convert them to tags. It works. I then use the JQuery selector $('#slide div p:first').addClass ('noIndent') to take indenting off the first paragraph of
[jQuery] Attempting to Get jQuery to load into SQL Server Reporting Services Report Manager
I'm having trouble loading jQuery into SQL Server Reporting Services Report Manager. Since SSRS is a proe-compiles ASPX page, and we are not given the source code, we have little ability to make changes to the interface. If I could add jQuery directly, the progblem would be trivial. However, all we have the ability to modify is an existing Javascript file that is loaded at runtime in the head of each page. I have been able to get this to load relatively reliably using IE 8, but other browsers either
[jQuery] Need help in Login
Hi , <div> </div><div>Am very much confusion in php login session tracking , </div><div> </div><div>This is my requirement ,</div><div> </div><div>Am doing travel booking portal ,</div><div> </div><div>Before submit checkout , i have the radio option , that is existing user Yes No for new new user ,</div> <div> </div><div> </div><div>If user clicks yes , then am showing the login form ,</div><div> </div><div>Here i am entering the username and password , if i submit the button ,</div><div> </div><div>
[jQuery] Image Processing!!
Hi there, Just wondering is it possible to take an image, for instance an item of clothing and remove the background (all one block color), or make it transparent so that the item of clothing which was uploaded onto a portfolio on a website can be fited onto a model...to be done automaticaly using jQuery. Thanks, Rosie
[jQuery] jquery selector
hi, could anybody help me with jquery selectors? i have this code: <div class="some-class"> <div class="inside" style="display: none;"> </div> <div class="some-class"> <div class="inside" style="display: none;"> </div> ... on hover on each "some-class" element i want to set "display: block;" for div with "inside" class, but only on div which is child of actually hovered element. is it possible do something like this? jQuery(document).ready(function() { $(".some-class").hover(
Show hide but swap image
Hi, I have included a link but basically i need the second row of images (onmouseover) to swap with the image that is currently appearing underneath. Also when you hover on another image the other second row images reset! so only 1 can be swapped displayed at once. The code is in the page to see what I have done so far. http://www.miamidolphinsuk.com/jquery.html Thanks, Scooper13
[jQuery] jquery tabs (loading remote content and form submit)
Hello, I am incredibly new to the world of jquery. What I am trying to do is create tabs (using the tabs plug-in) that load dynamic content via AJAX (so it makes a call to a jsp). What this does is this loads a new part of a form. What I want to do is when the user clicks on a new tab, I also want to submit the data that was in the original form. I wanted to do this with one request (i.e. the request does the save, then loads up the new content). However, I have no idea how to do this. Please help!
PopUp Height based on mouse location
This is the code I'm currently working with: function centerPopup(){ //request data for centering var windowWidth = 650; var windowHeight = document.documentElement.clientHeight; var popupHeight = $("#popupContact").height(); var popupWidth = $("#popupContact").width(); //centering $("#popupContact").css({ "position": "absolute", "top": windowHeight/5-popupHeight, "left": windowWidth/2-popupWidth/2 }); //only need force for IE6 $("#backgroundPopup").css({
[jQuery] [tooltip] dont close tooltip after click
Hi all I'm using jquery tooltip by Jorn (http://jquery.bassistance.de/) It's a great plugin, and pretty too :) But I want to change it so the tooltip wont close on mouse click Anyone has idea?
[jQuery] jCarousel and li width !important crashes Safari
Couldn't find this bug reported previously. If the width of a carousel's list items are defined with an !important declaration in the CSS, Safari 3 crashes after jQuery advances the carousel and attempts to remove the old slides from the DOM in the itemVisibleOutCallback function. Workaround is simple, just remove the !important declaration and make your CSS selector more specific.
[jQuery] jquery adding and removing row
Hello, I want to be able to add row at the end of the table with a 'remove' link which will remove specific row. The code I've managed to write so far: $(document).ready(function() { $("#add_item").click(function () { var html = "<tr id='item_" + item_id + "' class='item'><td><a href='#' class='remove' id='remove_" + item_id + "'>remove</a></td></ tr>"; var o = $("#calc .item :last"); var newo = o.parent().after(html); newo.find('.remove').click(function
[jQuery] copy addresses
I am trying to overwrite fields with stored adresses in the following page. But its not working as though not giving any errors. Do you see anything wrong here? $(function() { $("input#copyshipping").click(function(){ if ($("input#copyshipping").is(':checked')) { // Checked, copy values $("input#BillingFirstName").val("<%=Session ("ShippingFIRSTNAME")%>"); $("input#BillingLastName").val("<%=Session ("ShippingLASTNAME")%>"); $("input#BillingAddress1").val("<%=Session("ShippingADDRESS1") %>");
[jQuery] Toggle Text
Hi I'm using this to check/uncheck a group of checkboxes which works fine. However, when all of checkboxes are checked, I would like the span id="CheckAll" to read "Uncheck All" and to toggle back to "Check All" when all of the boxes are unchecked. <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('#chkAll').click( function() { $("INPUT[type='checkbox']").attr('checked', $ ('#chkAll').is(':checked')); }); }); </script>
jquery tabs (ajax tabs and form submit)
Hello, I am incredibly new to the world of jquery. What I am trying to do is create tabs (using the tabs plug-in) that load dynamic content via AJAX (so it makes a call to a jsp). What this does is this loads a new part of a form. What I want to do is when the user clicks on a new tab, I also want to submit the data that was in the original form. I wanted to do this with one request (i.e. the request does the save, then loads up the new content). However, I have no idea how to do this. Please help!
[jQuery] Slider moveTo stopped working
Last year I used jQuery slider to gather input of several continuous variables. It worked very well. In the intervening year I updated jQuery and jQuery slider and moveTo seems to not work. In fact I do not see moveTo mentioned in the slider documents. This worked previously: $("#slider1").slider({ min: 20, max: 100, startValue: 20, steps: 100, slide: function(e, ui){ {$("#slidevalue").val((ui.value));} } }); $('#slider1').slider('moveTo',60); Any advice on how to restore the moveTo capability? Thank
[jQuery] Ajax uplaod
I'm doing some ajax image uploads using the plugin at valums.com (thanks). I have multiple images on the page which I will be replacing with the uploaded image. My problem is this, trying to refer to the clicked image within the onComplete function. I tried creating a variable that refered to 'this' which I beleive to be the image element but when I make the change to the element it is not refected, making me think that the variable is a copy and not a reference ? I've pasted here for you to have
How do I clone a div and write values during a loop?
I have an XML document that I'm looping through and I'm trying to write the values out using a cloned node (I'm not sure that's the best approach). If this is my sample XML. <people> <firstName>John</firstName> <lastName>Doe</lastName> <company>A1 Plumbing</company> </people> <people> <firstName>Bill</firstName> <lastName>Smith</lastName> <company>A1 Plumbing</company> </people> and this is my HTML... <div id="people"> <div id="firstName"></div> <div id="lastName"></div> <div id="company"></div>
[jQuery] Toggle question..
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=us-ascii" http-equiv=Content-Type> <META name=GENERATOR content="MSHTML 8.00.6001.18783"></HEAD> <BODY> <DIV dir=ltr align=left><FONT size=2 face="Trebuchet MS"><SPAN class=380433713-25062009>I load form into a div replaceing the content thats there with a form that will be updating the content . </SPAN></FONT></DIV> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=380433713-25062009></SPAN></FONT> </DIV>
[jQuery] [autocomplete] Autocomplete plugin help please
Well, the issue is - it doesnt seem to work on my server. My local copy works perfectly, but th server copy doesnt. See here: http://mousehunt.thetoxiczone.com/autosugg.html Thanks for helping out!
Next Page