Error console -> syntax error
Using: Firefox 4, jQuery 1.5.1 min When I click on front_item the content in front_container updates with contect which is in test.txt, but Firefox 4 -> Web developer -> Error console says If I write <p>Test bla</p> it works without error. Even if I change dataType to text and $(id).text() it's the same. So there must be always something like <something>My content</something>? Error: syntax error Source File: file:///E:/test1/test.txt Line: 1, Column: 1 Source Code: Test bla test.txt Test bla <div
append() to head not working in 1.5
I am not able to re-open a ticket, and I can't find the contact information of somebody to do it for me. I'd like to re-open Ticket #7522, since I am again able to reproduce it in 1.5.1. Is there an easy way to do this? edit: I changed the title, since the content of the topic is going in the direction of tickets #7522, #5819, #8607 and #8574.
Stuck! Please help!
Hi! I'm new to jQuery and I need some help to figure it out. When the page is fully loaded for the first time, click on the first tab (profile) and you'll see the problem: it wants to load the menu-item again. All I want is that when it first loads the page, it already knows it is in loaded state. Thanks in advance! http://bit.ly/gLilCo $(window).load(function(){ $('#page2').delay(200); $('#page2').show('slow'); $('#content>dd').css({display:'block'}) $('#thumbs').jScrollPane({ showArrows:false,
$.get method having limitation of no of call
Hi I am using jquery ajax of $.get method for calling data in javascript. but when there is multiple call of function. my page get reloaded. can anybody solve my problem thank you Prem
having proble in ie6 please provide the solution i am
link to problem please provide the solution
jQuery 1.5.1 & Chrome/Safari - jQuery errors
jQuery won't appear to load properly on Chrome and Safari for a website I'm working on. (I'm using the jCycle plugin on the page). It works everywhere else including IE6. I can't tell from the errors if the issue is with jQuery itself or the plugin. Here's the error I'm getting: Uncaught TypeError: undefined is not a function jQuery.jQuery.extend._Deferred.deferred.resolveWithjquery-1.5.1.js:869 jQuery.jQuery.extend.readyjquery-1.5.1.js:420 jQuery.DOMContentLoadedjquery-1.5.1.js:1055 I'm unfamiliar
Need a jquery ajax hack for safari
I got an issue with safari and this ajax holder that i got on my website, the ajax holder is a menu with alot of jquery animations and 2 lightbox(s) with about me info and contact form. the ajax holder is simular to this below http://www.javascriptkit.com/script/script2/dropdownpanel.shtml could someone plz help me with this problem because im not the 'hackee' type when it comes to web browsers. the ajax holder works fine with IE (weired), chrome, firefox, opera its just safari thats giving trouble.
navigational highlight based on url hash not working.
Hey guys, can't quite wrap my head around why this doesn't work. Pretty self-explanatory, but it grabs the hash (#lofts), chops it and adds the extension (lofts.php) then goes through the navigation, looking for an anchor with an href of lofts.php to add a class to...No class being added though. $(function(){ $page = window.location.hash.substring(1) + '.php'; $('#project_navigation ul li a').each(function(){ var $href = $(this).attr('href'); if ($href == $page) { $(this).addClass("current");
select "a" tag with attribute"rel"
here is my html <a id="ctrl2" href="'>web-link1</a> <a rel="300;500;modal;head;http://www.gmail.com" id="ctrl1" href="">web link2</a> requirement select "a" tag that has "rel" attribute. get the values within rel and show modal here is the code $('a[rel]').click(function() { callform($(this).attr("rel"),'Required Fields'); }); function callform(PArel, lbltxt) { var htt=PArel.split(;); if(htt[2]=='modal') { ........ } ...... } its not picking a with rel....................Any help will
One variable plus another variable
Hi, I'm using a jquery invoice script from css-tricks where I wanted to add Taxes to the total. The problem I have with it that when I wanted to add one variable to another withe the + sign the variable are placed after each other... You can see the script on this page . The line which causes it is: var inclbtwraw = $("#subtotal").html().replace("€ ","") + $("#btw").html().replace("€ ",""); thanks in advance for your time! Chris
Image loading error
Hi, Is there a way to get notified when a image couldn´t be loaded -say, image src is invalid or image doesn´t exists- in order to avoid the red cross canvas?? Thanks in adv
How to use Attr() function no only for the first element?
Hi everybody, I've made a script to highlight an element when you rollover on another one. // Highlight thumbnail on roll over post list item $("#sidebar-left .left-col2 a").live("hover", function(){ var title2 = $(this).attr("title"); alert("title : " + title2); if ($("#portfolio-list li a").attr('title') == title2 ) { $("#portfolio-list li a[title="+title2+"]").parent().css({"border": "1px solid red"}); } }); My problem is that the script works fine but unfortunatly just for the first li element
.submit and executeSql problem
Hi, i have the following code: /******************** campi.js ******************************/ var campi = {}; var dbName = 'mobi-lite'; var db = null; var html = ''; var id_oggetto = 852; $(document).ready(function() { $('#show').click(function() { //recupero l'utente loggato e in caso di successo recupero le sue attivita' campi.showListaCampi(); }); }); campi.prova = function(){ db.transaction(
:odd removes bullets in "li" , but :even works correctly, is this bug or do i miss anything?
Hello all, I created a class .highlightodd { background : #eee; color : #000; } then <script type="text/javascript"> $(document).ready(function() { $(".liHiLite:odd").addClass("highlightodd"); }); </script> The output works for this following code, <ul> <li class="liHiLite">li item 1</li> <li class="liHiLite">li item 2</li> <li class="liHiLite">li item 3</li> <li class="liHiLite">li item 4</li> <li class="liHiLite">li item 5</li> </ul>But weirdly it removes bullets, But
Ajax fix for IE breaks FireFox
I changed a recent ajax POST call that was receving an XML result and processing with a series of find() in the success: It had worked fine with Firefox but failed in IE. I found some documentation that explained how the dataType needed to be different for IE, and the result had to be process first for IE using Microsoft DOM. The IE worked like a charm. But now Firefox isn't. I can see the the POST does hit the backend code that finishes successfully. But then nothing happens in the browser,
Running Muliple Instances of jQuery
Hi I have been unable to find an answer to this question, but I am sure someone here is able to help, I have two instance of jQuery in my Joomla site, the first allows a clickable banner drop down at the top of the website the second allows the background to fade when the navigation is hovered two separate entities that seem to clash. As you can see I have tried to define the second as jQuery(function($){ to avoid conflict without success, both work if i delete the other. Any help would be much appreciated.
Input focus for firefox and safari doesn't seem to work
The following should refocus an input element with a name of 'test' if it contains an empty string. This works for IE (8.0.7600) but not in Firefox (3.6.15) or Safari (5.0.4) $('input[name=test]').blur(function() { var $this = $(this); if (!$this.val()) { $this.focus(); return false; } return true; });
How to target a tag with his title value?
Hi everybody, Im trying to target an element to highlight it when I roll hover on a a tag list (which is a result of ajax request) I've try that: // Highlight thumbnail on roll hover post list item $("#sidebar-left .left-col2 a").live("hover", function(){ var title2 = $(this).attr("title"); alert("title : " + title2); if ($("#portfolio-list li a").attr('title') == "Mail" ) { $("#portfolio-list li a").attr("title","Digital Mail").css({"border": "1px solid red"}); } }); My problem with my script is
Show/Hide a div in IE6/7
Hi, i searched the forum, but did not find a working solution for my problem. IE6/7 are not hiding the divs in the $(document).ready function. Tried also: $("#closed").css('display', 'none'); document.getElementById('closed').style.display = 'none'; It is working when i add the ID "closed" to the <li>-Element instead of the <div>-Container. All other browsers are working fine. Thanks in advance! Kai Code: $.ajax({ type: "POST", timeout: 7000, data: {username: username, password: password}, url: "php/login.php",
Problem Finding an object
Hi, I have a function that creates a custom flash media player object. Once it has been created, I'm trying to call its "PlayVideo" method. However, the DOM doesn't recognize the object unless I do an "alert" in front of it (then it works fine). How or what can I use to find the element? Below is the code: [code] $('.media-player .thumbnails .thumbnail').click(function(){ playerInfo = $(this).attr('id').split('-'); displayMediaItem(playerInfo[1],playerInfo[2]); }); displayMediaItem
Video Tag Chrome and Jquery issue
I am getting issues when I am using any form of jquery with a video tag, the issue is with just Chrome 10, and I have this video scrolling menu that when i click on it it plays a video using the <video> tag etc but when I scroll my menu up /down I am getting a weird effect where it only scrolls half the menu and the rest stays in place as it stuck etc. No working on this issue I have placed a large empty div above it with a height of say 132px, this seems to have solved the issue, but as you will
Problem in Opera, Chrome but not in IE8
Please Help to fix. If you click on IE8 picture is open lightbox, if you open in Opera or Chrome and click on picture - picture open in this same window. Example url Thanks for help
getting error
i am using jquery for popup the point is the same thing working fine on local server is giving error when i upload it to site the error are "'.cannot call method click of null" and " Uncaught TypeError: Cannot call method 'click' of null (anonymous function)index.php:319 jQuery.fn.extend.readyjquery-1.2.6.min.js:27 jQuery.extend.ready.jQuery.readyListjquery-1.2.6.min.js:27 jQuery.extend.eachjquery-1.2.6.min.js:21 " i am calling file like this <script src="'.$theme['url'].'/js/jquery-1.2.6.min.js"
Conflicts with jquery plugins
Hi all, I am great fan of jquery plugins and now I am using lots of plugins whithin one page, due to this the plugins are conflict with each other some time, so my question is do you have any mechenism to avoid such conflicts?
findout out which mouseover element has triggered event
I am trying to make an animation on website spiderspun .co .uk (spaces added to avoid being called a link builder ) I have two div: #sidebar1-menu ul{position:relative;background-image:url("../spiderisms.png"); background-position:525px 110px;background-repeat:no-repeat;} #sidebar1-menu a{...css stuff...} I am using a backgroundPos plugin. In order to animate the image (a circle) i am using code: $('#sidebar1-menu ul') .css( {backgroundPosition: "4px 5px"} ) .mouseover(function(){ var offset = $(this).children.offsetTop;
JQuery and all code in 1 line
Hi, i have a problem with a third-party code written using JQuery and i would like to debug it. however, as it is in 1 line (in my classical editor) i would like to know if it exists an editor which explode this 1 line code in a normal Javascript code ...more human readable... thx for help. A.
JS error with jQuery1.5.1 in IE9
Please see Attachments May be It is a bug
Detect 'dblclick' only. 'click' still fires....
$('#exampleBox').bind('click', functionOne); $("#exampleBox').bind('dblclick', functionTwo); If I have somethign like this, can I make it so that functionOne doesn't get executed on a 'dblclick' event. I notice that even if I double click, any kind of click will trigger functionOne. Any ideas?
Autocomplete
I am implementing Autocomplete in a form using jQuery. The plugin displays selected value with , separator. I also need it's respective fetched id from database in comma separator. Instead the lated value override the previous one. I tried to use push operation couldn't. <?php $this->widget('CAutoComplete', array( //name of the html field that will be generated 'name'=>'user_name[]', //replace controller/action with real ids 'url'=>array('Privacy/autoCompleteLookup'), 'max'=>10,
Content, Navbar, Thumbnail
Is it necessary to create a separate website with jQuery mobile (do we need to duplicate the content manually, is there an alternative method)? Secondly, how would you integrate a navbar into a mobile website? A thumbnail with a linked caption?
Doing jQuery on a remote page.
I am developing a database program that need to insert an address into a text box on a remote page. Basically the program is being developed for the ultimate in lazy people that do not even want to copy paste the address into the text box it should already be there when the page loads. I have been contemplating using frames although I'm not sure that will be possible. Also I have been researching options that will include the remote page inside my page without the use of frames although I'm not sure
Jquery collapsible dropdown
I want to implement some thing thisway: when some one click on hyperlink a collapsible panel opens up and inside the panel I have a form with text field and with submit button, which submits data into DB. when the user clicks submit the form has to be submitted and then the panel collapses. WIll that possible Would you please suggest me a tutorial?
1 drop down with price + 50.00 shipping and then grand total tried many things cant get it!
1 drop down with price + 50.00 shipping and then grand total tried many things cant get it! $("select").change(function() { var qty = $(this).val(); var price = $(this).closest("tr") .find("td[class^=price]") .html().split("$")[1]; var total = parseInt(qty) * parseFloat(price); $(this).closest("tr") .find("td[class^=total]") .html("$" + total); var grandTotal = 0; $("td[class^=total]").each(function() {
how include rich text-area in jQuery and tinymce
Do you know what error? how include rich text-area in jQuery and http://tinymce.moxiecode.com/ ? see attach... get ONLY text-area non rich text-area. jquery 1.3 i use, but tinymce come with it's own? <html> <head> <script src="../jquery.min.js"></script> <script src="../tinymce/jscripts/tiny_mce/jquery.tinymce.js"></script> <script src="../tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script> <script> $(document).ready(function(){ $('textarea.rte').each(function(){ TINYMCE.replace(this.name); });
Frustrated with Facebook
Is anyone else getting frustrated with Facebook? I find it very hard to administer. There are a lot of dead-end paths, where if you make the wrong decision, it cannot be changed. I just don't find it to be a friendly environment for administration and development. I am not sure of how well it plays with jQuery, but given that they actually created their own markup and script languages (namely, FBML and FBJS) I find it hard to believe that it's jQuery-friendly. Friendster, Myspace, Facebook.. I find
$.ajax() problem in IE, but not in Firefox and Chrome... encoding issue?
I'm using $.ajax() on a webpage to fetch a XML result from a classic ASP page. This works fine in all browsers as long as there are no special characters like the Euro sign in the XML result. Once there is such a character in the XML result, Internet Explorer reports: "DOM exception: syntax error (12)". But other browsers like Firefox and Chrome don't have this problem. They process the XML result just fine. I guess this must be an encoding issue or something like that. But I don't understand why
jQuery not being recognized
I'm using a website template and I'm trying to add additional jQuery goodies but nothing I write is being recognized. I tried making a new jQuery file and inserting into existing file. It's as if nothing is there. http://s355306040.onlinehome.us/equilibriumfit/bio.html With this page I'm trying to hide all DIV class="bioBlock" and "bioTitle". When you click on each person, the corresponding "bioBlock" should appear along with its "bioTitle". http://s355306040.onlinehome.us/equilibriumfit/services.html
$("#element_id").width() problem
I am fairly new to jQuery. I have a <div id="myDiv"> (with absolute position) containing a number of sub-elements (some hidden) including other divs. The function $("#myDiv").height(); or $("#myDiv").width(); returns 0 even though myDiv is about 850X1000 px as measured on the screen. Can anyone set me straight about this? Thanks.
Need Help with Jquery and Datatables
I need to know how to use Jquery for Joomla and use the Datatables plug-in. I have no idea how to use Jquery so if someone could please explain and show me how to do it I just need it to install Datatables. I could also give someone my admin and have them do it for me. I really need this done.
serializing checkbox problem
I have a jQuery form in which I create a series of checkboxes: <?php <form method="post" id="b-form" action="../createb.php"> for ($i=0; $i<$request_count; $i++){ <div class="request-check"> <table> <tr> <td><input type="checkbox" name="show_request[]" value="request".$i." checked="checked"/>select request</td> </tr> </table> </div> } javascript $.ajax({ type: 'POST', url: '../createb.php',
Next Page