[jQuery] use $getScript load .js multiple time
<div>Dear Friend:</div> <div> </div> <div>I use $getScript to load some .js and include another html into my div</div> <div>code like</div> <div> </div> <div>$("#news1").bind("click",function(){ $.getScript("/admin_css/includeme0.js"); $.get("/myadmin/query.xhtml?r=dis&w=chkandreplace&page=news",function(data){ $("#showhere").show("slow").html(data); }); });</div> <div> </div> <div>it work fine !! but i use firebug to check it ...found</div> <div>includeme0.js load
[jQuery] How to have multiple repeating forms with different targets on the same page using ajaxform plugin
I have searched all over and tried many different things for a solution to my problem. I'm hoping that someone here can help. I am trying to have 1 to 20 forms on one page - they are all basically the same form. It gets repeated 1 to 20 times depending on how many different addresses are available. I am using the ajaxForm plugin. When I submit the form, the target field (.address_edit_display) is updated with the response from the server. BUT it is updated for all of the address_edit_display divs.
[jQuery] Updating metadata
Hello, I have a list of items each containing metadata which I access using John's Metadata plugin: <li id="item_1" class="{subitems_count:3}"><a href="#">Update</a></li> <li id="item_2" class="{subitems_count:7}"><a href="#">Update</a></li> I need to update/change the metadata on individual items when I click them, because the new data will be used further in the application. When an "Update" link is clicked an ajax call is made to the server and the new data is returned. My problem is I don't know
[jQuery] [Plugin] jQuery Babelfish Plugin
Hey folks, Time for another plugin - http://digitalspaghetti.me.uk/index.php?q=jquery-babelfish This is my jQuery Babelfish plugin. It provides a very easy way for you to add translation services via Google Translate on your site. The default setting is from English to French, but it can be overridden to input and output any language that Google supports. Using the plugin, you can pass in text from any element, including the body. You can see the demo on the page above to see how this can be achieved.
[jQuery] ANNOUNCE jQTreeTable 0.2
Hi all, I've added a few features to the jQTreeTable plugin. It now has dynamic striping which can be set on and off and coloured through CSS. It can also be set to highlight as the rows are hovered over, again coloured through CSS. I've added an onselect event on the td cells that can be handled through a callback function set in the options. I've cleaned up the code so that it plays nicely with other libs, and added more comments. It's now up to 110 PLOCs, and I'd really appreciate if any of the
[jQuery] Setting the selected option in Safari 3
Hi; Based on this conversation: http://tinyurl.com/2qwpna I've added this code to my page function updateColor() { var currentColor = $("#setColorKey").val(); $("#color_Key option").each(function() { // $(this) is the current <option> element var thisValue = $(this).val(); if (thisValue == currentColor){ $(this).attr("selected", true); //safari logging. if(window.console) {window.console.log($(this).attr("selected")+" "+thisValue);} return
[jQuery] Couple of Bugs, css + jquery
http://www.pablokorona.com/corey/ I figured I'd just post this to both lists as there is a good chance someone on either side can help me with either problem. The big problems I'm having 1) The layout breaks hard in IE6, any suggestions? 2) The animation, the #picfloater blinks in and out of existance while animating in firefox, but not ie7 or safari... Any help anyone can give me, thanks in advance.
[jQuery] Can I load HTML with jQuery code into another HTML/jQuery page?
This might be really dumb but I have an HTML page with jQuery and css in it. I want to know if I can "load" this into another page into a container without creating problems with conflicting css. My reason for this is simple. I want to be able to build and test a page of HTML and jQuery that will be used in a larger jQuery project and its getting too hard to work on it. I want to make sure this page looks right before its loaded so I need the js, css and so on to be in its head. I am concerned that
[jQuery] Error creating div in IE7
I'm very new in jQuery (in fact, only 2 days :-) ), and I'm having a strange error in IE7. I have a little JS function that, when a link is clicked, creates a div in the screen and shows a PHP page created with an parameter passed. Nothing too fancy, is like a pop-up window. The code is really simple: function callDoc (cod) { $("<div id='document' class='document'> Loading document...</ div>").appendTo(".maintable"); $.get ("document.php", {doccode: cod}, function(page){ $("#document").html (page);
[jQuery] Trouble Deleting Table Rows
Hi, I know everyone here is busy, and this is probably a stupid newbiequestion, but I would aprreciate a point in the right direction... I am trying to delete a table row that I have created with JQuery: Everything works until I click the Close link inside the new table row, then nothing happens. I have spent 3 or 4 hours trying different variations of getting that close link to generate an event, but I cant even get it to give me an alert or anything else.... <SCRIPT LANGUAGE="JavaScript"> //JQuery
[jQuery] Accessing form fields within Thickbox via main page
I am sure I am doing something stupid... I have a form with fields inside a hidden div. I have a TB_inline link that opens up a Thickbox with this hidden form. I have a save button at the bottom that when clicked calls a .ajax() function for posting to the server. The problem is that the first time I enter data and try to save...nothing is posted to the server (actually the page thinks that all the values are empty). If I close the pop-up and relaunch it again...it then recognizes there is data.
[jQuery] livequery issue
here is a small portion on my code $('select[@name=destination]').livequery('change', function() { reset_data(0); var destination_var = $('select[@name=destination]'); $('#week').load('/lib/ajax/price_buster.php', {'get': 'week', 'destination': destination_var.val()}); $('#buster_info tr:eq(1)').show(); }); $('select[@name=nights]').livequery('change', function() { reset_data(2); var destination_var = $('select[@name=destination]'); var nights_var = $('select[@name=nights]'); var week_var = $('select[@name=week]');
[jQuery] Classic noob questions
I'm trying (for learning, and out of stubborness) to build an image slider. The code I'm using, and my issue, follows. <script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('div#features:eq(0) > div:not(:first)').hide(); // Hides all but the first feature story $('#next').bind("click",function() { $('div.content > ul li:visible:first').hide(); }); $('#prev').bind("click",function() { $('div.content
[jQuery] Checkbox updating database asynchronously?
Hi all, I'm looking for a simple way to change a boolean value in a database based on whether a checkbox is checked or not in a jquery environment. Would anyone be kind enough to point me in the correct direction to get this accomplished? Thank you. - sf
[jQuery] jQuery Form Plugin and Validation Form
Hi, first of all, excuse me for my language, I'm french ;) so I'll try to make it simple... I'm using the JQuery Form Plugin and it works perfectly fine : $(document).ready(function() { var options2 = { target: "#alertes", url: "soa.php?action=modif" }; $("#interv").submit(function() { $(this).ajaxSubmit(options2); return false; }); }); I tried the validation form plugin, which is quite amazing, and it also works great. $(document).ready(function() { $.validator.setDefaults({ errorContainer: $("#alertes"),
[jQuery] Comet Client Plugin and ie7
it seems that the comet plugin doesn't run correct with ie7. When i watch the demo at: http://empireenterprises.com/_comet.html with FF there are messages like {"idx":1,"message":""}, {"idx":2,"message":""} and so on. with ie7 only the message {"idx":1,"message":""} appears.
[jQuery] jquery books
i'm using jquery for most of javascript related things and i finally decided that i should do it better 8-) my plan is to improve my knowledge so i'm looking for some advanced books and i found: Learning jQuery: Better Interaction Design and Web Development with Simple JavaScript Techniques by Karl Swedberg and Jonathan Chaffer (Paperback - Jun 29, 2007) and Pro JavaScript Techniques (Pro) by John Resig (Paperback - Dec 11, 2006) please post comments on books or recommend book. also looking for a
[jQuery] Bandwidth checking using javascript?
<!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=044162517-22082007><FONT face=Arial size=2>Does anyone know of a tool that can be used to test bandwidth? Open source is preferred. Pure JS or jQuery is also preferred, even if it loads an external img or text file.</FONT></SPAN></DIV> <DIV><SPAN class=044162517-22082007><FONT
[jQuery] Modals don't mask whole page with Ext and jQuery
Hi there. I posted a bug concerning modals not masking the whole page with jQuery on the Ext forum. Jack Slocum has responded saying "The problem was reported a while back to jQuery. It has to do with viewport/document size not returning the largest value. If the document height is smaller than the window height, then the document height should be the window height. In jQuery that is not the case. You may want to log a bug there." The full write up on producing the bug is at http://extjs.com/forum/showthread.php?t=11086.
[jQuery] Killing ajax calls
I'm working on a function that sends far too many ajax calls, an easy way to take care of the problem would be to kill all ajax calls before sending a new one (i.e. if it isn't done yet, nvm the result) the xhr object idea works for one call or if you know all the previous calls but I simply want to kill ANY ajax calls currently not completed...
[jQuery] jQuery Spotted In The Wild: REI.com
<div><a href="http://www.rei.com/product/735607">http://www.rei.com/product/735607</a></div> <div> </div> <div>Click on the product image for a larger view.</div> <div> </div> <div>-js</div>
[jQuery] Can't get it to work
Hi There, Ive downloaded the source by can't get it to work, i am using jquery-1.1.3.1.pack.js i couldn't find the jquery min js file you used. Any Ideas Thx
[jQuery] Selectors , innerHTML and AJAX
Hi there, im having issues binding a click to links displayed after an ajax call into a layer. Here is what I have so far $("#content a.view").click(function(event) { alert(this.href); return false; }); <div id="content"> </div> links in the ajax content is <a class="view" href="/path"> </a> After the ajax call, the links are not within the div, using firebug, everything is added into innerHTML, I cannot get to these at all, so the click wont work. I literally searched everywhere,
[jQuery] Get size for elements that don't exist yet
I have found that in some applications I need to know the size or other CSS attributes of elements that haven't been inserted int othe DOM yet. So far I've been doing this by inserting an example of the element I need the size of into the DOM, selecting it, getting it's css() and then removing it again. I really don't like this approach in the least though, because while it works it's inelegant, computationally expensive and in some browsers it can cause flickering. The more elements you need to
[jQuery] Getting the nearest label
Hi, i'm looking in API/1.1.2/DOM/Traversing section of the doc for what I'm tryng to do... I think siblings() could be my function, but don't know how to use it.. I've a form like this: <label for="test"></label> <input id="test"> <label for="test"></label> <input id="test2> After the submit I do some server-side controls, then if there are errors I reload the page and in a hidden field I put the ids of the wrong fields. Then in document ready I want to load those id and add a class to nearest(prev)
[jQuery] Get the element that's appended directly without using second step?
With the help from a few jQuery'ers, the only way to dynamically create and append element using jQuery for multiframe application is $(window.document.body).append("<div class='testDiv'></div>"); This jQuery statement returns window.document.body object. There will be quite a few elements created this way in a same document, it will be confusing to use array index to retrieve the newly created element. So the question is: if I want to get that newly created object directly, what's the correct way
[jQuery] Developing for Opera
Doesn't Opera have like 1% marketshare? How can you justify spending a lot of time developing for Opera? Brook
[jQuery] Jquery toggle headache
Hi people, I have this issue I could need some help with resolving. It's driving me crazy. Imagine an email inbox made up from an unordered list (ul) and all the list items that show the subject, date etc. Pretty basic stuff really (kinda like your hotmail or gmail inbox). Instead of going to the 'read message' page I want the message to appear on the same page, underneath the subject when the li or subject is clicked. The data is being fetched with a post, and the response is placed in a hidden
[jQuery] Testing IE6 and IE7 with Virtual PC
Hi, two new VPC images for IE6 and IE7 on Win XP SP2 are now available: http://www.microsoft.com/downloads/details.aspx?FamilyID=21eabb90-958f-4b64-b5f1-73d0a413c8ef&DisplayLang=en With these images you can test web applications in each browser on a pre-activated XP SP2 virtual machine in your own Windows environment, especially if you're running Vista. You need Virtual PC 2007 to run it, which is available for free here: http://www.microsoft.com/windows/products/winfamily/virtualpc/default.mspx
[jQuery] $('#id').Pulsate(500, 100) .stop ??
hello group, i use $('#id').Pulsate(500, 100); but i cannot found where i can stop my pulsate or how i can do this ? best regards hans
[jQuery] Dinamically add elements to a existing jCarouselLite
Hi jQuery folks, i'm trying to create a page where a new <li> element is to be added to an existing carousel. The new element's content is coming from some ajax call and it should fit dinamically into the existing carousel forcing it to reinitialize (i suppose). Ex. ----THIS IS THE HTML MARKUP OF THE ORIGINAL CAROUSEL <div id="carousel"> <ul id="carouselList"> <li>html markup content</li> </ul> </div> --JCAROUSELLITE JAVASCRIPT INIT CODE $("#carousel").jCarouselLite({ btnGo: new Array("#historyGo1"),
[jQuery] small issue with script ( working in firefox not in ie )
HI I made the following small script http://z.nu.nl/menu/drop2.htm if you click an arrow that section folds open and the arrow is changed to the selected one. However this is working in Firefox but not in IE ( tested in 6 and 7 ) How can I get this to work in IE also? thanks in advance Armand
[jQuery] Jcarousel doesn't display in IE
Hello I use jcraousel on some of my sites, great plug-in. Yesterday, for the first time since I use it, I encountered a problem. I want to add a special pop-up to my menu, so I used wz_tooltip script to achieve that. But unfortunately that script triggers the problems with jcarousel that doesn't display anymore in IE. You can take a look at it at www.renpedia.com. Anyone has any suggestion on why this happens or/and any solution to fix it? Catalin
[jQuery] Tablesorter
Can i make table column where is a row numbers? I can add row numbers when i generate the table, but when i sort table, then my row numbers are messed. Can i disable sorting in row numbers cols?
[jQuery] Problems with VALIDATE PLUGIN
I had a problem with a validation plugin in a form with some ul li fomatation couze i´m using display: table and cia to emulate a table formation Can anyone help me? <div class="table"> <ul class="tr"> <li class="td"> <label for="razao"> Razão Social: </label> </li> <li class="td"> <input name="razao" id="razao" type="text" value="da empresa" size="50" maxlength="100" class="{required:true}" /></li> </ul> <br /> <ul class="tr"> <li class="td"> <label for="respons"> Responsável:
[jQuery] Prechecking the browser before loading jQuery
Hey all... I've been experimenting with jQuery a lot, and really like the functionality it provides. However, there are times when I'd like to use jQuery, but need to provide an alternative site for people with older browsers (particularly visitors from rural locations in developing countries, who often have much older and slower technology). So, I need to detect the browser and make sure it can support jQuery. Here is the basic code I've developed, which I've tested in a handful of browsers. //
[jQuery] [OT] Building Mashups? Check this Site Out
So I came across a link on Digg to a great site which showed a list of several web APIs. The site was nice and all and provided quite a bit of links. But as I started probing the Digg posting further, I found within the comments a link to what has to be the most comprehensive compilation of mashup info on the web. The site is called ProgrammableWeb (http://www.programmableweb.com/) and contains a wealth of info for mashup development including categorized lists of APIs, articles, Mashups and how-tos.
[jQuery] [NEWS] Paul Bakaus on Ajaxian
jQuery team member and jQuery UI team lead Paul Bakaus got some great press from Ajaxian for his blog posting "Advanced ternary conditions in JavaScript". Check it out: http://ajaxian.com/archives/fun-with-ternary-operators Direct link to Paul's posting: http://paulbakaus.com/2007/08/17/advanced-ternary-conditions-in-javascript/
[jQuery] Cycle Plugin Killing me
Im having a heck of a time getting the Cycle plugin to work. Cycle is at http://www.malsup.com/jquery/cycle/ and appears to be the best slide show out there. Here is my incredibly simple jQuery program: http://www.whatbird.com/wwwroot/Components/Cycle%20Demo.html Can anyone see what I have missed? Thanks Mitch
[jQuery] Question concerning ScrollTo and position:fixed elements
Hi, I am using a a fixed element at the top of the page in my webapp, but on the other hand want to use the cool ScrollTo effect of jQuery Interface to scroll to anchors. Now I have the problem, that the topmost anchor is scrolled below the fixed element at the top. ScrollTo seems to scroll the anchor to the top of the browsers viewport. Any possibilities to work around that? Best regards, Oliver
Next Page