[jQuery] Newbie Cluetip Question
I'm trying to craft a simple Ajax-based Cluetip using a $.get that passes along a singe key/value pair and brings back some simple HTML. I keep getting javascript syntax errors. Here's what I want to accomplish: prodtips.php?p=mbt35 Using the jQuery $.get sample found here: http://docs.jquery.com/API/1.1/AJAX#.24.get.28_url.2C_params.2C_callback_.29 I put this together: ajaxSettings: { $.get("prodtips.php", { p: "mbt35" } ) } When I drop the above on the end of this useless but well-formed (no javascript
[jQuery] jQuery 1.3 and ">" selector
Hi all, I'm using jQuery 1.3, and I'm having troubles with the ">" selector : it only returns ONE element ! [code] <div id="coucou"> <div class="test">bla</div> <div class="test">bla</div> <div class="test2">bla</div> <div class="test">bla</div> <div class="test2">bla</div> <div class="test">bla</div> <div class="test">bla</div> <div class="test2">bla</div> <div class="test">bla</div> </div> [/code] [code] var aSel = $("#coucou > .test"); log(aSel); // displays : Object length=1 prevObject=Object
[jQuery] Create documentation / compress files / code obfuscator
Hello, I need feedbacks from you jQuery guys... I would like to use some Javascript tools, could you share your experience about the following points : 1. Create some documentations for my jQuery plugins and Javascript objects (I will try the http://jsdoc.sourceforge.net/, any others?) 2. Compress my code (I already used JSMin, but I think I can also packed it like jQuery library?) 3. Don't allow all users to see the 'real' code (I didn't try anyone yet) Thank you, Vincent -- View this message in
[jQuery] Problem With remove()
Hi, I'm tring to make a simple upload form similar like google has at it's mail for the atachments. Everything is fine till I try to remove a file fild that is added at the past with jquery. When I click at the remove link it still redirects me :(. Can anyone tells me where I'm wrong. Sorry about the bad English :P. [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Multiple
[jQuery] [validate] Validating Ajax Loaded Form Problem - Stumped
Hi, Sincere apologies for the repost! (I forgot to include [validate] in the subject of my previous post and I can't move forward this project until I resolve this). Repost: I am really stumped by this. Using the validate plugin, I can't validate a form which is loaded by ajax. I have made two very simple pages to demonstrate the problem. Ajax Loaded Form (doesn't work): http://yourmac.ca/test/validate1.html (click on the text "Click here to load the test form by Ajax/php." to load the form) Static
[jQuery] 45+ New jQuery Techniques For Good User Experience
Just saw this through digg, and I don't think it's been sent here before. I thought a few people might find it interesting: http://www.smashingmagazine.com/2009/01/15/45-new-jquery-techniques-for-a-good-user-experience/ Michael
[jQuery] New to JQuery: First Question (animating background image)
All, I just started work with jQuery just recently, and I'm beginning to love it. I'm a Prototype convert, and I love the increased power of jQuery. New to it though, I'm running into some trouble already. I'm trying to flip between different background images, with CSS set initially to the BODY tag. The goal is to produce a "slideshow" in the background of page. I cannot for the life figure of why this code isn't changing the background image of the BODY tag. I'm beginning to think it's a DOM limitation
[jQuery] Display Loading Image While Ajax Content Loads
Hello - I'm sorry if this posts twice....its been about 30 minutes or so since I last attempted and I still haven't seen my discussion pop up. I would guess this is a fairly easy task and I'm just missing the boat, because you see loading images everywhere with ajax loading. Here is my situation. I have a webpage that is set up a lot like a basic slide show - forward and back controls at the bottom a header at the top and an ajax loading window in the middle. I am using this function to make the
[jQuery] Cycle and CSS
Quick layout question. My slides will not wrap inside its parent div. I've noticed the cycle demos are nested inside tables but is it possible to simply wrap them up inside a div? thanks
[jQuery] rating using thumbs up thumbs down.
Hi, I am looking to implement a rating system using thumbs up thumbs down. So far with my search, I was able to find only star rating system. I would like to do the following thing: 1) Show two images(one for up and one for down). 2) when clicked, it has to store the count in the mysql db and show a message saying "thanks and hide the images. 3) I like to have just four fields : 1) id 2) URL 3) UP 4) DOWN id - primary key URL - site for which it has been rated up -increase the count if this is clicked
[jQuery] $(' Expert jQuery & JS synatx ' ).show
Sorry about my grammar, English isn't my lang. I am trying to write code like that: var expr=true,selector='div'; $(selector) (expr ? .next() : .before() ). show(); But it's not JS syntax. So how can I do it? I know,that I can do it like that: if (expr) $(selector)..before(),show() else $(selector).next().show() But I am trying to find a solution, that return a jQuery object. Thank you.
[jQuery] Send $ajax.post
Hello, I have a problem when sending data with jQuery, if sent by clicking "Submit" if it works, but when trying to send it directly when the input 'name' has two values, does not run with ajax, but it does as a normal consultation. Here you put the code on the form and the ajax, ajax is not much of, and the script I did to my paritr some light on the web page and jQuery, if I can say is wrong or could do html code[code] Código PHP: <form method="post" action="<?=base_url()?>add/APTV" id="fo3"
[jQuery] [validate] Validating Ajax Loaded Form Problem - Stumped
Hi, I am really stumped by this. Using the validate plugin, I can't validate a form which is loaded by ajax. I have made two very simple pages to demonstrate the problem. Ajax Loaded Form (doesn't work): http://yourmac.ca/test/validate1.html (click on the text "Click here to load the test form by Ajax/php." to load the form) Static Form (works): http://yourmac.ca/test/validate2.html This is how I am trying to validate: $('#form_box').load("print_test_form.php",{ book: "12345", title: "67890"}, function()
[jQuery] Splitter plugin not responding to window resize in IE7
I'm using Dave Methvin's excellent splitter plugin to provide a 3-pane splitter. (http://methvin.com/splitter) Works a treat except that it does not respond to a window resize in IE7. Other browsers are ok, even IE6! I've experimented with the anchorToWindow and resizeToWidth options but they did not help. Has anyone else had these symptoms? Many thanks, George
[jQuery] Problem Using jQuery with Other Libraries
hi there, i am new to Jquery, and find it very interesting i already had been implemented few of your articles seen at Thickbox 3.1 . There are working fine. But now i struck at one point here is my question that my web page has following js's file 1>>>prototype.js 2>>>scriptaculous.js 3>>>effects.js 4>>>selectimage.js Now i inserted two more jqeury file name as 5>>>jquery.js 6>>>thickbox.js Now i want to show images gallery using jquery and thickbox but it wont working. But if i use only these two
[jQuery] Jquery needs array module !
Where I can find array module for drupal ? I use 5.15 drupal...
[jQuery] var divcount = $("div#div2").length; --- returns wrong value
My alert always returns "1" as the divcount value ??? What's up with that.. I have read and tried bunches of things. What am I missing ???? <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-AU"> <head> <title>Jquery Test</title> <script type="text/javascript" src="jquery-1.3.js"></script> <script type="text/javascript"> $(function() { var divcount = $("div#div2").length; alert("start=" + divcount); }); </script> </head> <body> <div id="div2">asdf</div> <div id="div2">asdf</div> <div
[jQuery] Sorry for off topic! Why does it has some css work fine in FF and negative on IE?
I'm sorry for off-topic! I know this is jQury mailing list! But does anyon help me solve this? I'm working on this: <a href="http://www.myspace-layouts-free.com/NEW">http://www.myspace-layouts-free.com/NEW</a><br clear="all"> My CSS work fine in FF! But it negative work on IE! I can not figure why! It's weird! -- Kurei@UrbanJar.Info /******************************************** * Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi, chỉ có cát, bụi và lông hồng mới là những thứ
[jQuery] Column highlite
I have table which need to have alternate column highlight and work in IE&Mozilla both usingg jquery Plz say suggestion.
[jQuery] attr not return value
this linea working goo in jQuery 1.2 but in 1.3 return undefined $(opts.xmlConfig).find("#btnNew").attr("action")
[jQuery] Modifying an XML document with jQuery
Hi all, I have define a xml template like this <group name="jquery"> <member id="001"></member> </group> I can use following code to query the template var memberSection = $(reportxml).find("[id=001]"); but following does not work // want to add a "name" attribute to the member $(reportxml).find("[id=001]").attr("name","peter'); Why? Thanks.
[jQuery] 1.3 :not(:first) selector
I just encountered a problem when using the :not(:first) selector in 1.3 . Can i get a confirmation on if this is a bug, or should I write this differently ? // Does Not Work Now $('.class1>.class2>div:not(:first)').each(function(){ $(this).hide (); }); // Works With Full Selector $('.class1>.class2>div:not(.class1>.class2>div:first)').each(function() { $(this).hide(); }); Thank You
[jQuery] [validate] $('#form').valid() and focusInvalid();
Why does the valid() method don't call validator.focusInvalid()? I think that should be the default behaviour, since valid() shows all the error messages. Thank you and congratulation by this awesome plugin.
[jQuery] Blueprint css versus YUI grids versus ?
I need replacement for YUI grids. Has anyone used blueprint css or has any other suggestions.
[jQuery] auto submit
Hello, I have a problem when sending data with jQuery, if sent by clicking "Submit" if it works, but when trying to send it directly when the input 'name' has two values, does not run with ajax, but it does as a normal consultation. Here you put the code on the form and the ajax, ajax is not much of, and the script I did to my paritr some light on the web page and jQuery, if I can say is wrong or could do html code: <form method="post" action="<?=base_url()?>add/APTV" id="fo3" name="fo3" > <div
[jQuery] $.post does not post
I have been having hard times with $.post lately... It has all come to a point that I set up as simple tryout as I could think of and it still doesn't work. I have a div in a page and that div has a "button" on it and I would like it to fireup a php-script by clicking that "button" but I just can't make it happen. At the moment my tryout setup is like this (These are ripped from JQuery documentation examples.): $('#bucket .dlButton').click(function() { $.post("dl.php", {first_name:"Tarcila",last_name:"Broder"},
[jQuery] form.submit() is not a function
I am using the excellent Validate plug-in, and I configured the submitHandler function to double check something with the user before submitting. When done, I was calling "form.submit()" and getting the error "form.submit() is not a function". I scratched my head over this for quite a while before stumbling on the answer (on this posting: http://www.spiration.co.uk/post/1232/Submit%20is%20not%20a%20function). I had named the submit button "submit". As such, form.submit was the button, not the function.
[jQuery] Problems with finding parental <a>-tag
Hi, I have a situation where I have an image with a specific class. I need to find the <a>-tags surrounding this items class, but could not make is, as I have different situations that are totally dynamic - unfortunately. <a href="..."><div><div><div> <img class="thisClass"></div></ div></div></a> and <a href="..."><b><img class="thisClass"> caption</b></a> Anybody knows of a good idea on how to select the surrounding <a>-tags of all items with class="thisClass"? Thanks a lot - this made me headache...
[jQuery] disable form submit when pressing enter key.
I need to disable form submission on Enter Key press, is there anyway to do this for a single form?
[jQuery] addEvent wrap for document.ready()
I have an existing application which I would like to transition to use jQuery. The app currently uses Dean Edwards addEvent() function in many (many!) locations, mostly as addEvent(window, 'load', fn). In all of these cases, wndow.onload is not strictly required; document.ready () would not only suffice, but be a significant improvement. Rather than chase all the references in the app to addEvent(), it would be desirable to replace the Dean Edwards implementation with something like the following:
[jQuery] click on image doesn't fire event
hi all, I hav a slideviewer... which works perfectly when i click on any thumbnail, main image is shown successfully...but i hav put two images (#nextImage,#prevImage) and one counter label..now when i click on next,prev images , sometime they work but not every time.. click event shows as if image isn't clicked.. $(function(){ $('#nextImage').click(function(){ var pictWidth=430; //some logic });//endnext $('#prevImage').click(function(){ alert('previous clicked'); //some logic });//endprev });//endready
[jQuery] Event code in different .js files
I'm relatively new to jQuery and ran into a problem. I use a framework (CakePHP) and want some of my jQuery to be included by the layout (the general template for the site) and some by the current view (which is page specific). This means the actual html page will use two (or more) .js files. I need to put everything in $(window).bind('load', function () {} to make sure my jQuery is executed after loading all images. However, I assume if I do this in two different .js files, the second one will replace
[jQuery] newby... cannot get $("div").length; to work
I have this test code. My alert dialog always show zero as the div count: Help !!!!!!! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-AU"> <head> <title>Jquery Test</title> <script type="text/javascript" src="jquery-1.3.js"></script> <script type="text/javascript"> var divcount = $("div").length; alert("start=" + divcount); </script> </head> <body> <div id="content"> <div
[jQuery] [validate] Problem with submitHandler
i have this: submitHandler: function(form) { if( jQuery("#productList .productRow").size() > 0 ){ if( confirm("¿Are you sure?") ) { form.submit(); } else{ return false; } }else{ alert("Debe ingresar por lo menos un producto"); return false; } } but that gives me the next error on firefox: form.submit is not a function. Any ideas?
[jQuery] weird issue with ready event
Hello, I'm trying to set the html content of a DIV (id='list') which sits in a page opened with window.open : var pop = window.open("PrintList.aspx"); $(pop.document).ready(function() { $("#list", pop.document).html("hello"); }); As you can see, the string 'hello' should be written to the DIV once the page is loaded. Yet the first time I execute this script the string is never written. If I close the new window and I execute the script again, it will work. It's only the first time I execute it....
[jQuery] jQuery in IFrame causing Access Denied javascript error in MSIE 7
Hello, I have a strange problem with jQuery 1.3 in MSIE 7. I am developing some code in local domains. On one of the site I create IFRAME with the SRC of another local website. Something like: I mean on a page of http://blog/ we have: iframe src="http://form/" "Form" site inside IFRAME loads a page which uses jQuery. But whenever Jquery loads, MSIE 7 throws an error with "Access denied". When I access a "Form" site without IFRAME on another site, everything is OK, no errors. Seems like Jquery tries
[jQuery] [treeview] Expand the trees on the image and no link
Hello, I would like to know how to: - Permetre the conduct of a tree by clicking on the image (or file folder with a +) but when and clicking on the hyperlink (<a href="index.php"> blabla </ a> ) the tree does not take place. Thank you for your help.
jQuery 1.3 and ">" selector
Hi all, I'm having an issue with jQuery 1.3 and the ">" selector. It only returns ONE element ! An example : <div id="coucou"> <div class="test">bla</div> <div class="test">bla</div> <div class="test2">bla</div> <div class="test">bla</div> <div class="test2">bla</div> <div class="test">bla</div> <div class="test">bla</div> <div class="test2">bla</div> <div class="test">bla</div> </div> var aSel = $("#coucou > .test"); log(aSel); //
Datepicker appears below modal dialog not on the top
Hi, I have modal dialog which contains form, one of the input is date with datepicker binding. My code is like this: $("#datum").datepicker({ mandatory: true, closeText: "zavřÃt", dateFormat: "d. m. yy", monthNames: ['Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'ZářÃ', 'ŘÃjen', 'Listopad', 'Prosinec'], dayNamesMin: ['Ne', 'Po', 'Út', 'St', 'Čt', 'Pá', 'So'], firstDay: 1 }); The problem is that datepicker "window" always shows below the dialog so user can't see
[jQuery] selected option not cloned
Hi, I'm trying to clone a select that has an option selected, but the new select (even if I use clone(true)) hasn't the correct option selected. The cloned select always has selected the first option. I don't know if this should work the way I want it to, but I think clone is supposed to make an exact clone. PS: I've seen that someone posted this a long time ago, but it still doesn't work.
Next Page