[jQuery] jScrollPane initialization problem
Hi guys, I've searched around in jScrollPane threads but can't seem to find what I'm looking for. My site (http://pranshuarya.com/p2) has a bunch of collapsing divs controlled with show() and hide(). The jScrollPane scrollbar shows up the first time around, but after that, when I recall the same function, it doesn't show up. I read that it needs to be reinitialized each time the div changes, and I've worked that into the function so that it gets reinitialized each time the initial_list function is
[jQuery] drag and drop fileupload with jquery
hi there, is a drag and drop fileupload with jquery possible? are there existing plugins? thanks in advance jay
[jQuery] How to call ClueTip direct and pass the Tip as a parameter
Hello, Is it possible to use ClueTip in such a manner as to simply "call" the ClueTip and pass it the title and tip as a parameter? I posted a question a few days ago about how to get ClueTip to open from a link in an Iframe document so that it opens in the parent window (instead of being "clipped" at the edge of the IFrame. I have ran across another DHTML tooltip that I can call in this fashion and it DOES work as it needs to, but it is not as nice as ClueTip. It uses an OnMouseOver Javascript event
[jQuery] How to trigger jQuery action from a php else branch?
I have a login system that has a slideup/slidedown show/hide function for a forgot password link. It is hidden by default and it's triggered with toggle(). Works just fine. I have php validation on that forgot password text field so if someone tries to submit with that field empty they get an error message telling them to enter their email address so we can send them a new password. The issue I'm having is when that error message is triggered, the forgot password text field is hidden, where I want
[jQuery] UI Colorpicker plugin doesn't work with IE
I've been trying to get the UI Colorpicker plugin working, but it has been tricky because the documentation and CSS styles are either missing or pretty buggy. I've got a working example <a href="http://samaxes.appspot.com/zip/ colorpicker.zip">here</a>. My example works correctly with almost all the browsers I've tested it with (Firefox, Chrome, and Safari), but unfortunately it doesn't work with IE (tested with IE7). I've fixed the CSS bugs, but I'm yet to find if there is any JavaScript bug. Have
[jQuery] IE + jQuery + fixed elements != happiness
I created a simple page that contains numerous paragraphs, and a position:fixed div at the top of the page. The div at the top is called "jquery-panel." jQuery-Panel conatins two nested divs: panel- content, and panel-handle. By default, panel-content is display:none, and panel-handle is fully visible. The markup follows: <div class="jquery-panel"> <div class="panel-content"> <div class="padder"> Hello World </div> </div> <div class="panel-handle"></div> </div>
[jQuery] animations staggering when $().load called _ advise please
Hello friends, I have a dropdown menu that animates horziontally each time you click on one its links. Some of them reveal a submenu, others load some html via ajax ($(container).load();) and others do both. I notice that animations tend to stagger when ajax calls are under progress . What would be a good approach to remove these lags? Of course, once the data is loaded and in the cache, no more staggering. There is a lot of html bits so preloading all of them is not really my favourite option, so
[jQuery] jquery.cycle.lite.js
I'm very new to HTML and newer to JavaScript. Just getting started with Expression Web 2. I downloaded jquery.cycle.lite.js thinking I can use it for simple swapping of photos in a space on my opening (home) page. I've put following in my file. <script src="jquery.cycle.lite.js" type="text/javascript"> <!-- // --> </script> But, can't figure out what to put between the comment tags. And, what else will be needed. I'm sure somehow I must assign the graphic files to be used and probably more. A jump
[jQuery] event.preventDefault() not in the intellisense?
Hi I am new to this group and also new to Jquery. So I am just trying the sample in tutorials. Basically it works very nicely. But there is a small flaw while I was playing with JQuery, that I can't get the intellisnse help from visual studio. and I have captured the screen shot as following: http://picasaweb.google.com/lh/photo/i6GxK88a7vxrQR9qS8BARQ?feat=directlink so you see I have add reference to jquery-1.2.6-vsdoc.js, but there is no preventDefault() method for event object. What should I do
[jQuery] Time since last event?
I'm working on spicing up a search bar so it loads the results through an ajax call. I throws the request whenever a keyup event has been fired in the input field, my code looks like this: inputValue = jQuery("input#s").val(); url = "http://www.iconpark.net/?s=" + inputValue + " #content > *"; jQuery("#content").slideUp(800, function() { jQuery("#content").load(url,{},function() { jQuery("#content").slideDown(500, function() { jQuery('p:contains("'+inputValue+'")').each(function(){
[jQuery] Jquery and math (resize image through a slider?)
I want to scale images via Jquery's UI slider much like this: $('.imageExample').css('height', ui.handle.css('left')); But I don't want to do it in a "ratio 1:1 way" i would like to say: $('.imageExample').css('height', ui.handle.css('left') / 200 * 100 ); But this does not work? How do I do math operations in Jquery / JavaScript correctly?
[jQuery] How to enable intellisence for Jquery in zend studio for eclipse
Im new to javascript and also with JQuery and i need to see functions and objects in Intellisence (auto completion) feature of zend studio. is there any way to make Zend studio to show functions and object of JQuery? i tried to add library (in user library option) in project properties and it just show them in PHP explorer but nothing appear when i try Ctrl+Space in my code. i saw ZS support Dojo nicely and i though maybe it can support JQuery in same way. thanks for support. regards.
[jQuery] questions on event delegation
My question's are 1. If you have a Div class= content with children anchors. Then empty and load in new content in that div with children anchor those anchors will get the same event handling that the previous anchors had right? 2 if it were a .click event to the div insted of the actual object how could you differentiate between a click on an anchor with a class of slider or an anchor with a class of dragable? 3 and finally how would I find the ID of an <LI> that an object is a child of like in
[jQuery] checkboxes, array and $.post
Hi, I have a tabular data I need to be able to delete by selecting checkboxes, and submitting a form (a .php script then checks which checkboxes have been submitted, delete by id, return an updated list of the items injected into the dom). My problem is that I currently can't manage to gather these checkboxes values as an array. Please consider the below code: $(document).ready(function(){ //submit the form $("form#form-delete").livequery('submit', function(event){ $("span#wait").html('<img name="wait"
[jQuery] jQuery ClueTip issue...
I have the jQuery cluetip project compiled and running fine in its own project, but am having a problem including it in my own project. I have tested this out both in IE7 and Firefox 3. It works fine in FF, but in IE7, the cluetip doesn't show up. However, if you resize the page, all of a sudden the cluetip starts working. I have tried debugging through the cluetip and it runs through all its initialization just fine on the document.ready function. Here is a link to the specific page I am working
Referencing a title to call up an ID
I'm trying to learn some jquery so I took a tutorial off NETTUTS and modified it to be a Jeopardy game. But.. I'm trying to set it up so that when the Question is clicked it will replace the question with the text of the answer. I tried merely replicating the format of the lines where my numbered boxes (class="tabs") is clicked and calls up "content" but so far to no avail. Not sure why because I don't know enough about jQuery. The working one with the questions displaying properly is here. The code
[jQuery] jQuery Pagination and MySQL $limit, $offset
I am trying to use the jQuery pagination plugin with my PHP/MySQL website -- It appears I have to either use Ajax or use PHP to write the jQuery pagintion header so I can control the $offset and $limit, in order to control the pagination -- What is the best way to combine javascript, PHP and MySQL so that they can communicate with eachother? Here is my PHP page and SQL ================================================ <script type="text/javascript" src="include/jquery-latest.js"></script> <script
[jQuery] [treeview] Feature proposal
Hello. I would like to propose a new feature for the Treeview plugin. persist: 'location+cookie' This would use both location.href and cookies for persistance. First, the plugin searches the list for location.href. If found - opens the proper node, saves a new cookie and finishes. If not found - then opens the node that was saved in the cookie. This would give a power. Let's have an internet bookshop. We have got a category browser on the left (Treeview) with all categories. The user searches the
[jQuery] specify a content class in accordion plugin
is it possible to specify a class for the content container in the accordion plugin? it is possible to for header. thanks -- View this message in context: http://www.nabble.com/specify-a-content-class-in-accordion-plugin-tp21273212s27240p21273212.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] - Enable then Disable buttons
How can i disable a button for 3 seconds then after that enable it when a use click a button (to avoid the user clicking without stopping) Button Enabled -> user click the button -> button is disabled for 3 seconds -> button is enabled .
[jQuery] use beforeStart callback to trigger validation of current carousel slide (jcarousel lite plugin)
i'm using jcarousel lite to create a multi-part form and i want to validate each section and not allow user carousel to scroll to next slide until that part of the form is valid. is is possible to do this using the beforeStart callback to run validation? or is it possible to call validation here in this function that runs the scroll on click of next? $(o.btnNext).livequery("click",function() { return go(curr+o.scroll); }); i'm using jörn's
[jQuery] hidden form field
How do I insert a value to hidden form field "user_name"? <form name="myForm" id="myForm" method="post"> <input type="hidden" name="foo" value="bar"/> <input type="hidden" name="user_name" value=""/> </form> jQuery('form#myForm input:hidden ???').val('fast_fish'); Thats what I need: <input type="hidden" name="user_name" value="fast_fish"/>
[jQuery] event binding issue
hello friends, i'm injecting a menu ( UL > LI > A markup) and binding each A anchor a click event, but the event fails to trigger. Can you explain me what i'm dooing wrong? here is the code sample: $('<a>' + linkText + '</a>').appendTo($dsanchors).attr({ 'href': '#' + index, 'id': index, 'class': (linkText == selected) ? 'selected' : 'notSelected' }).bind('click', function() { alert("hi"); return false; }).wrap('<li></li>'); the html is correctly injected, but the event is not attached.
[jQuery] treeview - location based persistance issue
HI!! Nice job with treeview!! works like a charm! There is a little issue however... The treeview works fine, and when I navigate the content which the tree points to it also does its job by highlighting where ever I navigate to even if I click in the content rather than in the tree. However this is true only if I navigate towards depth. If instead of continuing to go deep I decide to navigate upwards in the navigation tree by clicking within the content, the tree will collapse fully. Summarizing:
[jQuery] slideDown/slideUp with media
I have a page that I am trying to slideDown and slideUp with a Windows Media Player object playing. IT works fine in Firefox but not in IE6. In IE6 when it slides up you can see the containing div slide up but the player keeps playing. The idea here is to only load and play the video being asked for by the user. Example page at: http://www.trinityacademy.org/co-curricular/newspaperNew Click "Media file one" for the problem child.
[jQuery] Why would this code not allow a $ as part of the input?
Hi, all... I'm writing some validation code and have an input for dollar amounts and would like for users to be able to enter digits or $ or , or . all of which are commonly used in US dollar values. The code I've written should verify that after any $ or , or . are removed from a user's entry, there is only digits remaining. However, when I enter either $ or , or . into the string, the string is rejected as valid. $1200 doesn't even pass. Is there something wrong with my code or logic? Thanks for
[jQuery] [ui accordion] alwaysOpen option for nested lists
Hi, Does anybody knows how to get a collapsed accordion when it is first shown? From <a href="http://ui.jquery.com/demos/accordion#collapsible">http://ui.jquery.com/demos/accordion#collapsible</a> one would assume "alwaysOpen: false" however that is not enough when there are nested accordions. See the example below (borrowed from a previous post in this forum with a little change). I would like to have *all* items collapsed when the page is loaded but the first outer element gets expanded as soon
[jQuery] [ui accordion] alwaysOpen option for nested lists
Hi, Does anybody know how to get a collapsed nested accordion when it is first shown? From http://ui.jquery.com/demos/accordion#collapsible one would assume "alwaysOpen: false" however that is not enough when there are nested accordions. See the example below (borrowed from a previous post in this forum with a little change). I would like to have *all* items collapsed when the page is loaded but the first outer element gets expanded as soon as the page gets loaded. An extra thing to note is that
[jQuery] select a specific row in a table
Hello, I would to know how I can get a specific row in a table and get the text of a specific td. For example this table: <table border="1"> <tr> <td>Order</td> <td>Name</td> <td></td> </tr> <tr class="main"> <td>1</td> <td>Présentation</td> <td><a href="#">mod</a></td> <td><a href="#">sup</a></td> <td><a class="bas" href="#"><img
[jQuery] How to create a div by click + drag
Hi, i have a question on what function to use to create a funciton to create a div by clicking somewhere on the parrent div and dragging down to determine the div size. To give you a better idea of what i mean here is a link of the DHTML week planner demo. http://www.dhtmlgoodies.com/scripts/dhtmlgoodies-week-planner/dhtmlgoodies-week-planner.html You will see that you can create a new event in the planner by clicking anywhere and dragging your mouse down. I am working on a simmilar project and any
[jQuery] Question about UI Accordion - multiple triggers in nested lists
Hello, Can anyone tell me if it's possible to have multiple triggers in nested lists using the jQuery UI Accordion? Also, is it configurable to open the accordion to the correct level dynamically based on the current page? Sample code below doesn't accomplish all of these things, so I'm hoping someone can nudge me in the right direction. Thanks. ++++++++++++++++++++++++ $(function() { // remove border from last highlight div and last table row on the page $('#secondaryContent div.highlight:last,
[jQuery] .NET with jQuery - noconflict?
Is it a must to call jQuery.noconflict when using jQuery with .NET. What are the potential problems that would arise? I am NOT using jQuery noconflict at the moment on a social networking site w/ all the bells and whistles. I don't see any conflicts but I'm worried that performance is taking a hit and noconflict would resolve that. We are currently trying to optimize everything. Any help is appreciated! Thanks, Diane Nardozzi
[jQuery] Simple way to track dragging?
I know i can do mouseup/mousedown to track where the mouse was clicked down and where the mouse was clicked up but it there a simple way to track the dragging from those 2 point without inlcude 25K mined js from jquery ui(which is 9X+ the size of my current plugin). -- View this message in context: http://www.nabble.com/Simple-way-to-track-dragging--tp21072641s27240p21072641.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] book: Learning JavaScript, Second Edition
someone in the group have this book? Learning JavaScript, Second Edition link -> http://oreilly.com/catalog/9780596521875/preview.html
[jQuery] Append inside loop
Hi, can anybody explain me, why this code don't work as I expected ? Here is: function get(page){ return $.ajax({ async: false, type: "GET", dataType: "json", url: "some_url.php?page=" + page }).responseText; }; function show(data){ data = eval(data); for(i=0;i<=data.length-1;i++){ $("#results").append(data[i].url + " "); } } $("#search").click(function(){ for(page=0;page<=9;page++){
[jQuery] Cannot get dynamically generated link to fire
The code is below. I cannot get the link that was added to the <li>blue</li> to be fired after the code is ran. It works fine for Item1 remove me link Any ideas? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script language="javascript" type="text/javascript" src="jquery-1.2.6.min.js"></script>
[jQuery] JQUERY .POST PROBLEM
I am having some problems with a jquery script that I am writing. The problem is after I receive the data from the php file jquery seems to skip the if statement. I am logging to console and it is showing yes/ no depends on email address. I am enclosing my scripts in case someone can help me. <script src="javascripts/jquery-1.2.6.js" type="text/javascript" charset="utf-8"></script> <script src="javascripts/jquery.validate.js" type="text/javascript" charset="utf-8"></script> <script src="javascripts/jquery.corner.js"
[jQuery] Sleep / Delay in jQuery
Hello, I'm a newbie to jQuery and was going through the hello world of jQuery as per - http://docs.jquery.com/How_jQuery_Works I've gotten my code to the stage ---------------------------------------------------------------------------------------------------- [yvb@bfc22 basics]$ cat test3.html <html> <head> <style type="text/css"> a.test { font-weight: bold; } </style> <script type="text/javascript" src="/jquery.js"></script> <script type="text/javascript"> // Your code goes here $(document).ready(function(){
[jQuery] Identify Google Chrome
Hi, how can i identify google chrome in my javascript. I try go with my google chrome on jquery page ( http://docs.jquery.com/Utilities/jQuery.browser )....and i see that my chrome is safari browser version 525.19. Have you somebody any idea? Thank you and i'm sorry for my bad english :-)
A Simple Loop
Hello, A friend made this code for me: $(document).ready(function(){ $("body") //.animate({ queue: false, duration: 7000 }) .animate({ backgroundColor: "orange" }, 1000) .animate({ backgroundColor: "yellow" }, 1000) .animate({ backgroundColor: "green" }, 1000) .animate({ backgroundColor: "blue" }, 1000) .animate({ backgroundColor: "indigo" }, 1000) .animate({ backgroundColor: "violet" }, 1000) .animate({ backgroundColor: "red" }, 1000); }); And, well ... I'd like to loop
Next Page