[jQuery] url of ajax response?
I make a request with jQuery.ajax(), to which the server responds with "302 Found" and a "Location: ..." header A second request to the new URL is then made automatically In my JavaScript, I need to know the new URL, but can't figure out how : ( I don't think I can get the value of the "Location: ..." header because XHR getResponseHeader() doesn't return headers from the first response, only the second I tried listening to onreadystatechange, but at no point did getResponseHeader() return the "Location:
append error msg to label
Hi, i'm very new to JQuery.I really need help: I have a form.I need to display an asterick next to the label if field is not validated and remove it if input it valid. It's appending , but as many as wrong characters are typed in and removing all asterics at once from all invalid fields This is what I'm doing now: function validateHighlightError(element) { $(element).addClass('failed-validation'); $(element).prevAll("label").css('color','#FF0000').append('<span class="msg">*</span>'); } function
[jQuery] how to paste image into a web app
I have a web app (front end jquery, backend django) that allows users to type commens into a text area. My users are asking for the ability to cut and paste images into their comments. They want to use an windows app called mwsnap to basically snap images from their desktop, then ctrl-v to copy the image into my django app. Does anyone know what sort of client side support is needed to do this? I am fairly adept at jquery/javascript, but haven't seen anything like this though it does seem like a
[jQuery] Ajax example needed
I am struggling with ajax and jquery. I wonder if someone could point me to a simple yet comprehensive example of getting rows from a mysql database and displaying them in a html table. Using php on the server and jquery on the client. Thanks, Jim
scrollTo alternative
I have a div that is larger than the window. I want to move the scrollbar without triggering a scroll event. So basically i want to achieve the following without triggering a scroll event: <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Test</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){
Creating bbCode-like functionality with jquery
I've been trying to find out if jQuery has any functionality that can help me with creating bbCode style buttons (ie, like on this forum, click B and a [ b ] tag appears, second time creates a closing, or if you have text highlighted, it wraps it). I've tried Google-ing a lot, and randomly found this forum. I found/modified code using standard javascript a while ago, (http://rhovisions.com/rvCode.js) but I'd like to find out if jQuery has any funcionality that can help, mostly to learn.
JQuery Developer Position
Good morning all. My name is JS and I am an IT Recruiter in the Toronto Canada area. I came across your forum while searching for some people and was wondering if anyone might be able to point me in the right direction. I am looking for 5 JQuery developers with experience developing plug-ins/components from scratch as well as integrating into 3rd party software. This is a 2 months contract and requires these people to be in the Toronto area for the first 2 weeks, after which they can work remotely.
Populate select box
Hello everybody, I am trying to populate a select box with the help of jquery php and mysql. Goal is to let the user select a province which then returns a select box with coresponding cities. Now I am stuck. Here is what I am doing: On select of province I pass the name via jquery to a php script that queries the db and from there on I am lost. I am able to alert the data via alert($data); But how could I now populate the select field? Here is the code I am using: function load_area($id){
Post and get back result
Hi, I need to update data using asp , I want when user click on image the data will update and image change. or when click on delete the data will delete and this div update. is it possible with jquery and Ajax ?
Event bubbling
Hi, trying to organise some code on a large project i'm doing which changes alot of code around the page with submit forms. As jQuery doesn't have a live support for submit elements i thought i'd try my hand at event bubbling. It works nicely in firefox but isn't working at all in ie so i thought someone could give me a pointers. $('#data').submit( function(e) { /* When a edit form is selected */ if (e.target.className == 'edit_link') { //ajax request } }); i have a div with an
[jQuery] Problems with Ajax and caching
Hi! I'm creating a ajax call like this: jQuery.ajax({ url: "http://urltopage/?callback=callbackhandler", dataType: "json", type: "GET", cache: true, callback: null, data: null }); I then have a callbackhandler function like this: function callbackhandler(data){ do something here } The response from the server is actually a json-p like "callbackhandler (myjsonobject)" but I'm using this type of ajax requst to be able to use client caching. If I use $.json() the request will get a "? callback=randomstring"
Trouble with JSON results - not working as expected
The client is using Godaddy free hosting. There is an ad banner, and I think that's the problem. But here's what's happening. I send a ajax request to a page $.getJSON("/libs/ajax_get_page.php",{id:id},function(data) { $("#wide").html(data.wide_col); }); which works, it goes to the page and returns results as I'd expect, but here's what I get. {"wide_col":"<img src='\/images\/artist.jpg' alt='The Artist' \/>"}</iframe></noscript></object></layer></span></div></table></body></html><!--
[jQuery] Swaping background image error only in IE7
hi i have anerror when i try to swap background images, it works fine in firefox, safari, opera but in IE7, i get this : Line : 907 Char : 30 Error : Invalid Argument Code : 0 URL : http://localhost/mixen/www that happens as soon as i move my mouse over the image to swap it. my jquey code is imply two line changing the background-image property in my css : $("#shoutbox_title .ico2").mouseover( function(){$ (this).css({'background-image':"url('ico/ico_shout_o.gif');"})} ); $("#shoutbox_title .ico2").mouseout(
[jQuery] clockpicker plugin doesn't show
I've inherited some code that uses the clock picker plugin however it doesn't seem to work in IE 8 and Firefox 3.5. This is the code for the picker. $('<img/>') .attr('alt', 'clockpicker') .attr('src', '/community/tournamentsystem/images/clock.png') .attr('class', 'ui-datepicker-trigger') .attr('id', 'start_date_clockpicker') .insertAfter('#id_start_date_1') $('#start_date_clockpicker').clockpick({ valuefield: 'start_date_1', military: true,
Post request to JSON won't fire again?
I'm having a bit of trouble understanding why my JSON won't return to me twice in a row. I have a button that I press, it returns a list of links to me and enters them into a box. When I hit 'close' it removes all html from that box to 'hide' it and in theory when I click on the button again it should give me the list of links again (which if there's new links it should update). The file I'm calling is php and returns a JSON string that I parse further in the function. function post_link(url,
[jQuery] Please help me..Its Urgent
Hai friends, In my project i have implement jQuery using auto complete and some other UI functionalists.But i am facing a big problem in our project ie, with out internet all jQuery functionalists cannot working..I had find out the exceptions.... Whenever accessing the jQuery functionalists directly accessing the google API through google sites. The main problem is all jQuery functionalities need for one of the external google api scripts as follows. <script type="text/javascript" src="http://www.google.com/jsapi"></script>
[jQuery] superfish xml again
I'm having install superfish problems, says the xml is missing. I found this post: "I'm a newbie and can't install the zipfile superfish 1.4.8 using the joomla install function. I keep getting an error message stating that the xml.....is missing. Do you have any suggestions how I might be able to install this file?" But not the reply. ... So, please, where can I get the xml file?
[jQuery] jquery.com plugin directory
Is it just me or does anyone else have the hardest time finding plugins on the jquery.com site? jquery is an awesome library and I do not plan on using anything else anytime soon but the manner in which they catalog plugins on the site is terrible. I know these guys are capable of much better. Ok so you can choose a plugin category but then everything just runs together on that page. The content displayed for each plugin varies wildly depending on how generous the plugin developer was when they added
[jQuery] Synthax problem
Hi everyone I have a problem with the use of an ajax call in a function. I want to get the result of the ajax call for processing to the return of the function. I've tried something like that function checkUsername(s) { TO_RETURN = $.ajax({ type: "POST", url: 'http://'+ CURRENT_DOMAIN + '/ajax/checkUsernameExists/ username/'+s, async: false, success: function(msg){ if(msg=='true'){ return true; } else { return
[jQuery] toggleClass with Duration
Hi, I used toggleClass method to toggle the colors of my message when the user clicks a button. toggleClass() worked well if I didn't specify any duration i.e. instanteous switch from white background to red background. The problem arises when I added a duration of ,say, 2s. If the user clicked the button before the message has reached the final state (say the user clicked the button 1s after the 1st click), clicking the button will not revert the message to its original state i.e. white background.
[jQuery] slow performance on this site - any suggestions?
I built a site for a client and somewhere along the line, I added some code that slowed down the jQuery performance. I thought it was my crusty old laptop, but my brand new quad core PC also shows the animations quite slowly and choppily. Thus, the problem is with my code. tO MAKE IT MORE Here's the site: http://beyerhomes.com The accordion that displays the various panels is kinda slow, the slideshow is pretty choppy, and the lightbox is also quite chunky and un-smooth when it transitions between
[jQuery] Secure login
<div>Hi all, </div><div> </div><div>I would like to implement a login functionality to my website. I've written a login form like this: <a href="http://web-kreation.com/demos/Sliding_login_panel_jquery">http://web-kreation.com/demos/Sliding_login_panel_jquery</a>.</div> <div> </div><div>The problem is: how can I send the username and password to the server in a securely way? I mean, if the server sends the whole page in HTTP then the user wants to log in, he would not be able to send it in HTTPS,
[jQuery] Inline Datepicker Help
I have an inline datepicker on my page...I need two things: 1.) I've implemented the onSelect method, but what I really want to do is do a non-modal popup for the user to see what calendar events from the database that are on the date selected. I've worked out all the database and json parts, but now I need to make the popup near the calendar. I'm surprised that there isn't any mouse coordinates passed to the onSelect function. Anyone ever attempted something like this? What I'm looking for is something
[SOLVED] find the row nuber clicked of the item list
Hello I'm just a starter and I'm looking for a function I can't find. What I want: I want the row number of the row i clicked of the item list. For instance I click on third row then I want that var i returns 2. My code: <html> <head> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("ls").click(function () { var i = $( what must i type to get the clicked row number here??);
[jQuery] find the row nuber clicked of the item list
Hello I'm just a starter and I'm looking for a function I can't find. What I want: I want the row number of the row i clicked of the item list. For instance I click on third row then I want that var i returns 2. My code: <html> <head> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("ls").click(function () { var i = $( what must i type to get the clicked row number here??); console.log(i); }); }); </script> </head>
JSON - Page contents auto update with jQuery or AJAX
Hi, I have a requirement in which the contents of the page should get updated automatically. I am using jQuery in my application. After googling I found that 'JSON' can be used for auto update of page contents. In detail, the scenario is Each row of the page should get updated automatically for each AJAX call. I don't know how to do that. Can you help me on this please? Regards, $astha L
[jQMinMax] plugin problem with jQuery 1.3.2
Hi, I have still to support IE6 and developping applications means min-/max-width is often required. Therefore I used actually the jQMinMax plugin to make this work in IE6. Unfortunately this plugin is not working anymore with jQuery > 1.2.6. There seems to be a selector problem. Does anyone know how to fix the current plugin to get it work with 1.3.2? >> http://davecardwell.co.uk/javascript/jq ... ry-minmax/ Many thanks T.C.
[jQuery] clone and append elements across window in IE Bug
I have a parent window. The parent window creates a child window. I then want to clone an element from the parent window, and then append the clone to the child window. I can get this to work in Firefox, but not in IE. I hear that IE has some restriction where you can't move elements across documents (i.e. across windows or frames). Can someone suggest a work around or shed some light to this? Thank you.
[jQuery] history plugin in IE6 calls two links on using backbutton
I don't know if this is an error in the plugin or in my implementation. (This plugin could use documentation on how it functions) Using plugin: http://plugins.jquery.com/project/issues/history I have a program that creates a form divided into various pages. Each page is denoted with a specific hash, except for the first, which has no hash. I have set it up to move from page to page using either the "back" or "continue" buttons on the pages, or using the forward and back buttons of the browser. The
[jQuery] Click multiple times, different states, saves different data to DB (confusing?)
I've got one for ya, JQuery and Ajax. I want to have a button image, let's stay it's inactive state it's a grey circle, when someone clicks it once, it'd change to a blue circle (update associated DB field to "blue"), click it again and it becomes a red circle (update the DB field to "red") and so on. So users keep clicking until they get the right color, then move on to the next one. I've seen something similar in Google where you can star emails with different stars. Any idea how you'd do this?
[jQuery] Drag 'n Drop plus hover on drag?
I have a simple drag and drop completed and works well. Next I would like be able to trigger a hover event when dragging over items I have already dropped into the drop area. So far I can only get the hover to work onmouseover, not while dragging an item. Here is what I am trying: $('#dropArea').children('div').each(function() { $(this).bind('mouseenter mouseleave', function(e){ $(this).toggleClass('placement'); }); } It seems as though when dragging an item it blocks other event calls? Dose this
Architectural question
I'm getting ready to start on a fairly large project and I'm not quite sure which approach I should be taking. This is going to be a music library site where a music supervisor would log in and browse the available songs using different criterial to filter the list. Right now the data is in an iTunes XML file and will probably remain there as the master offline copy that is maintained by the composer. I'm just getting into jQuery but I'm thinking that it might be a good solution for this. I'm thinking
SOLVED: Confusion about displaying dialogs from within tabs
(I have tightened up my original example) I'm trying to invoke modal dialogs from within a tabbed UI, and I'm confused about the behavior I'm seeing. The first time I display the UI, my dialog behaves as expected, I can pull the data out of the fields, everything's wonderful. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Tabtest 2</title> <link rel="stylesheet" type="text/css" href="js/css/smoothness/jquery-ui-1.7.2.custom.css" media="screen"/> <script type="text/javascript"
[jQuery] Find the first element outside (this)
Hello, i am having problems with finding the next element after (this) here is the html <tr> <td class="one">Name</td> <td class="input"><input type="text" /></td> <td class="info"><span style="display:none;">the help</span></td> </tr> <tr> <td class="one">Uname</td> <td class="input"><input type="text" /></td> <td class="info"><span style="display:none;">the help</span></td> </tr> i am trying to display the span element when i click the input.. here is what i got so far: $("input").focus(function(){
[jQuery] Using XML to store a large amount of data...
I might be considering XML for a job that would be better accomplished with a database, but I'd like to make sure. What I'm trying to do is use jQuery to call specific items from the XML - so if the XML is composed of hundreds of <label> items, I want to call just one, with a <name> tag inside whose value matches the 'query'. I hope that makes sense. I don't want to just call all <name> items, but rather one of the hundreds of <label> items at a time. Let me know if that's nonsense or otherwise!
jquery dragabble copy box
hi, i want to use jquery dragabble api and i want to use copy(clone) box(item). so, drag item and move item and then drop.. so, i want to now have two items. can some1 help me ? no only helper: 'clone'
[jQuery] IE7 not loading jquery in WP
jquery isn't loading right in IE 6 & 7 on http://centermassshootingschool.com/ you can look at the source code, but essentially this is where the problem is ... <script type="text/javascript"> $(document).ready(function(){ $("#tabs").tabs({fx:{opacity:'toggle'}}); $('.slideshow').cycle({ fx:'fade', speed: 4000, }); }); </script> when you take away $('.slideshow').cycle({ fx:'fade', speed: 4000, }); then everything works fine. It works fine in all other
UI DatePicker ShowButtonPane Today
I am trying to enable the jquery UI widget datepicker, and the option: showButtonPanel: true This works, and I get the button panel, but when clicking the button `Today` which is supposed to put today's date in the datepicker field, nothing happens. Do I need to bind this event manually? Even the jquery datepicker example doesn't do anything. Here is their demo: http://jqueryui.com/demos/datepicker/#o ... uttonPanel Thanks.
[jQuery] Social media plugin
I've visited this site(http://www.intomobile.com/2009/10/09/hands-on- the-nokia-n900-at-ctia-fall-2009.html) and there is an interesting feature to spread the link in social sites like facebook, twitter and others (just point your mouse to the article image). I've found that the effect is provided by the Meebo site. Is there any jquery plugin that do something similar to the linked site above? Thanks in advance.
[jQuery] Get file specific parts from input file type
Hi,<div> </div><div>I need to get the filename, basename, dirname using jQuery. Can anyone please let me know if there is any utility that will take care of windows/mac/linux file paths.</div><div> </div><div>Thanks</div>
Next Page