[jQuery] changing the adressbar with javascript
Hi I'm almost certain that this one is impossible but maybe someone out there has a solution.... We just released a site with a lot of ajax functions and now people starts asking questions about URL:s to certain parts of the site. The only trouble is that some of these parts are created by a series of user interactions and ajax calls i.e. there are now URL:s pointing to them since it's all ajaxified. So. here's the question, is there any way that you can change the address field in the browser by
[jQuery] how can 'load on scroll' be achieved in jquery+php
Hi I finally came across a site that demonstrates how to achieve this in CF and Java script. But i dont know CF at all so I'm unable to pick exactly what is going on. Can some one help me explaining this code and converting it to jquery plugin? http://cfsilence.com/blog/client/index.cfm/2007/8/21/Ajax-Paging-Through-Records-On-Scroll Thanks
[jQuery] jquery code snippit improvement request
Here is a bit of code that on page load sets the alternating color of a table. Then there is a table sort tool that loads as well. The th (header) clicks cause the nice alternating line colors to sort as well. So I created this, which works perfect, but it looks clunky/repetitive.. I was thinking about wrapping an if statement in here somewhere, or maybe there is something else other people can think of. <script type="text/javascript"> $(document).ready(function() { $('tbody.bevker tr:odd').removeClass();
[jQuery] IE7 smudgy text issues with Superfish/hoverintent
Hi all, I just now decided to update to the latest version of jquery which means I had to update some plugin scripts. Everything works fine but I am having an issue specifically with my menu system which is using Joel Birch's great Superfish script. The menu works but in IE7 now the text is fuzzy on the drop down menus. I know this is some issue wit the cleartext handling in IE7. If I disable hoverintent I no longer get the problem but I want hoverintent enabled =(. I'm sure similiar issues have
[jQuery] onChange any form field "Unsaved Message"
I'm wanting to use jquery to make a function where whenever someone changes something in any of the input boxes it changes a div to say "Unsaved at #time#" This seems easy but I'm new to jQuery and what I thought would work isn't working. Please advise :( Thanks, Josh
[jQuery] Getting a div with scroll bar to stay scrolled down
Hi all, I have a div that will refresh itself and the scroll bar just won't stay down. The solution I've found is: var objDiv = document.getElementById("divname"); objDiv.scrollTop = objDiv.scrollHeight; This doesn't work: $('#divname').scrollTop = $('#divname').scrollHeight; Therefore is there a more jquery-like way of doing it other than using plugins perhaps? Thanks. Eric
[jQuery] Is this valid JSON?
[ { "ads": true, "content_slug": "just-some-title" } ]
[jQuery] Help with button script
I'm trying to implement some code I found here - basically just trying to learn more about jQuery: http://monc.se/kitchen/59/scalable-css-buttons-using-png-and-background- colors#comment-15755 $('.btn').each(function(){ var b = $(this); var tt = b.text() || b.val(); if ($(':submit,:button',this)) { if (this.href) { b = $('').insertAfter(this).addClass(this.className).attr('id',this.id).attr ('href',this.href); } else { b = $('').insertAfter(this).addClass(this.className).attr('id',this.id); } $(this).remove();
Show Hide Problem
Hi I know almost nothing about JQuery, but I have inherited some code that doesnt quite work. Im sorry if this is really simple. Its a show hide on a file list, where the folders should toggle open and close while the files should be clickable. However the links have the same action as the folders, ie the a href link is overridden and they toggle the area show hide as well. This is the JQuery code:- registerFileTreeEvents = function(){ $('ul.fileTree li.subfolder').each(
[jQuery] looking for scrolling plugin
Hi I am wondering if there is a plugin out there that would append more data to the table as the user is about to reach the end of the page (while scrolling). These results can be grabbed from a server uging JSON or locally. An example of this working is at www.dzone.com if you try to scroll down...25 more results are appended to the table content that was already there. Thanks for discussion.
[jQuery] continuous action while mouseover
Hi friends, i was wondering: how can i trigger an action while the mouse stays on a specific area of the screen? i tried the following code: it works ONCE (when the mouseover event is triggered) but not continuously, while the mouse i over my "active" zone. var centerX = $('#datascape').width()/2; stepX = 240; var $datascapeViewport = $('#ds-viewport'); $datascapeViewport.css({position: 'relative',left: 0+'px'}) .bind('mouseover',function(e){ var minX = $(this).width(); minX=-minX; var
[jQuery] Stopping event propagation on non-standard event types
<div>$(window) .bind('testEvent', function(e) { alert('1'); e.stopPropagation(); e.preventDefault(); return false; }) .bind('testEvent', function() { alert('2'); }) .trigger('testEvent');</div> <div> </div> <div>The above code doesn't stop the testEvent from triggering the second alert. Is the propagation prevention just for standard events such as 'click', etc.?</div> <div> </div> <div>-js</div>
[jQuery] Sorting links alphabetically with jQuery
Hi, I'm having some problems figuring out how to sort links alphabetically based on their text content and hold the reference to the link. I can do it sans jQuery, but I'd really like to be able to use jQuery to do it. This is what I want to do with jQuery: <div id="test"> <a href="http://yahoo.com">Yahoo</a> <a href="http://google.com">Google</a> <a href="http://aol.com">Aol</a> </div> function sortText(a, b) { if ( a.text < b.text ) return -1; else if ( a.text > b.text ) return 1; return 0; } var
[jQuery] [NEWS] liScroll Plugin
Hi all. http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html This is my scrolling news ticker plugin for jQuery. Ciao GC
[jQuery] Custom Events in jQuery
After developing a rather complex JavaScript application I found myself starting to get frustrated with the rather limited set of events that JavaScript itself defines. As the project progressed it became more dependant on multiple objects, all of which had to be as self-contained as humanly possible, but which also needed to communicate with each other. I was thinking about using a form full of hidden fields that existed solely to have events fired on them for inter-object communication, but after
[jQuery] continuously search for elements in a document
(Using jQuery w/ ASP.NET 2.0) I have a few error prompts that are in hidden spans inside <li>'s. I need to hide the LI's when the error prompt is hidden. Example: $(document).ready(function() { //hide empty error spans $('ul.errors li span').each(function(i){ if($(this).css("display") == "none") { $(this).parent().hide(); }; }); }); This works, but only on page load. These error prompts display as needed on onBlur (via .NET default methods). How can I continuously scan the document for these error
[jQuery] trying to get an element on $.each iteration
I'm quite new in JQuery. If I have a HTML structure like this: <dl> <dt><label>abc</label></dt> <dd><input type="text" name="text" /> <span>this is text</span></dd> <dt><label>abc</label></dt> <dd><input type="text" name="text" /> <span>this is text</span></dd> </dl> I want to get the input and span object. Actually, I can do that separately. But I think there is a simple way. And I have no idea about that. $.each($("dd"),function(i) { // i'm stuck here. if i'm using $("dd input") it will get all
[jQuery] Problems with jQuery and proxy server.
I am relatively new to jQuery and I need help getting jQuery to run with a proxy server, more specifically to get jQuery to "see" the page being forwarded to the client by my proxy server. I have the following setup: 1) The proxy program is running on a file called proxy.php located at the proxy server. This file inserts in the head of the client page the following: <script type="text/javascript" src="jquery.js"> </script><script type="text/javascript" src="myprogram.js"> Testing with alert statements,
[jQuery] Hi
Im creating this a service: http://www.prsolucoes.com/outros/avatar But in IE 6 a bug occur that the image go to the left of the screen... On firefox and opera its is 100% OK, but in IE 6 occurr this problem, can anyone help me? Thx.
[jQuery] Self-directed Animations
It's fine that jQuery has all of these great built-in animation routines, but I have a situation where I want to control the objects in a way that goes beyond property changes over time. Is there a way to take advantage of jQuery's timer pooling and easing code while performing the animation steps myself? I would envision a callback mechanism that animate() invokes at each step passing in the context and state that the fx function handles now. I'm using the 1.1.4 codebase, but I can switch to 1.2
[jQuery] Updating the id of an a tag
<html> <body> Hello folks, I'm having problems with the following line of code <tt> $("a[@id^='del_']").id("del_*"+pb+"_"+iA+"_ck"); </tt>in the function below. What I'm trying to do is replace the id of the a tag from its existing id of 'del_' to 'del_*x_y_ck', where x and y are the variables pb and iA. I know pb and iA are being 'received' by the function - the querystring generated by the get statement is correct. I'm sure this function has worked previously, so perhaps my problem is based in
[jQuery] questions about jeditable plugin
1. How to style the input or textarea? specially for the height. 2. How to add validate to prevent submit wrong content?
[jQuery] if's 'n else's
I'm just not getting it. My web pages are generally generated dynamically. To get specific, I'm using jQuery/Ajax to make a category selector widget, just like the one you use on eBay to sell stuff. Here's what it looks like in a basic, test environment: http://www.shmax.com/pick_cat So far so good. Here's what gets called when the document finishes loading: $(document).ready(function(){ AttachCatPicker(); $("#appendMe").load( "/include/record_selector.php", { cat_id: 1, action: "choose_cat" },
[jQuery] multiple JCarousels in ie7
Hi i have multiple carousels all images show in firefox although only the first image shows up in ie7. I'm pulling the image filepaths from a database and loading images like that. The number of carousels is defined by how many galleries a user has. Anyone know how to go about solving this problem? Thanks
[jQuery] UI - Sortables: How do you get the new order?
I'm sure I'm missing something obvious, but how do you retrieve the new order of a sortable list? Thanks, Jason
[jQuery] tablesorter and tr odd even coloring problem
Hi all, I have a table built dynamically (serverside). I have table sorter on the table and when I sort it sorts the colors or the rows as well. It is very irritating and I am not sure how to correct it. I tried repopulating the class via jquery labeling each odd and even but siince the page doesn't post back it doesn't hold past the first page load. Here is a sample snippet of my code: <script type="text/javascript"> $(document).ready(function() { $('.becker tbody tr:odd').removeClass();
[jQuery] [NEWS] PQuery v0.2 for jQuery 1.2 released
PQuery is a set of helper classes for JQuery JavaScript library.This library allows you to easily integrate AJAX , Effects and other JQuery functionality into your PHP scripts.IT has a small foot print and is compatible with PHP4 and PHP5. Details here: http://www.ngcoders.com/php/updates-pquery-v02-for-jquery-12/
[jQuery] creating drop down menus with JQuery?
Hi, Is there a plug-in that allows for menu creatio in JQuery? Specifically, I'm looking for something where when you roll over an arrow graphic, a menu will pop up beneath it. I do not need submenus to pull out over individual menu items. Thanks for any advice, - Dave
[jQuery] How do I completely overwrite an event?
It seems that jquery is "appending" new events to any existing event handler. eg: $('##BLAH').click(function(){window.status+='a';}); $('##BLAH').click(function(){window.status+='b';}); Clicking 'BLAH' you get 'ab' on the status bar instead of 'a'??
[jQuery] Superfish, bgiframe, jQuery 1.2
Aloha, When I use the bgiframe plugin with the superfish menus I get a white background behind the pulldown and the word "false" behind the pulldown in msie 6.0 on XP. Thanks, Gary
[jQuery] accordion setting height: 0px, overflow-y: hidden
Hi, I'm using the accordion widget that came with the recent release of jQuery UI and I'm having trouble getting the right height of the second content of the accordion. The code is as follow: $(function(){ $("#side-content").accordion(); }); $(function(){ // Load the tags and after clicking on a tag add it to the input text function get_tags(category) { $("div#tags").load('/monitored/tag_cloud/'+category, function () { $("div#side-content div#tags p").click( function () {
[jQuery] jQuery 1.2.1 and Interface/ui Sortable Bug?
I have noticed a bug with jQuery 1.2.1 and any type of sortable extension (I have tested with both Interface and UI) where once you do the initial sort, jQuery will throw a bunch of errors every second in an infinite loop. I can reproduce their error easily on Firefox 2 with not only my script (which was working with 1.1.2, but also jQuery's site. It seems to only affect the Sortable class from what I've seen so far too. I wanted to know if anyone else has seen or can recreate this bug before I submit
[jQuery] Close Thickbox and Make the Parent Window go to href
Here's a function I have that doesn't quite do what I want it too: $('.closeWindow').click(function(){ parent.tb_remove(); //This closes the thickbox parent.location.href=$(this).href(); // This tries to load the href url in the thickbox right as it closes it }); What can I replace parent.location.href=$(this).href(); with to make this parent window go to the correct url?
[jQuery] showing div#test3 when url is domain.com/page.php#test3
on my test.php page i have a set of divs, the visibility of which is toggled via a menu that uses jquery toggle(). the menu points to domain.com#test1 - domain.com#test2 - domain.com#test3 and the divs are #test1, #test2 and #test3. #test1 is shown by default, when the page loads by using css to hide all divs but #div1 id like #test3 to appear if some one clicks a link from an external page that points to domain.com/test.php#3 - is that possible? is klaus' history plugin the most appropriate solution
[jQuery] Java Server Faces and JQuery
Does anyone have experience using JQuery with Java Server Faces?
[jQuery] Using jQuery and ajax to retrieve and append to table on scroll
Hi Sorry if this is duplicate post but i ddint see my previous post after hitting submit. If you visit www.dzone.com you'll notice that as you scroll down on the main page and if you are apout to approact the end of the page (while scrolling)...another 23 results are grabbed and appended to the list or table w/e it is. I am very new to jQuery and this feature looks very fascinating to me. Is there anyone who knows how to do this or knows a tutorial related to this feature. Thanks -Bhaarat Sharma
[jQuery] accordion setting height: 0px, overflow-y: hidden
Hi, I'm using the accordion plugin that came with the first release of jQuery UI and I'm having some troubles getting the right height of the second content of the accordion. The code is as follow: $(function(){ $("#side-content").accordion(); }); $(function(){ function get_tags(category) { $("div#tags").load('/monitored/tag_cloud/'+category, function () { $("div#side-content div#tags p").click( function () { $("fieldset#main-criteria input#search_text").val(jQuery(this).text());
[jQuery] hoverIntent help: firing dropdowns all at once (extreme novice)
I'm using the hoverIntent plugin to control a series of drop-down menus. I have it set up and it works save for the fact that if I hover over a li element it fires (displays) all the of drop-downs instead of doing it individually. I think I need to set up some sort of timer, or stop (?) This is my first js experience so I'm not quite sure how. Any help would be grealy apppreciated. The code looks like this: <html> <head> <script src="../../../../../_library/jquery_compressed.js" type="text/javascript"
[jQuery] Using jQuery to load content from DB on scroll
Hi I'm sure most of you have visited the DZone website. As you might have noticed they have a jquery functionality where when the user is about to scroll to the end of the page ..25 or so more results are fetched and appended to the already shown list. I am Very new to jquery and love its goodies. Just wondering if someone knows of a plugin or tutorial that shows how to achieve this? I'd greatly appreciate any help Thanks -bhaarat
[jQuery] 1.2.1 remove() forgets bindings?
Hello again all! I just upgraded one of my web apps to jQuery 1.2.1, and noticed that .remove() no longer retains event handler bindings (i.e., if I have a .click() bound to an element). Previously, I was assigning the the return value of .remove() to a variable to stash a small chunk of the page in memory, and append it back in later on. In jQuery 1.1.2, I could recall it from memory, complete with previously bound click events and all, but in 1.2.1 it doesn't appear to work that way. Is there a
Next Page