[jQuery] Multiple inclusions of jquery possible?!?
Hi folks: We use jquery extensively in an application that suddenly needs to make use of an online ecommerce system that also happens to use jquery. This is causing things to break badly, not least because they use 1.2.6 but we have to use 1.3.2 to take advantage of a bugfix, and also because only some our pages will use the ecommerce includes so even if we got them to move to 1.3.2 the coding would become a nightmare since we can;t just assume their's will be there. As if that weren't bad enough
[jQuery] Tell if its the last item on a .each?
Hey How do I tell if the item on a .each is the last one? For example, lets say I want to add a comma after every item and not the last one, how would I do that? Thanks in advance.
[jQuery] Form Validation
I have just started using jQuery and wonder if you could help me please. I am working on a form which contains a field to enter multi-email addresses. How could I validate this field using jQuery? This is what I would do if I were not using the jQuery library function multiEmail(my_emails) { var email = my_emails.split(';'); for (var i = 0; i < email.length; i++) { if (!validateEmail(email[i], "Your email is invalid.", 0)) { return false; } } return true; } function
[jQuery] jquery validation question: validate a single form element onsubmit
I'm using the validate plugin, and am having a problem with simple one element forms. I have a single select list and a submit button. If the select list is empty, the validation prompts that it is required. When you choose an option, and click Submit, it validates and removes the required message, but then you have to click Submit a second time to actually submit the form... what would I need to do to have it validate the select onchange, so the submit fires the form submit?<div> </div><div>validation
[jQuery] Custom ScrollBar
Hello. I am looking for a custom vertical scrollbar plugin. I want to put it in a fluid width / height div, and so far i havent found anything. The only thing i did found is jScrollpane which doesnt like to work with jquery 1.3.1 so if anyone has any info please let me know. Thanks <br clear="all">------------------- Alexandru Dinulescu Web Developer (X)HTML/CSS Specialist Expert Guarantee Certified Developer XHTML: <a href="http://www.expertrating.com/transcript.asp?transcriptid=1879053">http://www.expertrating.com/transcript.asp?transcriptid=1879053</a>
HELP: Change object height to fit contents
Hi. I am trying to use the html object tag as an iframe so that I can validate with xhtml 1.0 strict. I have gotten the object to load my page successfully in every browser that I have tested, but I cannot figure out how to use javascript to set the object to the right height to avoid scroll bars. The code to do this for an iframe is something like: f.style.height = f.contentWindow.document.body.scrollHeight + 'px'; where f is the iframe ref. I am trying to mimic the above with an object. Is this
[jQuery] Passing JSON objects to a Web Method
Hello, How do I pass a JSON object to a server side web method as a parameter? For example: I have the following JSON object. var person = { "firstName" : "John", "lastName" : "Doe", "age" : 23 }; and I want to pass this object in the data: "{}" block. Is it possible? Regards, Mahesh.
[jQuery] How to traverse HTML ?/??????
************************** The leading business search engine and business directory designed to help its users find the companies, products, services, and information they need to ... *************************** _______________________________ http://www.coherentis.webs.com _______________________________
Anyone familiar with JQuery FileTree
Hi Guys, As my title, des anyone have any experience implementing/using the JqueryFileTree (found at http://abeautifulsite.net/notebook/58) to get a mysql database listed as folders. I've got a custom connecter written, which display any folders as folders and files as file which works fine. However When I click on one of the folders, it opens the entire root folder within the subfolder that I have just used. So for example, I have 3 folders in the root APPLE, ORANGE and PEACH, When I click on ORANGE,
[jQuery] Something broke in IE7
Hi guys after I finally got my code working in FF, IE7 is killing me! I never programed in javascript bevor so take it easy on me please. Using the DEBUGGER has helped me a lot, but now there are no more debug messages and I don't know what the hell I can do to get it work! I am guessing that my code is broken since the plugins are working great! The code I wrote in jQuery: http://code-bin.homedns.org/242 Now to the problem: Please note that the behavior I want is already working fine in FF so just
[jQuery] Superfish - Still Need Help - Error Message
URL of issue: www.royalmbc.org/ I desperately need some advice. It's obvious I'm a newbie here... and trying to get this site launched. I've deleted Superfish and re- installed it to its default load and it did not clear up the problem. I'm getting the following error message: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/ 4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Timestamp: Sat, 28 Feb 2009 14:57:26 UTC Message: Object doesn't support this property
[jQuery] Problem with accordion+form+IE
I all, I have a problem with my form and ie7 when i using accordion. The problem is that if i make an error on a field, the message error appear, but the mail is nevertheless sent. With Firefox and Safari, there is no problem. Just on ie7 (and before i suppose). If i delete the accordion function, everything be ok on ie7. I have a second problem, on click button sent (envoyé on my form), if a field is empty, i want open the tab where is the field empty and focus it. My focus works just if the tab
Flash is reloaded each time the tab is selected on FireFox
Hi, guys. I'm using the jQuery UI Tabs. Inside one of the tabs, the tab T, I inserted a Flash object. The Flash object calls the external JavaScript method, hello(), when the creationComplete event is raised. On IE7 the hello() method is called just once as I expected, but on FireFox 3 the method is called each time the tab T is selected. Apparently, on FireFox 3, the Flash object is release every time the tab T is hidden, and it is reloaded every time the tab T is selected. How can I avoid this
[jQuery] Parsing an external RSS feed
Hey all, I've done some digging for a jQuery RSS feed plugin. Some good ones out there. jFeed: http://www.hovinne.com/blog/index.php/2007/07/15/132-jfeed-jquery-rss-atom-feed-parser-plugin Other: http://www.levelfield.com/rss.html FeedReader: http://blogs.atalayasec.org/dev/2008/02/jquery-rss-feed-reader-plugin/ Some GoogleGroup discussion already with local solutions: http://groups.google.com/group/jquery-en/browse_thread/thread/3c2d9a352ed93586/d4af283e8e6753e2?lnk=gst&q=rss#d4af283e8e6753e2 Here's
[jQuery] Superfish - hide on clik ?
Hello, I am trying to make Superfish menu disappear after clicking on menu. Usually, this is not a problem, because after clicking on menu item you will point web browser to new page <a href="somepage.html"> but I load page dynamical ! - I use jquery for this, so I never point browser to new page and bacouse of this I would like to hide Superfish open menus after user click on some menu item. Please help me, or at least give me some hint. Thank you!
[jQuery] Code Simplifying Help
Is there a better way to do this? I think that it's possible to shorten this code, but I just don't know how. A little help would be appreciated. :) HTML form code: http://pastebin.com/m664f5de6 JQuery code: http://pastebin.com/m60b285b0 Maybe something like the following pseudo-code: ----------------------------------- on selectField change { clear the div container next to it and replace it with html recieved from the server. } -----------------------------------
[jQuery] TableSorterPager delete row problem
Hi all, I search all over the internet for my problem with the JQuery TabelSorter/TableSorterPager but all the sollutions don't work for me. I use Table Sorter and TableSorterPager for a big list. I can click on the rows, so i can edit some content in a lightbox. In this same lightbox i can choose to delete the row. Everything is working fine, but physically delete the row from the table don't work Here is the code I use the try to delete the row. $('#'+elementId).remove(); var page_size = $('.pagesize').attr('value');
[jQuery] Add an animate function to a addClass?
Hi all, why doesn't this work? it doesn't color red $.fn.hoverClass = function(c) { return this.each(function(){ $(this).hover( function() { $(this).addClass(c).animate({ marginLeft: '+=5px' }, 200); }, function() { $(this).removeClass(c).animate({ marginLeft: '- =5px' }, 200); } ); }); }; .navHover { background-color:#FF0000; }
[jQuery] Please, help me convert this flash menu into a jQuery menu?
Hi there, Could anyone get me started to convert this flash menu to a jquery menu? www.bldd.nl/jsproblems/convertToJQuery.html It's a dropdown menu with submenu's sliding in from the left. regards,
[jQuery] Help please with toggling a class
Hi.. I am trying to have it so my navigation toggle hidden boxes on the site. I want it so the link toggles the box on and off, as well as having the link itself have a class toggled on and off (a background color). So far I have the toggling box... jQuery.fn.fadeToggle = function(speed, easing, callback) { return this.animate({opacity: 'toggle'}, speed, easing, callback); }; $(function() { $('a.aboutlink').click(function() { $('.aboutbox').fadeToggle(); }); }); .aboutbox
[jQuery] ajax request on local machine and FF3/Firebug "Access to restricted URI denied code: 1012"
this has been discussed before, but I'm still hazy: In FF2 and old Firebug this function ran fine with local files (no local web server, just straight-up file on local desktop). Now Firebug complains "Access to restricted URI denied code: 1012" $.ajax({ type: "POST", url: myFileName, data: {}, dataType: "jsonp", async: false, success: function(ret){ JSON=eval('('+ret+')'); } }); I added the line dataType:"jsonp" after reading up on this inside the list archives. This did nothing. I don't feel like
[jQuery] .live() handler & svg elements
Hi All. I am faced with the problem of tying the events "mouseover" to the SVG elements. If I connect an event using .bind() method and specify the class as a selector for element, something like: $(".someclass").bind ("mouseover", function(e) {...}); - everything works fine, but only with the elements that are loaded along with the page. However, if I try to do the same with .live() to bind events to dynamically created elements - an event does not work, like specified an invalid selector. $(".someclass").live("mouseover",
[jQuery] click event and window.location problem in safari
Hello I have a simple jquery code that will put a link (on click event) on a division. The link is read from the anchor inside of the div: $(document).ready(function() { $("div.picture").click(function () { var url = $(this).find("a").attr('href'); window.location = url; }); }); This code will work fine in Firefox and IE, but in Safari it will return user to the url: http://someurl.com/http://someurl.com instead of: http://someurl.com How to fix this? Any ideas? Thanks a lot for help!
[jQuery] Superfish update?
Does superfish work with the new 1.3.2 JQuery? if not when will there be an update?
[jQuery] building object orientated javascript libraries - does jQuery support/help here???
Hi all, I confess this is a newbie question in advance: Q1 - If one wants to build a set of higher level library functions in javascript (e.g. to aid in drawing objects say) does jQuery assist here? That is would it provide a framework, or a standard way of building up JavaScript code with an OO like approach? Q2 - What would people recommend here for a set of higher level Javascript functions that themselves may lend themself to being modeled in a OO like fashion? i.e. in the javascript programming
[jQuery] Form Validation - Display text area input...
Hi, I know it's pretty common (and probably a simple thing to do), but I'd like to display the name and text that the user types into my form (form.aspx) on a response page (response.aspx) that the form goes to before submitting. Like a two-part submission so they can check their info and go back to change it if necessary. Is there a jQuery form validation that does this? I can't seem to find it. Thanks, Ena
[jQuery] FadeTo() On Table Row
I posted this a moment ago but it seems to have disappeared off the list again for some reason? I'm using FadeTo() on an <tr> element and it appears not to work in IE so I'm having to use tr.children().fadeTo() which absolutely kills performance in IE. I'll guess this is down to the way that IE handles opacity on its <tr> elements? is that correct? or is this a jQuery bug? Any information on this would be really great!! Rob
[jQuery] jerky animations in IE !
Hello. I've built a fairly simple website with a modal box that needs to fadeIn when clicked on a button. problem is, in IE (6 and 7) its super slow and jerky. This is very weired and its the first time i've seen this, because I've used this method enough times on other projects and IE worked fine. I have no clue why is it so!! looked at my function.js file and nothing should make it slow there..tried to remove eveything in the css and js BUT the modal window, and still... link : http://www.v-catalog.com/yair/hamismacia/
[jQuery] Error with jscrollpane and simplemodal
I have jscrollpane working in a test page - works great. I also have simplemodal working throughout a site - works great. But, when I try to put a jscrollpane instance in a simplemodal div, I get this error when the modal renders to the screen: uncaught exception: Syntax error, unrecognized expression: # I can't find any way around this. Any clues where to look or how to fix this? Thanks, Doug
Adding a new input field on click [solved]
I made a file which allows users to add input fields by clicking a link: http://johnimbong.com/labs/adding_fields.php But after you click the link the first time, clicking it a second time won't work anymore. In the end I was only able to insert one new input field. Can anyone tell me what I'm doing wrong? I also noticed that the newly created fields don't have any events working on them. It's like the events don't even exist.
[jQuery] Newbie clueTip Plugin style removal
Hi cleverer people than me... Please can someone point me in the right direction to use this brilliant plugin but have it add no stlye so I can add style to an unstyled chunk of markup? I'm calling the plugin with $('.linkToFaq a').cluetip({splitTitle: '|', width: '100px', cluetipClass: 'fdFaq', sticky: 'true'}); and fdFaq has only one rule, a border, and yet the o/p produced is the following (below my sig', a lot of style). Thanks LOTS in advance to any commenters, I'm sure it's easy and I am daft.
[jQuery] Error with jscrollpane and simplemodal
I have jscrollpane working in a test page - works great. I also have simplemodal working throughout a site - works great. But, when I try to put a jscrollpane instance in a simplemodal div, I get this error when the modal renders to the screen: uncaught exception: Syntax error, unrecognized expression: # I can't find any way around this. Any clues where to look or how to fix this? Thanks, Doug
works on some page refreshes, doesnt on others..
hi guys. i have the following piece of code: $(document).ready(function(){ <?php if (isset($panel)) { if ($panel == 1) { echo '$(".panel").show(); $(".btn-slide").toggleClass("active")'; } } ?> .....etc this shows the panel div which is normal not shown unless btn-slide is clicked. it also toggles the active class for btn-slide. the php variables are defined earlier in the document. for some reason, the toggle class part *always*
[jQuery] problems validating xhtml when using jquery append
hiya, i discovered that my lovely xhtml page stopped being xhtml valid when i used the jquery append function. it gives the error: "document type does not allow element "link" here" the solution is to wrap the javascript in a cdata tag like this: <script type="text/javascript"> // enclose the jscript in cdata tag so it is still xhtml compliant //<![CDATA[ $(document).ready(function(){ // load the correct css file if ($.browser.msie) { $("head").append('<link
[jQuery] Show active pages in accordion-style navigation
Hi, I've built an accordion-style navigation from an unordered list, and I want it to show the active page, but can't work out how to do it. UI Accordion does it perfectly, and I would use it but I want the section header links to be clickable as well as expandable. This is the list: <div id="sidebar"> <ul id="nav"> <li id="home"><a href="/au/about_us/careers/lifesavers/ index.htm">Lifesavers</a> <ul> <li id="life-pro"><a href="/au/about_us/careers/ lifesavers/recruitment_process.htm">Lifesavers
[jQuery] test
test
[jQuery] function $.ajax return true/false ?
Hello I have the following code: function pnrexists(a){ $.ajax({ url: '/inc/chkusr.php?q=p', type: 'POST', dataType: 'html', data: {'pnr': a}, timeout: 2000, success: function(data) { if(data==1){ alert('true'); return true; }else{ alert('false'); return false; } }, }); } the code above is triggered by: $.validator.addMethod("pnrcheck",
[jQuery] My birthday gift to the jQuery Community
It's been a while since I created anything publicly fun - kids have that effect on you :) So I figured I'd offer up my birthday gift to you: F3: Fast Flickr Findr http://www.sean-o.com/f3 Find Flickr photos fast. Built using jQuery, developed rapidly on Remy Sharp's JSBin. Enjoy. SEAN O _______ http://www.sean-o.com http://twitter.com/seanodotcom -- View this message in context: http://www.nabble.com/My-birthday-gift-to-the-jQuery-Community-tp22251475s27240p22251475.html Sent from the jQuery General
[jQuery] Problem in selectors
Hallo, I am experimenting jQuery 1.3.1. In one of my pages i have a simple table (id="tElenco") with different rows. Some of these rows have a class named "disabled" (<tr class="disabled">....</tr>). I wrote a script that toggle visibility to disabled rows, depending on a checkbox: function toggleDisabled(table, isChecked) { if (isChecked) table.find('tr.disabled').show(); else table.find('tr.disabled').hide(); } In jQuery 1.2.6 this script always worked. In jQuery 1.3.1 it has some troubles. I tried
[jQuery] ajax data
Hi to all I got the following problem I want to send to PHP server nested json using ajax. {item1:'one', item2:'eeee', item3:[{item31:'sdf', item32:'sdfs'}] } My code: $.ajax({ url: "translation_edit.php", type: "post", data: {item1:'one',item2:'eeee',item3: [{item31:'sdf',item32:'sdfs'}]}, success: function(data) { alert('Success');}, complete: function () { alert('Complete');
Next Page