JQUERY HELP OUT PLEZZZZZZZ
I am using this following code in aspx page .small jquery if i click on the link its suppose to fadeout .but its not happening. this is my first jquery. please help out that will be an encouragement. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Javascript.aspx.vb" Inherits="Javascript" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title></title>
Append and then Hide
If I have some content I want to show but not have within the original document but in the .js file, for example: $("a#searchButton").click(function() { $(".main").prepend("<div class=\"searchMainCont\"><img id=\"close\" src=\"/images/cross.png\"/><h1>Search</h1><br /><form id=\"searchForm\" name=\"searchForm\" method=\"post\" action=\"\"><input id=\"term\" name=\"term\" type=\"text\" size=\"20\" value=\"Search Term\" onClick=\"this.value=''\" /><input id=\"search\" name=\"search\" type=\"submit\"
fonction Animate and percentage (%) bug ?
Hello people, I'm currently stacked on a bug while using animate in percentage :( I already checked this post http://forum.jquery.com/topic/jquery-animate-percentage but noone replied :( I tried with the last JQuery library (1.4.2) but without success ... That's was tried on google Chrome, Firefox and Internet explorer. The float was really toggle only with Chrome and the width is always interpreted in pixel, not in percentage on all browsers tested. So if anyone know of fix it ^^ Here is the query
Dynamic JSON variable strings
I have variables coming in from JSON files via AJAX calls. Each file will have 3 variables for different background colours. Depending on which button is clicked the background will change colour to the value specified in the JSON file. The variables in the file are like this: "background1" : "#000", "background2" : "#333", "background3" : "#FFF" What I need to be able to do is something like this: $backgroundcolour = data.background + $buttonnumber; But I can't seem to use it - and eval doesn't
is there a form validation script in JQuery like this is protype??
http://tetlaw.id.au/view/javascript/really-easy-field-validation Here in this protype script the animation is a beauty, so do u guys know, like this in jquery?
JQuery Ajax object & Cookies?
Hey, i have a little problem. My new project uses $.ajax quite extensively. I usually use a shortcut -login-as-root- function during early developments. I just build the actual login interface, and found a bug in it. Everytime you enter my system (as in, load a page), it updated the cookie (PROJECT_SESSIONID). Now, when this is done in an XMLHTTPRequest, the cookie data isn't read out and thus you're being logged out for having an old session_id (anti XSS and stuff). Well, that's a problem. So i
click to add info from one div to another and add to a session var via php
Im extremely new to jquery, ajax and the like, but have a basic understanding of it. As in I can build some stuff but minimally and when the functions start trailing off to more then one thing at a time I get lost a little. The PHP end of my line of thinking I will mention here I have no problems with, its just doing what I need to do with the jquery and ajax part thats got me upside down at the moment. What I want to do is create a function that will post to php just a variable or two. With that
trying to form xml data to post in ajax call
Hi, the server i'm trying to post data to in an ajax call expects data in xml format, including a particular attribute value. I have to use Chrome browser which does not support the XML Class (e4x). I tried to marshal my data as follows: var xmldoc = "<field fid='nn' filename='test.txt'>" + base64encodeddata + "</field>"; But the ajax call does not appear to transfer the xml data to the server even though the xmlhttprequest call appears ok in Chrome's developer tool console. $.ajax( { url:
How do I select the next element that isn't of the same parent?
I have: <p>Click here</p> <div>cool content #1</div> <p>Click here</p> <div>cool content #2</div>How if I click either <p> how do I select the <div> immediately following? $(p + div).dosomething()isn't working. Thoughts?
[FIXED - I GUESS] issues with image gallery
Hello all, I created a small image display script and it works great on my local server but not on my live server and I cannot figure out why. The image should hide when clicked and the next image should fade in. But on the live server the first image hides then fades back in then the second image is shown. the efx don't work right when on the live server. Her's the URL to the live version gallery example. My jquery code: $('a.galleryLink').click(function(){ var lrgImg = $(this).attr('href');
$.ajax and responseHeaders (Cookie problem)
Hey, for a project i'm developing, i wanted to make an AJAX login. Now, i found a little problem. It would seem that the Set-Cookie header in my ajax-request isn't processed. This means that thye login automatically fails. Oke, quick fix: set the cookie myself. But i can't seem to find the response headers in the jQuery $.ajax object. So did i miss it, and else, where do i find it? Thanks a lot, - Daimonie
Select Not Multiple, but in the code with many Options Selected, Loses the Selected Values when the JQuery Changes the Select To Multiple.
For example: I have the following code-> <select id="selectTest"> <option value="1" selected="selected">Number 1</option> <option value="2" selected="selected">Number 2</option> <option value="3">Number 3</option> <option value="4" selected="selected">Number 4</option> </select> Since its not multiple its not going to show all the 3 options selected, so I created a little button with the easy statement in JQuery $('select#selectTest').attr("multiple","multiple"); it is working, it makes the Select
can't get .click() working in FF/Gecko, BUT works in Webkit and MSIE
I have some jquery code for a lunch sign up. The user logs in on a secure page, and then is presented with a series of lunch seminars and whether or not (s)he has signed up for a lunch for each of them. There is text that says, "click here to request a lunch", or if (s)he has not signed up, "cancel my lunch". I can get this to work in Safari/Chrome and MSIE, but it refuses to work in FF -- nothing happens when you click the text. I tried putting an alert() in and it appears that the click() function
Using autocomplete with input created by appendTo
Hi I have created a script to add a text input field to a form using appendTo once a link has been clicked. I am trying to use autocomplete on the input field but I am not having any luck. Any information as to why and how I can fix the problem would be appreciated!
$.post help please
hey guys, I'm writing a web management tool and I'm having trouble sending the resutls of ckeditor to a php file on my server to be inserted in a database. form which gets data from user; Code: <form name="page_editor" method="post"> <textarea name="new_content"><?php echo $answer; ?></textarea> <script type="text/javascript"> CKEDITOR.replace( 'new_content' ); </script> <p align="left"> <input type="submit" value=" Save Changes " onClick="save_page();" /> </p> </form> javascript function Code:
Jquery-– Replacing Div Content when clicking on another element
Hi, I'm trying to change content depending on the <a> link the user clicks. My code is far is as follows but isn't working, any help please? HTML <div id="content"> <div id="cx300"> <div class="auriculares_spec_mx560"> <h2>cx300</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec luctus varius magna.</p> </div> <img class="img_cx300" src="img/cx300.jpg" alt="Sennheiser Headphones CX300"/> </div> <div id="mx85"> <div class="auriculares_spec_mx85"> <h2>MX85</h2> <p>Lorem ipsum
$.getJSON(jsonrequesturl) ---> permission denied error
does anyone know how to not get "permission denied" in the script when doing a $.getJSON() of a remote JSON feed? (such as the ones you get from google). thanks for the response below - I made an error in my post and edited it, because my code actually does use getJSON() and not load(). Is this one of those scriopt proxy issues? Does anyone know about these google API feeds?
.slideDown end effect
Hey there, I am new to jQuery and have been playing with it for a couple days now. Currently I have a slideDown effect on an element and it works great. However, right at the end of the effect there is a "blip" of sorts. At the end of the animation there is maybe a 5 pixel jump up of all the content in the div that is being displayed. The content in the div is a return from an Ajax call whose result was put in the div by using .createElement etc So the content in the div is dynamic. Would this cause
JQuery news ticker with source from XML service
I need to create news ticker with data source as Web Service For example: JQuery li-scroller plugin
A jQuery inline form validation checkbox problem
Hi, I have a problem with checkbox, everything works fine just I have a problem with calling data. <input class="validate[minCheckbox[1]] checkbox" type="checkbox" name="data[User3][preferedColor]" id="maxcheck2" value="3"/> For calling data I use always name="xxxxx" but in this case its name="data[User3][preferedColor]" and doesn't work, when I use, only data, I get result array. What am I doing wrong. Please help me. For action I use PHPMailer-FE. Excuse my bad English
Problem with controlling animation.
Hi to all, On the following page http://www.pgscapital.at/thurn/projects/hoerndlwaldgasse/index.html, I am trying to animate two black divs with the text content VORHER over two different pngs. The exact build up is. A PNG linked to a shadow box gallery, over that a Black DIV with opacity 70 and over that a transparent gif which when hovered over should trigger the fade in or out of the black div with the content vorher. I will not get into the story why it was buildup like that. At start the black
porting working jq1.2.6 with livequery + form to latest jq
Hi Guys, It's time for me to upgrade a significantly complex site to the latest jquery hopefully jq 1.4.2. This code has been working well (for nearly 2 years and probably not the most optimal) on jquery 1.2.6 + livequery + jquery.forms. Trying to find the best way to port this to the jquery 1.4.2. Not sure whether to try live() or delegate(), but would like to make sure I get good browser coverage. $("form.myForm").livequery(function(scope){ var fId; $("form.myForm",
submit() and EventListener
Hi, I registered a sumbit event handler (with addEventListener("submit", function ....)) and altered the behaviour of the submit with submit(). now my event handler is not called anymore. I am not sure how these two are related to another, but is there a way to call the listeners in this jquery-submit-function? regards Jonas
Create pseudo active div based on click
alright what i have is a jquery slider script im using and you click on a div class item like sitem1, sitem2, sitem3 now i can do a hover w/ just the .div:hover but i need an active also, how can i do this w/ jquery? thanks guys so here's a sample of the html <div class="sitem1">menu name</div> that needs to become one active
Creating a tooltip that updates everytime the mouse moves?
I have created a function for my table which works when a user mouses over the cell, the function gets the X position of the cursor and then keeps updating it, See below: Copy code <table> <tr id="mon_Section"> <td id="day_Title">Monday</td> <td id="mon_Row" onmousemove="movedamouse(event)"></td> </tr> </table>Below is the javascript function: Copy code <script type="text/javascript"> var mon_Pos; function movedamouse (event) { mon_Pos = document.getElementById
Result of $.post call in var
Hi all, I'm stuck on something, someone can hopefully help me out with :) I want to store the returned data from an ajax call in a variable so that I can use it later in the script. But the following code gives an error; $('textarea').focus(function() { var $this = $(this); var $id = 0; $.post('getid.php',{ f_id: $('select:eq(0)').val() }, function(data) { if(data==="") { alert('no good'); } else { $id = data; } }); alert($id); //gives error; undefined
Variable propertyName
Is there a way to use a variable as a propertyName for the .css() method? E.g., instead of: $(elem).css({"bottom" : "5px"}); I want to do: var alignVert = "bottom"; $(elem).css({alignVert : "5px"}); but it, of course, tries to set the "alignVert" property to 5px instead of the "bottom".
Post form data update dynamic image
I've got a pretty simple form where a user can enter text, this data is used to generate an image (with the text on it) - I've been trying to figure out how I can update an image on the screen via ajax/post. Can anyone help me out?
$(this).html() +1
I'm using a datepicker and I'm using $(this).html() to get the number of the day inside of a TD. What I want to do is take that number and add one to it. Every time I use var thenum = $(this).html()+1 I get something like 21 instead of 3. Is this possible? I've even tried using $(this).html().toString()
Problem Recreating jQuery ColdFusion Ajax Demo
Hello! I am new to jQuery and have enjoyed immediate success with some of the basic UI effects. My current goal is to integrate $.ajax into a small ColdFusion app. I found the link to the demo (below) in the jQuery Tutorials, but have not been successful in re-creating the demo on my local cf server. http://www.365labs.net/cf_jquery/jquery_coldfusion_quickstart.htm The first thing I noticed is their jquery.js is not the full current version. Compare: <script language="JavaScript" src="http://www.365labs.net/cf_jquery/jquery.js"
Unknown pseudo-class or pseudo-element 'even'
Hello, I have the following: $("table tbody tr:even").addClass("Even"); $("table tbody tr:odd").addClass("Odd"); But I get an error: Warning: Unknown pseudo-class or pseudo-element 'even'. Source File: http://localhost:55708/resource/list Line: 0 Warning: Unknown pseudo-class or pseudo-element 'odd'. Source File: http://localhost:55708/resource/list Line: 0 Am I doing something wrong? How can I avoid this warning? Thank You, Miguel
Filtering content with more than one parameter
I was wondering if there is a jQuery plugin that could help me with sorting my content on the page. Basically I am looking for something like this http://css-tricks.com/examples/FilteringBlocks/ but I need to have a option to narrow selection you are in. Thanks for your advice
need a little jquery ajax help
I'm really new to JQuery but am studying it like mad. So, thanks in advance for your help and explanations. Here's the basic premise of what I wish to do: 1) I will have a unordered list of hyperlinks for staff members 2) when clicked upon I want the profile of that individual to display in a target div 3) I want the transition(s) to be a fade effect both in and out 4) there should be a default staff member in the target div on page load My Assumptions: * i'm assuming I can lump the list hyperlinks
Problem Using a Variable (with escaped characters) as a Selector
I'm trying to use a variable as part of a selector. When I insert the variable into the selector it doesn't work. But if I hardcode the variable into the selector it works fine. Here's an example: var fieldName = "field_id_54\\[0\\]\\[2\\]"; $("input#field_id_54\\[0\\]\\[2\\]").attr('value',''); // Works :) $("input#" + fieldName).attr('value',''); // Doesn't work :( Strangely, if the variable doesn't have any escaped characters it works fine. Meaning this: var fieldName = "field_id_54"; $("input#field_id_54").attr('value','');
jquery $(document).ready not firing in IE iFrame
I have a web page with a form that I am presenting to the world through an iFrame in our university's content Manager system (not my choice!). The form page is validated using jquery, but it is not working in IE 8. The validation works fine with every other browser I've tried. It appears that the $(document).ready event in the form page is being ignored, but only in IE, and I don't know how to fix that. Any suggestions? Thanks, Keith
images in accordion
I've succesfully made an accordion, but when entering an image in the content, the image doesn't disappear or move. To make it more clear i've made some screenshots: Can someone please help me. But try to explain it very easy, cause I'm really new to this. Thanks in advance. Genzme P.S.: I'm not English, so it is possible that I've made some mistakes. Therefor, my appologies.
[On Mouse Over] Toggle Class
Hi! I make a plugin whit the effect Toggle Class and run when the cursors is over on the element, and when is left. But, he is not Cross Browser compatible. The script are: $('.manzam').mouseover(function() { $('.manzam').toggleClass("manzam-o", 500); }); $('.manzam').mouseout(function() { $('.manzam').toggleClass("manzam-o", 500); });And the element are: <a class=".manzam"> </a>I use a jQuery 1.3.2-min and jquery effects 1.7.2
Loading content throuh Ajax, effect slideDown buggy
i'm trying to load a youtube video through an ajax call into the page. loading the youtube video is working fine, but the slideDown effect is verry crap (shaky) for youtube video's. When i load just text or images or a google maps it's working perfectly smooth. is there a solution for this? my code: jQuery('#yt0').live('click',function(){ jQuery.ajax({'complete':function(){ $("#test").slideToggle(2500); }, 'url':'video.html', 'cache':false, 'success':function(html){
images in jQuery accordion
I've succesfully made an accordion with jquery. But when I try to give some content to the diffrent parts of the accordion, I can't get the images inside it. Because when I place images inside it, they won't dissapear or move. To make it more clear I've uploaded some screenshots: Can someone help? I'm a bit in a hurry, sorry. And please, I'm really new to this so explain it very easy to understand. Genzme P.S.: I'm not English, so there might be some grammatical or other mistakes which I am not
$.ajax does not call success callback but does call complete callback
I am using jQuery ajax to call an ASP.NET web service. The ajax calls succeed and return the correct value but the success callback is never called. However, the complete callback is called. Here is my ajax script: $.ajax({ type: "POST", url: "../UnsubscribeWebService.asmx/SubscribeToFewer", data: "{'email':'" + email + "'}", contentType: "application/json; charset=utf-8", dataType: "json", dataFilter:
Next Page