Problem with .ajax json return
I am having a problem with the .ajax json return. I was using getJSON, but changed to .ajax and now getting error about returning the json. I am atempting to simply update some text fields with json data. I have changed this thing so much that I forgot what I had originally. So the code may not work... This is being executing on a IBM Series i(AS/400) thus the reason for the not too familiar code. This is my code: $.ajax({ async: false,
.load() doesn't work in Chrome and Firefox
Hi friends, my code is as follows: <td><a href="#" id ="putsomeDynamicvalue">ingresar</a></td> <script type ="text/javascript"> $(document).ready(function(){ $("#putsomeDynamicvalue").click(function(){ var code =$(this).val(); $("#lista").load("http://localhost:8081/Servlet/ingresarOpcion", {codigo:code}) }) }) </script> This works fine in Explorer 8 (I returned the result of the servlet), but in Chrome and Firefox does not return
Javascripts won't work with each other
Hello!, My name is Rokain and I'm working on my own site located here. As you can see I use a contact form where people can contact me. In the contact form you can check a checkbox, if you check this checkbox some other inputs will roll out. This all works when I use the latest jquery and also the javascript files form my contact form, except for the "formcheck.js". Formcheck.js checks if every required field has been filled in, if not, it will give an error. As long as I keep jquery.js out of
Using case switch statement to link the a links?
Hello, I am new to JQuery and have am uncertain how to get this functionality going. Any help would highly be appreciated, please. I have a div name "footer". Within "footer" I have 4 links: link1, link2, link3, link4 Is there anyway to write a function which will sense which link was clicked and then alert the id of that selected link. I have written the code but am not certain why isn't it working. here is my code. $('#footer a').bind('click', function(){ //alert($(this).attr('id'));
Problem running jquery script in Content Page
Hi!! I have a master page in asp.net and a content page with some basic asp.net controls like textbox,buttons,treeview....i have a jquery script in the content page and reference set to the jquery file..The script changes the text property of a button on the keydown event set for the textbox...the script works fine if i copy and paste it in a normal page...the script only ran once when i worte it for the first time the next day when i tried to run the script it was not working..i m facing this problem
Setting CSS class to a drop down
In my page i have a dropdown 'Type' with id 'idType', which needs to be set to focus when the page loads (depending on whether it has a value or not..) /* function to apply the css to the dropdown controls while in focus $("select").focus(function(){ if ($(this).attr("type") != "submit") $(this).addClass("selected_input"); }); /* condition applied when the page loads if($("#idType").val() == '')
jquery accordion, disable header
I'm using the default accordion example from the UI Demo page. http://jqueryui.com/demos/accordion/default.html I would like to remove the header part of the menu completely, where it says 'section'. Is there an option or something to do that?? Thanks for any help.
jQuery Cycle Plugin not loading in IE7 (and IE6), works perfect in all other browsers
http://dev.mattcampy.com/mit_ci/index.html The slides load as one huge stack in IE7, almost like the script isn't loading or something? This is what I'm working with: <script type="text/javascript"> $(document).ready(function() { $("#gallery").css("overflow", "hidden"); $("ul#slides").cycle({ fx: 'fade', pause: 1, prev: '#prev', next: '#next', timeout: 8000, }); $("#gallery").hover(function() { $("ul#nav2").fadeIn(); }, function() { $("ul#nav2").fadeOut(); }); }); </script> HTML: <div id="gallery"
IE 7 PNG opacity issue
There is a png image on my page, and I need to make it into transparent, if under IE7, there will be some black border around the image, I know it's a defect of IE7, is there any solution?
how to retrive a row contain all text not only Current ,Next,Previous
i retrieve the value of token i click in a row ILENAME SUBJECT TOKEN M.Date L.Msg DOCTYPE 1393 dl.sh dd 1043 13.Sep.10 13.Sep.10 Feedback 1394 dl.sh hh 1043 13.Sep.10 13.Sep.10 Feedback 1395 examples.desktop hh 1043 13.Sep.10 13.Sep.10 Agreement 1396 8erp_final.zip hh 1043 13.Sep.10 13.Sep.10 Increment 1397 examples.desktop hh 1043 13.Sep.10 13.Sep.10 Feedback 1399 examples.desktop ffg 1043 13.Sep.10 13.Sep.10 Agreement 1400 dl.sh ffg 1043 13.Sep.10 13.Sep.10 Feedback 1402 examples.desktop jhjhj
Fetching a list of files through $.get()
Hi, We are currently writing a custom speedtester. Our websites seems to be sometimes slow on different (geographical) locations. This is what I wrote: $("#logger").append("Starting timer: " + startstop() + "<br/>"); $.get('/speedtester/10mb.jpg', function(data) { $("#logger").append("Stopping timer: " + startstop() + "<br/>"); });This will perfectly log me how much miliseconds it takes to fetch a file. Now, we want to download files on different servers. But the problem is: we are facing
Assigning sequence number inside LI on sortable list
I am working on a draggable / sortable activity scheduler and am trying to figure out how to assign sequence numbers to hidden inputs within each <li>. I have two <ul>'s one with the activity choices (#addOns) and one where activities can be dropped and sorted (#myItin). I have found out how to renumber the <li>'s each time they are sorted, but am trying to figure out how to use that value and append it to a hidden form input. My current script: $('#addOns > li').draggable({helper:'clone', opacity:
Does delegate() work in IE at all?
Hi, I'm trying to get a delegate() event to fire in IE (any version) with no joy. The code below works in Firefox, Safari and Chrome: $('#gmap').delegate('a.removepoint','click', function(event){ alert('Remove'); return false; }); The link <a class="removepoint" href=""/> is created inside the infoWindow of a GoogleMap. My understanding is that delegate() should find this, even though it's been created after the document.ready(), yet IE will
how to check value programeing
if check box value a,b,c,d and database value is c,dhow to check C,D Checked box
Confused about .clone()
Hi, I have used .clone() to date always in the context of ui-draggable helpers etc, ie always on anonymous DOM elements. I today for the first time had occasion to duplicate a properly deep DOM structure, full of id'ed elements. I was surprised (not sure why) to find that .clone() faithfully clones every id. Therefore, after I inserted the clone into the DOM, the DOM had two ids of everything. Is this a problem? I retrieved the children I needed to target with $("no-longer-quite-so-unique-id",clone).
CSS3 transition
Hi, I'm working on an hybrid application with a QtWebKit UI and I'm using jQuery as an abstraction layer. Due to performance issues with the internal jQuery animation engine I'm developing a plugin that remaps jQuery's animate function to webkit css3 animation feature (something that was already done here http://playground.benbarnett.net/jquery-animate-enhanced/). I would like to remap the show/hide behaviour with css3 but I'm having some difficulties to understand how jQuery animates an hidden (display:none)
How to detect touch panel
I design two interfaces for regular visitor and cell phone touch panel visitor, in the past, I use the screen resolution as judgement to bring up the interface, but now there are many products with touch panel and bigger resolution in the market, such as IPad, they should use the touch panel interface as well, is there any specific method to detect touch panel or not?
Selector Question
hi, i want to change the val() in a textfield named 'input-field-1-value' i have more than one textfields and near each textfield is a button <input id= 'input-field-1-value'><button class='button' val='1'>Field 1</button> <input id= 'input-field-2-value'><button class='button' val='2'>Field 2</button> <input id= 'input-field-3-value'><button class='button' val='3'>Field 3</button> <input id= 'input-field-4-value'><button class='button' val='4'>Field 4</button> if i click on the button the val of
My selector doesn't work in IE
Hello, I have a problem with a jQuery selector that works in both Firefox and Chrome but refuses to in Internet Explorer. The jQuery line looks like $('a[id*="show_ingredients_link"]').click(function(){ var id = this.id.replace("show_ingredients_link", ""); $(".ingredient_row" + id).toggle(); return false; }); Which is trying to select a click on the following bit of HTML (this is a Django template) <a href="#" id="show_ingredients_link{{ i.id }}"> (Customise) </a> The intent is
Adjusting speed parameter doesn't have any effect
I can't change the speed on any jQuery functions that use that parameter, for example fadeIn(). No matter if I add slow, fast, 100, 180000... my tags/images/whatever always fade in at the same speed which is something between half and one second. Is this a bug?
get new value instead of existing value in text box
Hi, I'm trying to validate a newly typed value in the textbox instead of the existing value it has when the page load, unfortunately, whenever I get the .val() I kept getting the existing value in the text box instead of the newly typed value. How do I get jquery to understand that I want the typed value and not the old value? My code is this $('#thetext').val() found in here remote: { data: "thetext="+$('#thetext').val(), url: "textchecker",
Some math to make a custom slideshow work - how do I write it so that jquery understands?
Hi, so i have a slideshow (that you can see here) at the moment when you mouseover any link it moves the slideshow on 1 picture. This is the code that does that $(options.button).bind('mouseover',this,function(event){ event.data.rotate(1); //moves 1 picture to the right return false; });Each of the links has a class of a number (current 1 - 6 but could be more eventually). I'm trying to work out how i can tell jquery to remember the class of the link last mouseovered, get the class of the current
change attribute to selected
I have two multiselect listboxes on my page, both with a different classname. I also have two href's links on my page. What i want is when i click on the first link that all the options are checked in the first multiselect listbox. If i click on the second then all the options should get checked in the second multiselect listbox. Can someone please tell me how to do that??
interesting issue jquery 2 popup forms, 1 opens, 2 close
Hi there, pretty new to jquery but programmer none the less. On one of our websites I put a tell a friend pop up form that pre-populated from a php function. Then I decided I wanted people to be able to nominate friends/family etc. I duplicated the tellafriend.js, php function, css, and basically anything else necessary. Changed all the titles from tellafriend to nominate and even changed the "close" function name in the second one. What's happening is if I open the tellafriend form then close it
how to apply jquery effects/animations on ajax loaded data from an XML file?
I am attempting to do two things and I'm missing a vital element: ajax call to an XML file to be inserted onto a page, FOLLOWED by selecting these newly created elements to apply event handlers on them. I am near certain that the problem is that the selectors are not 'seeing' these elments and it's an issue of running the event handler only AFTER these elements have been loaded. How do you do this? I already have a $(document).ready(function() { in order which I naively thought would take care of
how to remove a propery href or Disable href
<asp:LinkButton ID="LB_Document_Down_Upload" runat="server" PostBackUrl="~/Document_Down_Upload.aspx">Doc Mgmt</asp:LinkButton>
looping through arrays
Hey Y'all, I've been trying this same thing in several different mini-jQuery plug-ins and it never quite does what I want it to. I have a list of inputs <div id="divID"> <input title="foo" type="text"> <input title="bar" type="text"> </div> Then I'm trying to use jQuery to cycle through each input and ascribe ".attr("value") to each respective <input> So far I've been using something along these lines: var input = $('#divID input') input.each(function(i) { var title = input[i].attr("title");
function argument: jquery object passed as copy not reference?
Hello, I'm a little confused as to why a jquery group gets passed into a function as a copy not a reference, even though it is typeof 'object'. In this demo, it only works as I would expect in the second function ... Is there something special going on? Tested in FF 3.6.9 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
How to access 1.3.2 docs
How can I see documentation for older versions of the API, specifically 1.3.2? The arguments for the callback function of an AJAX get changed, and I'm trying to figure out how to adjust. I'm using a site with the 1.3.2 library. Thanks. Ross
Problem Using jquery in my website
Hi to all membersm, I am having the following problem: www.3dmagicaldesigns.com The menu is a drop down in jquery and the pictures transition is a jquery gallery. The problem that I am having is that the menu shows up below the photo transition on home page and on all the browsers. If someone knows about the issue and can provide help I would really appreciate it, I want to use the resource and I don't want to make my picture transition a flash. Thanks 3D Magical Designs
simple ajax/xml parsing working in firefox & safari NOT IE & chrome
I think someone said something about not be able to do local ajax calls in chrome but I dont remember there being this issue in IE - though I'm having it. What else could cause trouble in IE? I just want to be sure that I'm not overlooking something else that isn't right....
jQuery in IE6
I'm having a big issue on some jQuery i've put together for a clients website. The code seems to fall over in IE6 somewhere in this script, but i cant work out where. If any of you lovely people could help, i'd grately appreciate it!! <script type="text/javascript"> var ImageContent = '<div id="ImageDiv"><div id="page1" style="background:url(images/space.gif); width:400px;height:848px;background-position:400px;display:block;"></div><div id="page2" style="background:url(images/space.gif);
Superfish.js show active page in menu
Hello, I have a simple superfish menu on my site and I'm wondering if there is a way to add a quick line that shows the 'current' page the menu is point to? thanks! this is a wordpress site, I noticed an example http://users.tpg.com.au/j_birch/plugins/superfish/#sample4 i'm getting closer?!
Listen for change in an element's children
I have a UL that loads in dynamically after the DOM has already finished loading via and external API that doesn't have a callback function for when it's finished. However, I need to manipulate the children of the UL once it's loaded in, so I need some type of listener for when the UL changes. I need an event to fire when an element or it's children change. Is there anything like this in jQuery? Otherwise I'm going to have to create a setInterval to poll occasionally to see if the UL has loaded,
Jquery in the Master - Content and user control.
Hi, I am trying to use jquery in the Master Content page which doesn't work for me.I am narrating a my specific issue. So here it is... I have a Master Page:AdminMaster.master I have Content Page:NewSession.aspx I have a User Control: SessionControl.ascx I have a another User Control : SessionRestriction.ascx I am useing SessionControl.ascx in my NewSession.aspx page. And SessionRestriction.ascx is used within the SessionControl.ascx. And when I should click A button on SessionControl.ascx
Problem using .live with items added via load
I am using jQuery with jQTouch. I have a unordered list with id="propertylist" that I am populating dynamically via .load html... <div id="searchpropertytype"> <div class="toolbar"> <h1><small>Properties</small></h1> <a href="#" class="back">Back</a> <a class="button flip" href="#home">Home</a> </div> <ul id="propertylist" class="rounded"></ul> </div> Here is Javascript to load my items... $('#searchpropertytype').bind('pageAnimationEnd', function(e, info) { if (info.direction
I can't get my popup to stay up after hovering over it. What am I missing here?
Hi, I'm new to jQuery, but have been working with javascript and DHTML for several years. Trying to transfer over my knowledge of that to jQuery but have run into a snag. When hovering over a div, the popup comes up fine. If you leave the initial trigger div, the popup goes away - great. The problem occurs when I move off the trigger div to the popup. It stays up as it's supposed to, but when moving back to the trigger div from the popup, the popup should stay up, but it doesn't. It disappears and
simple $.post isn't working?
I'm pretty new to jQuery so try and go easy.... Trying to do a simple AJAX POST using the jQuery post method and it doesn't seem to be working. Heres my code: $.post("sub-account-ajax.php", { email_address: "test@test.com" }, function(data){ alert("Data Loaded: " + data); });Heres the code for sub-account-ajax.php: <?php if (isset($_POST['email_address'])) { echo 'youre set'; } else { echo 'nothing set'; } ?>When this code is executed I do not get any
[SOLVED] IE8 image width zero, All other browsers OK
I'm at my wits end: Can't figure this out. In "jqimv.js" at line 112, the "$imvimg.attr('width')" is correct for all current browsers except IE8. If you just load "jqimv.html" and click any of the links, you'll see it. Any help would be great! Thanks. Paul
Traverse DOM?
Hi, I have the following HTML. I'm trying to change the style for a "specific ul" from display:none" to "display:block" via jquery. So using JQuery, what would be the code to set the UL tag to "display:block" for the "Parties" section given the HTML structure below. Any help appreciated Thanks! <ul id="main-nav"> ....<li> </li>.... <li> <a class="nav-top-item">Parties</a> <ul style="display: none;"> <li><a href="">Add Party</a></li> <li><a href="">Past Party</a></li>
Next Page