[jQuery] jquploader: possible to build an upload form without Flash?
Hi, Guess I'm just a sucker for punishment. Has anyone had any success building a form that doesn't require Flash that uploads files using jqUploader? I followed their setup instructions http://www.pixeline.be/experiments/jqUploader/setup.php and it didn't say anything about needing the "jqUploader.fla" object, but I discovered if I didn't have that file in the same directory as my upload page, I can't see a jquploader form on my page. Just don't want people to have to install Flash. Thanks, - Dave
[jQuery] scrollTop not working in IE 6/7 or FF
i have this code alert($('body').scrollTop()); in opera and safari, I get the correct number however IE 6/7 and FF give me 0, anyone no why this would happen? My HTML is valid so that is not an issue, not sure what else tho would case IE and FF to me up. -- View this message in context: http://www.nabble.com/scrollTop-not-working-in-IE-6-7-or-FF-tp15489721s27240p15489721.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Getting height() value on a dynamic area
I'm working on a layout where the user clicks a button and content loads via Ajax into content box elsewhere on the page. Right after making that ajax call I try to get the height() of the content box, but the value returned is the height of the box BEFORE the content was loaded. How can I get the height() of the box with the new content inserted? Thanks!
[jQuery] Trouble applying .show() to descendants
I'm trying to use the show function to display elements in a jQuery object that contains a block of code I cloned. I'm having trouble getting the show function to apply to all the descendants of the code in the object. It's probably better if I show an example than try to describe everything: This is something like what I've copied: <table id="itemForm:resources"> <tbody> <tr> <td> ... more elements, some I've previously hidden using .hide() </td> </tr> <tr> <td> ... </td> </tr> ... </table> I clone
[jQuery] Jquery AJAX Email Client ???
Hi, Does anybody know an ajax email client like this one ona dojo http://dojotoolkit.org/demos/email-using-1-0 ??? but in Jquery.
[jQuery] how to disable wheel scroll?
I have $(window).bind('scroll', function(){return false;}); but the wheel scroll still scrolls the window, how to i disable it. -- View this message in context: http://www.nabble.com/how-to-disable-wheel-scroll--tp15471899s27240p15471899.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Form plugin in jQuery 1.2.3
Is it just me or does the form plugin currently not work in jQuery 1.2.3? No way... --Klaus
[jQuery] change in jQuery.grep in 1.2.3?
Using the following method no longer works in version 1.2.3 (stealing examples from documentation): arr = jQuery.grep(arr, "a != 9"); Debugging was showing an undefined function using the above method. Rolling back to 1.2.2, all works fine with the above. Anticipating using the new ui.jQuery package, I've modified my code to use a version of this method which works with 1.2.3: arr = jQuery.grep(arr, function(n, i){ return (n != 5 && i > 4); }); Was dropping the first method intentional for this jQuery
[jQuery] [treeview] How to force a branch open.
I love the plugin and it does its job perfectly. Especially the persist: "location" trigger makes my life so much easier. But I don't quite know how to open a branch in reverse. I.e. I use it for navigation and it works all the way down to the category level using persist:location. But on the single entry pages the URL is different. I know the catergory (i.e lowest branch) the page belongs to and I can even set that branch to class="selected". Unfortunately the tree remains closed. The question is
[jQuery] Keeping Submenu Open?
Hello all, I have a menu with a submenu using jQuery. The problem is I am trying to get the submenu to stay open after you have clicked on the sub menu item. So, to have the sub menu open on the active top menu place but clear when there is no submeu. After hours of searching, I cannot find out how to make this happen. I know it can be done but da nada. I am pretty sure it somehow uses cookies and I have never had to code cookies before so I am a bit stuck. Please can anyone help?? This is what I'm
[jQuery] [Validate] Validation doesn't work until after submit button used
Hi, all. (especially Jorn) Anything wrong with this script? Thanks, Rick $().ready(function() { $("#add-announcement-form").validate({ errorPlacement: function(error, element) { error.appendTo("#" + element.attr('id') + "_error"); }, focusInvalid: "true", event: "onsubmit", rules: { title: "required", text: "required" }, messages:
[jQuery] About jQuery.attr(type,value)
Dear Team, I have a question that how can I modify the attribute using jQuery. For example: There have a element: <input id="changeType" type="checkbox" value="has changed"> and now I would like to change the type to "button", following code is my tried on IE7 and Firefox 2.02 on jQuery 1.2.3 and there are not success: 1. $("#changeType").attr("type","button"); //failed 2. $("#changeType").removeAttr("type"); $("#changeType").attr("type","button"); //failed I can modify the type by following code:
[jQuery] Sending Tabular Reports to Printer
Hello, I have been looking (three days) for something that will allow me to format data from a MySql table into a tabular form and send that report(s) to the printer, at one time, without using "window.print()". There may be one or several reports and would like to send this to the printer after the user has made her request. If anyone can point me in a direction or have any ideas would be Greatly Appreciated. Thank you in advance for any help.
[jQuery] Dynamically prepending elements to a div
Hey all In this example, how come I can't prepend the paragraph to the div more than once? $("#adder").click(function() { $('#container').prepend($('#content')); }); # Add content <div id="container"></div> <p id="content">content -- View this message in context: http://www.nabble.com/Dynamically-prepending-elements-to-a-div-tp15480643s27240p15480643.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] How to define FireBug?
Hello all :) If it possible to define Firebug? Install it or not? Like it possible do whis browsers by command: if ($.browser.safari) { alert("this is safari!"); } maybe like this :)) if ($.extensions.firebug) { alert("FireBug is install!"); } Thank you to attention, and one more time sorry for my poor english:), but I try hard :)
[jQuery] OT: FCK editor now double spaces with enter key?
We've been using FCK editor for a while now. It used to create a single return when hitting the enter button. We recently upgraded to a newer version (2.5 I think) and now it creates a double space instead. Does anyone know if this is a setting that can be changed? andy
[jQuery] Animate function. Once I animate how do I er.... de... animate
Ok sorry about the title, don't know what to say. I have a site for a client, and when you click a certain div it animates with a marginTop -=300px like effect so the div is just visible sliding in behind another div. Now, if the user clicks the div again it will do the same and go up by 300px. What I want is a toggle like function where if you click it the second time it now adds the 300px back and the div is back in place. so right now here is the setup code, very simple: $("#container").click(function()
[jQuery] Create thickbox dymanically after opening one
This is the deal. I have a form and based on the information they enter in this form, when they click to submit it, it take the form data and turns it into the url query and they create a link with the url, adds thickbox to the newly created link and then triggers the link to bring up the thickbox which works fine. Now lets say that they wan to change something. so they go and close the thickbox and then change the form and then re submits but this time the redirects the page to the url, not open
[jQuery] Thickbox: Reload TB with new content?
Hi folks, (FYI: I've asked this question in the thickbox forum, but it doesn't seem to get much traffic, so maybe someone here will have an answer.) I have the thickbox widget working fine. Love it. While most of the TBs are standard (open box, display content, close box) in some cases I need to reload new content into the same box (after a user has made a form selection). Essentially, this is a multi-page view within a single TB. I've managed to get a TB to load new content while it's open by using
[jQuery] plugin to 'throw items around'
Hi Does anyone know a plugin that would let users 'throw items around' in a designated area. basically something like this http://www.etsy.com/showcase.php once you click on an item, it pops up and then u can draw and throw it. i know there are bunch of drag and drop plugins around but anyone know of 'drag and throw' maybe?
[jQuery] Correct way to read JSON string
hi, what is the correct way in jQuery to decode = deserialize a JSON string? jQuery itself can obviously do it as it can formulate and read JSON via Ajax. But i seemingly can't find a callable in jQuery that allows me to decode JSON without issuing an HTTP request. That is strange to me. Can you help? _wolf
[jQuery] Google uses jQuery on another site
Google China holds one commonweal contest at www.gong1chuang1.com announce: http://googlechinablog.com/2008/02/blog-post_14.html pages use jQuery: http://www.gong1chuang1.com/googlecup/newsrelease.jsp ('gong1chuang1' stands for Chinese pinyin 'gongyi chuangyi' which means commonweal originality)
[jQuery] Please help IE 6 not working with cycle
Hi, I am using jQuery Cycle on our portfolio page and all is fine, apart from IE6 (Shock IE6 not playing ball?) it does not display the slide show at all or any images for that matter. Can anyone help me? Please? Here's the page... http://www.c9dd.com/v2/portfolio/index.php Thanks Ash
[jQuery] Grid with client side sorting
At work we're evaluating some grid controls with client side sorting capabilities. We tried Ext.Grid but it's a little too invasive (it also modifies the HTML content of the page outside the div where it belongs), it's *really* heavy and have some issues with our CSS files (its CSS classes are not even documented outside the CSS files themselves AFAIK). The great thing by the way is that it sorts a bunch of JSON data on the client side without issuing a request to the server each time the user clicks
Getting data back from an AJAX call
Just started looking into doing AJAX with jQuery. I think I've got it mostly working but I don't seem to be getting any data back. Here is the call: $.post( "http://100pcmusic/qsearch.php", { q: 'radio' }, function(result,textstatus){alert(result)} ); The PHP script is available, and the URL /qsearch.php?q=radio displays some HTML. However, the alert box displays nothing. textstatus is always "success". I'm working locally at the moment, could that be the problem? As I said, the URLs work fine. Have
.load() - weird behaviour? [solved]
I did a website for my son (sorry all non-chelsea fans ) and used the opportunity to practice some more jQuery. I tried an idea I thought would be cool. Using the .load function with a filter I sucked in the stats for players from a totally different site. This is the part of the code that performs that function: $("#profile p").load("" + playerURL + " .stats").fadeIn("slow"); The playerURL is a variable that is set from the href value of the link that is hovered over. .stats is the common class
[jQuery] jQuery pimped out Free Css Template project
Has anyone noticed www.yooTheme? They have some interesting templates, with a variety of jS interfaces built into the layout. Check out this demo for example: http://demo.yootheme.com/ The drop down at the top selects the actual templates, and the latest offering "Beyond" is the one that caught my eye. They offer Joomla extensions: * YOOcarousel * YOOaccordion * YOOslider * YOOdrawer * YOOtoppanel * YOOlogin * YOOsnapshots What I'm proposing is a generic offering of similar jQuery plugins, and placing
[jQuery] returning an object array to a JS function - doesnt work
Hi, I'm mixing regular javascript with Jquery and for some reason I cannot pass a return value back - any idea why? output = loadXMLarray('echo.php','datatable1') ); alert (output); // does not work function loadXMLarray(scripturl,variable){ $.get(scripturl,{xml:variable}, function(data){ // loading my XML objectArray = new Array(); // setting up my array to hold objects with $(data).find('row').each(function(i){ // iterating through my XML source rowObj = new Object();
[jQuery] Grid with client side sorting
At work we're evaluating some grid controls with client side sorting capabilities. We tried Ext.Grid but it's a little too invasive (it also modifies the HTML content of the page outside the div where it belongs), it's *really* heavy and have some issues with our CSS files (its CSS classes are not even documented outside the CSS files themselves AFAIK). The great thing by the way is that it sorts a bunch of JSON data on the client side without issuing a request to the server each time the user clicks
[jQuery] tabs: Can't get tabs to work, but I'm including the right files!
I just downloaded the jquery tabs zip file, unzipped it and got the demo working http://elearningrd.info/tabs/scripts/tabs/ but when I try and build my own page, I get JS errors: http://elearningrd.info/tabs/docbuilder/build_doc2.php I'm including the same JS files (so I think) as the demo page, but it's clearly not enough. What gives? Thanks,- Dave
[jQuery] Pagination plugin (and jquery plugin instances in general)
I'm using the pagination plugin at the top and bottom of a list. Works great, except that the two instances are independent. Clicking on page "3" in the one pagination instance will not change the other. I've thought of various solutions/workarounds, but they all involve getting access to the pagination instance. Is this possible? Here's some sample code... $(document).ready(function() { // there are two divs of class pagination. $('div.paging').pagination(list.length, {callback(pg): drawpage(pg);});
[jQuery] re[jQuery] moving a certain event from element
I have a plugin that creates a click event on $(document). I want to be able to remove just that event and if something else has added an click event to the $(document) I still want it. $(document).unbind('click') will remove all event, even ones i did not create. is there a way to do this? -- View this message in context: http://www.nabble.com/removing-a-certain-event-from-element-tp15468938s27240p15468938.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] [validate] Possible bug - if name field looks like: questionAnswersMap(Q8).answers[0]
My name fields in my form are backed by a String array in a HashMap and I need them in the following format: questionAnswersMap(Q8).answers[0] The problem is when I try to assign a validation rule to this name, I get an error in the javascript parsing: 'missing : after property id [Break on this error] questionAnswersMap(Q8).answers[0]: "required"\n' My form declaration looks like: <pre> $("#preAssessmentForm").validate({ debug: true, errorContainer: container, errorLabelContainer: $("ul", container),
[jQuery] [validate] Possible bug - if name field looks like: questionAnswersMap(Q8).answers[0]
My name fields in my form are backed by a String array in a HashMap and I need them in the following format: questionAnswersMap(Q8).answers[0] The problem is when I try to assign a validation rule to this name, I get an error in the javascript parsing: 'missing : after property id [Break on this error] questionAnswersMap(Q8).answers[0]: "required"\n' My form declaration looks like: <pre> $("#preAssessmentForm").validate({ debug: true, errorContainer: container, errorLabelContainer: $("ul", container),
[jQuery] plugin creation / OOP question
hi! while working on a plugin and following Mike Alsup's plugin pattern ( http://www.learningjquery.com/2007/10/a-plugin-development-pattern), i'm stuck trying to reference an external function inside the plugin: i have an externally accessible configuration object to store options 's default values. $.fn.jqUploader.defaults = { onIni: initializeUploader(), // more options... }; as you can see, i associate a named function to the onIni property of the defaults object. Here is that function, completely
[jQuery] keeping element is same position no matter scroll
I want to create the same effect the thickbox/thickbox reloaded does so if someone tries to scroll down manually with the mouse and browser side scroll bar my content remain in the same place not matter where they scroll, how is this possible? I search the thickbox reloaded code and can't seem to find out how they did it. -- View this message in context: http://www.nabble.com/keeping-element-is-same-position-no-matter-scroll-tp15466372s27240p15466372.html Sent from the jQuery General Discussion mailing
[jQuery] keeping element is same position no matter scroll
I want to create the same effect the thickbox/thickbox reloaded does so if someone tries to scroll down manually with the mouse and browser side scroll bar my content remain in the same place not matter where they scroll, how is this possible? I search the thickbox reloaded code and can't seem to find out how they did it. -- View this message in context: http://www.nabble.com/keeping-element-is-same-position-no-matter-scroll-tp15466372s27240p15466372.html Sent from the jQuery General Discussion mailing
[jQuery] Counting checked input checkboxes
I would like to count the number of checkboxes with "checked" attribute equals to true inside the page's "category section" in which the user clicks. I use the variable "checkedInputCheckboxCount" to store this information but it seems that I get results multiplied by 2. What did I do wrong? Any hint ? Thanks a lot! Alessandro Here is my page: <html> <script type="text/javascript" src="/home/gbs00819/src/html/script/ jquery/jquery-1.2.1.pack.js"></script> <style type="text/css"> .category{border:
[jQuery] multi-leveled jcarousel
does anybody know of a method that allows for two rows of three items to show up with the jcarousel plugin?
[jQuery] Using setTimeout with a callback (callback appends function content)
I'm trying to create a simple image slideshow that is timed based on when the image is loaded. I'm having a problem when using callback functions and setTimeout. The callback function seems to append each time the function is called. I was wondering how to resolve this problem Order of events: 1. Click "Play" 2. "Play" message is shown. 3. First image switch "Set" message is shown 4. "Play" message is shown. 5. Second image switch "Set" message is shown twice. 6. "Play" message is shown. 7. Third
Next Page