[jQuery] Change href of external links
Hi all, New to jQuery, and I'm trying to use it to set my external links to open a new window without using any attributes to mark the external links. I can do this with regular js, using a.href.match, but I can't get it to work with jQuery. Tried various directions, but no go. Sure I'll feel pretty stupid when this is answered, but here is my ugly, non-functioning code: $(function(){ if ($!("a").href.match("http://www.internal.com")) { $("a").click( function() { window.open(this.href); return false;
[jQuery] Jquery Flash Plugin & the FlashBlock Extension
I have noticed that the flash plugin does not work with the flashBlock firefox extension whereas the both swfObject, UFO & sIFR do work with the extension. In firefox with flashBlock installed and blocking flash content the flash is not displayed nor is the content that it replaces. I have looked at the source but its a bit beyond me. Would this be complicated to build into the plugin? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Manipulating XML
Hi, I need to manipulate a XML that i receive from a request. The XML looks like: <root> <company> <id>3</id> <name>foo</name> </company> <company> <id>5</id> <name>bar</name> </company> </root> There is a way to get the node company that have a specific id? $('company:nth('5')', xml).text(); will return the 5th node... what i need is the node with id 5. Any tips? _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] jQuery Media Plugins question
Guess this would directed at malsup, but if anyone else has the answer, please lend me you input. I am using the Media plugin and I am not getting the alert about upgrading to the current flash when using this plugin, what can I do to make sure I get this alert? I see how you set the params for the quicktime part, but what about flash, I need to set some params (ie. wmode) and can't seem to achieve that without editing the plugin itself. thanks. btw, this is the url http://ierev.informationexperts.com/old_index.htm
[jQuery] CSS Selector help
I have a few divs on a page that are ABSOUTELY positioned inside a TD tag <table> <tr> <td> <div class="color_view" style="position:absolute;">color view</div> < img src=".." > <div style="position:absolute;display:hidden;">Color Options</div></td> </tr> </table> When the user clicks the img the second hidden div is displayed showing options. When the user clicks on the option color I would like to then change the background color of the first div. I can't seem to access it via the ancestors('color_view')
[jQuery] I need syntax help, please.
<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:st1="urn:schemas-microsoft-com:office:smarttags" 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)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);}
[jQuery] I need syntax help, please.
<!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"> <font size="-1"><font face="Courier New, Courier, monospace">This should be a quick one. I know there's a way to do this, but it escapes me at this time. I've got a few <a href...> tags on my screen, and I want some of them to open in the same window and some to open in a pop up, sized specifically. Here's
[jQuery] Remove from JSON
> > I suppose this touches on off topic, but ... is it possible
[jQuery] WEIRD IE page not displaying problem
Hiya, I've been using jQuery on a lot of client sites but I've just come across a VERY strange issue with IE on a site I'm working on at present. I've got a page which is XHTML 1.0 Strict, and passes validation with the W3C validator. It loads perfectly in Firefox, but in IE I get the page title, and then nothing actually appears. Just a white screen. As soon as I remove the call to jquery.js everything loads again! I thought it might be an odd issue with 1.0.4 so I loaded a copy of 1.0.3 but the
[jQuery] www.jquery.com - 500 Internal Server Error
Just reporting. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery.com down with 500 error?
Sad day! <h1>Internal Server Error</h1> The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, <a href="mailto:webmaster@jquery.com">webmaster@jquery.com</a> and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to
[jQuery] 1.0.4 bug - please confirm...
This page works with 1.0.3, but not 1.0.4 - it simply calls a javascript function on the focus event: Can someone confirm before I post a bug report? Copy / Paste the following: <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> function myfunction(x){ alert(x); } </script> </head> <body> <form> <input id="test" type="text" name"test"> </form> <script type="text/javascript"> <!-- $(document).ready(function(){ $("#test").focus("myfunction(this.id);");
[jQuery] Help with drop down menus
I'm trying to create a few drop down option menus that are contained in divs which are initially not displayed. There each have a image dropdown image with class = div_color. Here is how I am opening the boxes and closing any others that were left open. $(".box_color").click(function () { $(".div_color").hide(); $(this).next().show(); } ) My question is how do I create an event that will hide() the divs if the user clicks anywhere else on the screen? I'm new to jQuery
[jQuery] Empty each text field
I want to empty every text field in a given form. So far this isn't working: $('input[@type="text"]').each(function(){ this.val = ""; }); -- View this message in context: http://www.nabble.com/Empty-each-text-field-tf2824412.html#a7884125 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] WEIRD IE problem - never mind.......
As is typical, as soon as I posted to the mailing list about it, I realised what I'd done wrong. I used <script type="text/javascript" src="......" /> and NOT <script.....></script>. I'm an idiot, please return to your regularly scheduled programming. :) Regards, Michael Price _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Duplicate Events
Hi, i have the following problem using the events in jQuery: $('#mainWindow').click(function(){ alert('test'); }); and load this function at the end of a php script: <?php bla bla bla ?> <script> my function </script> The problem is that i load this data into the mainWindow which means, that the event gets attached each time i load content into the mainWindow. So when i click in the mainWindow i get multiple alert messages. Is there a way to tell jQuery to overwrite the event if the function is the
[jQuery] Off-Topic: Rounded Corners
Just a very quick note about a site that I found that will generate rounded corners on the fly. The site is: http://wigflip.com/cornershop/ While this isn't about jQuery, I know that rounded corners are the rage and some people might find this useful. Rey... _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] a jquery button
hey all, is there a "built with jquery" button, something like what you get for valid css or html? gotta give jquery is props :) -- View this message in context: http://www.nabble.com/a-jquery-button-tf2825088.html#a7886017 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Fix: ExternalInterface breaks jQuery in firefox 2
my 2ct contribution to this discussion. FF 2.0 & firebug 1.0beta cause a lot of problems - even on sites without jQuery :) so often the debugger pops up and interrupts some scripts (didn't investigate why). sometimes you can resume - but mostly the script is broken. switch back to firebug 0.4 everthing is fine. at least i can say that my jq-scripts (mostly ajax stuff) run great on IE6.0, IE7.0, Mzille1.8, FF1.5 and also FF2.0 (without firebug 1.0 installed) - but with firebug beta it crashes. so
[jQuery] find cause of uncaught exception
Hi. Can someone point me to the likely cause of this error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.setRequestHeader]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost/public_html/js/jquery/jquery.js :: anonymous :: line 1" data: no] It's triggered by a script (which I've pared down for debugging) that runs in a thickbox iframe: $( '#newProjectSubmit').click(function(){ $.ajax({ url: 'projects.pl'
[jQuery] Function: $(...).ancestorsTo(match)
<!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.5730.11" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=722284202-15122006>> </SPAN>Has anyone undertaken this plugin? I wasn't able</DIV> <DIV dir=ltr align=left><SPAN class=722284202-15122006>></SPAN> to find it in SVN under plugins. </DIV> <DIV> </DIV> <DIV><SPAN class=722284202-15122006></SPAN>I<SPAN class=722284202-15122006>t's
[jQuery] How to make radio button selected?
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Sean O Subject: [jQuery] How to make radio button selected? Based on what is typed, I want one of two radio buttons with the same name, but distinct IDs, to be selected. I have the RegEx working fine to pick out unique strings in the text box, but can't get the rest. Tips? ----- Sure, take a glance at this: http://pastie.caboo.se/27710 You can plug in your RegEx where I'm simply checking for 'red' or 'blue' to extend
[jQuery] jQuery and Rails
Hi all, can someone share his experience of using jQuery with Rails? We are switching to Rails at Plazes but I'd like to stay in the jQuery camp :-) Thanks, Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] quick quesiton for Felix re: cakePHP
Felix, I noticed on another thread that you work with cakePHP, I am trying to get my head around it, but not quite there. Can you recommend any good forums and tutorials (not digging the bakery.cakephp.org too much) to help me on my way. Thanks Benjamin -- View this message in context: http://www.nabble.com/quick-quesiton-for-Felix-re%3A-cakePHP-tf2817293.html#a7863348 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] quick question for Felix re: cakePHP
Felix, I noticed on another thread that you work with cakePHP, I am trying to get my head around it, but not quite there. Can you recommend any good forums and tutorials (not digging the bakery.cakephp.org too much) to help me on my way. Thanks Benjamin -- View this message in context: http://www.nabble.com/quick-quesiton-for-Felix-re%3A-cakePHP-tf2817293.html#a7863348 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] Change href of external links
<!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.5730.11" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=925510822-14122006><FONT face=Arial color=#0000ff size=2>Uh oh, I know what it is. It's a bug in pushStack. </FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=925510822-14122006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr
[jQuery] Function: $(...).ancestorsTo(match)
> Would this be a candidate for addition to the core possibly? The ancestorsTo looks like it's an up-the-tree analog of the nextUntil method for siblings that was discussed here a while back. I think the general consensus on that was that there would be an extended navigation plugin rather than add all these to the core. Maybe they should be named ancestorsUntil and siblingsUntil for better consistency? Also, since this is a modifying plugin it should use pushStack() to allow the use of .end() to
[jQuery] JQuery and CakePHP (slightly OT)
Hey, I've noticed a few people on here talk about CakePHP and I've decided to investigate it as a possible way of developing a CMS for my work. As much as I love drupal, it has it's drawbacks for what I am doing and I'm investigating using a framwork as a way to develop a CMS from scratch that is customised for my line of work in the music industry. It's community seems friendly, but at the moment the documentation seems to be a little bit of a muddle and I can only find faint whispers of CakePHP
[jQuery] How to make radio button selected?
Hi, I'm trying to select a radio button based on user input in a text box. Based on what is typed, I want one of two radio buttons with the same name, but distinct IDs, to be selected. I have the RegEx working fine to pick out unique strings in the text box, but can't get the rest. e.g. O red (id=check_red) O blue (id=check_blue) (id=textbox) [red] -> select red radio button on blur Tips? Thanks, ________ SEAN O -- View this message in context: http://www.nabble.com/How-to-make-radio-button-selected--tf2821791.html#a7875982
[jQuery] file uploads with jQuery?
I'll be REALLY excited if someone gets this working. I'm going to be building a new app coming up soon and this is precisely what I need. <!----------------//------ 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 Jörn Zaefferer Sent: Thursday, December 14, 2006 1:35 PM To: jQuery Discussion. Subject:
[jQuery] file uploads with jQuery?
Hi folks, the file upload issue was discussed several times on this list, therefore I'd like to point you at some interesting stuff: http://progphp.com/upload.phps The example relies on YUI, but it should be easy to rewrite it with jQuery, anyone up to it? The interessting part: It uses APC from CVS, which should be available with PHP 5.2, but needs this apc.rfc1867=1 in php.ini. This maybe good enough for anyone who wants to do AJAX file uploads and has enough control over his server. I just got
[jQuery] Change href of external links
> Am I mistaken, or does the string have to match
[jQuery] Change href of external links
<!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.5730.11" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=050474118-14122006>> I looked at 1.0.3 source and filter() accepts a function and it </SPAN></DIV> <DIV dir=ltr align=left><SPAN class=050474118-14122006>> appears that if that function returns true the element is included</SPAN></DIV> <DIV dir=ltr align=left><SPAN
[jQuery] Had to change ifx.js when switching to version 1.0.4 - check me?
I just want to do a sanity check, because I've never delved into any of the interface code (ifx.js) I'm using Thickbox, and added some custom code to use the "BlindDown" function on one of the animations (from the Interface plugin). Everything comes up fine, however when I tried to close the Thickbox the box went away, but the opaque overlay didn't, and I got this error: jQuery.setAuto is not a function (ifx.js - line 147) I went into the ifx.js file and commented out the following lines: // set
[jQuery] MetaData plugin - help needed FIXED
The functionality of the "get" method that the metadata plugin overloads is split out into a "set" method in 1.0.4. Just change the matadata plugin to overload "set" instead of "get", so it looks like this: jQuery.fn._set = jQuery.fn.set; jQuery.fn.set = function(arr){ var result = this._set.apply( this, arguments ); ... Should this be filed as a bug report, or is the matadata plugin not "official"? --Erik <div><span class="gmail_quote">On 12/13/06, <b class="gmail_sendername">Erik Beeson</b> <<a
[jQuery] MetaData plugin - help needed
Hi all, I'm having a problem with John's metadata plugin. The value of the parameter arr in the jQuery.fn.get function in metadata.js is always undefined, so at this point: return arr && arr.constructor == Array ? it never branches towards the metadata logic, hence I can never access metadata properties. To ascertain this I slapped a $.log(arr) immediately after the beginning of the function, but every single jquery query is spitting out undefined at this point. What is the arr parameter, and why
[jQuery] Change href of external links
> I was just looking at this again, and wondered how I could
[jQuery] Function: $(...).ancestorsTo(match)
I wrote a method that will provide a list of ancestors for any number of generations until an ancestor matches the expression. Example: <span style="font-weight: bold;">BODY</span> <span style="font-weight: bold;"> DIV</span> <span style="font-weight: bold;">UL</span>.myClass <span style="font-weight: bold;">LI</span> <span style="font-weight: bold;">UL</span> <span style="font-weight: bold;"> LI</span> #myId <span style="font-weight: bold;">$('#myId').ancestors()</span>
[jQuery] selectbox plugin - take 2
Hi, There is a new demo up and running located here: http://cbach.jquery.com/demos/selectbox2/ I added support for selecting with arrow keys and the select-box now reposition it self correctly when the browser window is resized. Enjoy /Christian _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Small jQuery 1.0.4 problems
Make sure to submit a bug report for any issues you find: http://jquery.com/dev/bugs/ <!----------------//------ 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 Markus Peter Sent: Thursday, December 14, 2006 11:22 AM To: jQuery Discussion. Subject: [jQuery] Small jQuery 1.0.4 problems Hello I today
Next Page