[jQuery] jquery in asp.net
I have a code in asp.net: <body> <form id="form1" runat="server"> <div id="container"> <div id="login"> <div class="window"> <table> <tr> <td> Login: </td> <td> <asp:TextBox ID="tbLogin" runat="server"></ asp:TextBox> <asp:RequiredFieldValidator ID="rfvLogin" runat="server" ControlToValidate="tbLogin" ErrorMessage="Musisz podać login"></asp:RequiredFieldValidator> </td> </tr> etc. I'm using firebug, and now I want to set focus on tbLogin. When I open it on the server and I write $('input#tbLogin').focus();
[jQuery] Higlight a div on mouseover/mouseout
Hi! I just started to play with jQuery and have loads to learn but I try to get i div to highlight it's borders when i hover with the mouse over it ( like 2px and dark blue). But, no matter what I try, it will not highlight itself! Div should be selected by name and not by class name. Any help, small or big is very much appreciated! Cheers Johan
[jQuery] when document.location.hash also activate the class inside of <A>
I have index.html#members_kihon_image10 . When I enter it in URL it perfectly loads what I need. What I can't do is to also make a class selected inside of a tag on hash click? here is html <div class="cur" style="position:absolute; width:94px; height: 58px;"><a href="#members_kihon_image10" class="scrollToId_img10_lyr1" onClick="mActive(this); javascript:loadintoIframe('video-frame', 'videos/3.html'); " name="img10"><img src="../../images/off.gif" border=1 name="img10" onMouseOver="mOver(this)"
[jQuery] jQuery with my shop hhG -Multistore Problem
Hello, i have a shop system from HHG-Multistore and i have installed a pciture tickbox for the product images to slighting, because the tickbox slight image function very well with jQuery.js but i have only one problem when a user visit my shop and he select as language english and add products to basket is all ok but only when the user klick checkout button our shoping basket button then switch the Language from the shop from english to german we have now search much more fore the problem and we
[jQuery] Error in IE concerning Superfish
I am new to using jquery and plug-ins. I am receiving a few different errors in IE 7. jQuery is not defined and I think a problem with the SuperFish drop- down. The web address is hickorygymnastics.com Thank you in advance for your help, Chad
[jQuery] exclude children from selected elements
Hi, I want to apply a mouseover event on all elements but one and its children. I can't use class name to filter. How can I do it ? I've tried unsuccessfully : $("*:not(#main)").not($("#main").children()).mouseover(function() { }); thanks
[jQuery] Resize an element without affecting the layout
Is it possible to create an animated resize of an element without affecting the layout of the parent element table? I'm using jQuery 1.2.6 and possibly personalized jQuery UI, if necessary.
[jQuery] <function> is not a valid function
This code works if I just have the alert("Hello"); but take out the $ ("a").hide("slow"); The code bombs when it hits any jQuery code inside the document ready. The script loads when I go the that address alone and it is clear that the document ready function is working. Any ideas? <script type="text/javascript" src="http://www.domain.com/includes/ jquery-1.2.6.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("a").hide("slow"); alert("Hello"); })//End of document
Set initial opacity to zero
I would like to start with an image with has no Opacity so that it can fade in after a time using JQuery's fadein(). Could somebody please let me know what CSS or other settings I should make to ensure that the object initially loaded is invisible. These would have to be the ones that were later altered by JQuery. Thank you. JimB
[jQuery] jQuery front page example (the 'run code' example)
Why doesn't the little snippet of jQuery code on the homepage use a better example? When you run the code, it show's a paragraph, but the paragraph has padding, so towards the end of the animation it "jumps". Wouldn't it be so much smoother, and hence more impressive, to show a paragraph without any padding? I'm assuming the .show("slow") function doesn't take into account padding when finding the height of the container, and hence the unexpected animation jump. (Doesn't the innerHeight() plugin,
Lightbox and not showing nav between images
Hi there, I'm using lightbox v 0.5. I display 4 images in a web page and I would to avoid the navigation between images. I just want lightbox to open as if there was only one image. As a start, I defined a different id for the 4 images and I call each of them like this : jQuery('a#note1').lightBox(); jQuery('a#note2').lightBox(); jQuery('a#note3').lightBox(); jQuery('a#note4').lightBox(); But it's not pretty nice to maintain. Anyone knows how to fix it ? Thanks !
Changing the position of the new message
Hello, here I has got install some shoutbox script here which use jQuery and I would like modyfite same functionality. I would like change function which add new messgages on shoutbux, I would like see new messages on top, not on bottom. How I should do that? I will be very gracefull for help.
[jQuery] Data type issue in table sorter
Hi, I am using table sorter, and I have some problems... There are 10 rows in my table and each of them has a value such as text, number, and a number with decimal point. I think the table sorter decides the data type of each column based on the first column in the first row. So, if the value of the first column is text or 0 (zero), the table sorter assumes it is a text type column. So in this case 4.5 > 15 can be possible. How can I modify this one? If somebody knows the reason, please give me a
[jQuery] [offtopic] can you perhaps tell why this page doesnt show in firefox?
This page displays fine in IE, opera and safari. But not in firefox :( http://tevlar.net/mytevlar/ any clues greatly appreciated.. -- -------------------------------------------------------------- Rene Veerman, creator of web2.5 CMS http://mediabeez.ws/
[jQuery] Strip element from inside object
I'm returning a jQuery object <div> that has <a></a><span class="type"></span><span class="size"> inside as .html(). So how do i get rid of the span class="type" from the object and then place the rest of the HTML into another element? Example: function otherFunction(){ doFunction($(myObj)); } function doFunction(ob){ alert(ob.html()); // where this line alerts the <a> and 2 <span> tags mentioned above. } Thanks.
[jQuery] Do i need to unbind event before removing DOM element
I am creating dynamicly <span> tag and binding click event. $('#myspan').bind('click', param, myFunc); Then at some point this <span> is removed using JQuery. Do i need to unbind click event first? Or it's ok and Javascript will clean that up automaticly.. George.
[jQuery] Does anyone know where I can find a Carousel like this?
I've been trying for the past couple of days to find a Carousel like this that does expand and go into color when you click the picture: http://templates.entheosweb.com/template_number/18937.asp If anyone can point me in direction it would be very much appreciated. -IsRaz88
[jQuery] Validate. Can I validate using 2 values?
Hello, I am using the following to validate an email field: Email: { email: true, remote: "/Account/FindEmail", required: true } I am checking if there is already an account with that email. In my form I also have an input where the user inserts its username. When validating the email I need to send also the Username an not only the email. Can I do this? Thanks, Miguel
[jQuery] highlighting elements of the page
Hi, I'm trying to highlights elements of the page on mouseover. I want to highlight all td's h1's and p's when the mouse is over. $("td, h1, p").mouseover(function() { $(this).css("backgroundColor", "CCCCCC"); }); $("p, h1, td").mouseout(function() { $(this).css("backgroundColor", mObj.prevBGColor); }); That doesn't do what I want. Indeed if a is inside a <td>, only the td gets highlighted (or maybe the p too, but then since the td is also hightlighted, it doesn't look right) How can I specify that
[jQuery] Crazy tables with checkboxes
A while ago Karl Swedberg really helped me out to get what I needed working - tables with multiple columns of checkboxes, add a class to selected rows, support for the Shift key, and a header checkbox to check an entire column. That all works great, but now I've realized that I need multiple tables on a page at once, and it breaks :( Any ideas on how to fix this so it works for multiple tables? http://jsbin.com/epoqe and http://jsbin.com/epoqe/edit
[jQuery] I have problem with Ajax and DIV
Hi, I use jQuery fadeOut function and it works ok, but i have problem when I want to call it from some other file; I have some form and it's works with Ajax and return "You have successfully post it!" in some div tag, and I want to fade out that div tag, but I don't know hoe to call that function, from where i can call it?? I hope that u understand me :) Please help!!
[jQuery] Cycle plugin: using two #next controllers
Hi. Im trying build a gallery using the wonderful jquery cycle plugin. Everything works fine, Im just wondering if it is possible to use two next controllers. One next controller on image-click, and one using a link (<a href="" id="next"> ) I can use them one at a time, but when I try them together only one of them works: Here is my code: $('#slideshow').cycle({ fx: 'fade', speed: '2000', timeout: 0, pager: '#nav', next:'#slideshow', // Change the image
[jQuery] "Clickable" DIV possible?
Is it possible to "click" or select a DIV with jquery? $("DIV ID or Class?").click(function() { .....
[jQuery] Writing a plugin
Hi, I'm new to JQuery, but I need to convert some regular, working, javascript code into a JQuery plugin. I'll need to expand on this code once its in plugin form, but for now its just converting this existing code into a working JQuery plugin. I've reviewed the documentation on plugin authoring, but it doesnt give a lot of examples. I was hoping someone could show me how a snippet of my code would look as a JQuery plugin to put me on the right track. function initTabs() { if (document.getElementById
[jQuery] Getting all checked check boxes with a certain id
I'm trying to get the values of all checked check boxes in a certain section of a page. Each of the check boxes has the same id, I could just as easily make it a class or whatnot. I'm using something like: var valArray = $('#' + id + ' input:checkbox').serializeArray(); Although I know the above isn't right, what is the proper query to do this? Thanks in advance.
[jQuery] Jquery Forms plugin and fileupload
Hello, I am using the file upload capacities of the form plugin successfully. However I could not find how to do two things. The first one, is how can one cancel an upload while upload is in progress. The second one is the progress indicator. I am using commons file upload, so I can calculate how much of file is left, and I can append this to servlets output. However, I could not figure out how to get this servlets output and turn it into a progress bar, using the form plugin. Best Regards, -C.B.
[jQuery] jCarousel (by Jan Sorgalla) scrolling integer problem
I am using Jan Sorgalla's jcarousel, and it seems that the integer for the scroll doesn't really work. No matter what I do, or set it to, it always scrolls/advances by 3 frames. scroll integer 3 The number of items to scroll by. If I set the above to 1 or 100, it always scrolls by three. Here is a test link: http://brandaiddesignco.com/jcarousel/jcarousel.html Any advice? I REALLY would appreciate it. Unfortunately, Jan has eliminated post responses on his tutorial page for this where he
[jQuery] jQuery Quicksearch Plugin Help
I am having issues with the jquery.quicksearch plugin. I first created some php code to pull a csv file into a table. Then I used the plugin to search the table that was loaded through the php code. The table wasn't very large so it worked like a charm. However, I tried doing the same thing with a much larger csv file (about 4000 rows and 3 columns). The plugin was very slow to respond. I also just ran some tests and it is slow in IE7 but it will work...now I did the same thing in firefox and it
[jQuery] newbie wanting to get started
I am in charge of a high school website using Dreamweaver 8. I ran across jquery tabs one day. It looks cool and I would like to use it but have no javascript experience. Anyone willing to help? I really have no idea how to get started. I download jquery and then what? Thanks, H-man
[jQuery] Cycle plugin: using two #next controllers
Hi! Im trying to build a gallery using the wonderful cycle plugin. Everything works fine, Im just wondering if it is possible to use to next intances? One next controller on the image, and another one on a link (<a href="#" id="next") Here is my code: $('#slideshow').cycle({ fx: 'fade', speed: '2000', timeout: 0, pager: '#nav', next:'#slideshow', //Changes the image when user clicks inside the slideshow div next:'#next', //Changes the image when
[jQuery] autocomplete and google toolbar autofill conflict
I have been on this issue for the past 24hrs and I can't seem to find the solution. There seems to be a conflict between the jQuery autocomplete plug-in (http://bassistance.de/jquery-plugins/jquery- plugin-autocomplete/) and google toolbar's autofill function. I'm testing this in IE 7. What really confuses me is that the result is inconsistent. Sometimes the results will show and sometime it doesn't. The problem is that when autofill is enabled, it makes the input field (with autocomplete) loose
[jQuery] Plucking values from multiple inputs at once
<div>From what I undstand, jQuery#val() returns the value of the first matched element.</div><div> </div><div>Sample HTML:</div><div> </div><div><input type="hidden" name="test[]" value="foo" /></div> <div><input type="hidden" name="test[]" value="bar" /> </div><div> </div><div>$('input[type=hidden][name="test\[\]"]').val(); // returns "foo"</div><div> </div><div>Is there an easy way to get an array of values from <span class="Apple-style-span" style="font-weight: bold;">all</span> of the elements
[jQuery] ajaxForm Error: Permission denied to call method Location.toString
Hi all, I have this form <a href="http://www.fares.gr/tests/well_fares_form/">http://www.fares.gr/tests/well_fares_form/</a> And i am trying to load the server response to a div in the same page but i get the Permission denied to call method Location.toString Any ideas?
[jQuery] autocomplete and google toolbar autofill conflict
I have been on this issue for the past 24hrs and I can't seem to find the solution. There seems to be a conflict between the jQuery autocomplete plug-in (http://bassistance.de/jquery-plugins/jquery- plugin-autocomplete/) and google toolbar's autofill function. I'm testing this in IE 7. What really confuses me is that the result is inconsistent. Sometimes the results will show and sometime it doesn't. The problem is that when autofill is enabled, it makes the input field (with autocomplete) loose
[jQuery] A better way
I am new to jQuery (coming from Mootools) and the way things are done here are a bit different, but I am willing to put a lot of effort into learning it. That said, I have some working code here (I wrap it in the $ (document).ready function) but I wanted to know if there is a more efficient way to do it using jQuery's built in functions/selectors. I am flexible about how it is achieved, but I just need to know how I should "think" with jQuery. $("a.showHide").click(function(){ var aRel =
[jQuery] detect element width change
How can I detect when an element's width (or height) has changed? For instance, on a div element.
[jQuery] Removing selector "<a>"
Hello everyine! I have a grid with some links on it. I need to copy the object to a var and remove the selector "<a>" when I click on a button. How can I do it? Thanks!
[jQuery] Pause between each()
Hi, all. I was wondering how I insert a pause between moving to the next item in an each function. Pseudo-code: $('things').each(function() { \\ do suff sleep(5000); }); I know I need to use setTimeout, but I'm not sure how to pass setTimeout an iterator so the next item is passed. Any ideas? Thanks, Danny
[jQuery] document.location.hash and iFrame not working. help me please!
Dear guys, hi! Please I need a help! I have stuck with applying a click into iFrame. I have a page with navigation. so when i need to open a page from URL with a certain tabs opened and clicked. i just use document.location.hash property. It works perfectly if I put the desired (that has to be clicked) content into div. then when I type in address line index.html?tab=0#members_menu1_submenu1 it clicks all off them correctly. BUT if the last part that contains submenu i cut and put into <iFrame> the
[jQuery] set default action for all links
Hi, i would like to know if is possible to set a default action for all href in a page... I know i can use selectors to find all href but i don't know what to put in function. I just would like that all link open in a lightbox... Someone can help me? Thanks
Next Page