[jQuery] Setting header for local files
Hi folks, is there any way to set a header (ie. content-type: text/xml) when loading a file from a local disk, without a webserver? This would be a great help to run AJAX tests. I once read that someone implemented a kind of webserver via javascript (running inside a browser). Maybe someone has an idea how to proxy a load from disk to be able to set a content-type header... -- Jörn _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Interface Autocomplete Bug using Rev 292
I just updated to Rev 292 of jQuery and I'm using the latest iautocompleter from interface. When the AJAX post is called there is an error thrown: Error: r.getResponseHeader is not a function Source File: http://pdxmission.datafirminc.com/js/jquery.js Line: 1809 It looks like it traces through iautocompleter.js on line 104 which reads: xml = $.httpData(response); Thought I'd let y'all know. Thanks, -Aaron -- View this message in context: http://www.nabble.com/Interface-Autocomplete-Bug-using-Rev-292-tf2280623.html#a6335395
[jQuery] Serialization of form fields
If I have 4 form fields like below and I wanted to serialize them in one big swoop instead of 1 by 1, how might I go about doing it? I know I can do this for the text fields; $("input[@type=text]").serialize(); but I'm not sure if I can combine the selects into that call and minimize the code. Help? Rey... <div class="tableBorder" style="margin-bottom: 5px;"> <table border="0" width="99%"> <tr> <td bgcolor="##428E46" align="center" colspan="2"><span class="header">Product Search</span></td>
[jQuery] click() fails to launch file dialog
Are there any known issues with the click() event as it relates to input::file? More likely though, I've misunderstood the context, any help would be appreciated. xhtml: <a href="#" class="file" >Click to Browse Files</a> <div style="display:hidden"> <input type="file" id="myFile" /> </div> javascript: $(document).ready(function() { $('a.file').click(function() { $('input#myFile').click(); }); }); When I debug this code, I see that the link click is being captured and the hidden input field is being
[jQuery] LOADING DATA and Returning a VAR - an odd inconsistancy
Well, which one do I THINK is faster, or which one actually IS faster? I "think" that asking for an id of "music" should be the fastest sort of search as there should only be ONE of them on the page. I would think that asking it to search all divs THEN for a div with the ID of music would take longer. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message-----
[jQuery] eval.call( window,jscode) does not work in IE
The solution suggested earlier for executing javascript code embedded in HTML returned by an ajax call by using eval.call(window,...) works great in FF, but not in IE6. eval.call(window,jscode) still executes in the context of the block in which eval is called. Hence, any functions that are defined in the loaded javascript are not available outside. i tried all kinds of things to get around this such as : with (window) { eval(jscode); } I thought maybe the prototype guys have cracked this problem,
[jQuery] LOADING DATA and Returning a VAR - an odd inconsistancy
after using .get i am extractng various nodes all works well except the music node eg: <div id="msuic">14</div> in this case I would expect the following to return 14 $("div#music",html).text() it often return a blank value, even though firefox's consiole window display the correct node value very odd and frustrating since it does work sometime and does not at ofthers???? the value is passed onto a function that calls a flash function to play the music track associated track or do I need to find
[jQuery] LOADING DATA and Returning a VAR - an odd inconsistancy
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=968001014-18092006><FONT face=Arial color=#0000ff size=2>It's probably just a mistype, but your div has an id of msuic, while you're trying to reference "music".</FONT></SPAN></DIV> <DIV><SPAN class=968001014-18092006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
[jQuery] typewriter effect
Ah... Didn't catch the HTML code. Interesting. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Fil Sent: Monday, September 18, 2006 9:01 AM To: jQuery Discussion. Subject: Re: [jQuery] typewriter effect
[jQuery] typewriter effect
Just for the record, when I view this page in IE: http://www.jquery.info/IMG/html/19_typewriter.html nothing happens. I assume it's supposed to type itself out? It doesn't do that in IE. Surprisingly it also behaves badly in FF for the PC. It at least tries to type itself out, but has some issuies when it gets to the word text. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//--------->
[jQuery] iUtil.getPos() seems too slow than below code
This code I copy from prototype, and made some changes, it doesnot calculate the width and height, only x and y, but it's quicker than jUtil.getPos(). BTW, I think interface plugins is wonderful, I begin use it to replace some functions written by me. $.fn.coordinate = function(){ e = this[0]; var y = 0, x = 0; do { y += e.offsetTop || 0; x += e.offsetLeft || 0; e = e.offsetParent; if (e) { if(e.tagName=='BODY') break; var p = $(e).position(); if (p == 'relative' || p == 'absolute') break; } } while
[jQuery] datePicker reload Problem
if i reaload a form, the 2nd time i load it the datepicker wont appear (its the same form reloaded into the same div with load) <script> $('input#von').datePicker(); $('input#bis').datePicker(); </script> is inside the loaded-form.html no datepicker somewhere else anyone got a idead how to fix that ? (maybe close existing datepickers with some command or anything else ? ) mfg MG _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] getPosition() of iUtil is not not what I want as the scrollbar is scrolled
Just after I asked that getPos() function in iUtil.js of interface package, I got the getPosition() should do the work. But as I used it in IE browser, if the scrollbar is not scrolled, the result is good. But as I scroll the scrollbar, the result is not correct, it seems that it minuses scrollTop and scrollLeft value, but it's not I want. So I had to recover my old version: $.fn.coordinate = function(){ e = this[0]; var y = 0, x = 0; do { y += e.offsetTop || 0; x += e.offsetLeft || 0; e = e.offsetParent;
[jQuery] Error Handling with AJAX
Currently I'm using $("#loading").ajaxError(function(){ to display an alert box when an AJAX error occurs. Is there anyway I can get more detailed info about what the error it returned is? I'm currently trying to make my way through a problem with a form, and am not quite sure where to start as all I know right now is that there is indeed an error. Any help would be greatly appreciated. Mike -- View this message in context: http://www.nabble.com/Error-Handling-with-AJAX-tf2287092.html#a6352667 Sent
[jQuery] Drop Cap help - how to remove a single character?
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi folks,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm trying to convert a little drop cap thing that I had done in DOM scripting to jQuery. Adding the drop cap image has been incredibly easy, but I'm stumped on how to remove the single letter of text that the image is replacing. I'm sure this is really simple, but I'm just not getting it, so any help would be much appreciated.</DIV><DIV><BR
[jQuery] Patch to checkbox replacement
This update allows the use of the semantically correct "for" attribute instead of forcing the label to be immediately after the checkbox. It also requires that the checkbox be hidden via CSS, rather than via the plugin. <span style="font-family: courier new,monospace;"> /* Images as Checkboxes */</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> jQuery.fn.cssCheckbox = function () { </span><br style="font-family: courier new,monospace;"><span
[jQuery] hoe to get attributes?
Hi It seems that there is cases where it is not possible to get attributes. How to deal with this ? $(this).val() // works $(this).name() //not working $(this).id() //not working etc... Here is my code : $.fn.checkform = function() { this.bind("click", function(){ msg=''; $("input.check_empty").each(function(){ if(this.value!='') { $(this).css("background", "#fff"); } else { //alert($(this).name()); //breaks the script alert($(this).val()); msg += 'is empty\n'; $(this).css("background", "#ff0");
[jQuery] TreeMenu height problem (curCSS issue)
--- Jörn Zaefferer <Enchos@gmx.net>
[jQuery] TreeMenu height problem (curCSS issue)
The TreeView example given at: http://be.twixt.us/jquery/treeView.php does not change the heights properly with newer versions of JQuery. It works fine with Rev 29 of jquery from May, but not newere versions. I have changed the obvious errors and the tree builds and collapses and expands individual elements. The problem exists when collapsing an inside element, then a parent element, then expanding them in reverse. e.g. Item 2 - Item 2.1 -- Item 2.1.1 Item 3 Collapse 2.1.1, then collapse 2.1, then
[jQuery] Is there an equivalent to moo.fx scrollTo() ?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Hi again Sorry to spam with questions. Its my first real trial with jquery, and so far so good, I like what could achieve. Is there an equivalent to moo.fx <code>scrollTo() ? I looked at scroll() and scroll(fn) but it is for triggering when the scroll occurs not to make scroll. thx olivvv </code> </body>
[jQuery] konquerer, safari
As I work on GNU/Linux I use Konquere to see if things wil work in Safari. I still need a mac but don't have one. Now I notice that often things don't work under konquerer. For example this simple line give nothing under konquerer while in IE and Firefox it works fine. $("li a").click(function(){ $(this).parent().children().fadeIn("slow"); }); -- Onno Timmerman Code-on only code, no design Cumontstraat 14 9300 Aalst 0478/42.21.91 btw: 879.588.971 _______________________________________________
[jQuery] behaviour of show()
I got in html <ul style=""> <li id="l0"> lorum ipsum <p id="f0"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
[jQuery] Test suite refactoring
Hi folks, just commited a big refactoring to the test suite. All tests are now compiled to one file. The testsuite should therefore run up to three times faster. For anyone building jQuery via the Makefile: Please check if it works as expected, I currently can't test it here. I'm thinking about adding a textarea where a user can paste a testcase and run it against the latest build: This could be a great help for users who want to provide a testcase with their bugreport. If anyone has further ideas
[jQuery] ImagaBox plugin
Hi, Maybe some of you that migrated from prototype to jQuery miss the Lightbox plugin. I know I do for some projects. I know that we have the great Thickbox plugin. But in some situations thickbox is too complex or not that slick like Lightbox. So, I made a Lightbox replica, named ImageBox <a href="http://interface.eyecon.ro/develop/demos/imagebox.html">http://interface.eyecon.ro/develop/demos/imagebox.html</a> _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] Shopping Cart Demo?
Does anyone have any shopping cart code that use JQuery that I could use for one of my projects? This is for a back-end phone order page and for internal customer service reps. The reps would be able to search for a product and either DnD the item into the cart or click on an icon that will add that item to the cart. What I'm not clear on is how to dynamically add the item to the cart, especially since two of the pieces of data (qty & price) need to also be form fields. I would also need to be able
[jQuery] How to get the browser client width and height
I want to implement center() effect, but I don't know how to get the correct widht and height of the browser client. I googled and found that in (FF) I should use windows.innerHeight and window.innerWidth, but in msie I could use document.documentElement.clientWidth and document.documentElement.clientHeight. I want to know is jQuery has a shortcut function to get that? I write a simple function to do that: $.clientCoords = function(){ if(window.innerHeight || window.innerWidth){ return {w:window.innerWidth,
[jQuery] New plugin: cookie
Hi all, I made a cookie plugin and added it to SVN. Contrary to my latest mail regarding this I made the plugin in a more jQuery style, there's only one basic $.cookie function. Read a cookie: $.cookie('the_cookie'); Set a cookie: $.cookie('the_cookie', 'the_value'); Set a cookie with all available options: $.cookie('the_cookie', 'the_value', {expires: , path: '/', domain: 'jquery.com', secure: true}); Delete a cookie: $.cookie('name', '', -1); Needs a little work on documentation but I'm too lazy
[jQuery] events on plugins
> > $.fn.checkform = function() {
[jQuery] [jquery] g has no properties
Here are the lines. after I move the cursor out of <a> i get the error: "g has no properties" $(document).ready( function(){ $("#menu li a").hover( function(){ $(this).parent().background("red"); }); //$("#menu li a").mouseout( function(){ $(this).parent().background("black"); }); }); //im using $Date: 2006-08-31 13:26:31 -0400 (Thu, 31 Aug 2006) $ * $Rev: 249 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] events on plugins
Ok I got it: $.fn.checkform = function() { return this.each(function(){ $(this).bind("click", function(){alert("it works");} ); }); }; _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] [dimensions] innerWidth and innerHeight bug
In IE if there are no borders the innerWidth and innerHeight functions will cause a NaN result. I went ahead and created a bug report with the solution [1]. BTW ... I tried to attach the diff but it just errored out. Any chance of getting the trac fixed so that it is easier to include patches, examples, test cases, etc. [1]: http://jquery.com/dev/bugs/bug/201/ Brandon _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] a syntax issue
Hi, I'm making the hreflang attribute visible ; css would be : a[hreflang]:after { content: "\0000a0[" attr(hreflang) "]"; } but it doesn't work on MSIE, so I try the jQuery way: $('a[@hreflang]').each(function(){ $(this).after( ' ['+this.hreflang+']' ); }); this works, but it's too much code, I would dream of having a one-liner: $('a[@hreflang]').after(' ['+this.hreflang+']'); It doesn't work (or, not this way), because 'this' is not the current DOM node, but the HTMLDocument itself. --
[jQuery] jTip problem (flickering)
Hi all, I have a strange problem with jTip. On this page, you can see some yellow "?"-symbols: http://newsride.org/users/arash/ When you mouseover them, jTip should open up and show a message downloaded from the server. Sometimes - NOT always - when opening the page in Firefox, the jTip-Layer opens up and closes immediately, then opens up again and so on. Looking into the Firebug AJAX logs, I can see that the file to be shown has been downloaded correctly, no problem with that. Keeping Firebug open
[jQuery] [Interface]
I would like to animate {opacity: 'toggle'} but with the transitions provided by the Interface plugin. I've looked but I don't see where Interface overwrites the animate function as well as the fx part. I also was not able to find a fadeIn/Out/Toggle in Interface. Am I looking in the wrong places? A little guidance would be very appreciated. Thanks. Brandon _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Safari searchbox, the jQuery way
Hi, I like the Safari searchbox system, but it's a pity it doesn't validate XHTML. So here's my take on it, the jQuery-way: http://www.jquery.info/IMG/html/18_safari_searchbox.html The code is so short I can't help copypasting it here: $(document).ready(function(){ var o = $('input#search') .onefocus(function(){ $(this).attr('value',''); }); if (jQuery.browser.safari) { o.attr('type','search') .attr('autosave','com.jquery') .attr('results','5'); } }); And, I propose that all jQuery blogs that want
[jQuery] interface compression problems
sorry if this not the appropriate place, but I can't understand something, I've downloaded many times interface.js compressed but I always end up with this error from the firefox js console: Error: invalid assignment left-hand side Source File: http://localhost:8888/branches/0.1/js/interface.js Line: 8, Row: 74 Source: eval(function(p,a,c,k,e,d){e=function(c){return c<a?"":e(parseInt(c/a))+c=c%a>35?String.fromCharCode(c+29):c.toString(36)};if(!''.replace(^,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return
[jQuery] EasyDOM is Broken in 1.0.1
> Here's a test page that gives me that error:
[jQuery] EasyDOM is Broken in 1.0.1
So I'm trying to use the Oslow's variation of the EasyDOM plugin but it will only work in 1.0a. In 1.0.1, it generates a "e.set is not a function" error. I tried replacing the set() method with the atte() method but it still bombed. Here's the version I'm trying to work with: http://www.aloyzas.lt/ Here's the link to my page: http://www.intoajax.com/domtest2.htm Any chance one of the JQuery gurus can take a hack at it? I've attached the a test htm file and the dom.js file. Rey... _______________________________________________
[jQuery] [patch]maybe fix opacity bugs in msie
I don't know if the opacity bugs has been fixed in the newest version, but I checked the source code it seems that no fix about this. I made some changes in 1.0.1 version, the here is the code. attr: function(elem, name, value){ var fix = { "for": "htmlFor", "class": "className", "float": "cssFloat", innerHTML: "innerHTML", className: "className", value: "value", disabled: "disabled" }; <span
[jQuery] 3d rotator script
Hello list, I added a z-index to my rotator script (so its now 3d) and posted on digg. http://www.digg.com/programming/3D_rotation_with_JavaScript Digg it if you like it! Will _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Next Page