[jQuery] serialScroll and jCarousel lite
Hey, I was wondering if anyone knows how I could implement serialScroll with jCarousel lite to get a constant scrolling function instead of scroll then pause. Any help is appreciated. Thanks. -IsRaz88
(Noob here) Doubling of AJAX calls
$('.popisZupanija').submit( function () { var upit = $(this).formSerialize(); $.post('testing.php', upit ); return false; }); Every time i press submit button there is twice as many calls ... 1, 2, 4, 8, 16, 32 .... if i press another button it resets to 1 .... I am lost ... and i am pretty much clueless. Help?
[jQuery] jQuery tips and tricks article
Hi guys, I hope nobody minds me posting this on here but I've just written an article about "improving your jquery" for our blog. It's the first big article I've written and it took a fair while to write so I hope it helps a few people out. http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx Thanks for listening, Jon
IE loads the same file a hundred times per page
I've written this code to assign a specific class to certain links: $(function(){ $("a[href=javascript:;]").addClass("no-existe"); }); The CSS looks like this: a.no-existe{ cursor: url(../img/no-existe.cur), default; } I was happy with it until I looked at the web server's logs: IE is requesting the no-existe.cur file to the server for every matched link in the page! 127.0.0.3 - - [17/Dec/2008:14:17:35 +0100] "GET /img/no-existe.cur HTTP/1.1" 200 4286 "http://example.com/foo.php" "Mozilla/4.0
[jQuery] Optimized Code
I recently made this small script and was thinking it is a bit long. It works just fine, I was wondering if there is any way to make it shorter or is this right? Thanks in advance for the help. $(document).ready( function() { if ($('input:checked').val() == 'city') { $('.city').show(); $('.zip').hide(); $('.county').hide(); } else if ($('input:checked').val() == 'zip') { $('.zip').show(); $('.city').hide(); $('.county').hide();
[jQuery] javascript namespacer
I wrote a simple namespacer. Do you think this is useful in real world applications? Any improvements that can be made to the code? Thank you. var namespace = function (name, global){ var root = global || '$'; (!eval('window.'+root))? eval('window.' + root + '={}') : ''; var name = name.split("."); var fullname; for (var i=0; i<name.length; i++) { fullname = (!i) ? name[i] : fullname + "." + name[i]; if (!eval (root + "." + fullname)) eval (root + "."
[jQuery] JCarousel Highlight current item - External controls
Hi everyone. I just built this jcarousel and am wondering how to highlight the current item on my external control. http://skill-base.redprimary.com Thanks!
[jQuery] Is there a way to functionally IGNOR 'Object Expected' FATAL errors with IE6 IE7 ??
Hi....!!! Well after 1000's of newbie hours I've got my page looking nice in IE and FF. Thing is I get absolutely NO JQuery or Javascript funtioning in IE6 or IE7... I though it was the need to install the JRE java stuff as I'm running XPsp2 in virtualbox. Anyways... I get the Obect Expected message when I try to click on ANY JS and/or JQ spots. and yes... there's a TON of error in the FF console... Well,,, what I'd LIKE to do is just IGNOR and be able to RUN the scripts live with IE6 an IE7 May
[jQuery] Scope/Context Question
Hello all, I'm a newbie to jQuery and I need a sanity check. I'm trying to use the 'data' function of jquery to save some data between redrawing div's. Even though I can find the cached data using Firebug, in some situations I can't retrieve the data. Here is a minimalistic example: function fillFields() { var field = $("#contentDiv").data("field1"); $("INPUT[name=field1]").val(field); } function getData() { var app_id = $("INPUT[name=app_id]").val(); $.get(myUrl, { cmd: RD, app_id: app_id }, function(data)
[jQuery] Problem on jquery 1.2.6 with ie6
Hallo all. I'm using domWindow with jQuery 1.2.6.min and I have a big problem on core library. When I open a domWindow on Firefox i receive this error, but the domWindow works anyway. Error: jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")] is not a function Source File: file:///D:/Mazi/Develop/workspace-aptana/Examples/domWindow/js/jquery-1.2.6.min.js Line: 32 On IE6 the problem broke up and domWindow does not appear. Any idea? Kind regards Max
[jQuery] jQuery.data() identifier not working
Hi, Does anyone knows why this: var id = elem[ expando ]; // Compute a unique ID for the element if ( !id ) { id = elem[expando] = ++uuid; } Could be being broken? I mean, on a test page I made the elem[expando] property is not being "saved". I'll explain, the first time I do jQuery.data(element) I get a number lets say: 10. Then if I do again the same (with the exactly same element) I get: 14. I'm using this to identify elements so its not working as expected, anyone have theories about this?
[jQuery] Basic help with elements and selectors
Hi, Im using the js-hotkeys plugin with a hover but am running into some issues. The below code runs well but, obviously, selects all of my "position_info" classes. I'd like to be able to specify $(this) so that the effect is only applied to the element I am hover over. Am I going about this completely wrong? Is there a better way of doing it? $('.position_info').hover(function() { $('.position_info').bind('keydown', {combi:'space', disableinInput: true}, function(){ $('.position_info').children('strong').toggle();
[jQuery] Slide Toggle - Bug in Firefox?
Hello all, This is my first post here but I have been trying to solve this problem for a while now and I hope I can do it here.I also I posted to the right mailing list 1) JQuery Effect: Slide Toggle 2) Script URL: http://docs.jquery.com/Effects/slideToggle 3) Problem: I am trying to hide an swf (Flash object) in a div. When a hyperlink is pressed the div will slide down and show the swf. However, when sliding down, the div slides but the Flash Object just appears straight away whilst the div is
[jQuery] Jquery Validation always not showing correct error message
My Jquery validator refuses to show the correct error message but rather the default error message every time the validation fails. I am doing 3 things. First $.validator.addMethod("regexValidator0", function(value) { return /^\(?\b([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9] {4})\b$/.test(value); }, "Invalid"); I add a method to the validator. Next I call the Validate method $("#aspnetForm").validate({ errorLabelContainer: $("div.error") }); Next I add a rule $('#myelement).rules('add', {regexValidator0:true,messages:
[jQuery] Making an AJAX hide and show smoothly
I am getting some data on a FAQ page using $.post The problem is that when the server returns the data too fast (most of the time) the images barely gets time to display and the whole thing looks very choppy. What I want to do is have the image slideDown smoothly, display for a certain minimum time and then when the data returns slideUp the image, replace the image with the returned data and then slideDown. I also want to start the request first before I start delaying, that way it delays for a minimum
[jQuery] jCarousel - How do I reset animation time
Hi all, after 8 seconds my items scroll, when I click next after 7 secs I need to wait another 8 seconds before autoscroll(good) after 7 seconds when I click on my .jcarousel page links 1 second later my page scrolls again(not what i want) hope this makes sense. Can anyone help/point me in the right direction? gemmes Main Code: <script type="text/javascript"> /** * We use the initCallback callback * to assign functionality to the controls */ function mycarousel_initCallback(carousel) { jQuery('.jcarousel-control
[jQuery] [OT] Client side web application with jQuery
Hi, I'm need to implement a website (intranet) that runs everything on the client side communicating to the server via RESTful requests. I'm using jQuery but my big issue at the moment is how to manage the login. I'm not sure which is the best method to login the user securely from javascript. We're using REST for the site requests and HTTP Auth for the authentication at the moment, but I don't want to use that ugly browser login. I want to manage everything from the client side using javascript.
[jQuery] jqModal + validate + blockui plugins
Hi, I am trying to implement validate plugin in jqModal. I tried validate () method in onshow, onload method but it is not working. Can anyone confirm whether it is supporting? I tried blockui plugin to show "Please wait..." message on jqmodal when form is submitted but its not working properly...Is this the correct approach to show the message ? Thanks, Bhavin
[jQuery] Clone and HTTPS
I am recieving an unsecure its on page error from an HTTPS page that looks fine with all hyperlinks. I narrowed it down to the jquery clone method, as it is cloning a hyperlink, but the href is https on their. Not sure why this would cause this but it is. Any fix for this?
[jQuery] Draggable to Grid Help?
Hi, I have a series of draggable elements within a containing element. I want the to drag on a grid but I want them all to snap to the same grid no all have their own individual snappings. Does anyone know how I can do this? Thanks
[jQuery] Adding carousel to gallery help please
Can someone help me with my gallery please why does it stop after the 5th image? all i get is a black/blank container? http://illusionz.x24hr.com/?q=content/welcome and how can i add a carousel to the gallery so it auto starts and loads the images?
[jQuery] missing ; before statement at DOCTYPE declaration
I chose to use an xhtml strict doctype for an application I am working on. I'm getting the error on the DOCTYPE declaration line. I'm receiving the following error: Error: missing ; before statement Source File: http://localhost/crmgen2/js/jquery-1.2.6.pack.js Line: 2, Column: 2 Source Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> The top of the file looks like this: <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html
[jQuery] Get value from <option>... Internet Explorer 7
Hi, I try to catch selected choice in my dropdown inside IE7. <span id="prefix"> <select> <option value="1">08:00 - 16:30 (8:00h)</option> <option value="2">09:00 - 17:30 (8:00h)</option> </select> </span> In my jQuery-function I use this to set the value to my string "timecode": $(document).ready( function() { $('#prefix option').click( function() { timecode = $(this).val(); }); }); It´s works fine in FF but not in IE. How can I get the chosen thing inside IE
[jQuery] my test passes the first time, but fails the second time
Hi, I have a test that passes if I run it by itself, but if I duplicate the code and run both of them, the second one fails. What am I doing wrong? __test.js___________________________________ test("bind div", function() { $("#my_div").click(); ok( check_if_it_worked, "working") }); test("bind div again", function() { $("#my_div").click(); ok( check_if_it_worked, "working") //Here it fails! }); __app.js___________________________________ $(document).ready(function() { $("#my_div").click(function
[jQuery] [validate] validation, only onblur
Hallo, is it possible to validate fields only onblur, also when it was validated before? Boris
[jQuery] Advance Cycle synchronize image thumnail pager
Hi!! Mike, I was trying to create an advance thumbnail pager with synchronize transition with content slide show. Objectives: a. When the next ( >) is pressed, it should highlight the next (first) item in the next batch in the pager and show the content slide show. b. When the previous (<) is pressed, it should highlight the previous (last) item of the previous batch and the content slide show. c. When an item is clicked, it should highlight that item and show the content slide show d. If the pager
[jQuery] "desktop style" apps with jquery
This topic seems to be hot, with at least two posts about it on the group frontpage: http://groups.google.se/group/jquery-en/t/6ed2cd3c890b99c8 Creating an OS Web Interface in jQuery (Part I) http://groups.google.se/group/jquery-en/t/d7623b55dfb8270 Client side web application with jQuery And with frameworks as sproutcore and cappuccino I guess there are many that will agree with me that this is a hot topic. The benefits with webapps built with frameworks like the above mentioned is pretty clear,
[jQuery] AJAX and transforming proxies
I have a general query around AJAX; apologies in advance if this isn't on-topic for the list, but I figured you guys are experts and would be a good place to start :) If there's a better place for me to post this, please do let me know. One of the issues we're battling with in the world of mobile is that of transforming proxies: bits of network infrastructure which are typically installed into mobile operator networks and alter the content flowing through them. In the past there have been deployments
[jQuery] HowTo: Trigger error callback in ajax request
I have an ajax request being sent to a PHP script. If that script captures an error, I'd like it to echo that error and return whatever it needs to return to trigger the error callback in my ajax call. I can't seem to find what that is. Is it a non-200 status code? Simply throwing an error (throw new Exception()) just triggers the success callback with the error text (not unexpectedly, of course). I'm using the jQuery form plugin and using the .ajaxSubmit() method, but I suspect the answer would
[jQuery] Google Analytics breaks jQuery.
I have a page where I am using jQuery's load function to inject HTML into a div container. Right underneath the opening body tag, I've written a script that binds an onClick event to all <a> tags. The event fires e.preventDefault(), reads the href attribute, and loads that href into a div container. At the bottom of the page, I've placed Google Analytics tracking code. Instead of loading the link's href into the div container, FireFox actually tries to load the link as if I never used e.preventDefault().
[jQuery] Relationship between thickbox and calling page...
I'm trying to understand the relationship between the page that spawns a thickbox and the code in the thickbox, itself. The question is: Can the jQuery code that is embedded in a thickbox affect the elements on the page that spawned the thickbox? For instance: (pseudo-code) callingpage.cfm ---------------------------------- <has <p id="logstatus">Log In on page> <open thickbox> thickboxpage.cfm (in modal window) ---------------------------------- <thickbox runs some code, has success callback from
[jQuery] Sorting php tables
Dear friends, I am not really sure whether this is the right place to post my topic. I have a php page which I found somewhere on the Internet which uses TableSort revisited v3.8 by frequency-decoder.com tablesort.js to sort table data. I have got hold of another php page which runs fine but it does not have headers. I am wondering how to put headers and how to sort the table. Can somebody help me or tell me where can I get help from. Here is the code: <?php $arr = array ('UNITECH.NS','VIDEOIND.NS','SUZLON.NS','RPL.NS','HDFC.NS','RNRL.NS','HINDALCO.NS');
[jQuery] Superfish transparancy?
Maybe a feature request, or maybe something that can be done now...but is there anyway that the dropdowns can be transparent or vary the level of transparancy? TIA
[jQuery] Newbie Question with Hot Keys
Hi, I've been having a bit of trouble with this bit of code and I was wondering what I am doing wrong in the chaining... I am using the js-hotkeys plugin to allow keypress events only while hovering over a specific class. However, I would like the effects only to be applied to it's id. How can I pass down the id or other self referencing attribute so that the toggle() only applies to that specific element? Below is a code snippet. $('.position_info').hover(function(e) { $(document).bind('keypress',
[jQuery] keyup ajax responses in order
Hello, I have been using the .keyup to produce a result list, after the third letter in an input box. so something like this (this is off the top of my head, syntax error possible, but the real code works): $('.myInput').livequery('keyup', function() { if ( $('.myInput').val().length > 2 ) { $.post('foo.php', { str: $('.myInput').val() }, function (data) { $ ('.results').html(data); } } }); I have been noticing this: If the user types quite (too) fast then the responses come back in a different order
[jQuery] treeview
Hi, I am new to jquery i want to use jquery treeview plugin in one of my project. It will have 2 panes left one will consist of treeview and right pane will consist of content The content will change on click of tree leaf. According to me the only way to achieve it to put a onclick or (click in jquery ) in every leaf of tree which will show or hide respective divs. My question is this the best methodology or Treeview has any property to make it more efficient or something. And I did not get what
[jQuery] jQuery API in XML or JSON Format
Hello, I was wondering if anyone knew where I could get my hands on the 1.2.6 API documentation in either JSON or XML format (preferably XML)? I looked at the visualjquery website but for some reason the JSON payload when pasted into another page (var payload = {.... long object ....}) seems to actually execute all the code within it. So is there any resources out there for doing that? James -------------------------------------------------------------------- This e-mail is intended solely for the
Newbie JQuery help please $.ajax
Hi all, I'm really new to web programming, hoping someone can advise me please. Im using the following JQuery function(is that the right term?) to retrieve values from vl_search_projects.php and display them in a drop down list <select tags> contained in the projectdiv. The call is made using the following <select name="ClientID" onChange="getProjects(this.value)"> .This works on most occasions, however it also has a high failure rate where the lists do not appear. Is there a reason why it would
[jQuery] problem with dynamically setting attributes in IE7
I have a jQuery routine that adds attributes to elements dynamically. I am able to retrieve the attribute value via $('#id').attr('attr')) in FF and Safari. When I attempt to retrieve the value in IE7 I get a blank value. If I place the attribute in the original HTML and attempt to read with IE7 I get the expected attribute value. Is this an IE7 feature or I am doing something wrong? Thanks in advance... Randy
[jQuery] Trigger same function from 2 different events
I want to trigger the same function from 2 different events. Is the following the best way to do this? Note in this code snippet, the 2 separate events are page load/button click. <button id="button">Click me</button> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/jquery/1.2.6/jquery.min.js"></script> <script type="text/javascript"> function myHandler() { alert('hello'); } $(document).bind('LOAD', function() { myHandler(); }); $(document).trigger('LOAD'); $('#button').bind('click',
Next Page