[jQuery] AJAX not working
I am having trouble with AJAX: In document ready i have: $.post("test.php", function(data){alert('Success');}); and test'php is just <?php ?>...the alert never comes up This is just a test... In addition to the callback not working, when the php file updates a mySQL database, those updates are never made. Why could this be? I'll put all my js code below: id=0; p1uid = 0; p2uid = null; multiplayer = false; diff=3; p1=true; lock = false; intID = 0; cash = 500; hisCash =
[jQuery] jquery ajax post not working
I am trying to use ajax post to simply send a form field to php and return it to a div Here is what I have $(document).ready(function(){ $("#addLinks").submit(function() { $.ajax({ url: 'addLinks.php', type: 'POST', data: {url: $("#url").val(),title: $ ("#title").val() }, error: function(){ alert('Error adding link'); }, success: function(data){ $("#contentcol4").append(data); } }) }); }); the php file contains <? echo $_POST['url'];?> i keep getting a error of This XML file does not appear
[jQuery] jQuery Cycle Plugin: 'Cover'ing random width slides from the right
Hi, I have been trying to get a certain effect using the jQuery.cycle plugin but have falied miserably. Similar to the top example on this page: http://www.malsup.com/jquery/cycle/cover2.html I want to cover the images from right to left. The only (and substantial) difference to the example is that my images do not have the same width. As much as I can see, the plugin always relates the transistion effects to the 'left'. I want the images to always relate to the right, i.e. the left side will change
[jQuery] [jqModal r13] Closing a nested modal causes IE6 bleed-through
Hello, I am encountering the following situation with jqModal r13 and elements "bleeding through" in IE6 after spawning and closing nested modals... I open a modal in IE6 that has a partially transparent overlay. This looks and works great! I notice that all the <select> elements behind the overlay become invisble, which I am guessing is a necessary solution to the bleed-through problem. However ... If I spawn a second modal on top of this first modal and then close this second modal, the <select>
[jQuery] jScrollPane and IE 7
Hello there everybody I'm having some strange issue using the latest version of JScrollPane with IE7. The problem is that it seems that the .holder div goes right after reinitialising the jScrollPane and the scrollbar's width is decreasing. On Firefox, the script is working fine. Here is an example page: http://dev.phelios.org/sonia/index2.html The buttons "Home" and "Recrutamento" are the ones that actually have some content in them. Thank you for any help you can provide. Regards Pedro
[jQuery] treeview context menu
Has anyone had any luck creating a context menu for the tree view? I am having the tree open up and populate a form when a node name is left clicked and I want to be able to have "delete and add" functions for the context menu when a node name is right clicked? I'm hoping to hook up these events to ajax methods (I've used ajax pagemethods (asp.net) before but not with the tree view) . Thanks for any info. -- View this message in context: http://www.nabble.com/treeview-context-menu-tp18410487s27240p18410487.html
[jQuery] [autocomplete] INPUT/SELECT hybrid (show all results?)
Eventually using the autocomplete on this project will be the fastest way to maneuver. At the beginning, however, users won't know all of the options available. What I'd like to do is offer a "drop down" of sorts showing all of the options available. If the user already knows the option, though, I want them to be able to start typing and use the auto complete. My though was that I could use .search() to force autocomplete to search on a blank or on a wildcard, but I don't see that in the demos or
[jQuery] Extra AJAX calls being made
I'm working on an app that uses Jquery and the BlockUI plugin. An odd problem I'm having is that there are extra ajax calls being made. For every Ajax call I make, and the number of calls made increments. In other words, the initial ajax call is made by clicking a button in a message I display with BlockUI. The next time the message pops up and I click the button, TWO ajax calls are made instead of one. The next time, three, then four, then five, and it continues to increment every time. Any idea
[jQuery] jQuery works in one place but not another
I'm observing some strange behavior with jQuery 1.2.6 today. I've got this in my <head> <script type="text/javascript" src="/scripts/jquery.js"></script> <script type="text/javascript"> $(document).ready(function () { alert('this works'); }); function showFilterCalendar() { $('h2').fadeOut('slow'); // don't follow the link return false; } </script> When the page loads, I get the alert box saying "this works." However, when I click a link like <a href="#" onclick="javascript:return showFilterCalendar()">test</a>,
[jQuery] [autocomplete] tab issue with autcomplete plugin
Jörn, have you made any progress on the TAB issue with the Autocomplete plugin? ie: If you in that field and tab away - you loose your tab order. I know it came up in the comments on the plugin page but I haven't heard any more updates on it... Thanks, Jim
smooth diagonal scrolling
Hi, I would like to diagonally scroll to a div inside an owerflowed element. Like this http://melissahie.com/. I've already found something similar at http://flesler.webs.com/jQuery.ScrollTo/ but cannot find a simple tutorial for achieving this king of effect. Thanks!
[jQuery] jQuery Cycle Plugin: Showing next Slide when loaded
Hi, Similar to this example http://malsup.com/jquery/cycle/add4.html I would like to know whether it is possible to only transition to the next slide when this is loaded completely. This is useful when a large amount of images are part of the slideshow. Thank you for your comments juro
[jQuery] How to create a dynamic parameter in getJSON url?
How do I add a dynamic parameter in getJSON url? [code] function onSelectChange(){ var whatChecked = $("input:checkbox:checked").val(); $.getJSON("select.php", {whatChecked:"somevalue"}, function(json) { ...stuff to do } [/code] I want the url that getJSON uses to be dynamic and look like: select.php?whatChecked=somevalue for example select.php?carType=compact I can get the somevalue, no problem, but I can't figure out how to make whatChecked be the value eg carType and not the word whatChecked!
[jQuery] jqmodal and jquery ajax request on the same page
I have one jqmodal window with ajax source (and ajaxText 'waiting' message), and one div with form- with ajax onSubmit. When I click on a link to show my modal window, my dynamic div is also updated with its own ajax-'waiting' message. How can I make this two independent? Below is my script for form submitting: function finishAjax(id, response) { $('#'+id).html(unescape(response)); $('#'+id).fadeIn(); } function SendcForm(){ $('#contactform').ajaxStart(function() { $(this).html("waiting html"); });
[jQuery] Button Click
Hello, I have a button which redirects to a page: <button class="Cancel" type="button" onclick="location.href='/Tag/ List?page=1'" id="Cancel">Cancel</button> Should I remove the onclick from the button and do this with JQuery? And how can I do that using JQuery? Thanks, Miguel
[jQuery] send dynamic variable via ajax post in flexigrid
I have a php file that gets a variable from another file: [code] $gameno = $_GET['gameno']; [/code] At this point, the $gameno is correct, because I write the value to my error log. The problem comes in where I need to use this variable to display data in a grid. I want to send the variable via the url variable. This variable will be used in the WHERE clause to get data from a mysql db: [code] $("#flex1").flexigrid ( { url: 'post2.php?"gameno="+gameno', dataType:
[jQuery] Trouble using .Click() inside of an object definition
I'm in the middle of building a form wizard and I've run into a problem with one of the object's methods. The object sjm_wizard is supposed to allow you to traverse a set of divs one div at a time. The problem is that I can't figure out how to call the object's methods within .click(). The scope is such that I can't just call this.turn() or this.update(), and when I try to use .call(whatever) to change the scope it will run through the .click()s when the page loads and then stop working. Here's the
[jQuery] Traversing XML via jQuery
Hi folks, I'm a jQuery newbie and I'm trying to traverse a XML given by a PHP script to get information for organizing them and displaying them on my page. Here's a kind of my XML: <?xml version="1.0" ?><book><isbn>0156001314</isbn><isbn>015603297X</ isbn><isbn>0847829863</isbn><isbn>0847826465</isbn><isbn>0151013519</ isbn><isbn>0156029065</isbn><isbn>015601159X</isbn><isbn>0810959054</ isbn><isbn>0156032392</isbn><isbn>3829601867</isbn></book> and here's my code: $("document").ready(function(){
[jQuery] This chain works in Firefox but not in IE6?
Any idea why the following chain does not work in IE6, but works in Firefox: $new.append("<span>").children().attr("class", "folder").append("<fieldset>").children().load("?leaf_type=" + leaf_type, function () { $(this).parent().find("#addtreeform").ajaxForm(add_options); }).append("</fieldset>").append("</span>").append("</li>"); where $new is a JQuery object. IE6 does not report a Javascript error, but the load is not performed. I solved it by having the Server do most of it, shortening the JQuery
[jQuery] internship with a programmer - wanna work for free to learn
Hi I am trying to find some one to be my mentor and teach me programming as I work. I am a novice and dont have a formal education in programming but I do have some skills. I am actively reading these days but that leaves a void in learning. I am in new orleans right now. I am not sure how much time I can devote with my job I will ultimately leave my Job when I start to grasp things well and do it full time. I am MD by education and against resistance of my near dear one's I have decided to go into
[jQuery] UI/Effects/Transfer
okai sorry if this is a duplicate but my machine acting weird... so my question is UI/Effects/Transfer plugin only transfers the outlines , is there a way to transfer an image ? even if it is using a different plugin ?
[jQuery] trying to build function to ajax submit form and ajax load
Hi there, I am trying to build a function getcart(); that submits the form when clicked through ajax. The form is sent in GET format to cart.inc.php and turns the GET into SESSIONS and does math. The problem Im having is the variables are never making it to cart.inc.php. I think it has to do with my javascript function not sending the data. Any help or a push in the right direction would be helpfull Ill post my code below Heres the page im working on http://worcesterwideweb.com/topnordic/ and heres
[jQuery] UI/Effects/Transfer
hey guys , just quick question , I am trying to transfer an image not an outline .. is that even possible ?
[jQuery] about for loops
This is a question about the jquery code. I see many times this type of statement *for (var i = 0, j = array.length; i < j; i++)* and want to know why is better than* for (var i = 0; j < array.length; i++) *Because the first statement has more characters and jquery code tends to see shorter, I think that there is some reason to do it this way. Maybe the second part of the for loop (the comparation) is done on every iteration? Thanks.
[jQuery] slideDown hidden portion/bump
I don't know why it does this. I am experiencing hidden content (the username label) until the animation is complete and the "bump" occurs. See it for yourself http://nunyez.googlepages.com/slidedowntest Help appreciated
[jQuery] simple IE$ src img updating
hi, a very simple question related to ** IE$ behaviour. I have a very very simple jquery function to change the src of images; after applying it, while in Firefox works and shows the img, IE$ gets the new src (using firebug) value but doesnt update the image... some reason? thanks! Pere -- View this message in context: http://www.nabble.com/simple-IE%24-src-img-updating-tp18403118s27240p18403118.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
attaching ajaxError
hi very, very new, so apologies in advance. i want to grab some JSON using getJSON, and i want to be able to tell the difference between an ajax error and returning no JSON (in this case, no JSON would mean no results, which is fine). so, for example, i'm doing this: var url = "json.js"; $.getJSON(url, function(data){ if(data.length){ console.log("you have " + data.length + " results"); }else{ console.log("you have no results"); } }); that works fine, but i delete json.js (for
[jQuery] jquery and comet long polling problem with IE
hello, I wrote a comet servlet, and this is how I get the data into jquery: function pS() { $.ajax({ url:'tS', type: 'GET', timeout: 100000, complete: function(xhr, status) { alert(status); if(status==='success') { if(xhr.responseText==='success') { $('#st_a').text(xhr.getResponseHeader('X-A')); $('#st_b').text(xhr.getResponseHeader('X-B')); $('#st_c').text(xhr.getResponseHeader('X-C')); $('#st_d').text(xhr.getResponseHeader('X-D')); } pS(); } else if(status==='timeout') { setTimeout(function(){
[jQuery] jQuery animate performance help...please!!!
hi all, i'm relatively new to jQuery and the world of javascript but since i've started using it it's opened up a huge amount of possibilities that i'm know everyone has encountered!! anyway, i was hoping that someone with a bit more experience and knowledge could help me out and possibly take a look at something and see why the performance of this particular animation is so badly affected, as it is the same function/animation that is used on other pages of the site and that works really smoothly.
[jQuery] [ Add Onclick on loaded image ]
Hi, I am using jquery to load image with ajax. $("#thumbnail").image(returData,function(){}); $.fn.image = function(src, f){ return this.each(function(){ var i = new Image(); i.src = src; i.onload = f; this.appendChild(i); }); } How can i add onClick element inside those image ? I really dont have any idea how can i pass parameter from $("#thumbnail").image(returData,function(){}); to the function loader. Just starting with jquery here, help will really appreciated Thanks,
[jQuery] Safari 2 Mac - loads of problems!
I've been working on a site that is really heavy with jquery stuff, but have found it almost impossible to get even pretty basic stuff working in safari 2 on a Mac. The development site is at: http://dev2.drfoster.co.uk/ the scripts I've written are at: http://dev2.drfoster.co.uk/script/hg-functions.js & http://dev2.drfoster.co.uk/script/graph.js, and i'm using jquery v1.2.6. The graphs & all the page functions work as intended in all the browsers I need (ie6 + win, firefox 2+, safari 3 mac, safari
[jQuery] Editable SELECT element plug-in?
Would anyone happen to know of some in-place editable plug-in for SELECT elements similar to http://code.google.com/p/jquery-jec/ ? Jquery-jec doesn't only allows me to add a new item into the select box, but not to edit "fixed options". Thanks.
[jQuery] Comparison of jQuery Multi function Table Plugins : that filter rows, sort column /s and Paginate Records Pagination and allows in place editing
Hi, There are couple of jQuery Plugins that sort, filter and paginate the table ... http://plugins.jquery.com/project/ColumnFilters http://plugins.jquery.com/project/tablesorter http://motherrussia.polyester.se/jquery-plugins/tablesorter http://tablesorter.com/docs/ http://plugins.jquery.com/project/tableFilter http://gregweber.info/projects/uitablefilter Obviously Confusing to choose amongst them , isn't it ?!!... If someone has worked on / with any of these plugins, request you to share your experiences
[jQuery] Plugin: How to access the ID in a Non-Objekt?
Example: I call a function in a Plugin like this: $("#someElement").jActual("update"); in the Plugin i do the following: this.html("hello"); Thats no Problem, but how can I get the id (in this example: someElement) of the Element if this not exist? if(this.length <= 0){ //how to give me the id of the NonObjekt? }
[jQuery] HTML Parsing issue
Hi, I noticed JQuery does some clean up while appending html to an element. This is a problem for me, because I'm trying to use a text area which gets loaded with a soap request. My soap request looks like this. <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:echoInteger soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
[jQuery] SVG animation question
I am the amazing jQuery SVG plugin with the animation extension for a browser-based game. When the character walks around, the camera follows him. Right now I just pan the in huge chunks with this code: svg.configure({viewBox: x+' '+y+' '+width+' '+height}) So I need to make a custom animation. Here's what I have so far. jQuery.fx.step.panX = function(fx) { fx.elem.setAttribute('viewBox', fx.now+' '+y+' '+width+' '+height) } svg.animate({panX: x}, 100) As you can see, it only works for the x-axis.
[jQuery] Vertical Accordion Navigation Bar!
Has anybody done something like the vertical navigation bar to be seen on http://www.sitepoint.com/article/css-animation-technique ? You elegantly widen the middle column by pushing back the left side column. Great effect. Any suggestions? Thanks!
[jQuery] Cycle Plugin, depth, and IE
Running into an issue with IE and the Cycle Plugin where the items that I have cycling are showing up over the dropdown menus I am using. Example: http://visitgrandrapids.org/visit.php hover over "GR Links" and see how the menu shows under the news sentence, and under the "hot happenings" items. Any ideas?
[jQuery] [validate] jquery.delegate.js is missing?
I should just explain that I'm very new to jQuery. That out of the way, I have downloaded the validation plug-in which states that jquery.delegate.js is required. It is not included within the package, so where can I obtain it from, and once I have it how should I include it within my project? Thanks, Jez
[jQuery] Quick question
I want an id on a page I'm developing to get bigger if a certain condition is met, however, I can't get the code to work... can anybody fix this up for me? $(document).ready(function(){ if(document.body.offsetWidth > 1024 ){ $("#wrapper").css(function() { $(this).animate ({width: "1024px"}, 1000); }); } }); this is my first time really working with jQuery, so any help would be great. Thanks! P.S. the code works fine without the if(...) and with .click instead of .css, but i want it to be automatic.
Next Page