get selected text
hi, does anyone knows have to get selected text for example from <textarea> with jquery? google shows that this is challenge for many .. but there is no answer that works
[jQuery] Popup window after file upload in firefox and ie
Hi, I am using this code: var options = { url: '../Account/Upload', type: 'POST', contentType: 'multipart/form-data', dataType: "text", error: function(XMLHttpRequest, textStatus, errorThrown) { ... }, success: function(data) { ... }, beforeSend: function() { ... }, semantic: false }; // bind form using 'ajaxForm' $('#item_form').ajaxForm(options); to upload files to the server, which works fine. I am using the forms plugin and the multifile upload plugin. I believe that the former plugin uses the
[jQuery] Loading content when viewable on browser screen
I'm trying to mimic the gucci.com site (http://www.gucci.com/us/us- english/us/spring-summer-09/ready-to-wear/) where the different styles are only loaded when they are visible on the screen. When you scroll to the right, the next visible panels are loaded (only when they are shown visible). What's the best way to mimic this functionality?
[jQuery] JQuery Validation plugin with Django (New) Forms (V1.0) - Are these compatible?
JQuery newbie question re using validation plugin with Django newform. I have a simple email feedback contact django form that I wanted to enhance with some JQuery validation. I created a standalone (Non Django) version of the form and it works correctly. However when I create a Django version of the form the validation rules seems to be ignored and the form is always posted - I would expect the form to fail, and never post. One difference (not sure if it's siignificant) is that the Django forms
[jQuery] barackslideshow effect in jquery.
hi all..i am looking for a similar effect like the barackslideshow effect. can anyone suggest such a plugin in jquery. thanks a lot<br clear="all">
[jQuery] remote validation
I'm trying to do a jquery remote validation on a 'Name' text field. The validation checks if the name is unique, hence it has to be done through the remote method. 'Save' button onclick is attached to this javascript method function validateName() { txtName.rules('add', { remote: { url: 'validate.ashx' , data: ({id: txtName.attr('name')}) } } , messages: { remote: '* Error' } }); var isNameValid = txtName.valid() return isNameValid; } The problem I have is that .valid() always returns false - because
[jQuery] debugging of selectors
Hey, Any good tips on 'who' to debug selectors? (meaning, when I have some selector like: $('form#someId .someClass') and it don't match what I think it would. I know about the basic stuff that we have in firebug. Thanks, Ido
jQuery Push Banner - How do you do this?
Hello! I'm trying to figure out how to do a push banner like the one at the top of this page: http://www.news-press.com/ The banner opens up and pushes the entire web page down. Anyone know how to do that with jQuery? Have a link to the code? Or a tutorial to accomplish this? Thanks FOO
[jQuery] SimpleModal issues... too many scripts?
Hi Everyone, I am new to the jquery world, but have found it quite useful... maybe a little too useful. It seems like I have too many scripts running. Is there a way to simplify what I have been doing in the markup to run them? Please take a look and let me know if I can narrow things down: http://woodlandswoundcare.com/test/index.html On to the bigger issue: I am attempting to use the Simplemodal jQuery script(http://www.ericmmartin.com/projects/simplemodal/) on this site as well. I have done (what
[jQuery] Disable input button, using wrong HTML code?
I created a test page here: http://clients.stephenkorecky.com/stephen_korecky/js_test.html But basically the problem is that $("#button").attr("disabled",true); should disable a input button, and it does, HOWEVER it outputs disabled="" when it should output disabled="disabled" anyone know how to fix this?
[jQuery] Cycle Multiple elements
I'm trying to figure out how to make the code below cycle though the images, and make a li have class active then it matches the slide image. Any help would be great. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Front Slide Show</title> <!--Call jQuery--> <script type="text/javascript" src="assets/scripts/jquery-1.3.2.js"></
[jQuery] IE won't play my mov files (white layer above it?) using Media plugin
Hello! I've had the pleasure of implementing some of the jQuery plugins @ a site I'm making: http://www.heikewicht.com If you open any of the video sites, such as http://www.heikewicht.com/portfolio-04.html in firefox, the quick time player loads as usual. The same thing seems to happen in IE, ALTHOUGH in IE (7 & 8) there is no visual after you click the play button. Only sound. I turned off auto-play for this reason but it will probably be enabled in the working version. I have extended the size-parameters
livequery not working...
I have this bit of code... $(document).ready(function() { $("a.index").livequery('click', function(e){ e.preventDefault(); alert("Working!"); // Code here // }); }); Which mysteriously isn't "Working!". I've used livequery before without a problem, for the same situation which was using livequery to bind new links to a click function. That old project works fine still, this new project isn't. I'm using the same livequery, jquery builds so that
Adding functions to elements that appear in AJAX
Hey there all, I have a table that i load into the document via ajax. the table shows a list of times. every row has a button that when clicked should call another AJAX function . However when clicking the link nothing happens. If I put a link in the original document myself and ask it to do this, it works fine, but becuse this is generated code, this option will not do. I hope that this makes sense THis calls for the table.... works fine... $(function () { $("#departmentToSchedule").change(function
[jQuery] Superfish : close on click outside the menus
Hi, I want to use the Superfish menu plugin but with 1 more behaviour: when the user clicks outside the menu, the menu closes. (or clicks anywhere, doesn't matter). This way I can have a large delay and just tell people to close the menu by clicking outside the menu, which will improve greatly the usability of the menu. Anybody already did this or know how to?
[jQuery] webkit-specific problem with jcarousel
Hi! I am using the jcarousel plugin for a gallery site I am working on. I use the carousel to scroll the thumbnails. When I test my code in firefox everything works fine but I run into problems with webkit- based browsers, like safari or chrome. When I scroll the carousel a new li-element is prepended in the list. The element has classes ending with "NaN" instead of a number. I have been trying to debug this problem for some hours now but as I am not so versed with javascript I suspect that I am
[jQuery] refresh image?
Hi, after sending a form, I would like to reload the form in order to send a new message. Therefore I was resetting the old form, but I need to call a new captch image. It's currently like this: <img src="inc/captcha/captcha.php" id"="captcha" alt="" border="0" style="float:left;" /> I thought I coud re-load it with: $("#captcha").attr("src").replaceWith("inc/captcha/captcha.php"); But this way I don't get a new call... to generate a new image and with it connected a new session entry for the captcha
[jQuery] Is it possiblwe to use "this" in slection
Hi all, I wanted to ask whether we can use "this" for selecting in jquery. What i want to do is to have one toggle function for many objects. the fuction i use now is the above $('a#slick-toggle').click(function() { $('#slickbox').toggle(400); return false; }); which toggles the "slickbox" when the "slick-toggle" is clicked. The problem that i have is that i want to have many objects like "slick- toggle1" "slickbox1", "slick-toggle2" "slickbox2". One way is to make different function
resizable with buttons on top right corner
i have a resizable box and i want to put buttons on the top right corner. as i resize the box, i want the buttons to remain always in the top right corner. how can i achieve this kind of positioning? i'm thinking along the lines of having relative positioning which is continuously redrawn everytime the resizable is resized, but is there an easier way to do this?
[jQuery] Preloading files
Hi there! First of all I want to thank author for this great plugin! Here is my situation: I am trying to implement this plugin to some content's edit page (written in php), that means that content may already have uploaded files with it so I need somehow to "Preload" this files (or just filenames) into MultiUpload input.. I am not so strong in jquery (in level of creating/editing plugins at least), so I faced difficulty by trying to do that. Could you please help me. What I think I should do first
remove from jQuery
Hello, I have registered an element with 2 of my own plugins. One of the plugins uses a periodicalUpdater to repeatedly call a function for the element. The other plugin creates a link which when pressed will delete the element using .remove(). This works ok; the element is removed from the DOM. However, the periodicalUpdater continues for the element, I can even retrieve the elements attributes. Which obviously means its still alive inside jQuery somewhere. Is there any way that I can completely
[jQuery] [jQuery AJAX]
I am using the jquery.form.js addon, and I was wondering if there was a way that I could add something to check for a certain string in resulting response? I am having a form sending an AJAX request to the server which then places the result into the div that is used for responses but I am unsure how to initialize a check when the div updates that word is used in the div for example "experience"... when that comes up I would like to disable a feature to keep the form from submitting again... Any
[jQuery] jquery-roundcorners-canvas - not working on table border
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000066"> <font face="Helvetica, Arial, sans-serif">I'm trying to use the plugin jquery-roundcorners-canvas.js on a table but the border is not rounded like the background. Has anyone else found this to be a problem? Any solutions? TIA </font> </body> </html>
[jQuery] FRAMES
hi, I need to refer to a frame, in plain JavaScript it is: parent.frames.main.emplmain.document.getElementById ('mail').style.display='block'; how would I do this in jQuery (so I can do neat things like fadeIn(), etc...;) thank you..
[jQuery] Need Help to Apply effect to newly created element
Hi, I am using jQuery for multiple file upload. Now my requirement is as follows: 1) I can create file element dynamically through javascript. 2) I need to apply the jQuery ability to add multiple file in newly created element. Below are my js files <script src="js/jquery.js" type="text/javascript"></script> <script src="js/documentation.js" type="text/javascript"></script> <link href="css/documentation.css" type="text/css" rel="stylesheet"/> <!--// plugin-specific resources //--> <script src="js/jquery.form.js"
[jQuery] Resetting the reset button
Hi all, I've got a set of forms which all act the same way - the form submit is handled by the jQuery form plugin which redirects the output to a div on the page. That means that when the user hits submit, the page in the browser doesn't change. The success or failure of the form submit is displayed on the existing page. The pages all have a "submit" and a "reset" button. The issue is that the reset button holds the state of the form when the page was originally sent to the browser. That means that
[jQuery] [cycle] transparent pngs on background in IE
Hi there, I'm having trouble getting jquery cycle to work when I have a background image and a transparent png: http://dev2.dianomioffers.co.uk/smartads.epl?id=264&subtype=C&debug=1 It's fine in Firefox but in IE (version 7) I get a black colour where the png transparency is during the fade. I'm using cleartype:true and cleartypeNoBg:true Can this be made to work right? Thanks Michael
[jQuery] How can I refresh jQuery object's DOM (after having AJAXed dynamic content)?
Hello list, Is there a way I can refresh the jQuery object's DOM on command so that it can acknowledge content that's been brought in after the initial DOM ready event? Ideally, I'd find something that looked a bit like this: $.get('wad_of_unknown_content.php', someVariableParameters, $.reloadPageDOM()) I've run into the situation where a load of AJAXed content is essentially dead to my jQuery object. I'm surprised at the variety of ways people have dealt with highly specific symptoms of the problem:
[jQuery] SimpleModal issues... too many scripts?
Hi Everyone, I am new to the jquery world, but have found it quite useful... maybe a little too useful. It seems like I have too many scripts running. Is there a way to simplify what I have been doing in the markup to run them? Please take a look and let me know if I can narrow things down: http://woodlandswoundcare.com/test/index.html On to the bigger issue: I am attempting to use the Simplemodal jQuery script(http://www.ericmmartin.com/projects/simplemodal/) on this site as well. I have done (what
[jQuery] is next() recursive?
jquery 1.3.2 I have a nested group of lists similar to below where all but the top-level list is hidden. Clicking a link should open the next level (as well as do some AJAX stuff). I'm having some trouble getting the 2nd level to open without also opening the 3rd level when clicking on a top-level link. (The IDs are here clarity) <ul id="first"> <li class="Section"> <a href="">...</a> <ul id="second"> <li> <a href="">...</a> </li> <li> <a href="">...</a> <ul id="third">
jQuery Week Calendar?
Does anyone have a weekly calendar in jQuery? I haven't been able to find one anywhere!
[jQuery] How To Get Around: Access to restricted URI denied" code: "1012
Hi, Here's my code: $.ajax({ type: "GET", url: "http://wcf.msts.com/WcfService.svc/ GetSponsorSearch?keyword=tr&eventsessionid=2", dataType: "xml", success: function(xml) { alert(xml); } }); //end ajax call I know this is a cross-domain issue but I can't get away with our current network setup. wcf.mstsc.com is where all our web services reside. Is there a way I can make the ajax method work, using XML as the return data type, if it's in a different domain? I'm open to a different jquery method (as
[jQuery] Using Tablesorter with ajax generated tables
I am a newbie. I am wondering if someone can explain how to configure the tablesorter plugin to work with a table generated with ajax. My usage is straightforward. 1. User makes form selections 2. hits submit 3. parameters passed to php file 4. table is generated from php/mysql 5. result is delivered to a <div> it works well. The problem is that I don;t know how to apply tablesorter to it (I need pagination and sorting). I tried the default set-up as explained in the doc, but nothing happens. Something
[jQuery] Strange problem getting width/height
Hello to everybody, I'm writing you since I'm getting a strange problem with getting height/width of a div I've inserted with div.html (data); Ive got this HTML : <div id="rootDiv" style="border: 1px solid #BAD3E0; visibility: hidden;"> <div id="content"> </div> <div id="navigation" style="width: 20%; text-align: left; display: block;"> <div id="prevButton" style="margin: 0px 2px 2px 2px; float:left;"> <img src="images/prev.jpg" id="imgPrev" alt="prev" /></ div> <div id="nextButton" style="margin:
Forcing the format of the DatePicker UI
Hi Guys, Im new to jquery and really love how it works. I am having some issues with the datepicker though and really need some help... i have a form that the user can enter events then save them to a database. One of the fields is a Event Date field and i have chosen to sue the JQuery DatePicker for this. How do force the format for the date chosen so that is like this...? Wed, 13 May, 2009????
[jQuery] BEdita - semantic content management framework that uses jQuery
Hi, after more than 2 years of hard/heavy work we are really pleased to announce the first public beta release of BEdita 3 (pronounced [bi'εdita]), a semantic content management framework that uses jQuery. http://www.bedita.com http://www.bedita.com/beopen [our website is still work in progress, some english translations still missing...sorry] BEdita is not a real CMS (in fact it's a framework), but aims to be a standard Web2/3 publishing platform...there are really a lot of things that I could tell
can we read/write text files using jQery??
hi frnds, can we read/write text files using jQery??
[jQuery] image changes when mouse over a link
I am looking for a effect. There are 3 images and 3 links at the bottom. when mouse over a link should change the image. I tried all the possible searches but could not get the desired tutorial. any help?? thanks..
[jQuery] jcarousel sorgalla.com auto circular
Hi everyone, I have problem with set up jcarousel with jquery 1.3. I need the auto circular one jQuery('#mycarousel').jcarousel({ wrap: 'circular', auto: 2 }); but behavior of carousel is vague. In init the first item appears correctly, and the width of container is ok(I think it is - has about width for every item in line - if item has 30px the we have two items container has 60px). But after two seconds the first and second item slide fast to the left from carousel display field. The effect is
[jQuery] smooth fadein() problem with iframes and div tags
Hi, I'm having a problem achieving smooth loading of iframes. My ideal behavior for the iframe is that iframe is completely loaded into the dom, and them when I call fadeIn, it smoothly fades in. Instead, I get a very choppy behavior. If I run a sequence like: fadeIn(), fadeOut(), fadeIn() - the first fadeIn is choppy, while the last fadeIn is smooth. This leads me to believe this has to do with how the element is added to the dom. Does anyone know how to solve this issue? <code> contentURL = 'www.facebook.com';
Next Page