[jQuery] ownerDocument is null
JQuery 1.3.2, FF3, IE6/7 (not sure of others). this[0].ownerDocument is null Line 4187 I occasionally get the above error. It appears that jquery sometimes gets a hold of the actual document and so doesn't have an owner document. Does anyone have suggestions as to what can cause this (or could point me to a post that addresses this)? I've temporarily gotten around it by modify jquery to test for null ownerDocument and returning the same as if this[0] were null, but I hate to do this since it is probably
[jQuery] Plugin for transparent rounded corners with borders?
Is there a jQuery plugin that does transparent rounded corners and keeps the borders of a div? I found and tried several rounded corner plugins already, but they either remove the border that I have around the div and/or don't have transparency (i.e. white rounded corners). Is there a plugin that accomplishes this?
[jQuery] Get all unique class names
I'm interested in getting an array of unique class names of all option tags under a specific select element. I'm imagining something like this (which does not do what I want): $ ( '#select_id option.class' ); What's the correct way to do this using jQuery? Thanks!
[jQuery] Clicking a draggable item doesn't allow input "blur"
I have a text input that I want automatically submitted when the user clicks outside of the input area (i.e. when the input is blurred). This works fine in many areas of the page. However if the user happens to click on a "draggable" item (UI/Draggable), the input blur never occurs and it doesn't get submitted. I have many draggable items on this particular page, so there is a good chance that the user could click one of them to blur the input. Does anyone else have this problem? Is there a way around
[jQuery] click function on anchor element
Hi all, I'm confused as to why when I have: $('a').click(function(){ alert(this); return false; }); the alert displays the URL defined in the href attribute, and not an object. Yet, if i call like say an image, it returns the object. Thanks ben
[jQuery] tablesorter doesn't do anything, it doesn't show up, it doesn't create an error. Nothing.
I've used tablesorter before. I know its not intended to be complicated, so I assume I'll want to slap myself when I figure out how simple the problem was. when I put other functions in my document.ready they work fine. from the head tag: <script type="text/javascript" src="js/jquery-1.2.6.min.js"></ script> <script type="text/javascript" src="js/jquery-treeview/ jquery.treeview.js"></script> <script type="text/javascript" src="js/jquery.tablesorter.min.js"></ script> <script type="text/javascript"
[jQuery] javascript in web proxies
Hi, I have built a website which has a bit of javascript written using jquery library. Its working fine when i open the site. But when i open the same site from some web proxy, the javascript is not working. I have used sites which does not block scripts and i cross checked it using Firebug. It shows that the javascript part is loaded properly but it doesnt seem to work. Can anyone help me in this regard. Thanks, Nazgi.
[jQuery] jquery find out which option is selected
How can i check in a poll which radio button was selected?
[jQuery] [validate] revalidate dropdown onchange instead of onblur
I've tried several ways, but I can't seem to force the jQuery Validator to (re)validate the dropdown during the onchange. Current scenario of a required dropdown: 1) Do not select an option and submit form. 2) Let validator validate the form. 3) Validator will show errors and higlight invalid fields. 4) Use mouse to open the dropdown and select an option. 5) Validator will only (re)validate the dropdown and remove the error/ highlight when you blur the dropdown! Using keyboard to select options works.
[jQuery] Question on filter()
Hi all, I have the following JS code: $('table.tableView :input[@readonly]').parent().filter(function() { return !$('label', this).length; }).addClass('readonly'); ------ And the following HTML code: <table class="tableView"> <thead> <tr> <th>test</th> </tr> </thead> <tbody> <tr> <td> <label for="foo">Foo</label> <input id="foo" type="text" value="foo"
Get hyperlink from html [Solved]
Hello everyone! I have a search where each result is surrounded by tbody and in each tbody contains a two of the same hyperlinks. Now I'm trying to get that hyperlink and direct the user using that hyperlink. The following is what i have so far $("#search_result tbody").click(function() { var htm = jQuery.trim($(this).html()); var lnk = htm.find('href'); alert(lnk); }); htm contains the tbody html, that is specific to each result, how can I extract the href from
[jQuery] selector strangeness -- is this a bug or am I doing it wrong?
Hello, I'm getting inconsistant results across browsers with the following test: ============ test.html =========== <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ ajax/libs/jquery/1.3/jquery.min.js"></script> </head> <body> <script> var xml; $.ajax({ type: "GET", url: "data.xml", success: function(data){ var node = $("CI:first", data); var query1 = $("T TX", node).length;
[jQuery] jquery tabs 3 - problems to send the hash to url
Hi, my first posting in this group. Hope someone can give me a hint. Is it right, that there is no hash sended to the url in jquery "TABS 3" by default ? means the hash is not visible in the url? I'm new on this stuff ... I've read that I can send the hash with this to url.. select: function (event,..... .tabs({ selectedClass: 'active', select: function(event, ui) { window.location = ui.tab.href; }, cookie: { expires: 0}, fx: fx }) this will send the hash to url, but add it like this mysite#hash
[jQuery] jquery ui Datepicker
Hi jquery,<div> </div><div>i've just tried the datepicker an it's very nice.</div><div><a href="http://jqueryui.com/demos/datepicker/">http://jqueryui.com/demos/datepicker/</a></div><div> </div><div>I can see if I add an ID to an input tag that the input tag gets</div> <div>update with the date selected in the datepicker.</div><div> </div><div>my question is I have 3 input tags one for day, month and year.</div><div>is it possible when the user selects a date in the datepicker that</div> <div>it
[jQuery] Pasing flash media, with multiple instances on one page.
Hello, so here's my issue. I'm just the jquery.media plugin. With multiple players being used for each mp3 link. Is there a way I can setup a jquery call that knows to pause (or stop) all other players once a user click on a new player?
[jQuery] Open <div> by URL?
Can I teach jquery to open a specific <div> by URL? Example: http://www.domain.com/help/faq#107 The FAQ Entry with ID 107 should open immediatly when I go to this URL. (show/hide) Have a nice day! Bennobo
jQuery Form Validation - Summery of error Message
Hi All, My requirement is, All form validation error message should come in a single place, ideally at the top of the form, not inline to form input elements. Can any one suggest how to proceed with this. Thanks, Prabir, Happy Coding
[jQuery] Truncate plugin
I'm totally new to using jquery and I found a jquery truncate plugin that I'm using here: http://reindel.com/truncate/ I have the truncate plugin working, but I have two questions in regards to modifying this plugin to suit my needs. Here is the scenario, I have a formview on my page that is bound declaratively using an ObjectDataSource. Due to screen real estate, not all the data in the formview can be displayed at once. It expands beyond the height of the div and cannot be seen. I'm using the jquery
[jQuery] Plug-in to display (overlay) DIV element on the page at all times?
Example: http://www.daylife.com/ (facebook tab on the left). Is anyone aware of a jQuery plug-in that would do something similar? Thanks.
[jQuery] Set value in Parent
Hello, I have a page in an Iframe and when the user clicks a image (href), I want a value to be set in the parent page. I don't know why this is not working...please assist. In the iframe page , dollar1 is the id of the Imagebutton, then I have a hidden variable id= setEndUser. On the parent page I have a textbox id = Enduser. $(function() { $("#dollar1").bind("click",function() { $("#EndUserT").parent().val( $("#setEndUser").val() ); }); });
[jQuery] IE6 nonsecure issue in file upload using Form plugin
We ran into an issue on https in IE6 where the file upload would return an alert saying that there were both secure and nonsecure items on the page (the iframe). We seem to have a temp. fix for it right now, but wanted to see if there was a fix in the works for this issue? The temporary fix for this issue was to change the src of the iframe in the plugin to a blank dummy page (not about:blank, but something like blank.html).
[jQuery] jquery form plugin and firebug conflict
Hi, I am using Jquery form plugin to interact with PHP server code. When firebug is on, the code correctly sends the data and processes the reply from the server in Json format. Here's the code: var options = { beforeSubmit: showRequest, // pre-submit callback success: processJson, // post-submit callback dataType: 'json', target: '#feedback', clearForm: true }; //form submit $('#create_project_fm').ajaxSubmit(options);
[jQuery] Set MinValue for textbox of datetime
Hi all, how can I set a minimun value of type datetime for a textbox? Thanks in advance. Luigi
[jQuery] jcarousel with ajax and hyperlinks
I have spent the last few hours playing with jCarousel and it looks really impressive. My javascript is still basic, but my php is ok. Using the example dynamic_ajax_php.php as a guide, i created an array from my recordset and generated a new xml file so that i can now browse my own images dynamically. This works fine. I have 2 questions which I hope someone can help me with... 1. Is it possible to adopt the same functionality as the circular carousel example? 2. Is it possible for each image to
[jQuery] Need help with dependent select form options
Hi guys, I'm trying to create a dependent select form like the one here http://www.ajaxray.com/blog/2007/11/08/jquery-controlled-dependent-or-cascading-select-list-2/ Here's my form: http://buzzmedia.com.my/honda/form.html Unlike the example from AjaxRay, my form has multiple rows. I need to figure out how to adapt the code from the AjaxRay example for my own form. I really don't have any background with programming so I don't know how to create objects and loops.. so I'm hoping one of you can help
Jquery treeview help required.....
Hi, I am developing an web application on asp.net 3.5. I am using jquery in that to display some data in treeview format , for which i am using jquery treeview. Now i am using jquery for the first time, so i don't know much about jquery. I want to bind XML to jquey treeview. The following is the XML format. <organisation> <employees empcode="emp001"> <firstname>pqr</firstname> <lasttname>rty</lastname> </employees> <employees empcode="emp002> <firstname>abc</firstname>
[jQuery] IE6 and JCarousel
Hi, I'm using JCarousel to scroll special offers for a product. For IE7, FF and Chrome it all works fine, but for IE6 it doesn't. Basically the special offer content appears whilst the page is loading, but as soon as the page has loaded (and the jquery has loaded) all the content inside the jcarousel disappears! Has anyone experienced this and knows how to fix it? thanks Phil
[jQuery] Make Unlimited Calls Worldwide For Free
Make Unlimited Calls Worldwide For Free http://tinyurl.com/kpu7oz
[jQuery] notify/update client when change on the server
Hi all, I'm trying to implement a simple chatting website. For now what the code does is checking every 10 seconds if there are new posts stored in the database (newer than the last check, 10 seconds ago). Is there a more efficient way than doing this with a timer??? for example, is there some kind of event listener attached to the server that would notify the client whenever the db is updated? Thanks for your help, Clem.
Contextmenu not working jstree with Splitter Plugin
Hi, I am using the jquery splitter plugin found here: http://methvin.com/splitter/ together with the jquery tree component found here: http://www.jstree.com/ both work great individually but if i put the jstree inside the splitter, the trees contextmenu stops working (and gives no error). The problem occurs only in firefox, the same code works fine in IE7. Has anyone else had this problem? I activate my splitter like this: $("#MySplitter").splitter({ splitVertical: true, outline:
[jQuery] Ajax.load doesn't work for <head> element?
Greetings, I'm trying to replace the <head> of a page with the <head> of another page. For example, in http://docs.jquery.com/Main_Page, I call $("head").load("/About head") expecting to replace the <head> section of the current page with that of http://docs.jquery.com/About. However, the function seems to insert an empty string into my <head> tag. Any idea why that might be? Hannes
Change text using an event handler
Hi. I'm trying to change a word in an animated collapsible div script from Dynamic Drive. When clicking "Hide" I want the word to change to "Show". I have part of the script, but it's not working correctly - it just removes "Hide" when clicking on it. See the example here. The code so far is this: animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted //$: Access to jQuery //divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id"
[jQuery] Using each() for multiple $('table') elements
I know this is a easy fix, I'm doing something wrong... I've selected multiple tables and tried to use each for applying cornering to each table. Inside the callback function, I try to find the first/last table cells to apply cornering for each corner. However, when there are multiple tables it looks at _all_ the tr elements for the first/last rows. See example code: // Add cornering to tables $('table.corner-me').addClass('ui-corner-all').each(function(){ var $table = $(this); $table.find('tr:first
[jQuery] Get var $_FILES with jquery
Hy, Sorry for my english but i'm frensh. I have a question and is it possible to get the value of upload file in a form with the $_FILES in php because in jquery we get the POST value. $.post("test.php", { name: "John", time: "2pm" }, function(data){ alert(data); } ); Thank for help
How to get the url parameters
I need to get which all are the parameter in the current url http://localhost:81/jq/app/?param1=value Since my parameters changes every time, I need to get the parameters (not values of parameters) Not am getting the fill url using the code var pathname = window.location; How will I extract, which all are the parameters Please help Thanks for your help
[jQuery] Outputting data from another page
[CODE]<head><script type="text/javascript"> $(document).ready(function () { var alink = $("a[name]"); var itemid = 45 ; alink.click (function() { $.get("test.php",{id: itemid}, function(data){ alert ("Data Loaded: " + data); }); }); }); </script> </head> <body> <a href="#" name="test">Hello</a> </body> </html>[/CODE] in test.php: [PHP]<?php $getid = $_GET['id']; echo $getid; ?>[/PHP] Anyway how i can make it, so when i click on the link Hello that i get a dialog box that says Data Loaded:
[jQuery] codes between head section.
I was asked to add gallery plugin to an existing website. I followed every instruction in gallery plugin's website but I am confused at one point. There are some codes, I need to add between <head> </head>. There problem is, there are some codes there for other plugins already. Can you please tell me where to add new codes in here. Existing codes: <script type="text/javascript"> var query = new Object(); window.location.search.replace( new RegExp( "([^?=&]+)(=([^&]*))?", 'g' ), function(
[jQuery] Find text (nodes) within an element?
Easy guys, <label>A B C D E F</label> Anyone got any tips on how to find out if the last letter of my label is 'F'? Cheers, L
jQuery Toggle Problem
EDIT: I fixed the problem... It was a CSS issue, not a jQuery issue. Lock please! I'm using jQuery to toggle the display of a set of list items, and it does toggle whether they display... But when they display, their container doesn't expand to fit them, they simply go out of its bounds. How can I have their container expand so that it looks as if they were never hidden? Here's the page that I'm having issues with: http://www.techsplit.net/podcasts/ Here's the jQuery code: $(document).ready(function()
[jQuery] ajaxForm strangeness
I have been using the ajaxForm plugin successfully for several months and love it! I have a very strange situation. I am submitting the form and the beforeSubmit and success callback functions are both firing, however the form is not being submitted. I am watching for the submit php file to come up in firebug but it never does, however the calls in the success section are being fired.
Next Page