[jQuery] blockui form not setting values?
I am using jquery with blockui, and I have a website which you click a button, it uses blockui to show a small form which you fill out, then click "submit" to submit the form. However, it's returning "undefined" for all values of the form. Here's what the relevant part of my HTML looks like: <div id='NewUser' style="display:none; cursor: default"> <table> <tr> <td>Username:</td><td><input name=username id=username type="text"/></ td> </tr> <tr> <td>Email:</td> <td><input id=email type="text"/></td>
[jQuery] [validate] error when I validate file
OK, I have simple form that I require file upload. when i focus on the filed and press enter I get this error [Exception... "'Permission denied to get property HTMLInputElement.nodeType' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] in firebug. and the form submits ignoring the validation. my code $("#order_form").validate({ errorClass: "invalid", rules: { upload_file:{required:true},
[jQuery] mootools - jquery conversion
Hi to all, I have a project that was coded in mootools, but I want to use jquery. Anyone knows how to convert the following code to jquery? or where I could find a freelance to make the conversion. --------------------- code start ---------------------- function changeState (value, childSelectId) { new Ajax('/lab/selections/options/' + value, {method: 'get', onComplete: function( response ) { respObj = Json.evaluate( response.substring(0, response.indexOf('<b>Fatal error</b>')) ); if(respObj.attributes.length
[jQuery] Getting checked radio button value [correct selector syntax]
You now, I wasted three hours trying to get this work... and I tried everything imaginable In the end, I found the following syntax (the ONLY syntax) that worked: $("input[@name=field-name]:checked").val(); But my question is, why dont any of the following work (they return null values): $("input[name='field-name']:checked").val(); $(":radio[name='field-name'][checked]").val() $(":radio[name='field-name']:checked").val() $("radio:checked[name='field-name']").val() $("input:checked[name='field-name']").val()
[jQuery] jQmodal cleanup and create new triggers dynamically
I'm having a similar issue to this: http://groups.google.com/group/jquery-en/browse_thread/thread/86568ae1da917536/2684283de38f2abf The triggers are created dynamically and the modal is initialized with a callback which passes the offset to display the image that is clicked. It works fine on first page load but fails when new triggers are created. http://meiko.novatunes.com js code: var artist_photo_nav_items_per_page = 4; var artist_photo_gallery_items_per_page = 1; $(function() { $(spinner_artist_photo_nav);
[jQuery] Dynamic Image resize problem
Hi, i am having an image resize problem. i have an DIV with width of "100%" what i want is to make any image that comes in this DIV exactly the size of DIV is. Basically this DIV is having the half of my total layout i.e. whole right panel 50% of the total layout. What i would like to have is to have is whatever size image comes in this DIV automatically resize it to occupy the full width of the DIV. For this purpose i am using below code. $(document).ready(function(){ $("#news img").each(function(){
[jQuery] Enchant modules
Is there any docs how can I use Enchant modules at http://ui.jquery.com/enchant/1.0a/ ? Thank you for replies. L.
[jQuery] Cycle plugin: Back and forth
Hi all, Given the following (basic!) HTML: <div id="cyclediv"> <img> <img> <img> <img> </div> I'd like to set up a cycle which, at the beginning, scrolls the images off to the left: 1 <- scroll <- 2 <- scroll <- 3 <- scroll <- 4 THEN, when we reach the final image, I want to CHANGE the cycle effect so it looks like it's running in reverse: 4 -> scroll -> 3 -> scroll -> 2 -> scroll -> 1 And then when we get back to the first image.... well, repeat the switch so we're back to the initial
[jQuery] jQuery autocomplete issue
I've been trying out the Pengoworks jquery.autocomplete, and it works very well. I have run into one problem, though. I have a form with numerous fields that have autocompleters. I have a ColdFusion template that performs all of the lookups for the autocompleters. I started by attaching distinct autocompleters one by one to the various input and textarea controls. I used the extraParams() option in each autocompleter to pass a "type" parameter to my CF template so that it could return the correct
[jQuery] Attach Event to "Class" Instantiation
I tried posting this a few minutes ago but it didn't appear - so sorry if this is a dupe. This is a bit of an irregular question, but is it possible to attach an event to a class instantiation? For example: function Person() { /* constructor code */ } var bob = new Person(); // instantiation event fires here My gut feeling is that this isn't possible, but I wanted some input before I dismissed the idea. Thanks!
[jQuery] Evaluating scripts after an ajax get
Hi, I have a page that can make an ajax request (using get) that returns html. I insert the returned html into the page. The html includes ready() functions that attach event handlers for clicks. I use something like: jQuery('#content').before(data); to insert the html. Is there a way to make the scripts evaluate? Thanks
[jQuery] How to select a child element from a saved variable
Hello, I am using an element many times in sucession and as such don't want to search the DOM every time. I would like to save the top level element in a varialble and then use it to repeated access other elements directly. With this I would like to select a first level child element of the saved top element. Find and Children both return all levels of like elements instead of just the next level item. e.g: I would like to do the equivalent of: $("#"+my_element+" > .a_common_element); The problem
[jQuery] how to address to iframe content with jquery ?
Hello, so lets imagine i have some iframe inside my html page: <iframe width="750" scrolling="no" height="255" src="http:// www.some_url.com/some_page.htm"></iframe> how can i work with the loaded content ? i was trying something like: aa = $('iframe').html(); $("div > img", $(aa)).each( function(){ if ($(this).parent('div').attr('style')) { $(this).parent('div').click(function(){
[jQuery] toggling classes/styles & writing LESS code
Hi jQueryers, The dev continues on a visual typographic that teaches typography while leveraging CSS. I managed to hack out the next very BASIC piece of functionality, but the code is verbose, certainly not DRY. I'd love some input as to how to be more concise. Maybe creating a few variables, encapsualting some functions, and/or taking advantage of jQuery magic with which I'm not yet familiar? Also, is there a way to have only one "return false" at the end rather than having to repeat it 5 times.
[jQuery] jQuery not acting on classes changed by it
Hi all. I'm implementing a "add to home page" functionality. I have three DIV classes: home_add, home_remove and home_full. Each displays an appropriate image. I have implemented an onclick functionality for each class <http://pastebin.com/f28f54f13>. But once the class has been changed, jQuery still follows the initial onclick function. E.g., if a button had class "home_add", it still responds with "home_add" action, even after the class for that button has been changed to "home_remove". I checked
[jQuery] does ie (6 / 7) have problems with animate ?
$styleDir = "http://someurl"; $j('#MainNavi ul').css({'background':'url(' + $styleDir + '/img/MainNavi/MainNavi_bg.png) repeat-x !important'}); IE6/7 throws a js-error: 'illegal argument'. What can that be ? micha
[jQuery] Probation period for posting?
Please forgive me if this irritates anyone or seems snippy, but I just had a question: I've been posting to this group for about 2-3 months now, and have about a dozen or so posts. When I started posting here, the page I followed said that for a short time posts you make will not appear until they are approved. The reason behind this is to stop spam. I understand that, and have no problems with proving that I'm a human and have no intentions of spamming. However, I'd like to know how long this probationary
[jQuery] jquery UI date picker and simplemodal... again.
Hm, I took a look at the example generously supplied by Eric Martin, but was unable to get mine working... // ################################################# function AddGalleryPromo_Modal() { $('#add_promo_schedule_box').modal({ onShow: function() { $('#date_picker').datepicker(); } }); } That function is called when a link is clicked... the modal box shows up great as it should.. and I click the text field (id="date_picker").. and it slides/fades in as it should, but then vanishes..... i see
[jQuery] jQuery intellisense in VS2008 (including chaining)
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] z-index issue using jquery corners and perciformes menu
Hi Just wondering if anyone has come across the issue in IE (all versions it seems) where the suckerfish menu 2nd tier is displayed behind 2 divs that are rounded using jquery corners ? Example is at http://mfusion.com.au/telechase/signup.php I've tried explicitly setting z-index and including the bgiframe plugin into the tier but with no effect thanks for any help or suggestions Brad
[jQuery] clicking div with text changes class in IE & FF, but clicking dropdown doesn't change class in IE
<div>Hi- I am new to jQuery (using v 1.2.3) and am having a blast. (The book Learning jQuery has been particularly helpful.) If I want to change a class by clicking it works fine in IE and FF with a clickable div of text. However, when I try to change a class by clicking a dropdown it works in Firefox, but not IE. Same javascript, same CSS, only difference is using dropdown instead of a clickable div. </div> <div>Example Code#1:</div> <div>This works in both IE and Firefox:</div> <div> </div> <div><!DOCTYPE
[jQuery] iterating over unknown number of objects
Hi everybody, I'm just starting with jquery so I hope this is not a stupid question... I have a big form and there can be two similar input or select fields. To differentiate these, I want to add n ID at the and of all name attributes of the text fields and select boxes. I want to add this function to the submit button, so when I submit the form, i get the new names. A short example... If I generate this form, all name attributes are "textfield" without any number at the end, so I just want to display
jqGrid anyone?
I stumbled onto this little gem a few days ago, and so far I am entirely impressed. DEMOS http://www.trirand.com/gridpreview/jqgrid.html BLOG http://www.trirand.com/blog/?p=14 GOOGLE GROUP http://groups.google.com/group/jquery-e ... ea50f53f52 Basically, the author, Tony, has given us much of the same functionality as the wonderful ext.js grids, but using jquery which, for me, makes it much much better! He has also added a huge number of options and open-circuits for almost any type of configuration.
[jQuery] clueTip's and Ajax
I have a div that is periodically loaded with html via an Ajax query and it may contain images which need clueTip's. The first time, the clueTip is applied, but any subsequent requests and it does not (the data is still loaded into the div correctly). Would removing the clipTip help and if so, how would you do that? Code: $.cluetip.setup({insertionElement: '#ajaxdata'}); var $ajaxdata = $("#ajaxdata"); var ajaxUrl = "/ajaxdata.ashx"; load(); // reload after 20 minutes var mins = 20; setTimeout(load,
[1st post] Event does not work after loading
Hi, first of all hello everybody, I'm new to this forum, please forgive me if this has been asked but there is so many threads to read and so little time...I promise I'll search better i the future (not that I haven't though) The thing is, I have an empty DIV which I update with the load function ($("#myDiv").load("myPage.html")), but later I can't get the events of this newly added code to respond... I mean, the "myPage.html" file contains a Select box, and I can't get $("#mySelect").focus to respond....
[jQuery] ul li ... hide an slide --- Beginner!
Hello everybody, this post begins as so often. I´m a newbie and I need some help from other jquery user. I think it´s an easy thing for those who has some more expierience than I. I have a list (simplified): <ul #menue> - <li>projects - - <ul> - - - <li>Project 1<li> - - - <li>Project 2<li> - -</ul> -</li> -<li>Contact</li> </ul> The list elements have some different classes. The list is provided from an CMS. In the beginning the submenus should be hidden. What I want to achieve is simple: The click
[jQuery] this.optional(element)
What the hell is this doing? I can't see any information in the docs anywhere that explains what this is for: this.optional(element)
[jQuery] Help with performance - drag + animation + treeview
I need some help getting my jquery script to work a bit more smoothly. Performance in IE6 seems a bit sluggish, and I'm still trying to figure out how to get things to happen in the correct order (still learning the basics) http://www.monkeypuzzle.net/testfiles/jquery/draglet/draglet_8.htm Clicking on an item opens it, you can then drag it anywhere. Hitting close will send it back to it's original spot. Draglets 2 and 3 are relatively empty, and work fine. Draglet 1 is complex, and seems pretty slow
[jQuery] jqModal, nestedsortablewidget and Dynamic Ajax URLs: My Solution
I've worked for two days with problems calling jqModal windows with different ajax URLs. I've read a number of the solutions here and elsewhere, but two problems were never solved, except by workarounds, which I thought I'd share in case they can help anyone else: (1) I was unable to use a class as a trigger failed within the nestedsortables widget, so I had to use a a javascript call that calls jqm() on each click instead of at the ready() level. Otherwise, the triggers are simply ignored. I am
[jQuery] OT: looking for advise on javascript OOP
Hello friends, i would like to have some advise on best javascript coding practice . For my app i first declare an object, then the properties i will use (for easier maintenance ). But i'm unsure on how best to program my UI.refresh() function: Basically, i pass it an object which should be compared to the existing UI object and wherever a property match, overwrite the old with the new. Everytime there is a change detected, an element must be added to a queue array. Here is my code so far. One question
[jQuery] Moving an element in the DOM
Hi, Given an element with id "elt" somewhere in my DOM, how do I move that element and append it to a DIV witih id = "divElt"? Thanks, - Dave
[jQuery] Superfish: How to keep one 2nd tier menu open?
Hi, This seems like a fairly basic question that ought to have a basic answer. I want to keep one of the 2nd tier menus open when the first is hovered over, but I want another 2nd tier menu to remain hidden. I tried the "current" class, but this obviously works only if you hover over the last link of the 1st tier. Just for clarification the idea is below. Thanks for any help! <ul class="nav"> <li>list one <li>item one</li> <li>item two <ul>*****THIS 2ND TIER STAYS OPEN WHEN 1ST TIER OPENS****** <li>sub
[jQuery] jFrame issue
This may be a repost from an earlier thread. Sorry if so, but my post never showed up. I am trying to call a jFrame API function, but it seems like not all of the functionality of a regular call is there. The call I am using is: $(curTargetElement).loadJFrame(curNewURL, curCallback); The call works fine...no errors. BUT, the loading target div never updates. Any ideas on what might be causing this?
[jQuery] Get which child is active?
I have a ul with a few li children. One of those children is going to have the class of 'active'. How do I get which of the children has this class? I was thinking something along the lines of jQuery('ul').children(':first'). something... not sure if chaining '.active' would work?
[jQuery] Strange behavior of form plugin
Hello. I took this(http://www.malsup.com/jquery/form) plugin. It works great if I don't use iframes. If I submit form with iframe : true and the script on the server outputs some html in the answer, the most of the tags in the text are stripped. if the output is <tr> <td><a href="somewhere">link on</a> something</td> <td>something other</td> </tr> the responseText in jquery is <a href="somewhere">link on</a> something something other What has caused such behavior?
[jQuery] jFrame API Call
I am trying to combine a jFrame target div load with a couple of other functions. I can get the jFrame call w to work as such: $(myTargetElement).loadJFrame(myNewURL, myCallback); Problem is, calling this function directly does not render the "loading content..." preload that is defined, not does it actually update the target element. Any ideas if this is possible?
[jQuery] passing a value to thickbox iframe via GET
im using thickbox to display a quicktime video in an iframe. to avoid having to create a new page to display in the iframe for every video, id like to just use one page in which i query the db to pull out the proper video, based on the id value stored in my table. the thickbox homepage says to use the string below and add on any parameters you need. so i have: ?KeepThis=true&TB_iframe=true&height=400&width=600&id=32 problem now i cant get the id to echo out on the page, doing a simple: $id = GET['id'];
[jQuery] Textarea to discrete fields
If there has been a similar post to this, please can someone direct me to it? I have a requirement within a form where the user needs to be able to enter text as freeform prose. The text has to be alphanumeric and the textarea tag lends itself to the job. The complication is that the text needs to be converted to a finite number of fixed length fields before being written back to a legacy database. The scope of a control I wrote some while ago in pure JavaScript provides the fixed length word wrap
[jQuery] jQuery Forum Queue-ing
I've seen a lot of posts where multiple people have offered similar solutions to problems, mainly because thier post did not show up quickly, so others responded in the meantime. I vaguely remember a mention somewhere about new users going through a period where posts were queued to deter spam, but is the process of moving authentic users of the forum automatic/manual? In either case, it would be great to resolve this somehow-
[jQuery] Capturing Search Engines "search term" for local search
Hi. Im new to JQuery and these discussion groups. Ive just started working with JQuery and was hoping perhaps someone had already been working on a similar issue and had some code/lessons to share? Im trying to capture a users searched-for-term from a search engine, that is passed in the HTTP-referrer query string. I would then like to pass that term over to a local search field on my site so users can continue their search there. Does anyone have any experience building such a script or any advice?
Next Page