[jQuery] jquery not executing
Howdy pardners, I run a busy Facebook app. Recently I redesigned some of the UI so that it relies on javascript and jquery. These UI components are loaded in iframes. Examining the logs, it's clear that about 15% of my users are unable to use these new interfaces. I am tearing my hair out trying to figure out the problem. Specifically, $.ajax calls don't seem to be executing. I have tested every browser, and I'm unable to reproduce the problem. (Yeah, 15% is about right for IE6, but 1. IE6 seems
[jQuery] Docs server weirdness, almost looks like defacing
http://bradleysepos.com/dropbox/jquery-docs-wierd.png Notice the title, heading text and the layout issues. Looks like 1/2 an error page, 1/2 the actual page. Anyone working on the server right now?
[jQuery] Css Class - Parameter
Hello, I am using the following DatePicker plugin: http://www.kelvinluck.com/assets/jquery/datePicker/v2/jquery.datePicker.js Most CSSClasses, for example jCalendar, are built into the plugin. I need to make that parameters. Could someone, please, give me an example with the jCalendar css class, of how to make it a plugin's parameter. I have been trying a few changes but was never able to make this work. Thank You, Miguel
[jQuery] tablesorter (highlighting columns by appling <td class="sorted"> )
Is there a way to apply a class to the table cells of the sorted column? I want to have the sorted column to have a class="sorted" on each of it's table data cells.
[jQuery] ajax not working on new form added to a page after an ajax operation
Hi. I have a calendar which lists events. After each event I have a "delete" form. When someone clicks the submit, I use ajaxform to return new html that replaces the entire day's list of events, including a new delete form for each event. My problem is, the new forms do not seem to be "ajaxed". When pressed, those newly replaced items just go straight to an old fashioned POST, not ajax. When I refresh the page manually, they work. Do I have to do something to "refresh" the things in $ (document).ready()
[jQuery] serialize does not send the value of the submit button
Hi. Pretty new to jquery, but have gotten some ajax working - my question is, is it normal that the serialize does not send the value of the submit button itself? If so, why is that? It caused me all sorts of problems, as my php code responds to various HTML post requests based on the value of the submit button (e.g. add, delete, or view commands). The jquery serialize was sending the other fields OK, but my php server program was just ignoring each request, based on the missing value of submit.
[jQuery] Play Counter Strike and Dragon Ball Z
www.gamesflash.zip.net
[jQuery] How to retrieve all content within an element's start and end tags
Hi, I have a <div id="content"> and I want to set it's text dynamically: when user clicks a text, the content of a hidden element is retrieved and is displayed in the <div id="content">. Problem is: if the text I retrieve from the hidden also contains HTML, that html is not fetched. This is roughly how the relevant html looks: <div id="content"> <!-- show some text here --> </div> <p id="about"> We create great products: <ul> <li>Airplanes</li> <li>Boats</li> <li>Helicopters</li> </ul> <p id="contact">
[jQuery] SOS
hi, my server side script returns following xml output- <?xml version="1.0" encoding="UTF-8" ?> - <markers> <marker lat="22.8015" lng="91.0986" Device="ET700C" Index="1" /> <marker lat="23.0494" lng="91.4117" Device="ET700C" Index="2" /> <marker lat="23.2666" lng="91.1261" Device="ET700C" Index="3" /> <marker lat="22.6951" lng="90.3845" Device="ET700C" Index="4" /> <marker lat="22.5836" lng="89.9725" Device="ET700C" Index="5" /> <marker lat="23" lng="90" Device="ET700B" Index="1" /> <marker lat="24"
[jQuery] IE slideDown bad attitude!
Hello World! Can some one can tell me WHY the content of my div's disappear (IE ONLY) at the end of the slideDown/slideUp functions. See it in action: http://dev.residencia.ca/?site=projectadd (click on the blue H3's to expand and see the effect) I have no padding/margin in the main div as explained here http://jqueryfordesigners.com/animation-jump-quick-tip/ Every thing is 100% nice with FF / SAFARI / CHROME The js code; function AccordeonProjectAdd() { $('#menuProjectAdd div.ui-accordion-content').hide();
[jQuery] $.post using dynamic arrays
This may be quite simple for many, but I am stuck trying to make a dynamic $.post() where the request (post) variables passed are fed from a dynamicly changing array. /-- CODE --/ // just above this is a function that takes a url string and parses out the variables and store them in an assoc. array. This info will be used by the $.post(). url = "resources/java/community_rpc.php"; $.post( "/index.php", { run: url, ******THIS IS WHERE I WANT TO DO MY DYNAMIC ARRAY PASSING******* }, function(debug){
[jQuery] Trying to use serializeArray to send JSON to a .NET 2.0 Web Service
I am using serializeArray to send a form as a JSON object to a .NET 2.0 Web Service in C#. I am getting this error, prefix is the first field: responseText: {"Message":"Invalid JSON primitive: prefix.","StackTrace":" at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject() \r\n at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth)\r\n at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String
localscroll does not scroll
At the bottom of http://www.assaultinc.com I have setup a simple 3 image list that I want to slide when links are clicked. The problem is that when I click on the list items that are internal links localscroll doesn't scroll them, instead they just flash to the new image. As far as I can tell it is setup correctly, and all my other jquery scripts are pulled in just fine and are functioning but I cannot seem to get this working.. (Couldn't get coda slider to cooperate either. Here's my code $.localScroll();
[jQuery] Problem with .remove() in IE7
Hi, I'm using jQuery 1.2.6.min.js on an intranet application. I have a page that when loading, displays a "report loading" message with an animated gif. This report loading stuff is located within a <div> called "wait". When the document finishes loading, I want to remove this div. Here is an abbreviated form of my jQuery ready function: $(document).ready(function() { .... a bunch of code here unrelated to my div.... $("#wait").remove(); }); This works fine in Firefox 3 - the <div> is removed. In
[jQuery] Change user status with AJAX
I am sorry if this was posted twice! ----------------------------------------------------------------------------------- Hi, I have a list of users that I pull out of a MySQL DB. Some are "favorite" users marked with a star. Now I want to change the state "is favorite/is not favorite" quickly with a click on the star image, and the image should turn directly to its state yellow(is favorite) or grey(is not favorite). This is how the link and image looks like: <a href="{$user.id}" class="makeFavorite"
[jQuery] an example of a php response to ajaxForm request
Is there any special thing that needs to be done to reply correctly to an ajaxForm request expecting html back? I can get it to work with echoing back a jason array, but nothing I do will get just a straight text response to work. Do I need to send a "success" somehow, could that be messing me up? Thanks for any php fragments you might have. Jamie
[jQuery] [treeview] toggling a node from js
Hi! I'd like to expand some branches in a treeview. (It is basically a collapsed tree, with some brances opened). Can I do that from javascript? If I simply toggle the visibility, then the expander icon will be screwed up. thanks Gergo
Dynamic Checkboxes... Multi-select...
Hey all, fairly new with ajax here but have spent a lot of time on it so far. I love jQuery so far and am astounded by it's power and usefullness. Nonetheless im kinda at a loss right now. Here's what I'm trying to do: The client wants an occupation selection / selector based on checkboxes... They want it so that you can click on a checkmark box like IT then more will appear below it (indented) with for example Web development or Software engineering. Than after you click on one of those than you
Adding Classes to Navigation based on self.location
Hi all. I've just been passed this little snippet from a friend whose asking me the following questions? His navigation code is as follows :- <div id="mainNavigation"> <ul> <li><a href="index.html">0</a></li> <li><a href="index1.html">1</a></li> <li><a href="index2.html">2</a></li> <li><a href="index3.html">3</a></li> <li><a href="index4.html">4</a></li> <li><a href="index5.html">5</a></li> </ul> </div> and basically he wants to add a class to the page that is currently being displayed? I guess you
[jQuery] jquery scriptaculous conflict - jquery plugin needed
Hello everyone, I'm working on a website where scriptacolous is already in. In a particolar page I need a jQuery plugin (picker color: http://acko.net/dev/farbtastic). If I use jQuery.noconflict() the plugin does not work anymore. Is there a solution to this? Any advice would be appreciated. Andrea
[jQuery] Trouble with some onload function
Hey all, I'm using the toggle() function to show/hide some div with a form that I have here. Below that div there's another div, which is clickable and it's text alternates whenever the display of the above div is changed. All is working that way. The problem is that on some pages I need that div to start with display:block and not display:none (default). And when I define that, the text doesn't check for the div display upon the load of the page. That causes to when I set the div to start with display:block
[jQuery] - select multiple options - back to right position
<div dir="ltr">Hi Folks After read this cool article <a href="http://css.dzone.com/news/easy-multi-select-transfer-jqu">http://css.dzone.com/news/easy-multi-select-transfer-jqu</a> I add double click to move option between "select multiple" box. <script type="text/javascript"> function doubleclick() { $(".cat1 option").dblclick(function() { $(this).remove().appendTo('.cat2'); $(".cat2 option").dblclick(function() { var value = $(this).attr('value');
Newbie question
Hi all. I've looked through the jQuery docs and searched this forum, but haven't figured out the answer to, what is probably, a trivial question: How do you return (in this case for display in an "alert") the name of a tag that is clicked on? That is, if I have a .click(function()) linked to a particular DIV, or LI, etc how can I display an alert that says "You clicked on a DIV" (where "DIV" is retrieved from $(This) I would guess). Hope this make sense. TIA, Laker
[jQuery] AutoComplete and Validate
Hello, I am using AutoComplete which gets a list using JSon. Then I also have Validate to check if all values inserted are valid. This uses JSon true. What happens is when I am typing and the list is visible the input are also being validated. Is not possible to make the validate fired only when I select one item from the list or when I submit the form? Thanks, Miguel
Banner rotate when clicked. Help please.
I have 3 pictures that serve as navigation at the bottom of my page and a banner like graphic at the top. When you click a picture I want the banner at the top of the page to change, and the link to change with it. I'll link a picture that can explain this better then I probably just did. Also I don't know javascript, and the only thing with jquery I know is what I was messing around with. I'd love to learn javascript, but I have to get this done by tomorrow so I don't have time to learn anything
[jQuery] Autocomplete vs AutoComplete
http://docs.jquery.com/Plugins/Autocomplete/autocomplete ^ or http://docs.jquery.com/Plugins/AutoComplete/autocomplete ^ They both exist and both do much the same thing - they are separated only the case of a single letter, which is very confusing. For me the former (all lower case) is much more feature-complete and flexible. In order to avoid confusion I'd recommend standardising on one of them and dropping the other. My vote is for Autocomplete. Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/
[jQuery] jQuery animate question
I have this code: $('#boulder').animate({top: posTop += 20}, 'fast'); alert('ok'); Is possible to execute the alert function after animate is finished ? Because I see the alert box before animation happen. Thanks!
[jQuery] Bassistance AutoComplete. Strange Behavior ...
Hello, I have the following AutoComplete: $("#Tags", "form#Create, form#Edit").autocomplete("/Tag/Filter/", { autoFill: true, cacheLength: 1, multiple: true, mustMatch: true, scrollHeight: 200, selectFirst: false, width: 280, parse: function(data) { return $.map(eval(data), function(row) { return { data: row, value: row, result: row } }); }, formatItem: function(item) { return item; } }); When I select an item from the list the list does not close. Other problem is that the "," is not added automatically
[jQuery] replaceWith returns the replaced element
The replaceWith returns the JQuery element that was just replaced not the replacer. In the example below: $('div#old').replaceWith('<div>new</div>').html() The old div html is returned. Is there another set of commands that would replace and return the new element instead? Thanks, tchvil A working example below: - - - - - - - - - - - - - - - - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ TR/html4/strict.dtd"> <html> <head> <script type="text/javascript"
[jQuery] Superfish Navigation bar text color
Hi. Maybe I'm just dumb... hehe I'm using Superfish. I want to have the text on my nav bar be white and the dropdowns be a different color. I can't figure out how to do this Help! Thanks!
[jQuery] Question on a simple Accord Script
experienceascension.com/index.php/faq is the URL of the script. I can get them to hide and show, but I only want the NEXT answer (as in, only one) to show/hide at a time. However, they all hide/show. Any ideas? Thanks! <script type="text/javascript" src="http://ccooanswering.com/js/ jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $("a.forans").click(hideitems); function hideitems() { $(".answer").hide("slow"); } $("a.takeans").click(showitems); function showitems()
[jQuery] Question on a simple Accord Script
experienceascension.com/index.php/faq is the URL for the below code. Below is the code snippet. I simple want to hide the 'next' answer, but it hides all of them. Not sure why.. Any help? Thanks! <script type="text/javascript" src="http://ccooanswering.com/js/ jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $("a.forans").click(hideitems); function hideitems() { $(".answer").hide("slow"); } $("a.takeans").click(showitems); function showitems() { $(".answer").show("slow");
[jQuery] mousedown, mousemove, mouseup
below is the jQuery code that I am writing to draw a simple box on the screen. When I depress the mouse ('mousedown') it sets the box's initial position. As I drag the mouse ('mousemove') the box gets redrawn from the initial position to the new point. When I release the mouse ('mouseup') it is supposed to then create a div that draw a box. The problem that I am having is that if I update 4 css parameters in the mousemove handler the mouseup bind gets ignored. If I only update 3 of them, the moveup
[jQuery] [SimpleModal] Modal dialogue not showing
If I just do a simple: $.modal("Test"); I can see via FireBug the modal gets added to the page. Here's the HTML: <div id="modalOverlay" class="modalOverlay" style="opacity: 0.5; height: 100%; width: 100%; position: fixed; left: 0pt; top: 0pt; z- index: 3000; display: block;"/> <div id="modalContainer" class="modalContainer" style="position: fixed; z-index: 3100; display: block;"> <a class="modalCloseImg modalClose" title="Close"/> <div class="modalData" style="display: block;">Test</div> </div> But
[jQuery] expand jQuery.each() to handle name/index "with args" in callback function.
/ ********************************************************************************************************************* * * the extened function * **********************************************************************************************************************/ // args is for internal usage only each: function( object, callback, args ) { var name, i = 0, length = object.length; if ( args ) { args.unshift("","") ; // inert placeholder if ( length == undefined ) { for
[jQuery] Plugin development "handler is undefined" ?
Hello, I'm trying to build a re-usable plugin for a current project and I'm getting strange errors in the Firebug console. At one point I was seeing "G is undefined", which didn't effect the function of the plugin itself, but it was there nonetheless. Now when I have two instances of this method running on one page the second seems to break and I'm thrown a "handler is undefined" error in the Firebug console. Here's a minimal test case: http://work.kevinleary.net/Help/hoverContent.html Any help on
[jQuery] .click stops trigger after clicked once.
Hi, I'm new to JQuery and have a problem with a .click function that stops working after it has been clicked once. My page looks similar to this: <div id="maindiv"> div id="row_1"><a class="expandlink"..></div> div id="row_2"><a class="expandlink"..></div> div id="row_3"><a class="expandlink"..></div> </div> <!-- end maindiv --> When page is first loaded maindiv is populated by an ajax call. Then if the user clicks any of the rows the selected row_n div is replaced with data from another ajax call.
[jQuery] How to load JQuery Cycle script first/quicker?
I have made a website (www.outback-encounter.com) where I am using the JQuery cycle code for the rotating images in the header, and the problem is that the images load first and fill up the screen before the javascript function loads which then puts them all together into the slideshow header. You can often see this by going to any new page or reload the existing one. It is not so much a problem in Google Chrome browser since it handles javascript much faster, but standard browsers show the header
[jQuery] loading content from another page
Hello, I'm very new to jquery so please forgive me if my question is very basic. Oh, and if it has been answered before, please be so kind and point me to the right direction. OK so I'm using the nyroModal plugin : http://nyromodal.nyrodev.com/ I've implemented it just fine on the customer's page: http://www.hyponetwork.de/index.php?id=84 (click on "RÜCKRUF-SERVICE") the nyroModal opens with a contact form. Now, back on page: http://www.hyponetwork.de/index.php?id=84 if you click on the image next
[jQuery] Can't access html content of object tags
I'm exploring/hacking some ideas today that I've been thinking about over the weekend. Please don't recommend using the jquery.load and other built-in applications for this. I know about them but that's not what I'm working on. I'm loading an for an RSS feed into an <object> tag: <object id="content" data="rss.xml" type="application/xhtml+xml"></ object> This loads correctly. However, I'm trying to access the html/xml content of the object. This code works if I wanted to read the contents from an
Next Page