[jQuery] input fields don't work after using $load()
I am using the $(load) function to populate a div in my HTML with form. The code snippets look something like this. <html> ... ... <div id="formArea"></div> ... ... </html> $('#formArea').load('content/myForm.txt'); The form loads fine, but the input controls no longer work once the form is loaded using this AJAX technique. Does anyone know what the problem might be? Thanks.
[jQuery] Prepending a table row when minus image is clicked
I've got a question on how to prepend a table row above the row in which a plus sign image is clicked. If the user hides the row again with the minus image, hide the prepended row too. Ultimately I would like this to display for every record row except the first row. The table row I want to prepend is: ('<tr><td class="tdhead"><strong>Column 1</strong></td><td class="tdhead"><strong>Column 2</strong></td><td class="tdhead"><strong>Column 3</strong></td><td class="tdhead"><strong>Column 4</strong></td></tr>');
[jQuery] JQuery DatePicker UI and ThickBox Problems
Hello - I've recently started using both the newest DatePicker and Thickbox. I'm having a problem getting the datepicker to appear in my thickbox (I'm using the ajax thickbox). Unfortunately I can't give the actual site since it's for an intranet site at work. If I look at the page itself, the calendar icon appears fine but when opened using thickbox there's no calendar icon. I've checked the z-index (it's at 199) and I've also added the following code inside the window popping up (since I've read
[jQuery] attr() on <link> crashing IE6
I am building a page that loads a css file through javascript. To help prevent "flash of unstyled content"[1], I am loading the CSS file as early as possible (before document.ready()). I am using jQuery 1.3.2.<div> </div><div>In Firefox 3.5.1 and Chrome 2.0.172.37 this is working properly, but in IE6 the browser crashes (not just a javascript error, but a full-blown crash).</div><div> </div><div>I've narrowed it down to this bit of code that reproduces the problem: </div><div> </div><div><font class="Apple-style-span"
[jQuery] jquery slider..1 issue left! :) (works in FF but not IE)
note: Thanks Charlie for helping with first issue! I'm down to one issue with the easyslider jquery plugin. If you look at http://www.movieeye.com/index-new.jsp in IE 7, you'll notice the text is overflowing and creating a horizontal scrollbar on the browser page. I'm not much of a coder, and am pretty lost here. Have tried messing with CSS stuff, but nothing seems to stop that overflow. I'd greatly appreciate any help! Code for page is: ---------------------------- <!-- START test slider code -->
[jQuery] Custom Events Fired From Element Inside of IFRAME
I have an iframe in a page which contains another page from within my application. The iframe contents include a button that, when clicked, will trigger a custom event on the parent document. While I can listen to the click event on the button from the IFRAME parent, i cannot listen to the custom event. Strange. Parent: <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/ jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function()
[jQuery] [Autocomplete] Form submit or link on mouse click or return key
Hello, I'm using jQuery Autocomplete ( http://docs.jquery.com/Plugins/Autocomplete ) to display results from a php page. Since that is my only field, I want to submit the form when I click on the result or I press the 'return' key. How do I do that? The result is showing something like 'artist - album' and I'd like to post only the artist . Also, it would be event better without a form submit: the results would have their own php-generated link to another php page with artist passed as a $_GET variable.
[jQuery] [Autocomplete]
Hello, I'm using jQuery Autocomplete ( http://docs.jquery.com/Plugins/Autocomplete ) to display results from a php page. Since that is my only field, I want to submit the form when I click on the result or I press the 'return' key. How do I do that? The result is showing something like 'artist - album' and I'd like to post only the artist . Also, it would be event better without a form submit: the results would have their own php-generated link to another php page with artist passed as a $_GET variable.
$(this) in .live("click")-function vs. opera
Hi, I'm trying to dynamically append DIVs with jQuery that I want to make clickable with jQuery's .live()-function. Appendings DIVs and binding the click works great, but in Opera I get a wierd error when I actually perform the click: Event thread: click Error: name: TypeError message: Statement on line 167: Type mismatch (usually non-object value supplied where object required) Backtrace: Line 167 of linked script http://blogage.local/javascripts/applic ... 1247856519 if(self.hasClass("selected"))
jQuery cookie toggle problem
I want to use the jQuery cookie to remember is the toggle panel was down or up. Tis is the code but i dont works, i have used a styleswitcher and this uses also a cookie and this one works. // toggle hiddenmenu $("a#toggle-open-btn, a#toggle-close-btn").click(function () { if ($("#toggle-box-1").is(":hidden")) { $("#toggle-box-1").slideDown("slow"); $("#topmenu").slideToggle("slow"); $.cookie('showTop', 'collapsed');
[jQuery] cluetip positioned centered on top of link
Is there anyway to do this? I have topOffset: -25 but since the links are of varying lengths, there isn't a leftOffset value that would center the cluetip over different size links.
multiple variable problem
This works: function loadvdata(v) { $.ajax({ type: "Get", url: '../sources/status.php', data: {status:v}, success: callback, error:err }); } $(document).ready(function(){ $('#selectStatus').change(function(){ v=$(this).val(); vtype='status'; loadvdata( v); }); }); this doesn't: function loadvdata(vtype,v) { $.ajax({ type: "Get", url: '../sources/status.php', data: {vtype:v}, success: callback,
[jQuery] Need help with a custom selector to bind ajax callbacks
Hello everyone, I'm stuck with an annoying problem in this webapp I'm developing. I've created a small code to be called automagically on every ajax request, which shows a "loading..." div overlay while the ajax request is being processed. This works fine, and the code used can be seen in this pastie: http://pastie.org/552179 However, we also use the Facebox plugin (http://famspam.com/facebox/) in this app, and we don't want the "loading..." div overlay to show when a facebox ajax request is triggered
[jQuery] Anyone has a fix for the IE7 bug where you have two rows?
Hello, I think there is a problem where if there are lots of subitems i get two rows. If an item in the first row has a submenu it opens as dropdown right below the item. This works good in all browser except in ie6/7. Here I have the problem that the li submenu navbar item in the second row appears always above the dropdown if it opens from an item in the first row. to get around this i used this little hack: <!--[if lte IE 7]> <style type="text/css"> .sf-menu li:hover { visibility: inherit;
jquery .submit() only works once
I'm making a multi-file uploader with progress bar using jquery. Everything works fine once, but none of my javascript functions fire when the file uploader is submitted after this. The file uploads to an invisible iFrame so that the page doesn't refresh. Do I need to reset something so that the submit will work a second (and more) time? Here is the the javascript: var callRepeater; var frameContents; var fileName; $(document).ready(function() { try { $("#file_uploader").submit(function(){
[jQuery] Reg Hint Box
Hi All, I am new to jquery,recently i used jquery hintbox to get data dynamicaaly from data base using jsp and html.how to solve this application Thanks and Regards Santosh M
[jQuery] Display message on successful client side validation.
Hello, I'm using jquery Validation plugin (http://bassistance.de/jquery- plugins/jquery-plugin-validation/) for client side validation. On successful validation, I would like to display "Processing...." message (till new page loads - non AJAX post). Please tell how to do so ? ( If triggered via $( '#formID' ).submit(), then message is displayed even if validation FAILS ). Thank You.
[jQuery] jQuery Tab problem
Hi i am using jquery in my app, i have a big time problem with my tab ordering. I am not using any plugin for tab ordering but, I'm using AutoComplete though ... i am using facebook search token plugin also .. When i press tab in my text fields and prepare search tokens, suddenly i loose my control in the text boxes, i need to use my mouse to get to that particular field. EX: i have 4 fields. 1, 2, 3, 4 when i enter in 1, 2 fields, i use tab usually to move 1->2, and again tab to go to 3rd field.
[jQuery] Could REALLY use some help implementing a slider/carousel. I think I am really close!
OK....granted I am totally a rookie here...but I am SOOOO stuck! Could anyone look at this page: http://www.movieeye.com/index-new.jsp and help me with either of the two big problems I am having??? Problem #1: When the content is loading (3 content div's worth) it shows ALL of the content before it collapses into the slider. Problem #2: The previous content doesn't disappear when you click the button, but rather scrolls way off the page (either left or right). Both of these problems will be blatantly
[jQuery] FCKEditor Plugin: Switch to source mode on startup
http://dev.fckeditor.net/ticket/593 shows, how to switch to source mode on startup. is there any possibility to do this witch the FCKEditor Plugin?
[jQuery] Requirement for duplicate AJAX attribute name
All, I have a situation where I need to pass the same named attribute to an AJAX enabled endpoint. Basically I need to simulate something like http://example/cgi?text=1500characters&text=1500characters. I need this type of scenario to work in typical JQuery AJAX and JSONP calls. I understand that I may run into browser/server URL limitations. In case anyone is wondering, I’m AJAX enabling some old PL/SQL code using Oracle's Webtoolkit and there’s a limitation on the size of an input string. To overcome
[jQuery] switchClass not working on BODY
Hi, I am trying to change the class of <body> using switchClass, and it is not working. AddClass and removeClass are working just fine. Anyone has a solution for that?
[jQuery] blockUI problem
I just started using blockUI plugin for jQuery, and I have a problem with forms. I use blockUI to overlay the background and show a form. The problem is that when I'm trying to access the elements from the form it doesn't work. Anyone knows why?
[jQuery] Json GET Method
Am trying to access a restful service through jquery. Could any one provide me with sample code how to make a GET request which will consume json data returned by the service. am a total newbie. any help wil be appricitd. Jayz
[solved] Selecting and traversing
Good evening everyone - I'm new with jQuery (so be kind) and struggling to get my head around one aspect of it - I have what I want working, but wondering if this is the correct way to do it. Basically I'm looking at having a number of panels - some of which can be collapsable by a control in the heading bar of that panel. So I have that functionality working, but not sure if I've written the code in the correct way - looks a little clumsy to me, and I'm not sure what I should be searching for (as
clickable blocks with target in new window
Hallo everybody, I´m quite new to jQuery, so this may be a simple question. Anyway: This Script forces a div to be "clickable" what works fine. $(document).ready(function(){ $(".pane-list li").click(function(){ window.location=$(this).find("a").attr("href");return false; }); }); //close doc ready But how can I make this script to accept the "target=_blank" attribute? Any suggestions?[/code]
[jQuery] jcarousel - malware-adware?
I had malware/adware two days ago. Scanned with Spybot search and destroy but now mybrowsers are slow (IE and Firefox) plus i get a window saying: "jcarousel" No width/height set for items. Tjis will cause an infinite loop." What caused this and how do i correct the problem? Thanks to the good soul who helps me out...! Jean-Pierre gauthier2022@sympatico.ca
ajax loading into div, grep style command?
I have a nice little set of tabs going that load separate protected pages into a div. This is going along swimmingly, but when my user logs out they would normally be redirected to the login page. However now this is inside the frame. While this could work I would love it to go back to the start page. How can I do this with php / jquery (detect if it is a login page, and move itself back to the index)? Thanks. EDIT: all it needs to do, is look for a piece of text 'login' and if it exists - redirect
[jQuery] Possible bug in appending scripts: works under FF3, doesn't with IE7?
Hello, theoretically the following two web pages should be equivalent, and indeed they are under Firefox3, but IE7 fails miserably in rendering the second version. The included script is a simple public script provided by the hotel review site "trivago.com" that shows a specific hotel's current rating, for hoteliers to include in their personal website. Is it a bug in jquery's way of appending scripts? Am I missing something? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
[jQuery] Using jQuery with the ZK Framework
ZK 5 pewview now makes use of jQuery for clientside scripting purposes, I have written two articles on implementing effects using jQuery & ZK 5.0 preview, they can be located at the following links: http://docs.zkoss.org/wiki/ZK_5.0_and_jQuery and http://docs.zkoss.org/wiki/ZK_5.0_and_jQuery_part_2 Any feedback would be welcomed! Thanks, Tim
[jQuery] Bug jQuery 1.3.2 & FF3.5 - $("input[name='']")
This code used to work before i upgraded to FF3.5. Is there any other way to achive the same thing? $("input[name=''],textarea[name='']").each(function(i) { this.name = this.id; });
[jQuery] convert greybox into bookmarklet
Hi anyone know how to convert this into a bookmarklet so that on click of bookmarklet in an overlay with iframe google home page can be opened http://jquery.com/demo/grey/
[jQuery] (validate) rules on id's instead of names?
<input class="input-250" name="search[all][and]" id="search_and" type="text" value=""/> how do i put a minlength:4 rule on this field? thanks,
[jQuery] maxlength with jQuery FCKeditor 1.30
i need help. here is the problem <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript" src="/js/jquery.FCKEditor.js"></script> //Rick Text 編輯器 $(function(){ $('#comment_content').fck({path: '/js/fckeditor/',toolbar: 'Comment',height:'300'}); }); when i use jquery.FCKEditor.js i want to add maxlength but i can't find where to add this.maxlength="500"; this method not like oFCKeditor =new fckeditor("xxxx"); oFCKeditor.config['maxlength']=500;
[jQuery] setting a dynamic variable
Hello guys, I have found a script that works fine for me but I'd like to make it reusable but I have an issue with that. On the script I have something like function my_function() { var $container = $('#panel .container'); ... } and I'd like to pass the id (panel in this case) as a parameter like in the example below: function my_function(panel_id) { var $container = $('#--- .container'); ... } How can I achieve my goal? Thanks and have a nice day. Sig
[jQuery] Value adding to drop down
hi i m adding some values to drop down by usind j query by this code var programs=[]; programs=data.split('|'); $('#p_course').length = 1; for(var i=0;i<programs.length-1;i++) { var objDropdown =$('#p_course').get(0); var objOption = new Option(programs[i],programs[i]); objDropdown.options[objDropdown.length] = objOption; } but when vales appear in drop down first value look like this |||||||||||||BSIT any body have any idea why it look like this
Bind Click Event To Anchor Tag Not Working
When I load the page the div #forgot_login blindes down even though I did NOT click the anchor link. Also, clicking the anchor link does not toggle it up and down. The event binding is not working. Thanks for the help. HTML <a href="#" id="forgot_login_link" title="Show">Show</a> jQuery Event $("#forgot_login_link").click(show_hide($("#forgot_login"))); Here is the show/hide code: function show_hide(p_Element) { p_Element.toggle('blind', { direction: "vertical" }, 500); }
[jQuery] click treeview and then jqgrid refresh?
how to let the jqgrid refresh? without page reloading. does jqgrid have such a method? how to call it? Thanks in advance.
[jQuery] $.ajax How-to?
Hello guys, my first time writing to group...<div>I'm a beginner in jquery and I'm trying to learn the $.ajax() method. I created a simple form (3 inputs) and the form should send the data (via ajax) to the page ajax.php which will return the data to be written in a div (#mensagem), just it. </div> <div> </div><div>But I would like to know why <b><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);">THIS</span></b> works:</div><div> <div><i><span class="Apple-style-span" style="background-color:
[jQuery] Help with variable passing and jCarousel callbacks
Hi everyone, I think this is probably an easy thing to fix, I'm just a bit lost at the moment. I have a photo gallery up and running that uses the Galleriffic plugin alongside the jCarousel plugin, and I am currently trying to get the carousel to scroll along with the displayed image. I know that this involves using the jCarousel callback, however the value I need to use in that callback is set inside of the Galleriffic function, and I'm not really sure how to make them talk to one another. Here
Next Page