[jQuery] using of several $(document).ready()
hi, Will there be any bad if in a page I have more than one $ (document).ready()? The reason for this is because I have put make a *.js which contains the common things that should be done, then on some specific pages I have $(document).ready() again for special cases... Thanks james
[jQuery] Safari 3 beta possible bug in html()
We're coming across some strange behaviors in Safari whilst developing a site for a client. Currently this behavior is not reproducible in Firefox and I assume other browsers. I haven't had time to put together a test page, however a brief synopsis follows: 1. Some content is loaded through the $.ajax function and appended to a modal popup. The dataType is set to HTML and it's appended via the html() function: $.ajax({ dataType: 'html' } ... $popup.empty().html(html) 2. The popup now contains a form.
[jQuery] Dropdown div
I have a div called testidrop, [code]<div class="testidrop" id="testidrop">...</div>[/code] normally is is hidden, but when I click on a link (testialink) it should drop down, [CODE]<a href="#" id="testialink" class="testialink">Testimonials</a>[/ CODE] So I thought it was all working great, until I discovered than whenever you click ANYWHERE on the page it drops down! :confused: Here is the code in the head tag [CODE] <script> //show testimonials $(document.getElementById('testialink')).click(function(){$
[jQuery] Suggestion for increase the performance of the jQuery
Hello! Like to give a suggestion. Use the site www.banascript.com for compact the jQquery. I compacted the file of the jQuery 1.2.1 (81,5KB) and I obtained a file of 21,1kb. The version compacted of the jquery lowered of the site jquery.with had 45kb. Embraces of Igor Cemim
[jQuery] I.E. Troubles, halp \o/
Kay so I'm working on this project and I want it to look good in both Browsers, you know, Designer's Nightmare. So, Firefox looks great and js/jquery is working as intended, and then me and my partner go to IE7 and cry. The simple code that I'm working with just just .slideToggle(); And it's quite peculiar because if the file is .php it doesn't ask for the ActiveX to be unblocked but if it's .html it does, which then allows the .slideToggle() method to cooperate. And now I'm pulling my hair out trying
[jQuery] Interface Color picker issue
Hi everybody, At the moment I'm writing a color- picker plugin for jQuery. For that I've used the color-picker written by the really smart developers from interface.eyecon.ro. But I am trying to make it backwards compatible, so when you change the values of the hex, or RGB input fields, the color and the color indicators changes automatically to their referring positions. I've come a long way, but it's not reliable enough. I'd really would like to get in contact with the developer of the color-picker,
[jQuery] Jquery Location.href or load --problem
Hi all, I would like to call up a page using location.href or Ajax in the Jquery way, I ried this: $("#preview_button").click(function(){ $("#main").load("/de/testsite/preview_profile"); }); and this $("#preview_button").click(function(){ window.location.href("/de/testsite/preview_profile"); }); Strangely, both methods do not work, anyone tell me what I´m doing wrong? Thanks
[jQuery] I.E Troubles.
Kay so I'm working on this project and I want it to look good in both Browsers, you know, Designer's Nightmare. So, Firefox looks great and js/jquery is working as intended, and then me and my partner go to IE7 and cry. The simple code that I'm working with just just .slideToggle(); And it's quite peculiar because if the file is .php it doesn't ask for the ActiveX to be unblocked but if it's .html it does, which then allows the .slideToggle() method to cooperate. And now I'm pulling my hair out trying
[jQuery] Jquery plugin embedding advice
At the moment, I have one JS file with plugin configurations, user functions, variables an so on for the whole site even though they all wont be need on every page, would this slows down things? How do others handle this? Thanks
[jQuery] Problems with $.post and $.ajax
Hello! I'm trying to learn jQuery so I can use ajax much easier than writing ordinary javascripts. But it isn't working for me. Tried soo many different (and Very easy) things and they won't work. Can someone explain what I am doing wrong? This is just a little testpage. custom.js: ---------------------------- $(document).ready(function() { $("a#go").click(function(){ $.post("test.php",{ namn: $("#namn").val() (How is this variable set? to $_POST['namn'] or $namn?)
[jQuery] Selection an option
Hi all, how would select an option and set its attribute to selected? I have this part already : $("#intended_start_month").attr("selected", "selected"); This is the HTML, I want so make a particular month selected when the page loads <select id="intended_start_month" name="intended_start_month"> <option value="january"> Januar</option> <option value="february"> Februar</option> ----- and so on..... Thanks
[jQuery] Can't parse input from one form of many on page
Sorry if this double posts... I am a newbie with JQuery and have ported a form from Prototype. I have two forms on a page: <form action="go.php" method="post" name="adminForm" id="adminForm"> <input id="address" name="address" size="60" > more fields... <input type="submit"> </form> <form action="test.php" method="post" name="emailForm" id="emailForm"> <input id="name" name="name" size="60" > more fields... <input type="submit"> </form> I am using the following code on the page to parse the input
[jQuery] plugin found: gridlayouts
I just came across a jquery plugin called gridlayouts that I can't find listed or mentioned anywhere. If you're developing a page based on a grid layout (not to be confused with table layout) you can toggle the grid "guides" on and off to see how things are holding together. http://gridlayouts.com/ http://gridlayouts.com/ "The Grid Layout Javascript enables web-developers to stick to a Grid Layout quickly and simply by including the Grid Layouts Javascript file and simple XHTML code. Currently, the
[jQuery] LIST elemet dblclick() EVENT in OPERA
<select size="7" id="my_select"> .... </select> $("my_select").dblclick() and $("my_select > option").dblclick() doesn't work in OPERA. Using latest jquery, Opera 9.02
[jQuery] Ignoring field within whole DIV
Hi there, I am running into a little problem, I cannot seem to get my code to work to ignore 1 field inside a DIV. I have a .ajaxLoad() on the div, that fires block UI when the content of the DIV changes, however also inside the DIV I have a field that has a autocomplete attached to it. When I type in this field, it fires the .ajaxLoad() and the block UI. My code is below: $pastemonkey('#PasteTags').livequery(function(){ $pastemonkey(this).autocomplete('/tags/find/', {multiple: true, matchContains:
[jQuery] Borders for rounded corners?
I'm using the rounded corners plugin (great tool!). I'd like to apply a border around my DIV after the corners have been applied. Setting the border for the div via CSS works fine if I don't apply the corners. But once the corners are applied, my border disappears. I've read the docs for rounded corners at http://www.methvin.com/jquery/jq-corner.html. The only way I can see to possibly do this is if I put my div within another div that has the color I want. But I think that would leave the containing
[jQuery] jquery 1.2 unbind problem
Hello, I've probably found a strange bug in jQuery 1.2 and 1.2.1, which creates high CPU usage. To reproduce it just create site like this one: <html> <head> <script type="text/javascript" src="http:// jqueryjs.googlecode.com/files/jquery-1.2.1.pack.js"></script> <script type="text/javascript" src="http://dev.iceburg.net/ jquery/jqDnR/jqDnR.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#drawing").jqDrag(); }); </script> </head> <body> <div style="position:relative;left:50px;top:
[jQuery] IE won't load jQuery
We are using jQuery in an ajax demo. We have the whole thing written, and it works in Firefox, Opera, and Safari. IE gives us a blank page. We have tried to debug the issue, but the jquery.js script won't load. If we do not load the jquery.js script, the page will load successfully. We are using: <script type="text/javascript" charset="utf-8" src="jquery.js"/> to load the 1.2.1 packed version. We have tried with no charset specified, and we have tried the full 1.2.1 version. We even put the web site
[jQuery] IE 6 issues with ajax call
When loading the following into IE 6. I get no error. Nothing. Any help is appreciated. <html> <head> <title>Parse XML with JQuery</title> <script language="javascript" src="jquery-1.2.1.js"></script> <script language="javascript"> $(function() { $.ajax({ type: "POST", url: "books.xml", dataType: "xml", success: function(xmlData) { xmlDataSet = xmlData; buildHTMLFromXML(); } }); }); function buildHTMLFromXML() { resultSetLength = $("book",xmlDataSet).length; strToAppend = "<strong>There are a total
[jQuery] jCarousel drupal example....
i have been to the jCarousel website...but it does not have any drupal examples on how to use jCarousel. Can someone offer up an example to use this with drupal ??? please? thanks mjh
[jQuery] insertBefore not inserting into dom?
Hi, I'm trying to insert a new list item, but when I do it seems that jquery does not recognize that the new item is in there and jquery functions don't work on it. An example is below: <script type="text/javascript"> $(document).ready( function () { $("#windowOpen").click(function(){ var z = "<li id=\"row_45\" class=\"row_full sortableitem\"><button class=\"in_dom\" id=\"btn_45\" value=\"click me \">NEW click me</button></li>"; $(z).insertBefore("#row_2"); }); $(".in_dom").click(function(){ alert("that's
[jQuery] inconsistent processing for xml vs html
In jQuery 1.2.1, line 783 does this: div = doc.createElement("div") The attributes that Firefox 2.0.0.7 creates for div are different depending on whether a page is loaded as foo.html or foo.xml. In particular, when the file is XML, there's no div.innerHTML, only div.textContent. This causes a problem down on line 813: div.innerHTML = wrap[1] + arg + wrap[2]; When the file is HTML, that statement assigns a value to both div.innerHTML and div.textContent. When the file is XML, that statement
[jQuery] Interesting post about conflict with jQuery and SWFObject
Anyone else experienced this? http://www.chapter31.com/2007/09/28/jquery-and-swfobject-conflict/ If so and your solution differs from what this fellow has posted, how about lending him a hand. Rey...
[jQuery] (OT - CSS) setting screen height to 100%
This is a off topic because there should be a solution using css but i can't figure it out. I am wanting to make a certain div height be 100% of what it can be(so the footer is at the bottom of the page i the content does not already push it down there). Know i though that is i say for an element to be 100% it means 100% of the existing room. hear is my css(BTW I am using a php file to generate dynamic css): html, body { margin: 0px; padding 0px; height: 100%; } #header { min-height:
[jQuery] wait until dynamically generated image has fully loaded
I've been searching through this list for a few hours already and trying and trying but I can't find the answer to my question. Let me describe what I'm trying to do. I display an image. When you click a text link, an ajax call gets fired. The ajax call queries a mysql database to find the link to another image. When the ajax call is successful, the currently displayed image should be replaced by the new image. Everything works, but I want the image only to be displayed when it is fully loaded and
[jQuery] Autocomplete (Jorn) Form Field Tabbing Issue / Bug
I posted this to Jorn's page as well: I've got a problem with the with the form field tabbing in IE6+. I put together a page to demonstrate (I'm working on a racing site): http://www.motorstats.com/wwwroot/ResultsDemo.html Just start typing a name in the driver field. FYI, it won't actually process the data. After a 'driver' is selected with enter or tab, the subsequent tabbing is broken. Works fine in FF. I did notice, however, that it will work fine in IE if the page is churning. For example, the
[jQuery] Ajax with MultiFile plugin
Does anyone have examples of using AJAX with the multifile Plugin(http://www.fyneworks.com/jquery/multiple-file-upload/)? Thanks
[jQuery] Changing the Action or method of a form befor submitting
Is it possible to change the action or method of a form before submitting? How can I use callbacks? I thought of using this $("form").submit(); I´m not sure about the rerst Thanks
[jQuery] Paste Monkey Beta Launched
Hi folks, I'm pleased to announce the public beta of my latest app, Paste Monkey: http://cakephp.digitalspaghetti.me.uk At the moment, this is a beta application. I'm still waiting for the proper domain name to propagate through, but until then it's sitting at that URL. Paste Monkey is Yet Another Pastebin, but hopefully your see by playing with it, that it's a very nice pastebin :) It is pretty much full AJAX, due to the wonderful LiveQuery plugin for jQuery being used. It's built with CakePHP 1.2,
[jQuery] Manipulating the dom
Dear, -My first post here, wh00t!- Anyway.. I've got a situation that my logic won't solve.. I want to do the following: Page html loads: <li>sometext sentence beginning here <a href="someurl">someurl</a> ending the same sentence</li> <div id="sometextholder"></div> Now, when it loads, i would like to manipulate the dom. On a mouseout (so normal view) you'll only see the link in the li. On a mouseover, you'll see the whole li content in the div (sometextholder). Do you guys have any idea how to do
[jQuery] Div flashes when using functions...
Please check out http://msaski.s458.sureserver.com/fr/exemple.html this page and tell me why is my divs flashing half a second before and after calling show/hide or slideup slide down ?
[jQuery] How to use google group ?
Hello , I try to use this google group and it's the first time I use a google group. I wrote 3 differents message. I have a reply on only one of this but I never seen my new message on the list of the discussion. If some body could help to teacth me how the group and the discussion works ? I m French so if a frenchy could reply just one time in french i'll be very glad !!! Thank you !!! Fabrizio
[jQuery] tablesorter, zebra and row highlighting
Hopefully someone can answer this quickly. :-) I have a table. I want every other row to be an alternate style (the 'zebra' widget) unless the final <td> for that row contains a specific value (in my case, non-zero). For rows matching that criteria I need them to use a different style, whether they are even or odd. I'm relatively new to jQuery and tablesorter so forgive me if this is a simple widget. Can someone please help? -- View this message in context: http://www.nabble.com/tablesorter%2C-zebra-and-row-highlighting-tf4537485s15494.html#a12950537
[jQuery] Autocomplete (Jorn's Version) Form Tabbing Issue/Bug
I posted this on Jorn's site too: I've got the a problem with the tabbing in IE6+. I put together a page to demonstrate (I'm working on a racing site): http://www.motorstats.com/wwwroot/ResultsDemo.html Just start typing a name in the driver field. FYI, it won't actually process the data. After a 'driver' is selected with enter or tab, the subsequent tabbing is broken. Works fine in FF. I did notice, however, that it will work fine in IE if the page is churning. For example, the production page contains
[jQuery] jqModal, Flash, and timing event firing
Hello, I am new to jQuery but I absolutely love it. I am currently using jQuery for a client project I am working on. I am also using the jqModal plugin to automatically display a modal window when the user goes to the site. The questions I have are as follows: 1. How can I delay the display of the modal window so that it displays a couple of seconds after the document loads? and 2. How do I get the flash content to show beneath the modal window overlay? Currently, the flash content does not show
[jQuery] detecting height change in an iframe
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" 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 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] jqModal, Flash, and timing event firing
Hello, I am new to jQuery but I absolutely love it. I am currently using jQuery for a client project I am working on. I am also using the jqModal plugin to automatically display a modal window when the user goes to the site. The questions I have are as follows: 1. How can I delay the display of the modal window so that it displays a couple of seconds after the document loads? and 2. How do I get the flash content to show beneath the modal window overlay? Currently, the flash content does not show
[jQuery] Validation plugin noob
Hey all, Using Jorn's Validation plugin, it's not displaying the error message. I must be missing something obvious. I'm just trying a test - it seems like when I submit, if the field is empty, it should display an error message after the input field. What am I doing wrong? JS: $("#editform").validate({ rules: { FirstName : "required" }, messages: { FirstName : "Please enter your first name." }, debug: true }); Markup: <input type="Text" size="30" name="FirstName" id="FirstName" value="" class="formfield"
[jQuery] SITE: jQuery spotted in the wild
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=861534120-28092007><FONT face=Arial size=2>A followed a link on the PVP and Penny-Arcade websites to a fun site for The Office.</FONT></SPAN></DIV> <DIV><SPAN class=861534120-28092007><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=861534120-28092007><FONT
[jQuery] toggle and checkbox
Using jquery 1.2.1 toggle: jQuery().ready(function(){ $('#multiple').toggle( function(){ $('.afield').attr('disabled',true); }, function(){ $('.afield').removeAttr('disabled'); } ); }); I'm trying to toggle the disabled attribute of some text input boxes based on a checkbox input: <form> <input id="multiple" type="checkbox">The Toggle</input> <input type="text" class="afield"> </form> However, when the checkbox is clicked, the check does not appear. Fails
Next Page