[jQuery] selectors in $.post return with HTML context
I'm having trouble using a subsequent selector on an HTML page returned from $.post, while trying to write a Ubiquity command. If I log or display ajdata, as returned from the $.post, it contains the HTML page, as expected, and shows up as a jQuery object in Firebug. What I want to do is use a jQuery selector to extract a named textarea within the returned HTML, so I plug in the object as the context and provide a selector, as below: jQuery.post(updateUrl, updateParams, function(ajdata) { CmdUtils.log(jQuery("textarea[name=cloudsource]",
[jQuery] View a page in flash
www.gamesflash.zip.net
[jQuery] autocomplete on cloned inputs
Hi, i'm using Jörn Zaefferers autocomplete plugin. Is there a way to make it work on cloned input fields? Thanks! BR
[jQuery] File Upload
Hi, Does anyone knows how to style and input of type file with JQuery? I want to use an image as the button or maybe a simple normal input styled with CSS. I also want to style the input where the path is ... I want it to have a grey background and no border. Any idea of how to accomplish this? Thanks, Miguel
AJAX Get/Post Functions being weird
I'm trying to build two functions for easily calling AJAX through JQuery. They both currently work, the only problem is that the .post method function will show the 'loading' message, and the .get will not. Any ideas on what I'm doing wrong here? // LOAD CONTENT VIA AJAX GET ######################################################### function ajaxLoad(url,containerid,loadmsg) { $.get(url, function(data) { $('#'+containerid).ajaxStart(function() { $('#'+containerid).html('<div
JQuery Vs. Mootools...
Hey, I have been looking into which JS framework I should begin to develop in. First, i stumbled upon mootools. I found it really bad ass! I had no idea what Jquery was. Mootools 1.2 is released, user forums are disabled and the interactive community sort of disappeared. Which brought me to Jquery. As of right now I am completely on the fence. I like mootools, I am hesitant to switch to Jquery. But it is apparent that there are much more Jquery users then mootools users (survey here). So it all kinda
[jQuery] File Exists
<div dir="ltr">Hi all- Looking for a way to determine if a file exists before uploading. I'm working in <a href="http://asp.net">asp.net</a> and jquery, essentially my idea was to capture the submit of the form, and .get the file name to another page that would return true/false if the file existed. If exists, confirm file overwrite, if not just post it. Problem is currently, it doesn't always catch that the file exists, and if I do get the confirm it seems to be ignored and just posts anyhow.
[jQuery] How to validate multiple fields with AJAX simultaneously before submit
Hello, I am working with Jquery's validate script and form script as well for Ajax submits. I want to validate a credit card field against another field with my ajax call, but the way the form is set up it only spits one field per validation. Any ideas or help? Thanks in advance! snippet:... PrimaryCCType: { required: "#PrimaryCCRadio:checked" }, PrimaryCCNumber: { required: "#PrimaryCCRadio:checked", remote: "../ajax/validateCreditCard.php" },
draggable + click [SOLVED]
hi, i use draggable() to drag a pictrue which i cloned before and after that i use click() to remove it. Well maybe someone can see the problem. When i want to drag a pictrue I have to click it, so it is removed after dragging. But i want to drag it more than once. I just don't know how. Here a piece of the code: ... $(this).draggable(); $(this).click(function(){ $(this).animate({width:originalwidth, height:originalheight, left:positionleft, top:positiontop}, "normal", function(){ $(this).remove();
[jQuery] jdMenu problem in IE6 & IE7
I will preface with the statement that I'm not a javascript super star. My drop down menu isn't functioning for either IE6 or IE7. In FF2 on Windows it works, acts a little funny sometimes, works fine on FF3 & Safari on Mac. If I was to guess, I would probably guess that the issue is in my customization of the style sheet though it appears drop down menus and IE aren't best friends. Link to site: http://flyartinc.com/newsite/ Link to menu style sheet: http://flyartinc.com/newsite/styles/jquery.jdMenu.css
[jQuery] Problem with Tablesorter Pager plugin - there should be an option to turn off absolute positioning of pager container
In the Tablesorter Pager plugin, on line 25, the position of the pager UI container is always set to absolute. In some cases, you want it to be positioned differently -- I embedded a table in a page with a lot of other preexisting content, and the pager was placed on top of some other elements. I removed the absolute position part myself, but it shouldn't be set to absolute by default. On a related note, the documentation for the Pager is unclear. It's not obvious that you have to create all the
[jQuery] removing a row dynamically...
Hi, I have the requirement to dynamically add and remove a row. Below is the code to dynamicaaly remove a row and it works fine in Mozilla but not in IE. Can anyone please advise me on this. Thanks. $('a.remove').click(function(){ $(this).parents("tr").remove(); }); - M
[jQuery] Set cursor position in textarea/input
i know its of the annoying topics but... im using this function to set cursor position: function setSelectionRangeX(input, selectionStart, selectionEnd) { // IE if (input.createTextRange) { var range = input.createTextRange(); range.collapse(true); range.moveEnd('character', selectionEnd); range.moveStart('character', selectionStart); range.select(); // real browsers :) } else if (input.setSelectionRange) { input.focus(); input.setSelectionRange(selectionStart, selectionEnd); } } while im sending
[jQuery] Using JQuery with other libraries (Lightbox)
Hi, I have read the documentation on using JQuery with other libraries by using the Noconflict call. I have to admit to being a total novice at this. I want to use Jquery to do a text replace on my search box for my site - and I have lightbox working for my images. I cannot get the two libraries to work together. If I try to implement both then only Lightbox will work. If I comment out lightbox then JQuery works. The code from my head tag is below and here is the link - http://www.macmillan-academy.org.uk/zeltha/index.php
[jQuery] Validate and FileStyle problem. Could someone, please, help me out?
Hello, I am using JQuery Validate plugin to validate a input of type file. I am also styling the same input using FileStyle plugin: http://www.appelsiini.net/projects/filestyle The error message is added to the HTML markup but it is not visible. The generated HTML code is: <label for="Path">Ficheiro</label> <input class="file" style="display: inline; width: 320px;"/> <div style="background: transparent url(../Image/FileUpload.jpg) no-repeat scroll right center; overflow: hidden; width: 20px; height:
[jQuery] find specific parents?
Hi, I have the code below to add a highlight class to the parent div if an input field gets focus --------- jQuery(this).parents("div:eq(0)").addClass('highlighted'); ---------- <div class="formrow"> <input type="text"> </div> ---------- This works fine, but I would like to further specify the filter expression in the parents() function to only include divs that have the attribute class="formrow": parents("div:eq(0)") Is this possible? PS: Sorry, I'm relatively new to jQuery, so if there's a better
[jQuery] url serialize or getUrlParam
Hello, I want to get lastest url paramaters and add this paramater another url like that: http://blabla.com/action.php?q=1&page=1&rows=50&sidx=id to http://blabla.com/action.php?q=5&page=1&rows=50&sidx=id I tried out getUrlParam but it doesn't work with jqgrid. Thanks a lot. King Regards, Ibrahim PS: You can see the code below: http://dpaste.com/76882/
[jQuery] How to select a specific descendant of curent object
<div id="box"> <span class="child"> <span class="grandchild">hi grandma</span> </span> </div> my question is how reach the .grandchild from .box? in theory, i can just use selector $("#box .grandchild") but this is not much handy when you already have selected the "box" object and pass it to some function for example... so i gues some travesting method may be avalaible to handle this. i found children(), but it can only reach immediate children of curently selected object (so in this my case, the
how to get last url parameters
Hello, I want to get lastest url paramater and add this paramater another url like that: http://blabla.com/action.php?q=1&page=1&rows=50&sidx=id to http://blabla.com/action.php?q=5&page=1&rows=50&sidx=id I tried out getUrlParam but it doesn't work with jqgrid thanks a lot. King Regards, Ibrahim You can see the code below: http://dpaste.com/76882/
[jQuery] [validate] delayed validation
Hi I have a text field which is evaluated on its onblur event and corrected by inserting the default year. So I might enter '0508' and it will convert to '05/08/2008' onblur. The validate plugin is evaluating the field's value before my plugin can change it so it says 'Please enter a valid date', as '0508' isn't a valid date. I do have my plugin binding to the onblur event before validate (appears first in $.ready) so I am wondering if there is a recommended approach for something like this? Thank
[jQuery] redirect response via ajax call
I currently wrote a quick workaround for what i want done, but i would like to see how other people would go about doing this. It is simply an ajax login form, but there is a caveat. There can be two http responses from the server: 200 OK and 302 Redirect. The 200 codes are just notifications that either the login was invalid or the user account has been deactivated, so i simply apply a javascript alert. My problem is the redirect.. ideally i would like the $.ajax object to recognize the status is
[jQuery] Optimizing Animate For Large Number of Attributes/Objects
I have a problem with the way the "animate" method handles multiple attributes. Currently, timers are created for each attribute you are trying to animate. This means that if you are changing 2 attributes on 3 DOM elements, jquery will create 15 timers. In my opinion, this is not the most optimal or desired way of completing the animation. When a large number of animation timers is executed, the normal linear animation turns into a very abrupt/choppy easing effect. In some cases, this is inevitable
[jQuery] Redirect interupts ajax call
I have the below code, and it works, until I put the js redirect in. Why is this happening? I thought the, function gets called after a succesful ajax call ... anyway a bit of help would be greatly appreciated. $(document).ready(function(){ var url = '/scripts/orders.php'; var returnUrl = '/admin/dashboard'; function finish( message ) { $("#status").html(message); $("#status").effect("highlight", {color: "green"}, 1000); document.location.href = returnUrl; }
[jQuery] Catch load event and return something from it
Hi Everybody! I have the following problem: 1. I have to load images to page from links 2. After (!) the image is loaded I have to get the dimensions of it I have to catch the load event somehow, and after it retuning a value to imgDim Array. If I put an alert just after the image is rendered to dom - the function works obviously (cuz the browser has time to load the image), but this is not a solution this time. My English is not the best - you can find the example here: 1. the "alert" version: http://www.capsule.hu/private/jquery_help/index.html
[jQuery] New Plugin - Transmit - A Flickr style multi-file uploader - Feedback requested
I'm currently in the process of developing a multi-file uploader using jQuery and Flash. This is my first attempt at a plugin and was hoping that a few brave souls here would be willing to grab the source and provide some feedback. At the moment, the plugin has a hard dependency on swfobject and supports a few options for setting the allowable file types, max file size, and customized SWF location. I'm looking for folks to provide feedback not only on the structure and content of the code, but on
[jQuery] Submit a Form (Search Results)
What I want to do is have a text field and a search button and then get the results in a pop-up window just like the ones at http://malsup.com/jquery/block/#demos Like, users type in their query and then push submit, then the sub- window opens and results are shown there. I'm not sure if this has been done before or not, but I've been told jQuery is capable of handling this. Thanks very much in advance.
[jQuery] cluetip.js - How can I use it from a javascript file
Hi. I am using the cluetip.js toolbox. It works great in my html (the first div in my html example below), but if I want to use it from a javascript file and refer to the html via the DOM it doesn't work (i.e. the second div in my html example below). I would greatly appreciate if you could tell me what I am doing wrong. Thanks! In my html file I have: ----------------------------------------------------------------------------------------------------- <script src="http://www.google.com/jsapi"></script>
[jQuery] jqGrid inline edit - cannot save or cancel if only one row
<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Hello, jqGrid inline edit is working fine, unless there is only a single row returned from the database. In that case, neither enter nor escape or clicking elsewhere on the page will take that row out of edit mode. Any suggestions? thanks, Michael </div></div></body></html>
[jQuery] IE 6 error message
I'm getting an error message on IE 6 for my selectCombo plugin. However, the message is so not helpful. Does anyone else have experience with this error message: "Could not set the selected property. Unspecified error" here is the code in question: http://jqueryselectcombo.googlecode.com/files/jquery.selectCombo1.2.5.js here is a test page: http://lasso.pro/selectCombo/
[jQuery] Help with ajaxForm in tabs, file uploads fail with strange error
Hi, I'm going crazy with file upload ans ajaxform when the file field is in a tab. When I click on submit button I got this error in firefox console: form.submit is not a function (?)()()jquery.form.js (riga 223) [Break on this error] form.submit(); I've put a sample page here: http://lab.gianiaz.com/jquery/file_upload_in_tab/index.php Thank you in advance.
[jQuery] making a advance image map....
Hi I am trying to make a image map of the U.S I would like to know what's the best way to tackle this. I already have the image I am going to try and work with. I already made the html code of it. I would like to know if javascript can help me any to make a interactive map of the U.S I want to try and get a data feed or weather and be able to mimick a current weather map while this map still being a image map meaning every state is clickable and can have a tool tip pop up and show text which would
By value or by reference? Now what?
Hi, I'm stuck with some code. I want to create some part of my html document by javascript. Every line contains some links, the links should trigger an action on that line. Here is some minimal sample code to reproduce the problem: <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> linecount = 1; function makeTestLines(parent) { linename = "Row" + linecount++; // insert a paragrah with 2 links parent.append("<p id='" + linename + "'>"
[jQuery] Trying to fix jQeury
Hello, I tried to get this to work right... Have the first three(stactic)div's working right. You can drag, resize and close... but the fourth one is not working... can anyone spot why... ?? The end goal is to have all this be created on the fly; the boxes and the ajax content inside the boxes... thank you for the help... Have a great one jeremyBass $(function(){ $.ajax({ url: "test.html", cache: false, success: function(html){ $("body").append('<div class="resizable" style="background- color:#FFFFFF;"><div
[jQuery] flexigrid problem - no headers, data in wrong format
I have a simple menu where I click a link to show some data in a div: [code] $('#view_data').click(function() { $.get("viewplayers.php", function(data){ $('#contentcolumn').html(data); }); return false; }); [/code] viewplayers.php is the standard flexigrid setup, and the data it retrieves is correct - the only problem is that is it not in a grid, and the column headers are not there. Here is a sample of the data it puts into my contentcolumn
[jQuery] fastfind menu question
Hello, For mij website i like to use this script. But i can't find how to implement this. Can someone tell me that, Roelof
[jQuery] $("xx").load can't load css and js in html file on Chrome??
Hello all, I use $("xx").load to load a html file that has its own css and js, on IE and Firefox, it works fine, but on Google's Chrome, I found that it can't load css and js in the html file. how can I fix it ? subpage.htm: <style type="text/css"> ..... </style> <div>....</div> in IE and Firefox: $("xx").load(subpage.htm); alert( $("xx").html() ); it shows: <style type="text/css"> ..... </style> <div>....</div> but in Chrome it shows: <div>....</div> the style lost:(
[jQuery] Help please on Using ajax url as ID
Hello, I'm sure this is an easy thing but I'm just not finding what i need to fix and understand this .... Could some one help me fix this ... $.ajax({ url: "test.html", cache: false, success: function(html){ $("body").append('<div class="resizable" style="background- color:#FFFFFF;"><div class="drag-handle"><span style="float:left; line- height:25px;">WindX</span><img src="../../close.png" class="close" style="float:right;" alt="Close" width="24" height="24"/></div><div class="boxCONTENTS" id="'+url+'"></div><br/>');
[jQuery] autocomplete questions
Just a couple of things that I would like to know if it's possible: Can you submit additional parameters based on the value of another input field? Can you return all autocomplete results on the focus of the field? More info and a test page are available here: http://education.llnl.gov/test/
[jQuery] fixing a few append items
Hello, it's hard to tell if i made a mistake in post so if there is a double I'm sorry... anyways... I'm trying to get this script to work... <script type="text/javascript"> $(function(){ $.ajax({ url: "test.html", cache: false, success: function(html){ $ ('body').append('<div class="resizable" style="background- color:#FFFFFF;"><div class="drag-handle"><span style="float:left; line- height:25px;">WindX (drag me)</span><img src="../../ close.png" class="close"
if empty hide div
Hi, I have a page with with div elements with the class "more". I want to hide them if they don't include any content. If there is text or an image in it nothing should happen to show it's content. Any idea how to relize that? thanks T.C.
Next Page