[jQuery] How to use getResponseHeader using .ajax request with xhr option
The .ajax() request has an option called 'xhr'. I am trying to grab the filesize of a file (html) being requested with ajax. I think that the method used with XHR is getResponseHeader. How would I implement this into the 'xhr' option? I have tried several ways, but all gave me errors on Firebug, such as that getResponseHeader was not defined. $.ajax({ ... ... xhr: function(){ alert( this.getResponseHeader('Content-Length')); }, ... ect I have tried this.getResponseHeader('Content-Length'), xhr.getResponseHeader('Content-Length'), and getResponseHeader ('Content-Length') by itself, but no luck so far. If I am way off and incorrect, what would be the best way to see if somehow the file I'm loading has changed (file size, last modified, ect) from the last request?
[jQuery] Re: IDE for JQuery?
NetBeans rocks, komodo it's not there yet On Sun, 2009-03-29 at 16:27 -0700, Earth wrote: (Open)Komodo has it all or Netbeans if your computer is powerful enough. On Mar 28, 2:57 am, iceangel89 iceange...@gmail.com wrote: which IDE is best for JQuery? i mean like has code completion for JQuery, at least HTML, CSS, JavaScript. best if it can also code complete PHP/Zend Framework. or your custom classes. Aptana can code complete for all except Zend Framework isit? but i saw a video i can add zend framework as a library... then it shld have code completion for Zend Framework as well?
[jQuery] jquery and netbeans 6.5
Is anybody using netBeans as IDE? It looks promising but i can't get it to work properly. I get some of the functions but not all of them. (http://www.netbeans.org/download/flash/js/javascript_demo.html) inline: netbeans.gif
[jQuery] Hi, Jquery superfish menu flickers when I put any element
I have the following menu: http://www.quarksoft.eu/tusnad When you go to Branduri - Tusnad When hover-ing Tusnad there is an arrow (img) added. If you stay over the arrow the hole menu flickers. I tried this with any element (span, div) so it's not an issue of inserting img element. Any idea how to fix this?
[jQuery] JQuery Superfish menu flickers when having any element inside a
I have the following menu: http://www.quarksoft.eu/tusnad When you go to Branduri - Tusnad When hover-ing Tusnad there is an arrow (img) added. If you stay over the arrow the hole menu flickers. I tried this with any element (span, div) so it's not an issue of inserting img element. Any idea how to fix this?
[jQuery] Script like this site: http://ringvemedia.com/
I visited this site and really like the image resizing... the original pic is big, resizing with bigger resolutions (like 1440x900). BUT the actual script is in moo tools, how create the same effect using jQuery? thanks!
[jQuery] Re: [Validate] Use id instead of name when defining rules for jQuery.Validate Plugin
that's a pitty since Castle Monorail (which I use as Web Framework) uses the id to identify an element and thus I have a problem when bringing the plugin and Monorail together... :-( On Mon, Aug 25, 2008 at 6:26 PM, Jörn Zaefferer [EMAIL PROTECTED] wrote: No, names are required. You'd have to modify all occurences of element.name, which I can't recommend. Jörn On Mon, Aug 25, 2008 at 6:10 PM, Gabriel Schenker [EMAIL PROTECTED] wrote: Hi, is it possible to use the id attribute of an input element instead of the name attribute to identify an element when defining a rule, e.g. 'SetLengthRange'? If not, could the code of the plugin be easily modified (by myself)? Where would I have to look?
[jQuery] [Validate] Use id instead of name when defining rules for jQuery.Validate Plugin
Hi, is it possible to use the id attribute of an input element instead of the name attribute to identify an element when defining a rule, e.g. 'SetLengthRange'? If not, could the code of the plugin be easily modified (by myself)? Where would I have to look?
[jQuery] Adding Next link and Prev link To the first and last image
Hi all ! everything is in the title. I would like to Add Next link and Prev link To the first and last image of the thickbox plugin. Any ideas would be helpfull ! Thanks a lot ! Gabriel
[jQuery] Re: Adding Next link and Prev link To the first and last image
I found what I need. I know that the Thickbox code has changed a little, but for those who want to know how I did it, here is the code I use : // loop through the anchors, looking for ourself, saving information about previous and next image for (var i = 0; i imageGroup.length; i++) { var image = imageGroup[i]; var nbimage = imageGroup.length; var urlTypeTemp = image.href.match(imageURL); // look for ourself if ( image.href == url ) { foundSelf = true; imageCount = (i + 1) + /+ (imageGroup.length); } else { // when we found ourself, the current is the next image if ( foundSelf ) { next = getInfo(image, next, Next ); // stop searching if(i==1) { prev=getInfo(imageGroup[nbimage-1], prev, Prev);} break; } else { // didn't find ourself yet, so this may be the one before ourself prev = getInfo(image, prev, Prev); next = getInfo(imageGroup[0], next, Next ); } } } It is based on an old version of thickbox. Thanks a lot ! ++ On Aug 23, 12:31 pm, Gabriel [EMAIL PROTECTED] wrote: Hi all ! everything is in the title. I would like to Add Next link and Prev link To the first and last image of the thickbox plugin. Any ideas would be helpfull ! Thanks a lot ! Gabriel
[jQuery] Re: Underlay to replace overlay
Hi Johnie, Yes, this is what I want to do... But I want to keep the little image that indicates there is something loading and more, I want to have my thumb in front of the image displayed. That's it ! Thank you for answering. Gabriel On 14 juil, 15:09, JohnieKarr [EMAIL PROTECTED] wrote: Hi Gabriel, I'm not familiar with thickbox, but don't you just want your gallery to be a div and change the background image of that div? I hope I'm visualizing what you want correctly. Thanks, Johnie Karr On Jul 12, 7:22 am, Gabriel [EMAIL PROTECTED] wrote: Nobody ??? :( On 10 juil, 23:13, Gabriel [EMAIL PROTECTED] wrote: Hi everybody, I was wondering how I can modify Thickbox plugin so that the images do not show up over the gallery (thumb - images) but under the gallery. I call it anunderlay. Thank you very much, Gabriel- Hide quoted text - - Show quoted text -
[jQuery] Re: Underlay to replace overlay
Nobody ??? :( On 10 juil, 23:13, Gabriel [EMAIL PROTECTED] wrote: Hi everybody, I was wondering how I can modify Thickbox plugin so that the images do not show up over the gallery (thumb - images) but under the gallery. I call it anunderlay. Thank you very much, Gabriel
[jQuery] Underlay to replace overlay
Hi everybody, I was wondering how I can modify Thickbox plugin so that the images do not show up over the gallery (thumb - images) but under the gallery. I call it an underlay. Thank you very much, Gabriel
[jQuery] [jQuery.TreeView] in Castle MonoRail
I'm trying to use jQuery and the jQuery plug-in. Now when I also have installed the Scriptaculous scripts (of MonoRail) I encounter a problem which I cannot explain... When trying to display (a basic) tree I encounter the following java script error: a.parentNode has no properties (jQuery.js line 1390) last-child: function(a){return jQuery.nth(a.parentNode.lastChild, 1,previou... Note that I - use jQuery 1.2.6 - tried to consider what is told in the chapter Using jQuery with Other Libraries... Anybody has had the same problems? Any suggestions how to solve it?
[jQuery] Re: Is this posible with JQUERY?
Look this http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/ very interesting plugin, but isn't equal 2007/11/3, Vladimir [EMAIL PROTECTED]: http://vikjavev.no/highslide/ extra fine jscript... does jQuery have a plug-in like that? -- Gabriel Z. Lovison
[jQuery] Re: jQuery getElementsByName Equivalent ?
but if I put one name for a element, like this: a name= how can I take this element with this name? 2007/9/7, Andy Matthews [EMAIL PROTECTED]: Yes... $('a') Would return an array of all A tags on the page. $('div') Would return an array of all DIV tags on the page. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 0xCAFE Sent: Friday, September 07, 2007 9:08 AM To: jQuery (English) Subject: [jQuery] jQuery getElementsByName Equivalent ? Is there a jQuery equivalent for getElementsByName that will return an array ? Thanks! 0xCAFE -- Gabriel Z. Lovison
[jQuery] Re: jQuery getElementsByName Equivalent ?
thank you i forgot this selector :) 2007/9/7, Klaus Hartl [EMAIL PROTECTED]: Gabriel Lovison wrote: but if I put one name for a element, like this: a name= how can I take this element with this name? The answer is already in this thread elsewhere, but here's a solution for that special example: $('a[name=]') And that is a basic CSS attribute selector by the way: http://www.w3.org/TR/CSS21/selector.html#matching-attrs To use jQuery efficiently it makes total sense to get familiar with CSS selectors: http://www.w3.org/TR/CSS21/selector.html --Klaus -- Gabriel Z. Lovison
[jQuery] Re: Is it possible to catch keypress events to a div?
yes, you have the possibility to use keypress, for exemple, on $(document.) try $(document).keypress(function(e){ if( e.keyCode == 13 ) alert(Oi); }); 2007/9/7, hydra12 [EMAIL PROTECTED]: I'm playing with the idea for a game, and I want to use the keyboard for control. I need to catch keypress events without using a textarea or a text input box. Can you bind keypress to a div or to body? I haven't been able to get it working, but I'm new to jquery. Thanks for the help! hydra12 -- Gabriel Z. Lovison
[jQuery] dynamic content load into div
well, i'm having some trouble running my load function on IE6+. it works fine on FF. there's 2 load functions: 1) one gets the command from div #menu and loads it into div #total. 2) the other one get the command from div #total and loads it in itself (#total). and number 2 is not working on IE. don't know why... i got the lateste version of jquery, and got my load function from this site: http://education.llnl.gov/jQuery/ which, by the way, works fine on IE. Can anyone help me? i've been looking for an solution for almost 2 weeks now. please help! this is my site: www.svplace.com/teste my load func: www.svplace.com/teste/load.js thanks paulo
[jQuery] Re: LOADING CONTENT IN A PRE-EXISTING DIV
hey! are you still there? could you help me please?
[jQuery] Re: .load external page by url
Massimiliano? From Fabico? O.o On 5/9/07, Massimiliano Marini [EMAIL PROTECTED] wrote: Hi Matt, Thats correct, ajax calls cannot retrieve external pages for security reasons. The only way to get external pages onto your page is to use an iframe, or a simple server side proxy that you can call with your ajax. Thanks for your help. -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ It's easier to invent the future than to predict it. -- Alan Kay
[jQuery] NEED HELP WITH IE PROBLEMS.
Hey everyone. This is my test site: www.svplace.com/teste the function to load content into a div is working well on Firefox, but it doesn't on IE This is the load function: http://www.svplace.com/teste/load.js I got this function from this site: http://education.llnl.gov/jQuery/ which, by the way, works fine on IE. Somebody help me please! Paulo
[jQuery] Re: LOADING CONTENT IN A PRE-EXISTING DIV
yes, it's the second. the example you sent it pretty good, it's almost what i want but i'm having a little trouble with it. notice that i got links on a div id=menu, and the content is loaded in the div id=total... the main issue, is that i also got links on the 'total' itself, links that should work properly, just changing the content of the 'total' to the content link clicked before. i updated my site so you can check what my problem looks like. click the first menu item smallville, then click the link called a história. the last one should also be loaded in 'total' www.svplace.com/teste thanks Paulo On 5/5/07, Shelane [EMAIL PROTECTED] wrote: You're loading all these pages at once? Or, you're saying that clicking a specific menu item will load content for that menu item? If it's the first, you want to do the first I said, (the .html..) if it's the second... Look at my example here: http://education.llnl.gov/jQuery/ This loads content specific to each of my example items from different pages. What language is your site in? Is that in Portuguese? On May 5, 9:44 am, Paulo Gabriel Antunes [EMAIL PROTECTED] wrote: ok, you almost got what i wanted. i would use the first code you gave me, but instead of using just one content, i have lots of html files, which are linked by many links, and all this content is loaded, each at a time on this div. you can check this on my website:www.svplace.com/index2.html(just look for the menu links) and on my function.js: function loadpage(page_request, containerid){ if (page_request.readyState == 4 (page_request.status==200 || window.location.href.indexOf(http)==-1)){ document.getElementById(containerid).innerHTML=page_request.responseText document.getElementById(containerid).style.overflow=visible Effect.Appear('principal');} else{ document.getElementById(containerid).style.overflow=hidden } } and function change(pagina, div, par){ document.getElementById(principal).style.display=none; if (document.getElementById(principal).style.display == none) ajaxpage(pagina, div); if (pagina != 'ajaxfiles/m240Open.php' par==true){ Effect.BlindUp('menu2'); } } See? that makes me load any content i link like this: a href=javascript:change('smallville/smallville.html', 'total');. Could anyone help me? Paulo On 5/4/07, Shelane [EMAIL PROTECTED] wrote: If you div doesn't have an id, give it one. You'll do this: $('#mydivid').load(urlwhereyourcontentis); http://docs.jquery.com/Events#load.28_fn_.29 or if it's specific content that you know: $('#mydivid').html('pmy content/p'); http://docs.jquery.com/DOM/Attributes#html.28.29 or if it's only text $('#mydivid).text('my text here'); http://docs.jquery.com/DOM/Attributes#text.28_val_.29 hope that helps On May 4, 2:13 pm, Paulo Gabriel [EMAIL PROTECTED] wrote: Hey everyone! This is the first time i'm using JQuery, and i'm having big trouble trying to make it work. Before JQ, i had scriptaculous and prototype running my site, but i need JQ to detect the user's resolution, so i could give him the proper background. But now, my old function that made my content load on a pre-existing DIV (note that all my content loads on this div) doesn't work anymore. I know JQ can do all the job replacing Scriptaculous and Proto, but i just can't make it work. Could anyone help me please? I gotta air my new site TOMORROW! That's to only thing that's holding me back. thanks
[jQuery] Re: LOADING CONTENT IN A PRE-EXISTING DIV
DONE!! The problem was that i should also link the script in every file, so it could load in the 'total' itself thanks!! check www.svplace.com tomorrow to see it working. =D Paulo On 5/5/07, Paulo Gabriel Antunes [EMAIL PROTECTED] wrote: yes, it's the second. the example you sent it pretty good, it's almost what i want but i'm having a little trouble with it. notice that i got links on a div id=menu, and the content is loaded in the div id=total... the main issue, is that i also got links on the 'total' itself, links that should work properly, just changing the content of the 'total' to the content link clicked before. i updated my site so you can check what my problem looks like. click the first menu item smallville, then click the link called a história. the last one should also be loaded in 'total' www.svplace.com/teste thanks Paulo On 5/5/07, Shelane [EMAIL PROTECTED] wrote: You're loading all these pages at once? Or, you're saying that clicking a specific menu item will load content for that menu item? If it's the first, you want to do the first I said, (the .html..) if it's the second... Look at my example here: http://education.llnl.gov/jQuery/ This loads content specific to each of my example items from different pages. What language is your site in? Is that in Portuguese? On May 5, 9:44 am, Paulo Gabriel Antunes [EMAIL PROTECTED] wrote: ok, you almost got what i wanted. i would use the first code you gave me, but instead of using just one content, i have lots of html files, which are linked by many links, and all this content is loaded, each at a time on this div. you can check this on my website:www.svplace.com/index2.html(justhttp://www.svplace.com/index2.html%28justlook for the menu links) and on my function.js: function loadpage(page_request, containerid){ if (page_request.readyState == 4 (page_request.status==200 || window.location.href.indexOf(http)==-1)){ document.getElementById(containerid).innerHTML=page_request.responseText document.getElementById(containerid).style.overflow=visible Effect.Appear('principal');} else{ document.getElementById(containerid).style.overflow=hidden } } and function change(pagina, div, par){ document.getElementById(principal).style.display=none; if (document.getElementById (principal).style.display == none) ajaxpage(pagina, div); if (pagina != 'ajaxfiles/m240Open.php' par==true){ Effect.BlindUp ('menu2'); } } See? that makes me load any content i link like this: a href=javascript:change('smallville/smallville.html', 'total');. Could anyone help me? Paulo On 5/4/07, Shelane [EMAIL PROTECTED] wrote: If you div doesn't have an id, give it one. You'll do this: $('#mydivid').load(urlwhereyourcontentis); http://docs.jquery.com/Events#load.28_fn_.29 or if it's specific content that you know: $('#mydivid').html('pmy content/p'); http://docs.jquery.com/DOM/Attributes#html.28.29 or if it's only text $('#mydivid).text('my text here'); http://docs.jquery.com/DOM/Attributes#text.28_val_.29 hope that helps On May 4, 2:13 pm, Paulo Gabriel [EMAIL PROTECTED] wrote: Hey everyone! This is the first time i'm using JQuery, and i'm having big trouble trying to make it work. Before JQ, i had scriptaculous and prototype running my site, but i need JQ to detect the user's resolution, so i could give him the proper background. But now, my old function that made my content load on a pre-existing DIV (note that all my content loads on this div) doesn't work anymore. I know JQ can do all the job replacing Scriptaculous and Proto, but i just can't make it work. Could anyone help me please? I gotta air my new site TOMORROW! That's to only thing that's holding me back. thanks
[jQuery] Re: LOADING CONTENT IN A PRE-EXISTING DIV
weird... for me it doesn't work on IE. gotta find a hack. do u know any? On 5/5/07, Shelane [EMAIL PROTECTED] wrote: Hmmm. It didn't seem to work for me in FF. The first item loaded, but click A história loaded it on its own (not within the div). Declare the second function at the top of your script like so: bindContentLinks = function(){ //bind click function to a tags within object that has class nav $('a','#total').click(function(){ $(this).blur(); $('div','#total').removeClass().addClass(troca);//remove all classes for divs within div that has class nav var mya = $(this).parent();//find the parent div of this $(mya).removeClass(troca).addClass(nav_one_selected);//remove all classes from the parent div and add the class nav_one_selected var linkval = $(this).attr(href);//store the href value of the anchor tag $('#total').load(linkval);//replace the contents of the div id=page with the AJAX response of the linked page return false;//since the data is being loaded via AJAX, we don't want the link to be followed }); }; The modify this line on your first function for the menus: $('#total').load(linkval, function(){ // when new information is loaded, the links within the page will need to be binded bindContentLinks(); }); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups jQuery (English) group. To post to this group, send email to jquery-en@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-en?hl=en -~--~~~~--~~--~--~---
[jQuery] LOADING CONTENT IN A PRE-EXISTING DIV
Hey everyone! This is the first time i'm using JQuery, and i'm having big trouble trying to make it work. Before JQ, i had scriptaculous and prototype running my site, but i need JQ to detect the user's resolution, so i could give him the proper background. But now, my old function that made my content load on a pre-existing DIV (note that all my content loads on this div) doesn't work anymore. I know JQ can do all the job replacing Scriptaculous and Proto, but i just can't make it work. Could anyone help me please? I gotta air my new site TOMORROW! That's to only thing that's holding me back. thanks