[jQuery] Login Script with SimpleModal
Hello. I am currently using Eric Martin's SimpleModal dialog to try and create a login script without leaving the main page. Right now, the script will load fine, however, when I click login, it does not validate the form elements to make sure they were filled out and it does not process the results or display them to the modal box when clicked. What it actually does - is display all of the form elements (user name and password) in the url of the page the modal box is overlaying. http://www.example.com/index.php?email=testemail@test.com&password=password
[jQuery] Firefox 3 help
I seem to be at a loss I'm trying to run this code right here: $("#image img").fadeTo(500,0,function() { $("#image img").attr({src : imgSrcNext}); }).fadeTo(500, 1); but in firefox 3, I see the fade away and the fade back, and THEN firefox decides to switch the img source to the new image. It doesn't wait before firing the callback. I don't understand what could be causing this anomoly. Just go to this page and you'll see what I mean. http://sandbox.exit42design.com/photography/folio_1.html Any
[jQuery] ui.mouse is null or not an object
Hi, I am adding the following library and still getting the "ui.mouse is null or not an object" JavaScript error: Here are my references: <script src="Scripts/jquery-1.2.6.js" type="text/javascript"></ script> <script src="Scripts/ui.sortable.js" type="text/javascript"></ script> <script src="Scripts/ui.core.js" type="text/javascript"></script> Thanks, Azam
[jQuery] is this bug ? bind not work
Hi ... I have table and inside contains image which class name = 'reason_img' my js script was like this <script> $(document).ready(function(){ ...... another initialization goes here .... $('.reason_img').bind('click',function(e) {display_reason(this);}); .... }); function display_reason(el){ alert('test'); } ..... </script> when i click on every image which has "reason_img" class .. it won't work .. I tried to type $('.reason_img').bind('click',function(e) {display_reason(this);}); in my firebug
[jQuery] Corners not working in IE7
<span style="font-family: trebuchet ms,sans-serif;"></span><span style="font-family: trebuchet ms,sans-serif;">Im trying to get curvy corners to work, but for some reason it doesn't work in IE7.</span><br style="font-family: trebuchet ms,sans-serif;"> <span style="font-family: trebuchet ms,sans-serif;"><a href="http://blue-anvil.com/jquerycurvycorners/test.html" target="_blank">http://blue-anvil.com/jquerycurvycorners/test.html</a></span><br style="font-family: trebuchet ms,sans-serif;"> Site: <span
[jQuery] Array Intersection or union
Are there any plug ins for union or intersection of arrays?
[jQuery] Google Analytics Tracking with JQuery
Hello, I just started looking into JQuery and I have a few questions. Mostly about how to make tagging my links with google analytics tracking faster. I want to be able to track my outgoing links, which I've read is possible, but I really haven't see anything about tracking third party booking engines. So basically what I want is this. If I have links linking to my domain or an eCommerce or booking engine, I don't want those links to be tagged as outgoing. However, if the link is to a booking engine/eCommerce
[jQuery] I-map Websolution...turning possibility into reality...
I-Map Websolutions: web hosting Philippines www.imapweb.com - Web Hosting Provider Today’s modern world we have lots of changes, new ideas created to explore, develop, enhance especially in corporate world that’s why we find also new ways and strategies to improve and promote businesses because now a days there’s a lots of competitors. So we have to think how to manage our business in a way will increase our income and at the same time having a modern way of competing. So I look for something that
[jQuery] I-map Websolution...turning possibility into reality...
I-Map Websolutions: web hosting Philippines www.imapweb.com - Web Hosting Provider Today’s modern world we have lots of changes, new ideas created to explore, develop, enhance especially in corporate world that’s why we find also new ways and strategies to improve and promote businesses because now a days there’s a lots of competitors. So we have to think how to manage our business in a way will increase our income and at the same time having a modern way of competing. So I look for something that
[jQuery] Position a hidden DIV under a menu item
Hello, I have an existing single-row table driven menu bar that I am looking to add a drop-down menu to. Below is the code I am trying to use. I have gone through many iterations but I seem to always get the same error: "$('#appMenuDropDown').style has no properties" Can someone please take a look and offer a suggestion or two? Thanks! Derek $(document).ready(function () { //hide the drop down menu DIV: $('#appMenuDropDown').hide(); //Get the offset for the main menu bar item: var
[jQuery] Jquery and using regex in selectors
How about allowing regex in jquery selectors? For instance $("input[name="*name"]) to select <input name="firstname"> <input name="lastname"> Typically in forms, most of the components are bundles. Like Names, Addresses, etc. One use case that I could think of is setting validators on all these fields would be easier with support for regex.<br clear="all"> -- Thanks Ram
[jQuery] How to fit the draggable inside the droppable?
Hi, How can I fit the draggable inside the droppable? I know I can use "fit" but that is just too hard to fit in the droppable. Also, if the droppable already consists an element then I want to kill the draggable but not destroy or disable it.
[jQuery] Ajax/jQuery.post: JSON interpretation of return value not working
I'm trying to get this code to work: function favorite(id, uri) { $.post(uri, function(data) { console.log("data: " + data); console.log("data.tt: " + data.tt); }, "json" ); } My console output is: POST http://localhost:5000/music/artist8/test_song_0/favorite/ 634msjquery-1...6.pack.js (line 11) data: {"text": "Add to watchlist", "tt": "Click to add this song to your watchlist"} data.tt: undefined So the JSON object my server generates looks fine to me. Why is data.tt undefined? Anyone? Thanks! Hannes
[jQuery] Don't redirect on form submit
Hi, I've got a comments page that I load within a div. On clicking the "Submit" button, my page redirects to the php file that I submit to. Now since my site uses only one page which acts as the front-end with all sub-pages being loaded into a content div, i don't want the redirection happening. What I basically want to achieve is that on clicking the submit button, the data is posted to the php file without any noticeable difference happening to my page. The response etc will be taken care of by
[jQuery] How to remove an object from an Array ?
Hi Guys, I got an javascript object like this : var usercontacts = { id:null, contactEmail:null, contactName:null, source:null }; and I save it into an Array with multiple of it. How can I remove one of this object from an array ? Thanks & Regards, Mark -- View this message in context: http://www.nabble.com/How-to-remove-an-object-from-an-Array---tp18178764s27240p18178764.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] [Treeview] Dynamically adding nodes to the async treeview
Hi all I'm using the async version of the treeview plugin by Jörn Zaefferer. I'd really like the ability to dynamically add nodes to the treeview, but am experiencing some difficulties in doing so. Currently I've managed to get top-level leaf nodes added using the following code: function addNode(cssClass,newName){ var node = $("<li><span class='"+cssClass+"'>"+newName+"</span><ul></ ul></li>").appendTo("#products"); $("#products").treeview({add: node});} where #products is the id
[jQuery] Problem with post not displaying in IE - FF works
First of all - I'm a 1st timer on Javascript and jquery so...please give me a little grace on my poor js skills. I have the following setup that is working fine in FF. The problem is in IE with the post in the getData function. In both IE and FF I get the alert that contains the data (just to debug the script) and the data is displayed properly in FF. In IE I get the alert with the proper data so I know that the request is being set and returned properly. The problem is the data does not refresh.
[jQuery] Cycle and Fancybox problem
Hi, I've included Fancybox into the Cycle plugin. Currently, my Cycle plugin has two divs (two sets of pictures). When you click on a picture from the first slide, fancybox zooms from the top left corner of the page, instead of zooming in/out from the image clicked. Could anyone please help me ? I tried having a look at both codes, I guess it's a positioning problem somewhere. I`m guessing when I click the "next" button for the next div to appear in Cycle, some position happens for the second div,
[jQuery] Cycle and Fancybox problem
Hi, I've included Fancybox into the Cycle plugin. Currently, my Cycle plugin has two divs (two sets of pictures). When you click on a picture from the first slide, fancybox zooms from the top left corner of the page, instead of zooming in/out from the image clicked. Could anyone please help me ? I tried having a look at both codes, I guess it's a positioning problem somewhere. I`m guessing when I click the "next" button for the next div to appear in Cycle, some position happens for the second div,
[jQuery] jquery keydown and keyup at (window) level do not fire in IE
Anyone else noticing this? Here is an example code, works fine in firefox but fails in IE. $(window).keydown(function(event){ alert(event.keyCode); });
Activate onclick for prepended element?
In the midst of a large image-upload routine, I have a system where an image gets uploaded, then a thumbnail of the image is added to an existing <ul> structure where each <li> contains an image. In other words, there are a bunch of images, and when I upload one, I insert another as a new <li> at the beginning of the list. This is all working great. However ... I also have a function defined in the head of the page where any image in the list that is clicked causes the source of a larger image to
[jQuery] Display CSV into Table
Hi, I have a tiny problem. Instead of using a button to display the table, I rather have the table displayed as the HTML page is loaded. I really like this csv2table plugin: http://plugins.jquery.com/project/csv2table However, the author of this plugin is Japanese and I don't know how to reach him. I wonder if you can help me edit the code: <code><input disabled class="btn1" type = "button" onclick="$('#view50').csv2table('./data/test.csv',{ sortable : false });" value="Run"> <div id="view50"></div>
[jQuery] add new row to table
I've read all the other info about adding a row to a table and I just can't get it to work. I've got my dialog popping up with two buttons. When the user clicks Volunteer, I want an empty row to appear at the bottom of my table and the "Volunteer" button to change to "Save". The user would enter their info and press save. The data is then saved to the db. I've tried tableEditor, but can't even get a javascript error to troubleshoot. Can someone help? I promise to write this up in the FAQ later....here's
[jQuery] Accordion madness and two divs inside instead of one.
This is about accordion, but i want to do something, which hasn't been showed here: <a href="http://www.learningjquery.com/2007/03/accordion-madness" target="_blank">http://www.learningjquery.com/2007/03/accordion-madness</a> Ok: I've got something <blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"> <div class="demo-show2"> <h3>Title 1</h3> <div>Lorem...</div> <div>Lorem...</div> <h3>Title 2</h3> <div>Ipsum...</div>
[jQuery] java 1.6.1_10-beta
Hi, As soon as a I update my jre to 1.6.1_10-beta my html page, which includes also a java applet, throws a javascript exception. Error: java.long.NoSuchFieldException: jQuery1213007149903 This occurs only in ie but not in firefox (firebug console). Is it possible that the postfix "-beta" makes some trouble. thx and regards cyrill
[jQuery] How to determine when an element finishes rendering?
I'm working on a page for my company that allows us to edit information in page, and then write that page out to a file (or a database, or whatever). The process we have right now is as follows: The html in the 'editor' section gets copied out to a hidden element. Undesirables are removed from the html in the hidden element (removing various js calls, or unwanted elements) The HTML content of the hidden element are sent to the server via ajax and written wherever. The trouble that I'm having is that
[jQuery] Do something 3 times
I am using jquery to parse an xml file. It gets the date, title and link from a Blogger rss. I have it working but I want it to only do the loop 3 times so it gets the 3 most recent posts. The way this would work in regular javascript: for (i=0;i<=2;i++) { // do some stuff } Here's my code: $(function() { $(document).ready(function() { $.ajax({ type: "GET", url: "blog/rss.xml", dataType: "xml", success: function(xml) { $(xml).find('item').each(function(){ var date_text = $ (this).find('pubDate').text()
[jQuery] Firefox (2&3) does not render new content on .append(val) and .html(val)
I've got some pretty simple code: [..] $(".remove").click(function(){ $.post("index.php",{action:"remove"}, function(data){ $("#right").html(data.newContent); }, "json") return false; }); [..] <div id="#right"> <a class="remove">remove it!</a> </div> [..] Once I click on the link new #right content is properly fetched and inserted in the div, but it is not rendered. Innerhtml is there, but It is not displayed. On the other hand if I replace .html() with .text() the content
[jQuery] Concern: quality of plugin library submissions
I'm finding what seems like a lot of plugins that: a. Don't follow the structure of the 'home page, documentation, demonstration' pattern b. Have dead links to the code/docs c. Plugins that are marginally 'jqueryized' (for instance a Dynamic Drive component I came across with a minor reference to jquery but the bulk of it's code is run of the mill javascript. d. Seem to be poorly described as to intent/purpose e. Seem to be quickly-knocked-out and/or not well thought out, almost as if for the sake
[jQuery] Dialog Functional Demo Miss Linked
The jQuery UI - Functional demo for the dialog is missed linked or something. The URL is http://ui.jquery.com/functional_demos/#ui.dialog Yet there are demos for dialog at http://dev.jquery.com/view/trunk/ui/demos/functional/#ui.dialog It would nice to have these two pages merged or have the demos from the second link copied to the first link.
[jQuery] Is it possible to fade images partially?
I'd like to know if it is possible to apply the fadeOut function to an element, but just partially, so that the element looks transparent (like a disabled button). I've been looking in the tutorials section of jQuery's official site and in Google, but I haven't found anything about it. Is it possible? if so, how? Thanks in advance.
[jQuery] Caching in jquery autosuggest
Hi there, we are developing some autosuggest features for a website and using the query autosuggest plugin. No question about the plugin itself. What do you think about server side caching within the suggest functions? Is this useful? I thought abaout a MRU on the server side. But wont the cache be full of senseless entries, especially with the first letters of the search queries? Is anyone useing a server side cache for auto suggest? How are you caching? Thanks for any reply, Uwe
[jQuery] [autocomplete] Display a busy indicator?
Hi, I use the autocomplete script from http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ There is something I could not figure out: Is it possible to show an busy indicator while the results are fetched from a remote server? thanks, fs
[jQuery] positioning a slidedown div under an existing menu
Hello! Sorry for the what I assume is an easy question but I am stuck. What I'm working with is an existing single row table-driven top nav bar and what I need to do is add a sub menu under one of the menu items (which is the third table cell in if that helps). My thought was to just create a div with the 2 items (links) I needed and use jQuery to show/hide based on the user doing a mouseover on the menu item. I created the div (id=appMenuDropDown) and have the following code to show it: $('a#menuItem').mouseover(function()
[jQuery] How to return to vertical position of DIV?
Here's my dilema... On the following website: http://akcollectables.com/store/index.php?act=viewCat&catId=2 ...users vertically scrolling down to see the items for sale (the big images). After a user clicks on the image of a particular item they are taken to that item's product details page. How can I make the DIV that the items are first displayed in on the initial page: http://akcollectables.com/store/index.php?act=viewCat&catId=2 ... return to the same vertical position it is in? I am thinking
[jQuery] jtemplates performance
I am using jTemplates (jquery-jtemplates.js) to render a large xml response by running xmlToJSON then processTemplate. Although the code works fine, and performance in FF2.0 is acceptable (2672ms) on my test system, I am getting a result of 9827ms when running in IE7. Is there a known performance issue with jtemplates ? Are other templte modules better ? (p.s. the real world code uses jQuery Form plugin and web services, but the sample below reproduces the issue) Code, and template follow. Template:
Affecting only clicked container after ajax call
Hey everyone here's the deal. I'm doing the delete a comment system where I wish to click a delete link on a wished comment, sending a $.post call to php script to delete the post from DB and then removing it from the users screen. Everything works ok until I add the function(data) in $.post call. I want to be able to display an error if data returned from the delete script is not 'ok'. However as function(data) is nested inside the $.post I can't access the clicked object anymore. Here's my Jquery
Help with FancyBox and jQuery Cycle
Hi, I've tried adding fancybox to the jQuery Cycle plugin, it seems to work in Firefox, but the first div zooms the images from the top left corner of the webpage. This doesn't seem to happen to the second div. And in IE7, the Cycle plugin doesn't work at all, and Fancybox zooms somewhere below the divs. Here is the website: http://www.firearts.eu/test/ Could anyone help me out with this ? Thanks.
[jQuery] Trouble loading an HTML page after animation is completed
Hello! Here is my setup: I want to click my link, have the content box animate to the proper width, and then have my HTML page appear once the animation is completed. In the snipped below, the content of the HTML pages loads before the animation is complete. How do I make this work? $("#link").click(function(){ $("#contentbox").animate({width: "550px"}, 300 ); $("#contentbox").load("interactive.html"); }); Thanks, Jason
[jQuery] [tablesorter] Problem With Parser
Hey, I've written a simple parser which turns words into numbers to make it sort in a specific order. Simple enough. However, I've added an extra bit onto the end - so it appears now like - reasonable (3,2). That (3,2) is preventing it from working correctly. Is it possible to put a wildcard in the parser, or something similar? The problem can be seen at http://doof92.co.uk/ftp/players.asp http://doof92.co.uk/ftp/players.asp Thanks -- View this message in context: http://www.nabble.com/-tablesorter--Problem-With-Parser-tp18169702s27240p18169702.html
Next Page