[jQuery] treeview custom icon
Hi I would like to have a custom icon for one specific entry in the tree, is this possible? Thanks!
[jQuery] Need to make a edit layout system using php and jquery...?
Hi, I am right now trying to make a edit layout system. basicly I want to know how I can use jquery to grab the height width and position elements are at. Cause I plan to make in the edit mode to allow users to move like images and tables and texts around on the layout and even change background images and add more artistic images for their profiles. I will add also a music player. So I need to know how I can grab all positions height and width of each element on my layout and then store that data.
[jQuery] HELP, how to catch these elements ?
Hello, I need a help to catch these HTML elements - Elements - <table class="cbFieldsContentsTab cbFields" id="cbtf_46">....</table> <table class="cbFieldsContentsTab cbFields" id="cbtf_2">....</table> <table class="cbFieldsContentsTab cbFields" id="cbtf_21">....</table> <table class="cbFieldsContentsTab cbFields" id="cbtf_11">....</table> <table class="cbFieldsContentsTab cbFields" id="cbtf_20">....</table> <div class="tab-content cb_tab_content cb_tab_tab_main" id="cb_tabid_40">....</div> <div
[jQuery] I can't get Shadowbox to fire!
Hi folks, I've tried a zillion combinations but I can't find the one that will make Shadowbox (http://mjijackson.com/shadowbox/index.html) fire. I am running jQuery 1.3.1 and Shadowbox v2. Would someone mind checking out my test page at http://horticulture127.massey.ac.nz/dumpthis.htm and letting me know what I'd doing wrong. For example, clicking on the "site" hyperlink should bring up a Shadowbox containing an image - I just get a new page containing the image Thanks Bruce
[jQuery] Problem with Jcarousel and Safari: next button disabled
Hi, please check out http://www.mirox-media.com/blog_add/media/data/film_festivals.html When loading it the first time into safari, the "next" button and the dot array at the top are disabled. It works only if you click on the refresh button in safari a couple of times. Can anyone help?? thank you very much, Matthias
[jQuery] jquery.live() future?
hi there i read about the live() function and fount that Currently not supported: blur, focus, mouseenter, mouseleave, change, submit will in future versions of jquery this be included? Greet Jens
[jQuery] Need Help with :eq()
Hi All, I'm modifying Leandrovera's Lightbox plugin (http://leandrovieira.com/ projects/jquery/lightbox/) to display descriptions in a Joomla based image gallery. I'm having some issues with getting the right count. The following is shortened excerpt of the code generated from (http:// axia.entrecerebro.com/image-gallery2/): <div class="jg_catelem_txt"> <ul> <li> <b>Algoa Radio - South Africa</b> </li> <li> Description: Algoa Radio 1 </li> <li> <a href="# onMouseOver="return overlib('Click to download
[jQuery] passing in an index to a function, then toggle an element based on the index
Hi, I am invoking a javascript function with an index. Inside the javascript function, I am constructing the identifier for the element using the index. For example, if the index is 10, then the class name of the element is elem-10. Now I need to toggle the display style of that element. How can I do this? $("div.elem-"+index).toggle() is not working obviously. Thanks in advance!
[jQuery] "subclassing" ajaxForm
When I try to do this, firebug does not alert me of anything wrong, the form is posted normally (no ajax). What mistake am I making? // requires jquery.forms plugin jQuery.fn.jsonForm = function(onSuccess) { this.ajaxForm({ dataType: 'json', success: function(data) { if (data.Message) { alert(data.Message); // my json reply always has these 2 fields } if (data.ActionUrl != null) { top.location = data.ActionUrl; } if (onSuccess != null) { onSuccess(data); // what if onSuccess has an empty signature?
IE7 / Firefox behavior discrepancy (probably easy fix)
Hi all, I have some fairly simple JQuery code and CSS involving incrementing a count inside a hidden div and then unhiding that div. In my example the hidden div is at the bottom of the screen, to illustrate the incorrect behavior in IE7. Hard to explain, but it is simple code and just doesn't behave like it does in Firefox, nor how I'd expect. A working example is here: http://pastehtml.com/view/090204eUJyrjIU Is it CSS related? Surely it's not jQuery... Thanks in advance for any help =)
[jQuery] Can I use a reference to a select id in a function like this?
I have a select with id="agentSelect" and onchange="updateDutyRecord()". Once I choose an option, can I reference the select and option like this? function updateDutyRecord() { $('#agentSelect', this).change(function() { $('option:selected', this).each(function() {
[jQuery] Next/Previous element in each loop
Hey all, I'm loop over some nodes with each() and I need to look at the next and previous elements for the current iteration. <script type="text/javascript"> $(function() { $("div").each(function(i) { var prev = [SELECTOR FOR PREVIOUS DIV].text(); var next = [SELECTOR FOR NEXT DIV].text(); alert(prev + " : " + next); }); }); </script> <div>1</div> <div>2</div> <div>3</div> Will I have to store a reference to the divs and access it with i
[jQuery] Getting Style Information (left/top)
Hello, I'm a(nother?) new person to Jquery and have found it to be *excellent* so far (when I say that I may be understating how damned awesome it is!!) There is only one thing that has been bothering me - I can't seem to find a way of finding a position of an item with an easy Jquery shortcut. i.e. to find out the style.top value of an element, I have to use the following : document.getElementById("TheDivInQuestion").style.top Am I missing something that does this with something like : $ ("#TheDivInQuestion").top
[jQuery] Intellisense woes.
So I have the new 1.3.1 and vsdoc js file. I can get intellisense up to the point of "$(" After I complete that I get nothing after the "." ex ( $(".selector"). ) I get no chaining, nothing. I have all the patches installed for VS2008 sp1 So what's the formula for getting this plane of the ground?
[jQuery] jquery, OOP and this - Problem
Hello group, I got a problem with a JS class I am writing. I got the following piece of code: this.slide=function(){ $(this.container_selector_contents).fadeOut(1000, function(){ this.setContent(); this.fadeIn(1000) }); } The problem is, that inside the fadeOut() function "this" is now not the class but the jQuery element. So, how can I access my classes methods and variables again sine I can't use "this"? Thanks for your help!
[jQuery] Access DOM cross-domain
I'm playing around with writing a server-side script that generates JSONP from content that is downloaded by the script (URL is passed to script from querystring). Is there a better way to do it than to encode it as base64, or is there a work-around that doesn't require any server-side code? I'm basically trying to get access to a given page's DOM cross-domain using minimal server-side code. I suppose one thing that would be needed here is a regex to replace non http src attributes. Here is what
[jQuery] Floating Ad stutters/blinks
I have an animated flash ad -- 12 frame bouncing ball test @12fps -- that moves across the screen. During the slide the animation becomes choppy in Safari and the animation doesn't advance past the first frame until the sliding stops in FireFox. How can I keep the animation smooth while the div is in motion? #flashDiv {display:block; position:absolute; margin:0; padding:0; width:200px; height:200px; top:50px; right:-300px; border:1px solid blue; background:transparent none; z-index:10;} <script>
[jQuery] New jQuery Conditional Chain Plugin
Hey guys, I had an idea this morning which quickly turned into a small but, I think powerful, plugin. I'd love some review on it from the list, to see if anyone can see any glaring errors I missed, or has an easier/ already done way of doing it. The source code and some examples are located here: http://snipplr.com/view/12045/jquery-conditional-chains/ The basic idea was to add functionality to jQuery to conditionally execute functions on the chain, based on dynamic values. Take for example: $.ajax('url.php',
[jQuery] Accordion newbie problem
Hi there. I don't know if it is the right place for that, sorry if not. I have a newbie problem. I've red the documentation but i can't find the solution. I have a page with 3 accordions, based on the demo script, so i have: jQuery().ready(function(){ // simple accordion jQuery('#list1a').accordion({ animated: "easeslide", autoheight: true }); jQuery('#list1b').accordion({ animated: "easeslide", autoheight: true });
[jQuery] please help me for the performance
url: http://chan.idv.tw:90/test/marquee/marquee.html rar: http://chan.idv.tw:90/test/marquee/marquee.rar Hi, this is a image marquee to display the product, I feel a little bit lag when mouse over the image from left to right at the same time, please help me to improve the performance.
[jQuery] Floating Ad stutters/blinks
I have an animated flash ad -- 12 frame bouncing ball test @12fps -- that moves across the screen. During the slide the animation becomes choppy in Safari and the animation doesn't advance past the first frame until the sliding stops in FireFox. How can I keep the animation smooth while the div is in motion? #flashDiv {display:block; position:absolute; margin:0; padding:0; width:200px; height:200px; top:50px; right:-300px; border:1px solid blue; background:transparent none; z-index:10;} <script>
[jQuery] Sort Dilemna With Asmselect
Hello, I am using this very near perfect plugin http://www.ryancramer.com/projects/asmselect/examples/example1.html The problem that I am having, after sorting the options, I serialize them and put them in table A in database. The cities are coming from Table B and themselves are sorted alphabetically. When I go to the page and display the values from database, the selected sorted options which shows sorted as desired in the serialized data, adopt the alphabetical sort of the cities and at the next
[jQuery] dynamically building the "for" attribute
I have a series of labels and checkboxes. The checkboxes' IDs are generated on the fly, so I have no way of knowing the id at the server (without a lot of heavy lifting). I'd like to do this in jquery... here's what I have so far HTML <input id="Checkbox1" type="checkbox" value="x" /><label>something</ label><br /> <input id="Checkbox2" type="checkbox" value="x" /><label>something</ label><br /> <input id="Checkbox3" type="checkbox" value="x" /><label>something</ label><br /> <input id="Checkbox4"
[jQuery] Callback from the $.post function is not being invoked
I'm new to jQuery and it has worked great for me... except I seem to be having a problem with the $.post function. The response comes back but the callback function is not invoked. Here is the loop that I'm using to set the onChange event handler: datafields = new Array( "#field1", "#field2", "#field3" ) ; function edit_event_handlers( ) { for ( var target in datafields ) { $(datafields[target]).change( function(dft) { return function() { $(dft).css('background-color','orange') ; var params = { fieldname:
[jQuery] alignment IN IE6 ... with jquery..
Hi, ok currently I just looked at my website using IE6 and IE7. I notice the pages I used jquery and javascript, would be randomly placed around the website and also the menus that needed to fade in and out when a mouse hover occurs over the user image. Well those menus show up as images and dosen't fade in or out but is randomly placed around the website. In firefox it works fine. I can see it fade in and out and many other stuff. So firefox is set to go. it's just that IE 7, and 6 is weird. It
[jQuery] expanding menu
Hi - I hope this doesn't appear twice. I posted it over half-an-hour ago and it didn't show. I have a simple expanding menu at http://www.compassion-in-business.co.uk/virgo/manual/contents.htm I'm wondering if (a) I can make this work with a mouseover event rather than click; and (b) when opening one subsection I can get it to close the open one(s). Many thanks
Closing A Dialog UI From Inside An iFrame
I am creating a jquery UI dialog, which basically is an iFrame. I am running into a huge problem though, as I need to be able to close the jquery dialog from inside the page called within the iframe. The problem of course if that the dialog has been binded to the parent page, not the iframe page. Is this possible to close the dialog from the iframe page? Can I pass a reference to the dialog object into the iframe page, so then the iframe page can close the dialog? Thanks.
[jQuery] table header order
HI, i have a table with thead, tbody and the headers (stored in thead) should be able to be moved to reorder the table. for example, if the 1st column is "ID", the 2nd column is "Name" and 3rd one is "firstname", i want user to be able to drag and drop column "firstname" between ID and Name columns. so the firstname would be the 2nd column now. how can i do that using jQuery ? thx.<br clear="all"> -- Alain ----------------------------------------------------------- Windows XP x64 SP2 / Fedora 10
[jQuery] Triggering a link with no click event
HI All, It could be a silly question, but I cannot find a simple answer... I need to trigger a link with href via an external function, i.e. <div onclick="linkClick()">Emulating click</div> <a id="test" href="flash/pdfs/test.html" >my link</a> function linkClick(){ $("#test").click(); } It does not work and returns nothing. I understanbd that it is because the a#test does not have the actual onclick event. So, how can I emulate click on a#test? Note, that I cannot modify the a link element or add
[jQuery] expanding menu
I have a simple expanding menu at http://www.compassion-in-business.co.uk/virgo/manual/contents.htm I'm wondering if (a) I can make this work with a mouseover event rather than click; and (b) when opening one subsection I can get it to close the open one(s). Many thanks
[jQuery] Problems with the simple jquery suckerFish menu?
Hi there, I am having problems with the suckerFish menu if i copy the code and let the font-size be 22px all is good: bldd.nl/jsproblems/menuTest2.html please rollover item3 but when i use a smaller font bldd.nl/jsproblems/menuTest2.html and you roll a couple of times over item3, i can't select the dropdown menu, it disappears??? How can i fix this???
[jQuery] Does it hurt to call functions that don't do anything on the page?
So I have my document.ready function, looks something like this: $(document).ready(function(){ ManageCategoriesClick(); HideByDefault(); PrepareSplitForm(); SetUpAdvertPopup(); CheckAll(); CheckNone(); EditCategoryInPlace(); PreparePaneLinks(); PrepareToolTips(); }); Those functions all call things, but many are for specific pages. Does it slow the page down if they don't find the elements the functions call? What's the best way to call functions that are specific
[jQuery] attr feature
Does the attr feature let me capture my own attribute inside a element. I am trying and it doesnt seem to be working. I just wondering if there was a way to do this. Thanks -Tom
[jQuery] Jquery pagination plugin problem
Hi all, I am playing with the pagination plugin (http://plugins.jquery.com/ node/5912) and cannot figure out how to change number of items showing on a single page. Changing the param items_per_page changes the number of page links (navigation), but still shows a single item on a page. You may play with the demo.htm from the download to see what I am talking about.. Has someone faced the same problem? Any suggestions how to fix this?
[jQuery] ui dialog
im not able to download the full package of ui dialog.....moreover while trying to download themes error is being generated and i cannot extract files.... thanks all
[jQuery] Select element based on a value of its child element
Hello all. I have the following... <div> <input type="text" value="1" /> </div> <div> <input type="text" value="2" /> </div> <div> <input type="text" value="3" /> </div> ... and I want to select the second div because its child input has a value of 2. I know I could select the input then come back to the div with parents ("div"). Just wondering if there's a way to do it in the selector string. More out of curiosity than need ;) Thanks. Adrian
[jQuery] [Validate] list of metadata options?
I may be missing something obvious. The docs for Validation (http:// docs.jquery.com/Plugins/Validation) are very clear on the JavaScript API. But I'm trying to find documentation on what is supported in metadata. The example uses: <input id="cemail" name="email" size="25" class="required email" /> Which tells me that this field is required and must be a valid email address, but nowhere do I see a list of what kind of stuff can I use in the class field. Can I do required url, required number, etc?
[jQuery] [Validate] Example of custom rule w/ metadata only
I'm trying to work up a demo of a custom validation rule that uses metadata only. I've cobbled the following together but the custom rule never fires: <script> $(document).ready(function(){ jQuery.validator.addMethod("range_exp", function(value, element, params) { return this.optional(element) || ( (value >= params[0] && value <= params[1]) || value == params[2] ); }, "Please enter between {0} and {1} or {2}"); $("#commentForm").validate(); }); </script> <input id="WBC_I" type="text" size="6" validate="range_exp:[
JWYSIWYG Help
Hi, I am currently using JWYSIWYG to implement rich text editor in my web page. I would like the rich text editor to return to a plain text on the web page after a user clicks a button. I don't know how I can obtain the content from JWYSIWYG so that the text can be displayed. Please help. Also a guide to all the syntax associated with JWYSIWYG would be great too. Thanks.
[jQuery] appying addClass to proper element (jquery 1.1 -> jquery 1.3.)
Hello, I'm doing a modification on a javascript that is written for jquery 1.1 and wont work with jquery 1.3. Heres is the shortened original code: stars = $("div.star", obj), ... stars.lt(rating[0]).addClass("on"); //critical line that causes error I changed the line above to: $("div.star:lt(" + parseInt(rating[0]) + ")").addClass("on"); which seems to work with jquery but it wont apply addClass to the proper div.star element (if there are more than 1 div.star-s in the html. I'm wondering how should
Next Page