[jQuery] Google analytics exception
I'm aware this is a common error, but has anybody found a solution yet? The error with ga.js is as follows: "Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMScreen.width]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://www.google-analytics.com/ga.js :: anonymous :: line 15" data: no]" It seems to be preventing my scrolling div from scrolling - and is probably screwing up the analytics results, too! I understand
[jQuery] show hidden div on click
n00b here attempting to implement a simple jQuery function: I want to slowly show (fade in) a hidden division after clicking a text anchor (link). I've managed to get some jQuery plugins working correctly, but coding something myself is apparently beyond my current capabilities. :P Here is the script code, inserted in the head: <script type="text/javascript"> $(document).ready(function(){ function fadein() { $("#overview").show("slow"); $(".fadein").click(fadein)
[jQuery] Sending a JSON object as data in an AJAX request
According to the jQuery docs, the data option (in $.ajax) is supposed to accept a string or an object (which it then converts to a query string). It appears as though its not converting my object: My Javascript is: var json = { "Request" : { "action" : "doSomething", "params" : {"id":"123"} } }; $.ajax({ type: "POST", url: WEB_DOMAIN + "/api.php", data: json }); In api.php contains: <?php var_dump($_REQUEST['Request']); ?> Which outputs: string(15) "[object Object]" Does anyone know what
[jQuery] Jcaroussel with more than one <li> wide
Hello I want to use the http://sorgalla.com/jcarousel/, but with more than one "column" of thumbnails. For example, with the vertical carousel (http://sorgalla.com/projects/ jcarousel/examples/static_vertical.html), set : .jcarousel-skin-tango .jcarousel-clip-vertical { height:245px; width:200px; // instead of 75px } 200px is wider than the thumbnails, and provide a "two columns" vertical carousel. But if I scroll down, it scroll 2 times more than needed... Is it a solution ?
jquery bug in IE6 - scroller
Hi, i have been working on a scroller: http://www.subwayslims.co.uk/scroller_16_07.html the Jquery function seems to work on iE7 and FF but not in IE6, does anyone know why it doesn't work...?? this is where i got the code from: http://jqueryfordesigners.com/coda-slid ... omment-642 thanks
[jQuery] [validate] Dynamic forms and input naming
Hi, I've built a dynamic form that I want to validate using the JQuery validate plugin. However I've hit a snag which I think is related to how I'm naming form elements. I wondered whether anyone else has had the same problem (or might have a solution!) The dynamic aspects of the form are implemented with a little microformat and a use of the JQuery clone() method. I have something like: <div class="repeated"> <input type="text" name="ex:email" value=""/> </div> My code picks up on "repeated" form
[jQuery] Fall back to IFRAMEs with jQuery
Hi All, I know this is a question which is really old news, but we have a site where some of our users have centralized security settings, and their ActiveX has been switched off and of course they can not use IE7. they are proud IE6 users. I have had a look at plenty of "old" libraries that uses IFRAMEs I tried one of them but absolutelly does not work together with jQuery. does anyone know a way of doing this ? Any help is very welsome ! Istvan
[jQuery] ClientSide Cookie or ServerSide Cookie
Dear Folks , I have to save some of the settings of my Users with the cookies , I've done this before with PHP Cookie Header .. right now I was Wondering If I could that with jQuery instead of PHP ... which one is Practical ... is there any Example for the jQUery cookie ... thanks Pedram
[jQuery] netvibes type sign in plugin
Hi all, I want to know whether we have anything like http://www.netvibes.com/#General sign in form thing. I mean to say that I want to create a form which comes into focus when the user clicks a button and the background fades. They are using mootools but I want to use jquery. Thanks, Gaurav P.S. - Jquery rocks.
[jQuery] problem server?
Hi tony Do you think there is the problem of the server for the site www.trirand.com/jqgrid ou www.trirand.com/blog I can't connect it
[jQuery] jquery bug in IE6 - scroller
Hi, i have been working on a scroller: http://www.subwayslims.co.uk/scroller_16_07.html the Jquery function seems to work on iE7 and FF but not in IE6, does anyone know why it doesn't work...?? -- View this message in context: http://www.nabble.com/jquery-bug-in-IE6---scroller-tp18484587s27240p18484587.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] jScrollPane - maintainPosition:true
i can't find any examples wherein this works.. i'm using treeview to expand ul's and li's.. i set a toggle function for my treeview, and i can reinitialize my .jScrollPane after my items expand/collapse, but i can't maintainPosition.. the scrollbar position resets to the top.. it doesn't appear to be working in the #pane4 example here..: http://kelvinluck.com/assets/jquery/jScrollPane/basic.html any input is sincerely appreciated
[jQuery] bug .append adds unwanted start tags to end tags
Hi, I've noticed recently while trying to use .append that for example when I append a tag in reality jQuery appends " ". I consider this a bug. Is it expected behaviour ? What should I do ? Thank you -- Stefan Petrea homepage : http://perlhobby.googlecode.com/ mobile phone : +40732070179
[jQuery] jquery bug in IE6 - scroller
Hi, i have been working on a scroller, it's a bit messy design wise, but i'm still working on it http://www.subwayslims.co.uk/scroller_example.html the Jquery function seems to work on iE7 and FF but not in IE6, does anyone know why it doesn't work...??
[jQuery] jqModal clear fields
Hi all I use the jqModal, and I want to clear some fields in the modal window after opening. Cant get it to work so some advise would be perfect. Like this var open = function(hash){ $("#myFiled").val('').show(); }; $('#dialog').jqm({ overlay: 8, onShow: open }); / johannes
[jQuery] a silly question about selector
Hi, all For selector do I need to qualfy more about the elements I want to select? For example: $('input :radio [name="xxx"]:checked) does it better than the following $([name="xxx"]:checked) Thank you in advance! jack
[jQuery] Add events and functions to ajax content
I have some html that is brought in through ajax which itself has some jquery functions attached to it. These are not working unless I include a document ready in the content that is pulled through with ajax. This in turn conflicts with my pages jquery document load. Is there a way to avoid this?
[jQuery] Fade To with nested items?
Hey guys, I am having an issue with the fadeto function and with multiple items. I have: $(document).ready(function(){ $("#content div").fadeTo("slow", 0.5); $("#content div").hover(function(){ $(this).fadeTo("fast", 1.0); },function(){ $(this).fadeTo("fast", 0.5); }); }); Then on my page, I have the main div (#content) and then divs in there. I am trying to fade up the div on rollover, but the issue is this div has another div in it. When it fades up, it doesn't fade
[jQuery] Error callback executed after XHR.abort()
Basically my error callback on the ajax request is still being executed after I have called the abort() method on the Xhr. I am creating a live search function. On our development server, we don't have access to the live server, to retrieve the ajax response. So the error callback is executed after 45 seconds (our timeout length). Even after the Xhr is aborted, the error callback is still executed. Everything works properly on the Live server, because the Ajax is getting a response before timing
[jQuery] anyone know how i can make this wich jquery?
http://www.dynamicdrive.com/dynamicindex4/cmotiongallery2.htm see that as the mouse is approaching the end, the greater the speed
[jQuery] Closures, Callbacks, Return Values and Google Maps API!!!
I have 2 js files. 1 is the jquery jmaps plugin (jmaps.js) (basically porting the google maps api to make creating google maps easier) and then the other file is all the actionable code (agency.js) to do stuff. I've been extending the plugin to add some features the original author did not put in the plugin, but am having an issue with the callback function from google. Take a look: from agency.js..... for (i = 0; i < officeArray.length; i++) { var lat1 = officeArray[i][0]; var lng1 = officeArray[i][1];
[jQuery] Problem if AJAX returns JSON with colon (:)
I call a program using the following: $.ajax({ complete:function(req,status){ ... }, data:vals, dataType:'json', error:function(req,status,err){ ... }, success:function(data,status){ ... } }); It returns a JSON string of: {"resultSet":[ { "id":"2200001", "url":"http://s7d4.scene7.com/is/image/Jostens/aps_airf_x_contact", "startDate":"2008-01-01", "endDate":"2030-01-01" } ]} For some reason it get's screwed up by the colon (:)
[jQuery] proposing a new function for swapping classnames
$("p").hover(function(){ $(this).addClass("hover"); },function(){ $(this).removeClass("hover"); }); this is kind of a verbose way of swapping classes, isn't it? I imagine it would not add much to the lightweightness of jquery if it allowed something like: $("p").hoverSwap("hover"); or, if more versatility is desired, perhaps something like: $("p").swapClass("hover", "click"); // hover is class name and click is the event name I can use my own extension I suppose, but then again, swapping classes
[jQuery] use of jquery to change existing code
Hello, I am trying to add an effect to my existing JS. Not an expert with JS by any means, I can manage to work my way around is most instances. I have jquery library called in my code because of a password strength meter so I might as well try and utilize it's functions. My code: if(value=="UK"){ document.getElementById('vat').style.display='block';} This is changing a div id=vat with style=display:none to display:block; as you can see. I'd like that to fade in. Checked out Cody's examples but can't
[jQuery] .append() default behaviour
I want to append to a tag another tag but in the argument to .append() I use the characters :;#% because I need them to write colors attributes to the new tag and some other css things(and I can't code a class for those because I wouldn't want to use css because I don't know it). The problem is that jQuery expands my :;#% in the arguemnt to .append() So running some code like this: $("body").append('<a href="#" id="post_comment" style="background:#D5D5D5">post comment</a>'+"\n"); yields something
[jQuery] Toggle Class command
Hello! Does anybody see a mistake here? I want to let a DIV disappear while another DIV needs to change its class. Thanks for your input! jQuery(document).ready(function() { jQuery(".toggle-left").click(function() { jQuery("#left").toggle('slow'); jQuery("#forum").toggleClass("#forum-wide"); }); });
[jQuery] Superfish problem in IE6
Hi, I am having a problem with the superfish menu in Internet Explorer 6. The menu does not degrade when javascript is turned off. The drop down menu does not work when hovering on a top level link. Any thoughts? Cheers
[jQuery] History
Does anyone have any experience with the History plugins that allow you to have the back, forward, and bookmark browser features do sane things with Ajax applications? There's a jQuery one, http://www.mikage.to/jquery/jquery_history.html There's RealSimpleHistory, http://code.google.com/p/reallysimplehistory/ There's a modified RSH in JavaScriptMVC http://javascriptmvc.com/learningcenter/history/index.html
[jQuery] Transparent png fade bug IE7
Hello everyone, I'm having a problem that seems to have been brought up here and on other discussion boards all over the web, but no one seems to have come up with a solution... I am trying to fadeOut and fadeIn transparent pngs. In IE7, all pixels that are transparent quickly turn to black as soon as the opacity begins to change on the image. This effect is fixed if I put a background-color other than transparent on the images, but this is not an option, since there is content behind the image.
[jQuery] [ANNOUNCE] Sourceforge uses jQuery
<div dir="ltr">Sourceforge.net(<a href="http://sourceforge.net/?abmode=1">http://sourceforge.net/?abmode=1</a>) is a network which promotes open source software uses jQuery in a released website. "SourceForge is the global technology community's hub for information exchange, open source software distribution and services, and goods for geeks. The network of media and e-commerce web sites serves more than 33 million unique visitors each month from around the world.*" Cheers Marco Antonio </div>
[jQuery] PLUGIN: prettyPhoto v2.1.1 a jQuery lightbox clone released
prettyPhoto v2.1.1 a jQuery lightbox clone released http://www.no-margin-for-errors.com/projects/prettyPhoto/
[jQuery] jquery calls asp server page - works in in firefox 3 but not in IE 7
Hi Tried out a jquery code demo from http://www.xml.com/pub/a/2007/10/10/jquery-and-xml.html which works fine in Firefox 3 but fails to work in IE 7. It dosn't work in IE either directly calling a static xml file or by using an asp server file to create the xml dynamically. Any ideas why it fails in IE 7? jquery snippet : <script type="application/javascript"> $(function() { $('#update-target a').click(function() { $.ajax({ type: "GET", url: "labels.xml", // or use labels.asp to create a dynamic
[jQuery] How can i add a callback function the attr() method?
Hi everyone. I understand that you cannot que non-effect jquery methods. Therefore i need to use a callback function. Please look at the code i am using for my gallery... [code] $(document).ready(function(){ $("#gallery-thumbs a").click(function(){ var largePath = $(this).attr("href"); var largeAlt = $(this).attr("title"); $("#img2").fadeTo(1, 0.0, function() { $("#img2").attr({ src: largePath, alt: largeAlt }); $("#img2").fadeTo(1500,
[jQuery] Customize datepicker date range
how i can custom the dateRange (default are 10 years before/ after the date). I use this function $('.dateRange').attachDatepicker({beforeShow: customRange}); function customRange(input) { return {minDate: ('1990'), maxDate: ('2040')}; } but it doesnt work
[jQuery] Finding position among siblings
Is there an efficient, cross browser jquery way to find a node's position among it's siblings? Ie if I have ten <div> nodes next to each other and the user clicks on the third one, what's the best way to tell that it's the third one? Thanks!
[jQuery] Counting commas and form inputs
I'm looking for a way to simply count or limit the number of commas used. In my form there is a drop down that selects numbers. This needs to correspond to the amount of tags a user can input - separated by commas. The drop down does several other things already so I just need to know how to count commas - too many, don't submit the form. I have got no where with this little task so far =(
really need help with callback function!!!
Here is the code for my gallery... $(document).ready(function(){ $("#gallery-thumbs a").click(function(){ var largePath = $(this).attr("href"); var largeAlt = $(this).attr("title"); $("#img2").fadeTo(1, 0.0, function() { $("#img2").attr({ src: largePath, alt: largeAlt }); $("#img2").fadeTo(1500, 1.0); }); $('h2').text("" + largeAlt + ""); return false; }); }); As you can see the code uses a callback function to swap
[jQuery] popup, When dragged and closed, return to original position when poped up again
looking for a plogin that should able to drag a element when poped up! and when clicked again to open the popup it should not open where it was dragged to!
[jQuery] ToggleClass problem
I want a DIV to disappear while another DIV supposed to toggle its class. The first task gets accomplished but not the 2nd one. What is wrong with my approach? Thank you! jQuery(document).ready(function() { jQuery(".toggle-left").click(function() { jQuery("#left").toggle('slow'); jQuery("#forum").toggleClass("#forum-wide"); }); });
[jQuery] ui.datepicker trouble
I'm having a problem wit the ui.datepicker. Specifically setting/getting the default date. I have the following function: function setDefaultDates() { var temp = new Date(); var sd = new Date(temp.getFullYear(), temp.getMonth(), temp.getDate() - 8); var ed = new Date(temp.getFullYear(), temp.getMonth(), temp.getDate() - 1); $("#criteriaStart").datepicker("setDate", sd); $("#criteriaEnd").datepicker("setDate", ed); alert(sd + "\n" + $("#criteriaStart").datepicker("getDate")); $("#criteriaStart").val($.datepicker.formatDate(
Next Page