[jQuery] Jquery with .each and .load
I am trying to run a .each(function()) within a document.load. but it does not seem to work. the minute I make it a "document.ready" it works (not properly). can you not run .each within a doc.load. I need too as I am trying to resize images (hence the load) the specific resizing code works well on another page (manipulating 1 image) but not here where I have to manipulate many images (for a slideshow). take a look at the code below and see if you can make any suggestions: the url for the page: http://www.santafenewmexican.com/www/jquerytest/gallerylight/gallerylight.html
[jQuery] Trying to access elements created by remotely loaded script
I am currently trying to add extra functionality to the AddThis and OnlyWire social bookmarking scripts. Basically I want to be able to send calls back to our server using AJAX to track when using these services results in a sale and how popular they are on a site. For instance, in AddThis, there are DIVs that start with the class "at_item". I would have thought "div[class*=at_item]" would have detected these so I can add the click event, but this doesn't work. Any ideas how I could go about this?
[jQuery] tool tip / ajax / image map
Details below, but in a nutshell, here's what I need: Tooltip with text and image... works with an image map... works when the page is ajaxed... allows the hot spot in turn to be ajax in content to another div. Here's the (beta) site that shows what I want, but which only works for one image since the tooltip content is hardcoded in the script: www.blazzi.com/ Click on the red car (center image) in the footer. A page with a larger image and an image map loads in the main content area, thanks to jquery
[jQuery] jQuery Coda Slider Tweak - Move three panels at a time
I have implemented a coda slider using coda-slider.1.1.1.js on a e- commerce products page here http://absolute-advantage.net/sheadorns/?page_id=4 At the moment clicking the arrows moves each panel one at a time. However, I would like it to scroll three. I'm assuming that I will have to edit the js file but I have no background in jquery or js. Anyone got any insights?
jQuery Coda Slider Tweak - Move three panels at a time
I have implemented a coda slider using coda-slider.1.1.1.js on a e-commerce products page here http://absolute-advantage.net/sheadorns/?page_id=4 At the moment clicking the arrows moves each panel one at a time. However, I would like it to scroll three. I'm assuming that I will have to edit the js file but I have no background in jquery or js. Anyone got any insights?
[jQuery] IE7 dxtrans.dll crash!!
AppName?: iexplore.exe AppVer?: 7.0.6000.16441 ModName?: dxtrans.dll ModVer?: 7.0.5730.11 Offset: 000087fe sample file: http://riasat-al-jamil.com/template_code_geass%20v7.html clicking the "screenshot" tab causes crash ONLY in IE7. IE8, IE8 compatibility mode, Chrome, Firefox, Opera works fine. Please help! thanks in advance.
jQuery UI tab bookmarks?
Hi! Is there a way to make jQuery UI tabs bookmarkable? Thanks!
[jQuery] (autocomplete) Is it possible to cache the empty results ?
Hello, I am currently using the jquery autocomplete ($Id: jquery.autocomplete.js 5785 2008-07-12 10:37:33Z) with remote data. Obviously I did not disabled the cache and "matchSubset" option (all matches of "foot" are a subset of all matches for "foo"), which reduces the number of queries made to the server. This is working well except in one case : if "foo" returns an empty result set, continue by typing "foot" will still generate another query to the server ... From my point of view this shouldn't
[jQuery] Troubles with binding to an element by id
Hi What im trying to do is that when the esc key is pressed on the text input field (id = txtSearch), some code will run. this is my code: $(document).ready(function() { $('#txtSearch').bind('keyup', function(e) { var characterCode; // literal character code will be stored in this variable if (e && e.which) { //if which property of event object is supported (NN4) e = e; characterCode = e.which; //character code is contained in NN4's which property } else { characterCode = e.keyCode; //character code
[jQuery] rounded corner recommendations
Greetings, Can people recommend a rounded corners plugin that is stable on a wide array of browsers? I've been hunting around -- and found a few some, some better than others. But, I was wondering if there are any elite ones that are truly excellent -- and I should consider? Cheers, Rich
[jQuery] How do I prevent the newly entered text in the text input from disappearing upon focus?
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] jquery validate submit character set error
I have this form that shows up on http://www.bspmedia.eu/inspiration.html by clicking on the last paragraph. type a message with for example "testöäå" and then hit the submit button. On submit the form validates and then sends the mail. But it sends this message as "testöäå". If I look in firebug, jquery seems to send the right values (öäå), but somehow it ends up messy in the response script. I have been testing and searching and looking for a while now but cant figure it out. I think the problem
[jQuery] [Form plugin] clearForm:true strange behavior in IE8
Hi all, this behavior happen only in IE8 (now in my case), instead FF3+ and Chrome both works well. I've a form with two <select><option></option></select> tag e two input text, I do a validation and submission with ajaxSubmit(). In IE8 clearForm:true works well but when I do another Submit and I've not changed the select value, only the input text value are passed to the ajaxSubmit(). Someone got the same problem? There is a solution? -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
[jQuery] Cycle Plugin - Pager and link to new page
I have got existing markup for my pager (see below). How can i get the links working (got to the "href"-page) by clicking on them? It does not work right now.. It seems, that the pagerAnchorBulding prevents the default event? Please help. <ul id="newsticker"> <li><a href="1.htm"><img src="a" /><h3>header</h3></a></li> <li><a href="2.htm"><img src="b" /><h3>header</h3></a></li> ... </ul> using this cycle setup: $('#slideshow').cycle({ fx: 'fade', speed: 1000, timeout: 3000, pagerEvent: 'mouseover',
[jQuery] Accessing Elements after adding them with Append
Hi There, I'm having trouble accessing some Elements with jQuery after I created them and added them to the HTML. I want to add some Checkboxes to my Site as soon as the user clicks another Checkbox. That works just fine. But if the user clicks on one of these added checkboxes, i want an event to trigger, too. For starters, i just want to alert a message. But this doesnt happen. Here's my code: function load(katstring) { var mykats = ''; $('div#kategorien input:checkbox:checked').each(function()
[jQuery] Hover does not stop
Hello everybody, I want to create a menu on the left side of the screen. OnMouseOver the menu should slid in from the left, OnMouseOut the menu should slide back to the right so that only 30px are still visible. I tried something but actually I cannot control it because it doesn't stop sliding: http://www.ulmercampus.de/try Here is the source: $(function(){ $('#navigation').hover( function() { $(this).animate({left: '-210'}, 'slow');}, function() { $(this).animate({left: '0'},
[jQuery] Strange behaviour when de-activating form
Hi All, Not sure this is the best place for this question, but I hope someone can help. I have a form which requires a lot of client side validation. As this takes a while I am using an overlay to stop access to the form. The problem is, the overlay only appears after all valition code has exectured. Thus rendering it useless. Standard stuff really... Large div with a class that has display: none; Form submit (onsubmit="validate(); return false;") calls the validation code, which also submits the
[jQuery] Autocomplete plugin onclick event
Hi, I'm trying to use the Autocomplete plugin from http://docs.jquery.com/Plugins/Autocomplete in a pseudo select box. I'd like the suggestions to appear when the user clicks on the appropriate arrow. $('#input').autocomplete(['0','1','2','3','4','5','6','7','8','9'], { minChars: 0 }); $('#input').click(function() { $(this).trigger("select") }); $('#input_btn').click(function() { $(this).prev('input').val('1').trigger('focus').trigger('keydown'); }); It works only if I assign the first character
ajax in function, with custom parameter for persistance
If you embed an ajax call in a function, and want to pass some value to that ajax-call as a function parameter, then you can store that value into a custom parameter in de ajax object, and assess its value as this.myvar in the success function. function test_ajax(myvalue) { jQuery.ajax({ url: 'main_ajax.aspx' ,success: function() { alert( 'success ' + this.myvar ); } ,myvar: myvalue }); } test_ajax('some_value');
[jQuery] jquery tablesorter deleted by antivirus
Hey guys, wondering if anyone has experience this before. I'm a sys admin for a web dev company and have multiple servers in different locations. this morning domains on different servers stopped behaving the way the should because the tablesorter plugin was deleted because the antivirus on both machines picked it up as being JS/Exploit- Packed.c.gen (Trojan). any ideas why? weird thing is I renamed the files and re-uploaded and they got deleted straight away. wonder if this will happen to all packed
[jQuery] jQuery Build Procedure - Help
Hi, I am new to jQuery, and following the link http://docs.jquery.com/Downloading_jQuery - section Build Process to build it And ended up with the error. Execute failed: java.io.IOException: Cannot run program "svn": CreateProcess error=2, The system cannot find the file specified Could some one guide me how to overcome form this error. Please clarify me on these 1. What is the purpose of this build process? 2. Do I need to build the code/script, If I am writing jquery for my application/screen?
[jQuery] [jgGrid] How to populate editoptions:{value: ... } with query result.
Hi all, jgGrid version: 3.5.2 { name:'carname', index:'carname', width:150, align:"right", editable:true, edittype:"select", editoptions:{value: ....} // How to populate value with query result. }, I want to populate the value of edtioptions of my edittype:"select" with a query result because the data is changing every time. I've tried with a function (simple ajax call, PHP return the string in the right format) that returns a string of text, but doesn't work, if I place it inside editoptions in
[jQuery] Animating show() and hide() of TBODY
I am writing some code where I want to insert and subsequently hide a TBODY element within a table, and animate it doing so. Unfortunately, if I do hide() followed by show(250), say, then the element becomes <tbody style="display: block"> and this results in the inserted section displaying after the end of the table :-( Is there an easy way to make this set "display: table-row-group" instead? I tried setting that explicitly in the HTML, but that didn't seem to help. I'll make a standalone test case
[jQuery] Ajax get contents question
This is my testing php code, I found if I use filter, I can only get the content from first level of object, for example <div id="res">1<div id="res2">2</div></div> I can get res's contents by filter, but I can't get res2's contents, is that possible that get any thing I want through ajax? <?php if (isset($_POST['g'])) { echo '<div id="res">1<div id="res2">2</div></div>'; exit; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
what is $("<div/>" mean?
I saw a jquery code. $("<div/>".html usually, just $("<div>"> or something like $(".classname") but what is $("<div/>") meaning?
[jQuery] document fadein cancels other jquery effects
so i have this scroller on my homepage, you click the arrow, new image fades in i then add a general page fade in and it cancels my other one here is the script that makes it not work <script type="text/javascript"> $(document).ready(function(){ $(document).ready(function () { $('#cont').fadeIn(800); }); }); </script> site is www.eveo.org this is how it looks when i dont comment the script out: www.eveo.org/fail.html
Dynamic Dropdown list with actions ?
Hi, like 1 image says more than 1000 words. here is what I want to implement in a django webapp: http://bit.ly/1ocI0X Is a dynamic dropdown list with an action to add values to db and dynamicly added to self dropdownlist. Any hint would be appreciated. Tks.
[jQuery] Problems with minDate on datepicker not allowing before 1999.
If I do something like, minDate: new Date(1930, 1-1, 14) or, minDate: '-70Y' The oldest date available will be 1999, and no matter what I've tried I've never been able to get beyond this barrier. Is this a limitation of datepicker? Thank you, ~Joe
[jQuery] Why is my mopbox fading when hover over forward/backward buttons?
I have put in the mopbox plugin on my site to display pictures and I really love it. There are just a few quirks about it and I'm wondering if anybody can help me. 1. In firefox/safari, when I hover my mouse over the forward/backward arrow buttons the entire mopbox, including the picture becomes partially transparent so that it is very hard to see the picture as I move through. -- works great in IE8 though. 2. The mopbox acts funny while it is loading up the pictures -- there is no progress bar and
[jQuery] How do I prevent the newly entered text in the text input from disappearing upon focus?
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] validation: how do I make sure a radio button is picked?
I have a list of radio buttons, all with the same name, and each has a different value. I want a validator that tests if one is picked. How do I do this?
[jQuery] Why is console.log(valid) returning "yes" in this code?
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] How can I manipulate all the radios in one div?
How can I manipulate all the radios in a div? For example say I have 2 div and both have a couple of radio buttons and everyone has different names. Say I wanted to manipulate only the radios in one of the div's how could achieve that?
playing sound "inline" from within popup div
I'm trying to get sound to play "inline" (i.e. without displaying (in my case) QuickTime plugin), using javascript ... specifically jquery.sound.js (http://view.jquery.com/trunk/plugins/sound/). It works beautifully on the actual page - but the same code called from a link inside a popup div replaces my page with one showing nothing but the QT player (the sound plays fine). The data inside the popup, including the link, comes from an Ajax load (http://docs.jquery.com/Ajax/load#urldatacallback). I've
[jQuery] [blockUI] - issue closing element modal
Hi- I need a modal window within an element on my page and the BlockUI plugin works great for this. The problem is that I want a button on the blockUI message that will close the block. I can't seem to get this to work. If I put the button elsewhere on the page, it works to close the block, but whenever the button is actually in the block div, it doesn't work. A close button in the block div works fine for full UI blocking, just not for element blocking. Is this possible? Any ideas would be much
[jQuery] Response type is Form Plugin success callback
Hello! How can I determine the response type (text/html, text/javascript, etc.) in the Form Plugin's success callback? The callback recognize 3 parameters, the first is the data, second is the status, and third is an object with lots of properties. I mean the response type can be in this object, but i don't know where. Lay
Dis/Enabling Submit button(s) by how many checked boxes
Hi, Much like gMail, I have a list of files with checkboxes and a number of submit buttons with options. What I'm trying to do is enable or disable these submit buttons depending on how many checkboxes are checked. ie. if only one checkbox in the group is checked, enable the "Get Link" button but if none or more than one is checked, disable the "Get Link" button. Similarly, if none or only one checkbox is checked, disable the "Get List" button but if more than one is checked, enable the "Get List"
Need Help With Iteration...
Hello I am designing a private messaging service on a browser. At the moment i have created the code which allows the user to click on the user they wish to have a PM with and then display the div to send a message to that user. I need to come up with a way of checking that the user is not 'already' having a private conversation with the user they click on. So if they click on 'Admin', then the box to write a PM will come up... but if they click 'Admin' again, a box should not appear. Below is my
[jQuery] Jquery DropdownCheckList
I am trying to use the dropdown check list Jquery plugin from http://code.google.com/p/dropdown-check-list/ I have a question about fetching the 'checked' item IDs or the Comma separated values. Basically I am calling the getJSON method on Change of the dropdown and I want to either pass an array of the checked item IDs or the Comma separated text that is displayed in the control. What's the best way to do it ?
[jQuery] JQuery Form - Ajax - Please HELP ! ! ! ! ! ! !
///////////Comment: Can someone help me do the following: create a function that collects ALL of the form's text field's Values, along with their corresponding ID, and create an Array like this: Example: var dataString = (item_01=123, item_01=456, item_01=789) then take the 'dataString' Array, and send it to a Server via Ajax, whenever I click the 'Submit Button' Please Note: that as new items are created/added to the form, the 'Submit Button' must be able to continue submitting the 'dataString'
Next Page