[SOLVED] Alter selected menu item
I can access the drop-down value(s) the visitor has chosen by $("#ak option:selected").each(function () {... but now I want to force the drop-down list to be selected to a particular default value of my choosing ... how would I do this? I did try: $("#ak option:selected").each( function () { $(this).text('-> Choose Accessory kind'); } // end anon function for #ak option:selected ); // end each but I ended up with a new drop-down list element rather than selecting an existing
[jQuery] Echo html in <head> with jquery? (code attached)
Hello, I am almost certain one of you guys will have a super quick solution to this, but I just can't get it and it is doing my head in: I have this piece of code which basically checks on client-side what time of the day it is. This information should be used to "use" different stylesheets based on the time, e.g.
[jQuery] IFrame caching in Firefox
Hello, I am using a jQuery script to insert iframe in the document after the page load completes as follows: jQuery(window).load(function() { var container = jQuery(‘#container_id”); jQuery(‘<iframe id=”my_iframe” src=”www.some-url.com”></iframe>’).prependTo(container); }); Apparently there is a problem (or probably a speed-up trick) with Firefox where it tries to cache any iframe content so that next time when you come back to the page (using forward or back button), it fetches the content of the
[jQuery] 12 Tips To Earn $1000 Per Week
12 Tips To Earn $1000 Per Week Just 1-2 Hours a Day With World's Best Companies and Make More Than 1000$ Per Week Register Here to Start Earning http://createfreeweb.googlepages.com/internet-jobs
Help! I am really stuck and time is running out!
Hello all, I am using Jquery to call my WCF services on an anonomous site. The calls work perfectly fine. But one of the requirements is to make the system work with AD and windows integrated security on the vdir. As soon as I switch the vdir to integrated windows security all of my jquery calls get a "request timeout" error, like it can't find the services anymore. Does anyone have any suggestions on how to get around this problem? Thanks!
Call click event on Load
Hi, This is first shot at jQuery and I need some help to achieve what I intend to do. I have a click event associated with a div $("#d1 .c").click(function(){ This is my current div structure <div id="d1"> <div class="c"> <ul id="u1"> </ul> </div> </div> Currently the function is called on click. I would like to call that function for the ul on load. How do I do this? Thanks
[jQuery] [clueTip] Issue with hoverIntent
Hi, I have been using clueTip, and decided to use the hoverIntent feature. Unfortunately, in some cases, the tooltip does not hide when I move away from the element, and stays displayed forever. It happens when I move quickly the mouse out of the element after a very short delay (the tooltip is almost ending to fade in). Changing the fade-in time does not correct the issue. For now, I have been forced to use a "max display time" for the tooltip in order to quick-and-dirty fix that issue, but : 1)
[jQuery] What happened to 'this week in jQuery'?
http://blog.jquery.com/ "this week in jQuery"-s last entry: May 1st :-( Nothing new for the jQuery peeps to note in 5 weeks?
[jQuery] Problem w/ Rapid getJSON Calls
I'm trying to make a little script to check the availability of usernames. I'm doing it with the following javascript (currently outputting information for debugging)... $("input[name='username']").keyup(checkIfUsernameExists); function checkIfUsernameExists() { username = $("input[name='username']")[0].value; $('#registrationUsernameAlert').append('Sending for ' + username + "...<br />"); ajaxUrl = "<? echo $AJAX_CHECK_IF_USERNAME_EXISTS_URL; ?>"; $.getJSON(ajaxUrl, { username:
Image swap is Driving me crazy...
Hey guys, hopefully someone here can help me out. essentially what i'm trying to do is a timed image swap. Simple right? Wrong (in my case). I have tried several plug-ins, and several non jquery solutions, and none of them will do what i need to. I will be honest im not very good with the whole JS scene yet, so most of what i know is very basic. what i want to do is replace an image with a random one from a directory, but i want to do it like 7 times on the page because its going to be for a navigation
[jQuery] plugin validate
When i valid the formulary with j-query validate, it increases the width(or size) of my imput. How can i take out this option? Please help me, its urgent! thanks.
[jQuery] videobox jquery alternative
http://videobox-lb.sourceforge.net/ Does a similar plugin exist for JQuery? Thanks
[jQuery] jQuery Multiple File Upload Plugin - Problem in ASP
Hi guys! I was trying to set up the plug in produced by fyneworks http://www.fyneworks.com/jquery/multiple-file-upload/. I've got a problem. I believe it's very simple for you: This script generates different <input type="file"> but I don't know which are their NAME. In the support pages they suggest to PHP users to create an array in this way <input type="file" name="MyStuff[]"...> But I'm an ASP developer and I don't know how can I create my array into the input form. Using a non-array NAME, so
ajax help
if I put into my address bar www.blah.com/application/welcome.htm?method=castVote my spring MVC will grab the method parameter and use it to find the appropriate method to call in my welcome controller. However, if I put any kind of jquery into an onclick event it doesn't work. I've tried $.get("welcome.htm?method=castVote"); $.get("welcome.htm", {method: "castVote"}); $.ajax({type: "GET", url: "welcome.htm", data: "method=castVote"}); and nothing seems to work. As of now it doesn't return anything
[SOLVED] help with toggle and animation
I made a very simple page, see below. A div should grow on click, and then click again it shrinks back down again. I got it to work as a one-way animation, but then when I try to plug it into a toggle function, it doesn't do anything. I feel like I've got a missing semicolon or something too obvious Help please! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script>
[jQuery] jquery validation plugin. Need help with passing variable to jQuery.format
I'm having some troubles with passing variables to jQuery.format I have a script (php) that's checks if the domain part exists. If not it will show an message The following code works #1 It split an email address and assigns the domain name to the var hostName $(document).ready(function() { var x = $('#email').val(); var ind=x.indexOf("@"); var hostName=x.slice((ind+1),x.length); .... rest of script it will correctly show the var hostName in jQuery.format, but after entering another incorrect
[jQuery] Using jQuery to insert IFrame dynamically after page loads.
Hello, I have a use case in which I need to insert an IFrame as a child to an existing DIV just after the page load completes. That is, the request to fetch content for this Iframe should go to the server "after" all the media in the page has loaded, basically after the page "load" event and not the document ready event. My document structure is as follows: <DIV id="container_div"> <!-- The first div child in this container has a header image to be displayed above the iframe's content --> <DIV> <IMG
get the id from dinamic control
hi all , i got a problem and i want a help.. im using JQUERY to create dinamicaly controls checkbox , but i dont know how i can get de IDs from this checkbox to use this parameter.. anybody help ? ;/ this is my markup code . <%-- in this function i create the checkbox dinamicaly and put a CSS style to the next label beside the checkbox --%> $(document).ready(function() { $('#btnIncluir').click(function() { var variavelEmail = $('#txtEmail').val(); var variavel = $('#txtContato').val(); $('#Label1').append('<input
[jQuery] Cycle Plugin and Wordpress not playing nice
http://www.ltdmag.com/hometest/ If you view the above URL the TEST IMAGE at the top is actually a custom field image for 3 blog posts. the HTML seems to be formatted correctly and my cycle plugin also seems to be called and formatted correctly. I have disabled ALL plugins as well, and tested to no avail. Any ideas? Thanks so much for your feedback.
[jQuery] Help preventing click
<!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.18702"></HEAD> <BODY> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=372450018-05062009>I have 6 links , each loads a form into its respective div. How can I disable the links if one of the 6 is clicked preventing a user from opening up 6 forms at once?</SPAN></FONT></DIV> <DIV><FONT size=2 face="Trebuchet
[jQuery] Accordion Mouseover Event
Hello, I am trying to implement an accordion with event = "mouseover", when I write $(function() { $("#accordion").accordion({ event: "mouseover" }); }); It shows the accordion and I can navigate by mouseover, but , when I write it $(function() { $("#accordion").accordion(); }); here the default is "click" and I create a new button which changes the event value to :"mouseover" function onMouseOverAccordionFn(){ $('#accordion').accordion('option',
jquery is Resizing space between list items
I have created a simple portfolio item for a site I am working on, with left and right buttons to move between the visible thumbnails in the portfolio. The problem is this: when I click on one of the left or right buttons used to scroll the active list items, it resizes the space between all of the thumbnails by 1 pixel per click, up to 10 clicks. Here is the markup and my javascript: markup <div id="portfolio_band"> <div id="portfolio"> <ul class="portfolio"> <a class="left"><img
height of new loaded image element
how can i find the size of an image element which got loaded via ajax?
Expanding textarea w/o a margin at the bottom
All expanding textarea plugins I've seen always insert an additional line at the very end. This signals the user that more text can be typed since there is more space (such as http://javascriptly.com/examples/jquery-grab-bag/autogrow-textarea.html). But can anyone direct me to an expanding textarea plugin which doesn't add an extra space at the bottom? I want it to grow only to the exact number of lines which have been typed.
[jQuery] One error message for multiple invalid elements jquery validate
Hello I'm using the jquery validate plugin from bassistance.de. In my form I have 3 select (day, month and year) to determine the birth date of the user (the 3 inputs are used as independent fields). My problem is that when I validate it, if the user has not entered the day, month of year, I get obviously 3 error messages, and I need to display a unique error message for the 3 select elements. I have created a span id "error_date" and I'm using this code to place the messages after the year select,
Image swap when hover over link
I'm trying to do a basic image swap when a link is mouseovered. The idea is that you hover over a group of links that is associated with that image, and the image lights up. I have different sets of links and images all over the page. markup looks something like this: <div class="container-left"> <img src="/images/logo1-off.jpg" alt="" width="75" height="75" /> <div class="text"> <h1>Lorem Ipsum</h1> <p>Lorem ipsum dolor...</p> <a href="javascript:void(0);">Link 1</a><br /> <a href="javascript:void(0);">Link
[jQuery] drag and drop portlet system based on DotNetNuke
Hi Just wanna show of our portal system based on DotNetNuke jQuery and jQueryUI We took the sortable example and modified it with up down movement animation slide into place smooth animation drag to delete and click to delete restore functionality Inspiration was the <a href="http://bbc.co.uk">bbc.co.uk</a> site <a href="http://www.2dnn.com/DragnDrop/tabid/128/Default.aspx">http://www.2dnn.com/DragnDrop/tabid/128/Default.aspx</a> Armand Datema CTO SchwingSoft
[jQuery] [jQuery Validate] One error message for multiple invalid elements
Hello I'm using the jquery validate plugin from bassistance.de. In my form I have 3 select (day, month and year) to determine the birth date of the user (the 3 inputs are used as independent fields). My problem is that when I validate it, if the user has not entered the day, month of year, I get obviously 3 error messages, and I need to display a unique error message for the 3 select elements. I have created a span id "error_date" and I'm using this code to place the messages after the year select,
[jQuery] A beginerhaving problems with jquery
I just started using jquery recently. I do understand the codes and how they work but i cant understand how to reference external jquery file in the head section. If you download jquery libraries you see e.g: jquery.1.2.3.js, but in the tutorials they expect you to refeer to a certain jquery.js file. Please could someone help me solve this problem? You could also mail me with t.unamka@yahoo.co.uk
[jQuery] jquery append in ie6
Not sure if I am doing something wrong here, but this fails in IE6: $.getJSON("links.htt", { "get_favorites" : 1 }, function(data){ $.each(data, function(key) { $("#selectModule").append( $("<option></option>").html(key).attr("value", key) ); // ie6 messes this up?!?! $(".pulldownContainer[relid=selectModule]").children (".pulldownOptionsContainerHidden").append( $("<div class='pulldownOption'></div>").html(key).attr("value", key) );
[jQuery] context issues when using $.ajax please help!
I'm having problems returning values from within functions that make use of $.ajax functions For example: var obj = { this.foo = 'foo', this.bar = function(variable){ $.post('myscript.php', 'var='+variable, this.callback, 'json'); }, this.callback = function(json){ // this.foo is undefined????!! if(json.msg == this.foo) alert('foo'); } } ok its a stupid example but basically I cannot I lose my context when I run $.post (or $.get/$.ajax). the callback, whether anonymous or not is limited to the $.post
creating one gridview or two depending on data
Hi, I'm not talking about gridview control from asp.net first off. There are gridview jquery items but... I'm looking to create one or two tables, where the two tables are at the same height. The option of one or two tables depends on the xml data being sent. I looked through the forum some and didn't see anything related. I'm also a little new to jquery so try to make it simple. hehe Thanks.
[jQuery] JQuery DatePicker Plugin
Hi! Iam using JQuery DatePicker Plugin , created by Kelvin Luck (http:// www.kelvinluck.com/). Plugins default format is d/m/Y. Can someone guide me how to change its default format to US Date format (m/d/Y). Thanks in advance
[jQuery] Cluetip mouseout event doesn't trigger when we hover away from the target
Hi, I am facing a problem of triggering on mouseout event when we move mouse away from target. But it does trigger this event when we mouseover the cluetip and mouse out. Now I want to work in same way for target or the selector on which I hover to see the tooltip. It is annoying if I accidentally hover over the target and get a tooltip and mouseout from it. Any help is appreciated. I love this plugin a lot and started using it at lot of places too
Animate!
Hallow fellows. i need to animate a function, i've been trying this one $("#dragable").animate({ function() {$("#dragable").appendTo("#dropable");} }, 1000 ); but i won't work, i'm trying to animate my append to.. Any who can help me?
[jQuery] Process emails From Home Earn $1050 Per Week
Process emails From Home Earn $1050 Per Week Register To Start Earning Now at http://createfreeweb.googlepages.com/internet-jobs
Autocomplete on ajax generated inputs
I am using the autocomplete script by Dylan Verheul and all works fine when the inputs are static. I have a form where the user types in the number of species they have seen. This then dynamically creates text inputs for them to enter species names. E.g. if the user types in 4 the form will then be displaying the following <input type="text" name="species0" class="speciesNameSuggestBox" /> <br /> <input type="text" name="species0" class="speciesNameSuggestBox" /> <br /> <input type="text" name="species0"
[jQuery] How to check if an element is done loading
I'm looking for suggestions on how I can implement the following using jQuery 1.3 and whatever plugins may help. I need to insert an iframe or img that links to an external resource onto a page, and if that iframe or img does not load within a certain period of time, remove it and insert one that links to a local resource instead. My only hang-up is I'm not sure how to check if the iframe or img is done loading. Any help would be greatly appreciated. -Jeff
[jQuery] Complicated setup help.
<!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.18702"></HEAD> <BODY> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=309480623-04062009>I have run into a problem.</SPAN></FONT></DIV> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=309480623-04062009></SPAN></FONT> </DIV> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=309480623-04062009>I have</SPAN></FONT></DIV>
[jQuery] Dynamic underlining for links on a page
Hello all, probably a simple question but I can't for the life of me figure out how to do this: I have a page that has information on various # anchors, a list of them are at the top and once clicked I need the one clicked to become underlined and remain underlined untiled a different # is clicked. How on earth do I do this? I've managed to use jquery toggle to turn on an underline once it is clicked, but i have to click the same link again to turn it off, which is not what I want, I need it to automatically
Next Page