[jQuery] Using position
I have this function (below) which im using to show a div (progress) and center it over another div (diary) on my page as some ajax is called. It all works, except that it always pops an alert showing the "position" jquery function. Anyone else had this problem using position?? function ShowProgress() { var diaryTop = $("#diary").position()["top"]; var diaryLeft = $("#diary").position()["left"]; var diaryWidth = $("#diary").width(); var diaryHeight = $("#diary").height(); var progressWidth = $("#progress").width();
jQuery show/hide + jQuery.session problem
Hi there, I have an aspx page with two show/hide div's: div#showmap with some addresses on a googlemap, div#showtext with the same addresses in a simple list (gridview). These divs are either shown or hidden by clicking on a link. For example: Click on link1: div#showmap is shown, div#showlist is hidden Click on link2: div#showlist is shown, div#showmap is hidden Really simple. By default, div#showmap is show, otherwise the page would be totally empty. Working code: <script> $(document).ready(function(){
[jQuery] @name deprecated?
Does this: $('input[@name="status"]').attr($attr_options_01); Need to be this: $('input[name="status"]').attr($attr_options_01); With the latest version of jQuery? I was reading somewhere on this group about this type of change? Any other similar changes I should be aware of? Thanks! Micky
[jQuery] Jquery 1.2.3 does not return a type for radio controls?
Hi All, I'm stuck with Jquery 1.2.3 in a trac-based application. I'm trying to get the type of a form control, to determine what mechanism I should use to set it's value (ie, text controls use .val(), checkboxes get .attr("checked", "checked") etc.). When I fetch my list of controls, and loop through them with each, printing the value of .attr('type') on each... the text, checkbox, and textarea types work fine, but radio controls come up undefined. Is this a jquery bug? Does anyone know if/when it
[jQuery] Filter problem on tablesort 2 table
Hello, I've made a table with Tablesort 2 and tablesort pager. It's a very nice plugin and it works fine. But I added a form with the UITableFilter plugin for searching a word in the table. But the problem is that the search is made only on the visible data of the table and not the hidden ones made by the pager. This is my jquery code that is set up on the table. var tableFacts = $('#table_facts').tablesorter({widthFixed: true, widgets['zebra']}) .tablesorterPager({container: $('#pager')});
[jQuery] jQuery website errors
FYI, this page currently is throwing a "DBQueryError": http://docs.jquery.com/UI/Tabs
[jQuery] New VisualStudio version of 1.3 already :-)
Wow are people fast http://blogs.ipona.com/james/archive/2009/01/14/jquery-1.3-and-visual-studio-2008-intellisense.aspx hope that helps
[jQuery] jQIR - jQuery Image Replacement IE Problem
If I disable javascript in IE 7 I get a runtime error. I guess I don't know enough about this plugin to understand why I'm getting an error if javascript is disabled. Ideally, if Javascript is disabled, the image shouldn't be replaced at all and the header should show up with no errors. Any help?
[jQuery] .animate() queue without pause between animations
I'm using .animate() for a rotating navigation menu of 5 items, where the currently selected item is in the center. When I click on an icon next to the central everything works ok, but when I click on an icon to the far left or far right, two calls to .animate() are needed per icon for all icons to move correctly. The problem is that there is about a second of pause between the two animations for the same icon when I set queue: true. The effect is the same if I put the other call to .animate() into
[jQuery] Autocomplete, can we change the "q" and "limit" parameters name ?
Hi, Is there a way to modify the default names of the two parameters, so instead of calling /search?q=<bla>&limit=10 it can call /search? query=<bla>&max=10 I was hoping for something along that way: $("#searchfield").autocomplete( "/search", { q: "query", limit: "max" }); But didn't find anything related in the doc The goal being, obviously, to avoid having to alter the server and adjusting to the parameters it expects. X+
[jQuery] createElement, get its value
Hey! I've created one div with FlyDOM plugin which uses createElement function to add stuff to DOM. Now the problem is that once i add the element, i cannot access it in anyway. For example with FlyDOM plugin i create: <div id="grabMe">It works!</div> After the JS for creating element i have this: $('#grabMe').click(function() { alert($(this).html()); }); It doesn't work. There are no errors shown in Firebug, the element is in DOM, id is set. It's all there. Am i missing something here? I'm confused
[jQuery] datepicker and setdate
Hi, This setDate is driving me mad ! I can't set the date of the controls programatically. //create range datepickers $("#start , #end").datepicker({ showOn: "button", buttonImage: "images/calendar.gif", buttonImageOnly: true, beforeShow: customRange, hideIfNoPrevNext: true, showStatus: true, duration: "", dateFormat: "dd MM yy" }).attr("readonly", "readonly"); $(start).datepicker("setDate", "10 Mar 2008"); displays non-sense date such as 14 august 2014.... Is there something I'm doing wrong ? Thanks
[jQuery] Issue with loading content once using AJAX and display it as a SimpleModal (plugin)
I'm using AJAX to load content into a DIV and display it as a simple modal (using the SimpleModal plugin). In order to limit the requests to the server I would like to only load the content once, but that's when I run into trouble. Let me show you the code and then I will explain what happens. HTML: <div id="sidebar"> <a id="settings" href="#" class="settings">Settings</a> <a id="options" href="#" class="test">Test</a> </div> <div id="content">Default Text</div> JAVASCRIPT: var isLoaded = false;
Upgrade
chrys, any plans on upgrading to PHPBB3? <3 those new features. I can always help too, im pretty experienced with the database structure
Hide JQuery UI Dialog text before "open"?
Hi all! Does anyone have an idea how to hide the text within the div I'm making a Jquery dialog? It's pretty annoying that the text flashes when the page loads, you know, before Jquery gets to it.. Here is my code: JS: $(document).ready(function(){ $("#dialog_logOff").dialog({ modal: true, autoOpen: false, buttons: { "Cancel": function() { $(this).dialog("close"); }, "No": function() { $(this).dialog("close"); logOff("0"); }, "Yes": function() { $(this).dialog("close");
jQuery Scripts having conflicts?
Hey Guys, I'm a web designer that likes to pretend that I know how to code a little bit. I'm working on a new website, and have a few jQuery scripts (written by others) that are being combined into a Wordpress site. I had all of the jQuery working locally in plain old HTML designs, but when I put it all online and started using Wordpress for templating, some of them stopped working. Wondering if anyone could be any help? Specifically: http://www.cmsdesignresource.com/section/cms-list/ This page should
[jQuery] Selector help
I'm using a attribute selector and I want to combine the *= with the ! = on href. Is there any way to do this?
[jQuery] Selector Question
I'm fairly new to the framework and I've been messing around a bit. These below confuses me. 1. Why is this snippet not working? Firefox's error console throws an error saying < $("button")[0].bind is not a function > $("button")[0].bind("click", function(event){alert(this)}); 2. And why does this work? $($("button")[0]).bind("click", function(event){alert(this)});
problem with object embed
hi i have problem with put value into embed object <div class="movie"> <div class="youtube"> <object width="$Width" height="$Height"> <embed src="" type="application/x-shockwave-flash" allowfullscreen="true" width="$Width" height="$Height" wmode="transparent"></embed> <param value="transparent" name="wmode"></param> <param name="movie" value=""></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess"
[jQuery] wildcard match question
i want to "grep" a pattern of DIV id with x_div_ wildcard ev_enquiry = $('div[@id^=x_div_]'); ev_enquiry.each( function(i) { altert(this.i); how can i pass each of DIV id to alert()? as this.i not work.. thanks/Davis.
[jQuery] distance to mouse (..position)
i as wondering if anyone could give me a hint on how to let something happen to an object that's within a certain distance to the cursor. i know something like that happens in the mac os x dock but i would like to that in 2d, in a table with images.
[jQuery] Wiki Error trying to access Tabs, Datepicker on docs.jquery.com
Subject says it. When I try to access the online docs all I get is the message below. Is there an alternative location, especially something downloadable? I'd be grateful for such a link. Michael MediaWiki internal error. Original exception: exception 'DBQueryError' with message 'A database error has occurred Query: BEGIN Function: Database::begin Error: 2006 MySQL server has gone away (localhost) ' in /home/jquery/en/docs/includes/Database.php:694
[jQuery] Cluetip ajax call returns gibberish (utf-8, greek)
Hi, I'm using cluetip in the following way: $('#content div.product_photo a.load-local').cluetip({ cursor:'pointer', cluetipClass:'rounded', dropShadow:false, width:'260px', hoverIntent: { sensitivity: 1, interval: 100, timeout: 200 }, fx: { open: 'fadeIn', openSpeed: '' } }); I have several links that when are hovered cluetip is activated and makes an ajax get call to a php file. The call is like: file.php?var1=dfs&var2=sfd&var3=238479 The problem is that the result
[jQuery] Input Element Focus Dancing
Hi, I have a text input that when it receives the text "RESET" and a tab, the form should reset and the focus should go to the first text input element. But something weird happens, instead the focus goes to the first element (I have seen this by placing an alert in the right place) and then ends up on the second text input. I have no idea why, as the last 'command' is to focus on the first input element. Any ideas. A bit of code: $("input#serial_number").focus(function () { var serial_number = "";
[jQuery] Cluetip and Firefox 3.0.5
Hi all...<div> </div><div>Been using the cluetip plugin (very cool... thanks to all the contributors) without a hitch. Updated to firefox 3.0.5 and it seems to have stopped working. Still works in IE, so that rules out pathing and other issues... but in FF 3.0.5, when I hover over an image that should invoke a cluetip, i see the normal 'title' rendered by the browser (e.g. the value of the title attribute shows up).</div> <div> </div><div>Did a quick search of the list but didn't come up with anything.
[jQuery] Superfish - problem with supersubs plugin
Hi all, When I have a lot of nodes in the superfish menu it loads very slow (even from the harddrive). Anyone having the same problem? To me it seems that it is the first each() loop in the supersubs.js file which executes slow. Any tips on maybe another plugin I can use, since I dont want to lose the functionality? The code I'm using is from the following site: http://users.tpg.com.au/j_birch/plugins/superfish/ Thanks, Simon
[jQuery] Selector problem with $( "a[ajax\\:id='46']" )
I'm using jQuery 1.2.6 and having an <a> element with the attribute ajax:id="46" <a href="#" ajax:id="46">Test Link</a> According to http://docs.jquery.com/Selectors/attributeEquals#attributevalue you have to escape ":" with double backslash like: alert( $( "a[ajax\\:id='46']" ).attr( 'href' ) ); I tried a lot, but it's not working? Any hint would be appreciated! thanks
Offset returning null always...
I try to get the offset and set it as a position but it always returns as zero... any ideas on fixing that? (function($){ $.fn.extend({ bstip: function() { return this.each(function(i){ var nowid=$(this).id, nowtitle=$(this).attr("title"); here=$(this); //Math Vars var offset = here.offset(); nowidth=$(this).width(); nowheight=$(this).height(); $("body").append("<div
[jQuery] select() not working
Hello There, I want to dynamically add a select option to an existing select dropdown when a new country is added. This i was able to do using: $jQ("#country_id option[value='new']").before("<option value='" + value + "'>"+ name + "</option>"); After that i want to get selected the just now appended country option and must change from the "--New Country--" . For that i used the select () as below: $jQ("#country_id option[value='" + value + "']").select(); This seems to be not working. Even if i put
[jQuery] slideViewer (advance via image click)
Hello List, during the last year i received lots of emails (literally tens, sign that the plugin is widely used) requiring the possibility to slide the galleries (generated via slideViewer), also by clickin' on the images and not only on the generated UI. This morning i implemented such functionality. Since it is a minor change (in terms of chars of code :-)) i decided to leave the version unchanged: 1.1 Enjoy GC
[jQuery] slideViewer (slides via image click)
Hello List, during the last year i received lots of emails (literally tens, sign that the plugin is widely used) requiring to slide the gallery in slideViewer by clicking (also) on the images and not only on the generated UI. This morning i implemented such functionality. Since it is a minor change (in terms of chars of code :-)) i decided to leave the version the same: 1.1 Enjoy GC
[jQuery] syntax selector problem
If I have: $("div").click(function(){ //How do I do the following $(this + " > p").show(); }); I want to select the child p of the div I clicked, and I know there's proper syntax to it, but I am completely brainfarting on it. Thanks! Matt
POST requests default to GET requests
I am trying to send a simple POST request to a PHP script but the request keeps showing up as a GET request instead. Here's my jQuery code: $.ajax({ type: "POST", url: strURL, data: "name=John&location=Boston", success: function(msg){ $("#dealerResults").html(msg); } }); When I echo $_SERVER['REQUEST_TYPE'] on the PHP side it is returning "GET" every single time. I tried using $.post and $.ajax in jQuery. Any ideas why this isn't
show/hide div from single control
hi all, this is my first post to this forum, i want to show/hide a single div(which contains a textbox and button) from a single link. Please guide me how can i do it. Basically its a search module, i want the forum to be hidden at first when the page loads, but when i click on search link, it should show the form and there the search results and fetched and displayed in some other div. Please help me do that.. thanks
jQuery 1.3
If you didn't see it already, head over to the jQuery blog and read about the newest version of jQuery, v1.3; the new CSS selector engine, Sizzle; the new API browser by Remy Sharp; and the jQuery foundation. http://blog.jquery.com/2009/01/14/jquery-13-and-the-jquery-foundation/ Happy 3rd birthday, jQuery!
please help me i am stuck
Here both the functinality are not working. Only one of the two is working. Can anyone please help me ? In this below mentioned code there are 2 functions 1. $('#testform').submit(function(){ 2.$("#testform1 > #text5").blur(function(){ both the functions works fine when both are in separate page, but fails to work when they are used in 2 forms in a single page. [code] <script type="text/javascript" language="javascript"> jQuery(document).ready(function($){ $('#testform').submit(function(){//validating
[jQuery] Display Loading Image While Ajax Content Loads
This seems like it should just be trivial to implement, because you see it everywhere...but I'm just not having much luck. I have a website that is setup, pretty much like a slideshow - I have a forward and back button and the div in which they load is right above. I am using this bit of code to load the external html file: &.get('sourcefiles/example.html', function(innerHtml){ $('#ajax_content').html(innerHtml); }); I would like to show a loading image that waits for everything to load completely.
[jQuery] Multiple instace of Dialog
Hi, Im building a search engine for my website. And i want to have a button on each searchresult that a dilog will showup with more info. Like this: Searchresult: Google.se (button) ------------------ Yahoo.com (button) and so on... But i dont know how to crate a "dynamic" javascript for the dialog function. AS i understand it when u do like this. <script language="javascript" type="text/javascript"> $(document).ready(function() { // Tell jQuery that our div is to be a dialog $('#dialogTest').addClass('flora').dialog({
[jQuery] jQuery Interface - Multiple Windows (Chrome/Safari problems...)
Hi all, I'm fairly new to jQuery (and CSS, come to think of it!), so this question might have a very simple fix, but I'm at my wits end with two browsers (Google Chrome & Safari [both on PC]). I'm using the Interface plugin (http://interface.eyecon.ro/). The site in question is here: http://www.deadredhour.com/temp/sandbox/skinning.html CSS here: http://www.deadredhour.com/temp/sandbox/wEXAMPLEindows.css In Firefox 3, IE 7 and Opera 9.5, everything's all okay. I've managed to get multiple windows
[jQuery] wild card $('div[@id^=x_div_]') question
hello, i am new from jquery and want search a wildcard DIV id pattern then with following purpose x = $('div[@id^=x_div_]'); x.each( function(i) { alert(this.i); } i want to display each of DIV id , how can i pass in that parameter? Many thanks/Davis. -- View this message in context: http://www.nabble.com/wild-card-%24%28%27div-%40id%5E%3Dx_div_-%27%29-question-tp21449359s27240p21449359.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
Next Page