[jQuery] PNG hack that works for repeated background images?
Hello I've been trying to implement this 'plugin' 'hack': http://khurshid.com/jquery/iepnghack/ to get a repeated background effect in IE6 and decent browsers. It appears this plugin does not work with repeated background PNG images. Instead the image is shown just once. Can anybody confirm this as a limitation/bug? Does anyone have an alternative hack (preferably jQuery based) that can achieve repeated background PNG images?
[jQuery] Can JQuery do this?
I'm pretty sure it can since jquery is so sweet, but here's what I am trying to do: I have a page (call it generator.cfm) that pulls random pictures from a database. I want a button or link I can click on and have it pull from that url, and display in the div or whatever. pretty simple ajax stuff. But the tricky part is if I continue to click on the button it doesnt replace the existing picture, it just appends on the next picture to the list each time the button is clicked. Any of you guru's care to help me figure this out?
[jQuery] Re: PNG hack that works for repeated background images?
Pretty sure you don't get repeating transparent png backgrounds in IE6. Use a GIF, or a really big repeating background image, or use layers without backgrounds. Personally, I just use a GIF and have a little upgrade to make it not look like ass banner. A GIF version is easy to add with conditional comments too, so you don't have to dirty up your code with too many IE6 hacks. --Erik On 6/3/07, pd [EMAIL PROTECTED] wrote: Hello I've been trying to implement this 'plugin' 'hack': http://khurshid.com/jquery/iepnghack/ to get a repeated background effect in IE6 and decent browsers. It appears this plugin does not work with repeated background PNG images. Instead the image is shown just once. Can anybody confirm this as a limitation/bug? Does anyone have an alternative hack (preferably jQuery based) that can achieve repeated background PNG images?
[jQuery] Re: Can JQuery do this?
Might want to try the .empty() method, on the div containing the image, before you load in the next one. http://docs.jquery.com/DOM/Manipulation#empty.28.29 On Jun 4, 4:47 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm pretty sure it can since jquery is so sweet, but here's what I am trying to do: I have a page (call it generator.cfm) that pulls random pictures from a database. I want a button or link I can click on and have it pull from that url, and display in the div or whatever. pretty simple ajax stuff. But the tricky part is if I continue to click on the button it doesnt replace the existing picture, it just appends on the next picture to the list each time the button is clicked. Any of you guru's care to help me figure this out?
[jQuery] Re: PNG hack that works for repeated background images?
Thanks for the suggestions Erik but with IE6 still making up a substantial market share, I'd like to cater for it as well as possible (call me a masochist, you will not get much argument!). Anyone else have a definitive answer on this one? On Jun 4, 4:53 pm, Erik Beeson [EMAIL PROTECTED] wrote: Pretty sure you don't get repeating transparent png backgrounds in IE6. Use a GIF, or a really big repeating background image, or use layers without backgrounds. Personally, I just use a GIF and have a little upgrade to make it not look like ass banner. A GIF version is easy to add with conditional comments too, so you don't have to dirty up your code with too many IE6 hacks. --Erik On 6/3/07, pd [EMAIL PROTECTED] wrote: Hello I've been trying to implement this 'plugin' 'hack': http://khurshid.com/jquery/iepnghack/ to get a repeated background effect in IE6 and decent browsers. It appears this plugin does not work with repeated background PNG images. Instead the image is shown just once. Can anybody confirm this as a limitation/bug? Does anyone have an alternative hack (preferably jQuery based) that can achieve repeated background PNG images?
[jQuery] Re: PNG hack that works for repeated background images?
pd wrote: Hello I've been trying to implement this 'plugin' 'hack': http://khurshid.com/jquery/iepnghack/ to get a repeated background effect in IE6 and decent browsers. It appears this plugin does not work with repeated background PNG images. Instead the image is shown just once. Can anybody confirm this as a limitation/bug? Yes. This is a limitation due to the usage of the AlphaImageLoader filter... It only supports the sizing methods listed here: http://msdn2.microsoft.com/en-us/library/ms532920.aspx -- Klaus
[jQuery] Re: PNG hack that works for repeated background images?
but with IE6 still making up a substantial market share, I'd like to cater for it as well as possible I know. Were it not for that, I'd suggest you just forget it all together. Falling back to a GIF *is* catering it IE6 given that it officially doesn't support PNG at all. But if you really want a PNG, use a really big repeating image, or user layered foreground images. --Erik
[jQuery] Re: PNG hack that works for repeated background images?
Thanks everyone, absolutely great to be able to get quick accurate answers like this.
[jQuery] Re: jQuery core charset???????????(please help!!!!me!)
joomlafreak wrote on 6/3/2007 8:20 PM: I don't know if it should be utf-8 or something anywhere in this. I read on this thread or some other thread that the javascript will deal with this encoding in utf-8. Where you see the following in the response header: Content-Type: text/html It should be this in order for the browser to correctly use the charset being sent: Content-Type: text/html; charset=ISO-8859-1 I set up a little test, curious to see how the browsers would handle various charsets on one page: http://www.corry.biz/charset/ What you're looking at is four .load()s, each one specifying (or not) the charset of the text. The text is the same for all four, but in their respective charsets. I also have the em-dash in both UTF-8 and Windows-1252 in all four as well. Testing it with FF2 and IE7, I see that not specifying a charset in the response header defaults to UTF-8. Specifying it as the correct charset causes it to work properly. Specifying ISO-8859-1 but including the extended chars from Windows-1252 (smart quotes, em-dash, etc) causes FF2 to render the text as Windows-1252 even though ISO-8859-1 was specified. However, IE7 is less forgiving and (correctly) renders the em-dash as an unknown character (em-dash doesn't exist in ISO-8859-1!). So if you're serving ISO-8859-1, it's probably better to serve it using Windows-1252 as the charset so that both FF2 and IE7 will render the characters the same when those sneaky smart quotes slip in (ala copypaste from Word). - Bil
[jQuery] Re: Can JQuery do this?
Thanks for the tips! Actually I am trying to create a list of pictures, not replace the image. I am thinking something like this but it is failing: $('#files_list').after($.get('generate.cfm')); Must be something small... On Jun 4, 1:03 am, Erik Beeson [EMAIL PROTECTED] wrote: Hard to say for sure without seeing the code. Sounds like you're appending a new image element? You could instead just update the src attribute of the image tag in question: img id=the_image src=original_image.png/ var newImageURL = 'new_image.png'; // load new image URL from somewhere $('#the_image').attr('src', newImageURL); --Erik On 6/3/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm pretty sure it can since jquery is so sweet, but here's what I am trying to do: I have a page (call it generator.cfm) that pulls random pictures from a database. I want a button or link I can click on and have it pull from that url, and display in the div or whatever. pretty simple ajax stuff. But the tricky part is if I continue to click on the button it doesnt replace the existing picture, it just appends on the next picture to the list each time the button is clicked. Any of you guru's care to help me figure this out?
[jQuery] Re: jQuery core charset???????????(please help!!!!me!)
Hi Mike, Then: There are not way to do a ajax call with charset iso8859¿? I can not add any header or something like that beforeSubmit in order to force iso8859 instead Of utf-8 ¿? My problem is I can not change the charset of asp pages which recives the ajax call. I feel a little bit idiot!!! On 3 jun, 19:28, Mike Alsup [EMAIL PROTECTED] wrote: I always recommend going full utf when you have this kind of problem... Same here. jQuery is only going to submit UTF-8 because it uses encodeURIComponent (as it should). If you need a different charset on the server then that's where you'll need to convert it. Mike
[jQuery] Re: Can JQuery do this?
Your syntax for $.get is wrong. What exactly does generate.cfm return? --Erik On 6/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks for the tips! Actually I am trying to create a list of pictures, not replace the image. I am thinking something like this but it is failing: $('#files_list').after($.get('generate.cfm')); Must be something small... On Jun 4, 1:03 am, Erik Beeson [EMAIL PROTECTED] wrote: Hard to say for sure without seeing the code. Sounds like you're appending a new image element? You could instead just update the src attribute of the image tag in question: img id=the_image src=original_image.png/ var newImageURL = 'new_image.png'; // load new image URL from somewhere $('#the_image').attr('src', newImageURL); --Erik On 6/3/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm pretty sure it can since jquery is so sweet, but here's what I am trying to do: I have a page (call it generator.cfm) that pulls random pictures from a database. I want a button or link I can click on and have it pull from that url, and display in the div or whatever. pretty simple ajax stuff. But the tricky part is if I continue to click on the button it doesnt replace the existing picture, it just appends on the next picture to the list each time the button is clicked. Any of you guru's care to help me figure this out?
[jQuery] Re: Can JQuery do this?
it just returns some html (actually just a random image tag img src=something.jpg) What I want to do is take and add whatever image the ajax call returns and add it to the list... maybe it is better to just return the name of the image and then use jquery to actually add the img tag? I think I am getting close. On Jun 4, 1:44 am, Erik Beeson [EMAIL PROTECTED] wrote: Your syntax for $.get is wrong. What exactly does generate.cfm return? --Erik On 6/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks for the tips! Actually I am trying to create a list of pictures, not replace the image. I am thinking something like this but it is failing: $('#files_list').after($.get('generate.cfm')); Must be something small... On Jun 4, 1:03 am, Erik Beeson [EMAIL PROTECTED] wrote: Hard to say for sure without seeing the code. Sounds like you're appending a new image element? You could instead just update the src attribute of the image tag in question: img id=the_image src=original_image.png/ var newImageURL = 'new_image.png'; // load new image URL from somewhere $('#the_image').attr('src', newImageURL); --Erik On 6/3/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm pretty sure it can since jquery is so sweet, but here's what I am trying to do: I have a page (call it generator.cfm) that pulls random pictures from a database. I want a button or link I can click on and have it pull from that url, and display in the div or whatever. pretty simple ajax stuff. But the tricky part is if I continue to click on the button it doesnt replace the existing picture, it just appends on the next picture to the list each time the button is clicked. Any of you guru's care to help me figure this out?
[jQuery] Re: Can JQuery do this?
I'm confused. I thought in your first post you said you didn't want it to append, and now it seems like you're saying you do? At any rate, the syntax for get is documented here: http://docs.jquery.com/Ajax#.24.get.28_url.2C_params.2C_callback_.29 In your case, it would be something like this: $.get('generate.cfm', function(data) { $('#files_list').after(data); }); But again, I'm not quite sure what you're looking for, and I'm going to bed now :) Check out the API for more help. In particular, it seems like the Manipulation section could be useful for you: http://docs.jquery.com/DOM/Manipulation Good luck! --Erik On 6/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: it just returns some html (actually just a random image tag img src=something.jpg) What I want to do is take and add whatever image the ajax call returns and add it to the list... maybe it is better to just return the name of the image and then use jquery to actually add the img tag? I think I am getting close. On Jun 4, 1:44 am, Erik Beeson [EMAIL PROTECTED] wrote: Your syntax for $.get is wrong. What exactly does generate.cfm return? --Erik On 6/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks for the tips! Actually I am trying to create a list of pictures, not replace the image. I am thinking something like this but it is failing: $('#files_list').after($.get('generate.cfm')); Must be something small... On Jun 4, 1:03 am, Erik Beeson [EMAIL PROTECTED] wrote: Hard to say for sure without seeing the code. Sounds like you're appending a new image element? You could instead just update the src attribute of the image tag in question: img id=the_image src=original_image.png/ var newImageURL = 'new_image.png'; // load new image URL from somewhere $('#the_image').attr('src', newImageURL); --Erik On 6/3/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm pretty sure it can since jquery is so sweet, but here's what I am trying to do: I have a page (call it generator.cfm) that pulls random pictures from a database. I want a button or link I can click on and have it pull from that url, and display in the div or whatever. pretty simple ajax stuff. But the tricky part is if I continue to click on the button it doesnt replace the existing picture, it just appends on the next picture to the list each time the button is clicked. Any of you guru's care to help me figure this out?
[jQuery] Re: Can JQuery do this?
Sorry for the confusion, yes, I do want it to append. Thanks for the help, I'll try some of this stuff. Nite! On Jun 4, 1:57 am, Erik Beeson [EMAIL PROTECTED] wrote: I'm confused. I thought in your first post you said you didn't want it to append, and now it seems like you're saying you do? At any rate, the syntax for get is documented here:http://docs.jquery.com/Ajax#.24.get.28_url.2C_params.2C_callback_.29 In your case, it would be something like this: $.get('generate.cfm', function(data) { $('#files_list').after(data); }); But again, I'm not quite sure what you're looking for, and I'm going to bed now :) Check out the API for more help. In particular, it seems like the Manipulation section could be useful for you:http://docs.jquery.com/DOM/Manipulation Good luck! --Erik On 6/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: it just returns some html (actually just a random image tag img src=something.jpg) What I want to do is take and add whatever image the ajax call returns and add it to the list... maybe it is better to just return the name of the image and then use jquery to actually add the img tag? I think I am getting close. On Jun 4, 1:44 am, Erik Beeson [EMAIL PROTECTED] wrote: Your syntax for $.get is wrong. What exactly does generate.cfm return? --Erik On 6/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks for the tips! Actually I am trying to create a list of pictures, not replace the image. I am thinking something like this but it is failing: $('#files_list').after($.get('generate.cfm')); Must be something small... On Jun 4, 1:03 am, Erik Beeson [EMAIL PROTECTED] wrote: Hard to say for sure without seeing the code. Sounds like you're appending a new image element? You could instead just update the src attribute of the image tag in question: img id=the_image src=original_image.png/ var newImageURL = 'new_image.png'; // load new image URL from somewhere $('#the_image').attr('src', newImageURL); --Erik On 6/3/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm pretty sure it can since jquery is so sweet, but here's what I am trying to do: I have a page (call it generator.cfm) that pulls random pictures from a database. I want a button or link I can click on and have it pull from that url, and display in the div or whatever. pretty simple ajax stuff. But the tricky part is if I continue to click on the button it doesnt replace the existing picture, it just appends on the next picture to the list each time the button is clicked. Any of you guru's care to help me figure this out?
[jQuery] Re: PNG hack that works for repeated background images?
pd schrieb: Hello I've been trying to implement this 'plugin' 'hack': http://khurshid.com/jquery/iepnghack/ to get a repeated background effect in IE6 and decent browsers. It appears this plugin does not work with repeated background PNG images. Instead the image is shown just once. Can anybody confirm this as a limitation/bug? Does anyone have an alternative hack (preferably jQuery based) that can achieve repeated background PNG images? as i understand this it's a limitation of the hack / IE-workaround micha
[jQuery] Re: Multiple Selects
Hi, Thanks for your contribution - callbacks was something I knew needed adding, and I agree with your modification to passing in selectors rather than just IDs. At some point I'll release a new version with this and some other planned enhancements. --rob On 6/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I edited the Multiple Selects plugin, and thought the author could use it for any future releases. All I did was made it so you're not restricted to IDs for the selectors, and added a callback so you can interact with the moved items. All credit goes to Rob Desbois /** * Multiple Selects - jQuery plugin for converting a multiple select into two, adding the ability to move items between the boxes. * http://code.google.com/p/jqmultiselects/ * * Copyright (c) 2007 Rob Desbois * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Version: 0.1 */ /** * Adds multiple select behaviour to a select element. * This allows options to be transferred to a different select using mouse double-clicks, or multiple options at a time via another element. * * @example $('#my_select_left').multiSelect('#my_select_right'); * @desc Sets up double-clicks on #my_select_left's options to move the option to #my_select_right * @example $('#my_select_left').multiSelect('#my_select_right', '#my_move_right_button'); * @desc Sets up double-clicks as above and also sets up #my_move_right_button to transfer multiple elements on click. * @example $('#my_select_left').multiSelect('#my_select_right', '#my_move_right_button',function(){ * //callback here * }); * @desc Allows for a callback to be executed once a transfer has been made. * * @example * table *tr * tdselect id=select_left multiple=multiple size=6 * optionItem 1/option * optionItem 2/option * optionItem 3/option * optionItem 4/option * /select/td * * td * pa id=options_right href=# * img src=arrow_right.gif alt=gt; / * /a/p * * pa id=options_left href=# * img src=arrow_left.gif alt=lt; / * /a/p * /td * * tdselect id=select_right multiple=multiple size=6 * optionItem 5/option * optionItem 6/option * optionItem 7/option * optionItem 8/option * /select/td */tr * /table * * script type=text/javascript!-- * $(function() { *$(#select_left).multiSelect($(#select_right),$ (#options_right),function(){ alert(I have an ajax call here, which sends the right select elements to the server);}); *$(#select_right).multiSelect($(#select_left),$ (#options_left)); * }); * // --/script */ jQuery.fn.multiSelect = function(to,button,thecallback) { return this.each(function() { var self = this; jQuery(this).dblclick(function(){ moveOptions(self,to); }); if (typeof button!=undefined) jQuery(button).click(function(){ moveOptions(self,to); }); }); function moveOptions(from,to) { var dest = jQuery(to)[0]; jQuery(option:selected,from).each(function() { jQuery(this) .attr(selected,false) .appendTo(dest); if (thecallback) thecallback(); }); } function callback() { } }; -- Rob Desbois Eml: [EMAIL PROTECTED] Tel: 01452 760631 Mob: 07946 705987 There's a whale there's a whale there's a whale fish he cried, and the whale was in full view. ...Then ooh welcome. Ahhh. Ooh mug welcome.
[jQuery] Re: FIX: Firefox throwing NS_ERROR_XPC_JS_THREW_STRING when using input.focus()
On Jun 1, 2007, at 9:14 PM, Dan G. Switzer, II wrote: This apparently is a bug in the code relating to Firefox's native autocomplete functionality and can be worked around by adding the attribute autocomplete=off to the elements. NOTE: This doesn't happen every time, it's a seemingly random occurrence. For more detail on the problem, see this link: http://www.activewidgets.com/javascript.forum.3865.1/finally-solved- ns_error _xpc_js_threw_string.html I had similar problem before with jEditable. As you said, fix was: i.setAttribute('autocomplete','off'); there is more info about bug in: https://bugzilla.mozilla.org/show_bug.cgi?id=236791 -- Mika Tuupola http://www.appelsiini.net/~tuupola/
[jQuery] Re: How to remove links from Interface Slideshow?
Try use CSS in the class or ID or find the container of 123456 and use $('.nameofcontainer').hide() 2007/6/4, Rick Faircloth [EMAIL PROTECTED]: Hi, all... I'm using the Eyecon Interface Slideshow plug-in. I'm using it simply to display images that fade one to another without wanting the user to click any links or control the images. I'm trying to remove the image links: 123456, but when I remove the options (and these are options), I get errors. ??? Thanks, Rick -- Mário Alberto Chaves Moura [EMAIL PROTECTED] 31-9157-6000
[jQuery] Re: How to remove links from Interface Slideshow?
Try use CSS in the class or find the container of 123456 and use $('.nameofcontainer').hide() Mario 2007/6/4, Rick Faircloth [EMAIL PROTECTED] : Hi, all... I'm using the Eyecon Interface Slideshow plug-in. I'm using it simply to display images that fade one to another without wanting the user to click any links or control the images. I'm trying to remove the image links: 123456, but when I remove the options (and these are options), I get errors. ??? Thanks, Rick -- Mário Alberto Chaves Moura [EMAIL PROTECTED] 31-9157-6000
[jQuery] update input name
I have a code to clone a input. After that I need to change the id and name it... seems that change id works fine but not the name: jQuery(#+inputID,addedItem).attr(id,newInputID); - works ok jQuery(#+inputID,addedItem).attr(name,newInputID); - seems doesn't work Any idea?
[jQuery] How to point Thickbox3 links in an iframe to the iframe's container
Hi, I have set up an image on a html page (pageA), which when clicked opens up a Thickbox iframe(pageB). This iframe contains the contents of an html file including links to other pages in my site. When these links are clicked, the resulting html page is loaded within the iframe. What do I need to do to have the links open in the original html page (pageA)? Another way of putting it: the links in the thickbox cause a page to load in the thickbox. I want those links to close the thickbox and then open their pages underneath the thickbox. Is this possible? What do I need to do? thanks for any help... n00bert -- View this message in context: http://www.nabble.com/How-to-point-Thickbox3-links-in-an-iframe-to-the-iframe%27s-container-tf3863202s15494.html#a10944160 Sent from the jQuery Plugins mailing list archive at Nabble.com.
[jQuery] Re: update input name
If your code is exactly that (the two lines one after the other), this is normal the second one does not work, as $(#+inputID) does not exist anymore... Did you try this : jQuery(#+inputID,addedItem).attr(id,newInputID); jQuery(#+newinputID,addedItem).attr(name,newInputID); or jQuery(#+inputID,addedItem).attr(id,newInputID).attr (name,newInputID); ?
[jQuery] Re: How to point Thickbox3 links in an iframe to the iframe's container
On 6/4/07, n00bert wrote: Another way of putting it: the links in the thickbox cause a page to load in the thickbox. I want those links to close the thickbox and then open their pages underneath the thickbox. Is this possible? What do I need to do? I've been doing this using window.top.my_function(), to trigger a function in the main window. In ThickBox 3, you can then call tb_remove() to close the thickbox right before or after the action is executed. -- rodrigo
[jQuery] Bug? $('#foo #bar')
jQuery 1.1.2 Selectors such as this $('#foo #bar') throwing error when it can't find any matches. Is it a known bug? TIA -- ?php echo 'Just another PHP saint'; ? Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/
[jQuery] Re: datePicker v2 beta
I've had an issue in Firefox2.0 using the plugin with the 'clickInput' option turned on. When the input field has the focus, clicking on it to display the datePicker will work, but over the top of that will be Firefox's drop-down box showing previous inputs to that field. The solution I've used is to do this: $(#dateFrom) .datePicker(dpOptions) .click(function() { this.blur(); }); Don't know if anyone else has a better suggestion? Not sure if it would be appropriate to make this default behaviour for the plugin but it's there as a suggestion anyway :-) --rob On 6/1/07, Chris W. Parker [EMAIL PROTECTED] wrote: On Friday, June 01, 2007 1:11 PM gee said: E.g., instead of: Start date: [text input] [.png] The display appears as: Start date: [text input][.png] I gather it has something to do with using a float in the style declaration for a.dp-choose-date. Before I wade into experimenting with alternate style declarations, I am wondering if anyone else has already come up with a different markup that allows a label, text input, and date selector button to appear on the same line. I figured it out... :) In my case the solution was already stated on the demo page. :( You need to take the styles a.dp-choose-date, a.dp-choose-date.dp-disabled, and input.dp-applied from demo.css (or copied from the bottom of his demo page) into your datePicker.css file. You can keep the files separate but I prefer to keep all the datePicker styles in one file since I always use the icon. Hope this helps! Chris. -- Rob Desbois Eml: [EMAIL PROTECTED] Tel: 01452 760631 Mob: 07946 705987 There's a whale there's a whale there's a whale fish he cried, and the whale was in full view. ...Then ooh welcome. Ahhh. Ooh mug welcome.
[jQuery] Re: Bug? $('#foo #bar')
The bug is repaired in 1.1.3a - Original Message - Subject: [jQuery] Bug? $('#foo #bar') Date: Mon, 04 Jun 2007 04:42:48 -0700 From: R. Rajesh Jeba Anbiah jQuery 1.1.2 Selectors such as this $('#foo #bar') throwing error when it can't find any matches. Is it a known bug? TIA -- Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/ -- Best Regards, José Francisco Rives Lirola sevir1ATgmail.com SeViR CW · Computer Design http://www.sevir.org Murcia - Spain
[jQuery] Find set of questions
$('ol.ol1 li') // returns a complete set of list elements containing quiz results... Some of the results contain correct answers, some incorrect answers... The indicator would be another list contaiing the choices and assigned classes: .correctchosen or .correctnotchosen How do I filter the set so that it returns the set of correct list elements? I want $('ol.ol1 li'), but only those that contain at a deepter level of the DOM, another li.correctchosen Something like: $('ol.ol1 li').filter('go inside the li, looking for li.correctchosen') Sam
[jQuery] Re: How to point Thickbox3 links in an iframe to the iframe's container
Simply using target=_top ou target=_parent as your links target attributes does not work? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of n00bert Sent: lundi 4 juin 2007 6:56 To: jquery-en@googlegroups.com Subject: [jQuery] How to point Thickbox3 links in an iframe to the iframe's container Hi, I have set up an image on a html page (pageA), which when clicked opens up a Thickbox iframe(pageB). This iframe contains the contents of an html file including links to other pages in my site. When these links are clicked, the resulting html page is loaded within the iframe. What do I need to do to have the links open in the original html page (pageA)? Another way of putting it: the links in the thickbox cause a page to load in the thickbox. I want those links to close the thickbox and then open their pages underneath the thickbox. Is this possible? What do I need to do? thanks for any help... n00bert -- View this message in context: http://www.nabble.com/How-to-point-Thickbox3-links-in-an-iframe-to-the-ifram e%27s-container-tf3863202s15494.html#a10944160 Sent from the jQuery Plugins mailing list archive at Nabble.com. Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.472 / Base de données virus: 269.8.7/830 - Date: 3/06/2007 12:47
[jQuery] select value lost after clone in IE
It seems that after a jQuery clone(), the value of select boxes are lost in IE (but not Firefox). Try this out: div select option value=0one/option option value=1 selected='selected'two/option /select /div $(function(){ $('div').clone(true).appendTo('body'); }); The first option will be selected in the cloned select. Doing something like this fixes the problem (as long as there is only one select box), though I suspect there needs to be a better fix in jQuery explicitly: $(function(){ var old = $('div'); var clone = old.clone(true); var select_val = $('select', old).val(); $('select', clone).val(select_val); clone.appendTo('body'); }); Cheers, Jesse www.thefutureoftheweb.com
[jQuery] Re: massive jquery memory leak in firefox 2.x: load() or empty()?
Shure no problem with the example but there is not much space left for having a bug in the callback method: code /* request action incl. dom manipulation */ $(html).css({overflow: -moz-scrollbars-vertical}); /* prevent flickering */ $(#invoicetable).empty() $(#invoicetable).append('div style=text-align:center; padding: 220px 0 0;Daten werden geladen...br /img src=./site/images/ loadingAnimation.gifbr //div'); $(#invoicetable).load(invoice-table.php, {v: v, kunde: kunde}, function() { $(html).css({overflow: auto}); /* prevent flickering */ } ); /code so this is .empty(); .append() and .load() with a callback function that is very short having one .css(). thanks so far, mot On 29 Mai, 17:25, Jonathan Sharp [EMAIL PROTECTED] wrote: Can you provide an online example? The issue may be in your callback method. Cheers, -Jonathan On 5/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I assume this is a memory leak: $(#id).empty(); $(#id).load(url, params, callback) increases more and more the memory usage of firefox even if the content is replaced (in my case about 0.5mb per request). since the dev mailinglist did not work for me I post it in here. any sugestions? is this problme related to .empty() or to .load()? -- mot
[jQuery] Setting class=error with validate plugin.
http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Lets assume I have following HTML tr td class=label label for=date class=requiredSome date:/label /td td input type=text class=text {required:true} name=date id=date / /td /tr Now what I want to happen is that when form fails validation (date is empty), label for date gets class error added. In my case I do not want customized error messages. Just change class of the label of the input. There must be a simple way to do it. I just cant seem to find it... -- Mika Tuupola http://www.appelsiini.net/~tuupola/
[jQuery] Re: Bug? $('#foo #bar')
On Jun 4, 4:52 pm, SeViR [EMAIL PROTECTED] wrote: The bug is repaired in 1.1.3a snip Oh, cool. Thanks -- ?php echo 'Just another PHP saint'; ? Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/
[jQuery] Re: Find set of questions
Not certain I understand your requirements exactly, but try one of the following: $('ol.ol1 li.correctchosen'); or $('ol.ol1 li').find('.correctchosen'); Does that help? --rob On 6/4/07, SamCKayak [EMAIL PROTECTED] wrote: $('ol.ol1 li') // returns a complete set of list elements containing quiz results... Some of the results contain correct answers, some incorrect answers... The indicator would be another list contaiing the choices and assigned classes: .correctchosen or .correctnotchosen How do I filter the set so that it returns the set of correct list elements? I want $('ol.ol1 li'), but only those that contain at a deepter level of the DOM, another li.correctchosen Something like: $('ol.ol1 li').filter('go inside the li, looking for li.correctchosen') Sam -- Rob Desbois Eml: [EMAIL PROTECTED] Tel: 01452 760631 Mob: 07946 705987 There's a whale there's a whale there's a whale fish he cried, and the whale was in full view. ...Then ooh welcome. Ahhh. Ooh mug welcome.
[jQuery] Re: Multiple Selects
A suggestion would be to transform this plugin into one more unobstrusive or accesible. I mean, in HTML exists already a way for Multi selection (in fact, two ways) in a form: * Using HTML INPUT type checkboxes * Using HTML multipleSelect with one or more rows visible... Ok, then this plugin should convert any of them into a two multiple select HTML where one copies elements/options to the other (so this metaphor its more usable and visual than previous HTML methods) and blah, blah, (your plugin behavior...) So, if no javascript is permited in client browser, at least the multiple selection exists in the FORM, and if javascript is activated a jquery plugin convert it into a more usable/visual widget form. What do you think? -- Enrique Meléndez Estrada (2367) Servicios Informáticos Organización y Servicios Internos Instituto Tecnológico de Aragón
[jQuery] Re: select value lost after clone in IE
Could you please create a new ticket for this? Thanks. -- Brandon Aaron On 6/4/07, Jesse Skinner [EMAIL PROTECTED] wrote: It seems that after a jQuery clone(), the value of select boxes are lost in IE (but not Firefox). Try this out: div select option value=0one/option option value=1 selected='selected'two/option /select /div $(function(){ $('div').clone(true).appendTo('body'); }); The first option will be selected in the cloned select. Doing something like this fixes the problem (as long as there is only one select box), though I suspect there needs to be a better fix in jQuery explicitly: $(function(){ var old = $('div'); var clone = old.clone(true); var select_val = $('select', old).val(); $('select', clone).val(select_val); clone.appendTo('body'); }); Cheers, Jesse www.thefutureoftheweb.com
[jQuery] Re: Multiple Selects
Those are good suggestions - unfortunately (for you!) I developed this for my own purposes; I have a known target user group, so I know that they will have JS enabled, thus developing for graceful degradation was not one of my driving forces. In its current state I've released it in the form I used it, however as people begin to find it and make these good suggestions I will, as I find time, enhance it to make it more generally appropriate for other users. Thanks again! --rob On 6/4/07, Enrique Meléndez Estrada [EMAIL PROTECTED] wrote: A suggestion would be to transform this plugin into one more unobstrusive or accesible. I mean, in HTML exists already a way for Multi selection (in fact, two ways) in a form: * Using HTML INPUT type checkboxes * Using HTML multipleSelect with one or more rows visible... Ok, then this plugin should convert any of them into a two multiple select HTML where one copies elements/options to the other (so this metaphor its more usable and visual than previous HTML methods) and blah, blah, (your plugin behavior...) So, if no javascript is permited in client browser, at least the multiple selection exists in the FORM, and if javascript is activated a jquery plugin convert it into a more usable/visual widget form. What do you think? -- Enrique Meléndez Estrada (2367) Servicios Informáticos Organización y Servicios Internos Instituto Tecnológico de Aragón -- Rob Desbois Eml: [EMAIL PROTECTED] Tel: 01452 760631 Mob: 07946 705987 There's a whale there's a whale there's a whale fish he cried, and the whale was in full view. ...Then ooh welcome. Ahhh. Ooh mug welcome.
[jQuery] plugin tablesorter - sort date
is this plugin capable of sorting other date formats than uk / us ? i tried 'de_DE' (01.01.2000) but it (seems to) fallback to string sorting. micha
[jQuery] Re: How to remove links from Interface Slideshow?
Hi, Mario and thanks for the reply. Your approach worked fine. I ended up with this code after the js for the slide show: script type=text/javascript $(document).ready (function() { $('.slideshowLinks').hide(); }) /script The only remaining problem now is the Next Slide and Previous Slide links. They were still showing and I thought I would use your technique again, so I modified the code above as follows: script type=text/javascript $(document).ready (function() { $('.slideshowLinks').hide(); $('.slideshowNextSlide').hide(); $('.slideshowPrevslide').hide(); }) /script That didnt work because each time a new image is shown, the a href links for the next and previous slide are recreated using new data. How would I cause this code to run each time an image is changed so the Next and Previous links are hidden, too? Thanks for your help. Rick From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mario Moura Sent: Monday, June 04, 2007 7:04 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: How to remove links from Interface Slideshow? Try use CSS in the class or ID or find the container of 123456 and use $('.nameofcontainer').hide() 2007/6/4, Rick Faircloth mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]: Hi, all... I'm using the Eyecon Interface Slideshow plug-in. I'm using it simply to display images that fade one to another without wanting the user to click any links or control the images. I'm trying to remove the image links: 123456, but when I remove the options (and these are options), I get errors. ??? Thanks, Rick -- Mário Alberto Chaves Moura [EMAIL PROTECTED] 31-9157-6000
[jQuery] how to load an HTML in a div and to display it from a certain subheadline (jump to anchor)
Hello, I have several big files (about 8) and each of them has Subheadlines marked with anchors. ON another file I have a table of contents including all subheadlines as links, and I would like, when clicking on one of the links to open it in a DIV below the table of contents, the whole HTML refered but scrolled down exaclty to the selected Subheadline. If possible, would be great if that headline to be also highlighted temporary until something else is selected. I am using this code: $('.explinks a').click(function(){ $.get($(this).attr('href'),function(x){$('#continut').html(x);}); $('.colapsabil').each(function(i){$('tr:gt(0)',$(this)).hide();}); return false; }); 1. explinks is the class I apply to the td which includes the links I need to work this way, as some TD will contain files do download so it should not open like this. 2. continut is the ID of the DIV I need to load my content to. The issue is that somehow the anchor details are ignored and the html files are loaded always at the top not scrolled down to the specified anchor.. a href=details/filename.html#121 Can you please advise? Thank you Anca
[jQuery] Re: jQuery loaded dinamically
Any hint about it? -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ It's easier to invent the future than to predict it. -- Alan Kay
[jQuery] Re: how to load an HTML in a div and to display it from a certain subheadline (jump to anchor)
Me again, Any idea how I can display LOADING before the content is displayed in my DIV? Thank you Anca
[jQuery] Re: update input name
Sorry I did a mistake when I copied te code. I have the code like jQuery(#+inputID,addedItem).attr(id,newInputID); - works ok jQuery(#+newInputID,addedItem).attr(name,newInputID); - doens't work On 4 jun, 13:25, arnaud sellenet [EMAIL PROTECTED] wrote: If your code is exactly that (the two lines one after the other), this is normal the second one does not work, as $(#+inputID) does not exist anymore... Did you try this : jQuery(#+inputID,addedItem).attr(id,newInputID); jQuery(#+newinputID,addedItem).attr(name,newInputID); or jQuery(#+inputID,addedItem).attr(id,newInputID).attr (name,newInputID); ?
[jQuery] Getting the numeric value of the top attribute of an object
I would like to dynamically get the numeric value for the top of an object. I'm using this code: var inventoryObj = $('#inventory'); inventoryObj.css('top'); But it just returns auto. 1) Am I using the correct method? 2) If so, is there a different method that I can use to get the value that I need? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp
[jQuery] Re: update input name
$('#one').attr({ 'name': 'two', 'id': 'two' }); On Jun 4, 8:24 am, oscar esp [EMAIL PROTECTED] wrote: Sorry I did a mistake when I copied te code. I have the code like jQuery(#+inputID,addedItem).attr(id,newInputID); - works ok jQuery(#+newInputID,addedItem).attr(name,newInputID); - doens't work On 4 jun, 13:25, arnaud sellenet [EMAIL PROTECTED] wrote: If your code is exactly that (the two lines one after the other), this is normal the second one does not work, as $(#+inputID) does not exist anymore... Did you try this : jQuery(#+inputID,addedItem).attr(id,newInputID); jQuery(#+newinputID,addedItem).attr(name,newInputID); or jQuery(#+inputID,addedItem).attr(id,newInputID).attr (name,newInputID); ?
[jQuery] Re: Plugin to link words/phrases
My latest attempt tries to handle if the unlink file is missing and uses a linkTopicsOnce setting: (function($) { $.fn.extend({ linktopics: function( settings ) { var self = this; this.settings = $.extend({}, $.linktopics.defaults, settings); this.topics = null; this.trimTopics = function () { for ( var i = 0; i self.topics.length; i++ ) { var allowed = true; for ( var j = 0, numStopLinks = self.stopLinks.length; j numStopLinks; j++ ) { if ( self.stopLinks[j] == self.topics[i].topic ) { allowed = false; break; } } if ( ! allowed ) { void( self.topics.splice( i, 1 ) ); } } }; this.setupRegexes = function () { for ( var i = 0, numTopics = self.topics.length; i numTopics; i+ + ) { self.topics[i].linked = false; self.topics[i].strings.sort(function(a,b) { // longer strings come first if ( a.length b.length ) { return -1; } else if ( a.length b.length ) { return 1; } else { return 0; } }); self.topics[i].regexes = new Array(self.topics[i].strings.length); for ( var j = 0, numStrings = self.topics[i].strings.length; j numStrings; j++ ) { self.topics[i].regexes[j] = new RegExp( (^|\\W)( + self.topics[i].strings[j].replace( /([\[\]\(\)\.\*\$\^\?\+\\])/g, '\\ $1' ) + )((?!\\w)(?![^]*(?:|\\/a))) ); } } }; this.linkHtml = function () { self.each(function() { for ( var i = 0, numTopics = self.topics.length; i numTopics; i+ + ) { if ( self.topics[i].linked == false ) { for ( var j = 0, numRegexes = self.topics[i].regexes.length; j numRegexes; j++ ) { if ( $(this).html().search( self.topics[i].regexes[j] ) != -1 ) { $(this).html( $ (this).html().replace( self.topics[i].regexes[j], '$1a rel=topic title=Topic: ' + self.topics[i].topic + ' href=' + self.topics[i].link + '$2\/a$3' ) ); if ( self.settings.linkTopicsOnce ) { self.topics[i].linked = true; break; } } } } } }); }; $.getJSON( self.settings.topicLinkJsonUrl, function(json) { if ( typeof json.topics == object ) { self.topics = json.topics; self.stopLinks = new Array(); $.ajax({ type: GET, url: self.settings.topicUnlinkJsonUrl, dataType: json, success: function(json){ if ( typeof json.stoplinks == object ) { self.stopLinks = json.stoplinks;
[jQuery] Re: Getting the numeric value of the top attribute of an object
Is top set? What does firebug/ie developer say? Are you looking for it's placement? You might want to use the dimensions plugin, which can give exact placement. Glen On 6/4/07, Andy Matthews [EMAIL PROTECTED] wrote: I would like to dynamically get the numeric value for the top of an object. I'm using this code: var inventoryObj = $('#inventory'); inventoryObj.css('top'); But it just returns auto. 1) Am I using the correct method? 2) If so, is there a different method that I can use to get the value that I need? * Andy Matthews *Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com
[jQuery] OT: Run PHP code inline on a Coldfusion page
For those of you who don't know, Coldfusion is built upon Java. Someone has taken it upon themselves to write a Java library, called Quertus, which parses PHP code. Someone else then built upon THAT and wrote a Coldfusion library which references the Quertus library and allows you to combine PHP and Coldfusion code on the same page, pass variables back and forth to each other and more. http://corfield.org/blog/index.cfm/do/blog.entry/entry/ColdFusion_8_running_ PHP I don't know what the speed is (probably not as fast as the native zend interpreter, but still...PHP code mixed in with CF code is pretty kick ass. I read that someone else has done the same thing for Ruby. Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp
[jQuery] Re: Getting the numeric value of the top attribute of an object
Right...I thought about using dimensions, but I don't think we're explicitly setting top. So rather than loading in a plugin for only one usage location, I just went a different route. Thanks for the reply Glen. andy _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Monday, June 04, 2007 9:41 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Getting the numeric value of the top attribute of an object Is top set? What does firebug/ie developer say? Are you looking for it's placement? You might want to use the dimensions plugin, which can give exact placement. Glen On 6/4/07, Andy Matthews [EMAIL PROTECTED] wrote: I would like to dynamically get the numeric value for the top of an object. I'm using this code: var inventoryObj = $('#inventory'); inventoryObj.css('top'); But it just returns auto. 1) Am I using the correct method? 2) If so, is there a different method that I can use to get the value that I need? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/
[jQuery] Re: NEWS: HTML entity lookup tool built in jQuery
That's VERY nice. Wish the text was a little smaller. You have to scroll too much to get to the bottom of the list. Very well done though. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Monday, June 04, 2007 9:42 AM To: jQuery Discussion Subject: [jQuery] NEWS: HTML entity lookup tool built in jQuery Ajaxian had an article about a very cool HTML entity lookup tool: http://ajaxian.com/archives/an-entity-lookup-that-helps When I checked it out, low and behold it was using jQuery. Direct Link: http://leftlogic.com/lounge/articles/entity-lookup/ Great work, Left Logic! Rey... -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com
[jQuery] Re: OT: Run PHP code inline on a Coldfusion page
I don't know what the speed is (probably not as fast as the native zend interpreter, but still...PHP code mixed in with CF code is pretty kick ass. I read that someone else has done the same thing for Ruby. it sure is a big mess in the end :-) micha
[jQuery] Re: jQuery core charset???????????(please help!!!!me!)
hi thanks for the this more elaborate explanation. I still have one question though. Where do I specify my charset so make the change in response header, in the output from the php file that I am using to query with GET or in the ajax call itself to this php file, which I suppose would be using beforeSubmit? I hope you would reply to this rather mundane question for you. Thanks again On Jun 4, 3:32 am, Bil Corry [EMAIL PROTECTED] wrote: joomlafreak wrote on 6/3/2007 8:20 PM: I don't know if it should be utf-8 or something anywhere in this. I read on this thread or some other thread that the javascript will deal with this encoding in utf-8. Where you see the following in the response header: Content-Type: text/html It should be this in order for the browser to correctly use the charset being sent: Content-Type: text/html; charset=ISO-8859-1 I set up a little test, curious to see how the browsers would handle various charsets on one page: http://www.corry.biz/charset/ What you're looking at is four .load()s, each one specifying (or not) the charset of the text. The text is the same for all four, but in their respective charsets. I also have the em-dash in both UTF-8 and Windows-1252 in all four as well. Testing it with FF2 and IE7, I see that not specifying a charset in the response header defaults to UTF-8. Specifying it as the correct charset causes it to work properly. Specifying ISO-8859-1 but including the extended chars from Windows-1252 (smart quotes, em-dash, etc) causes FF2 to render the text as Windows-1252 even though ISO-8859-1 was specified. However, IE7 is less forgiving and (correctly) renders the em-dash as an unknown character (em-dash doesn't exist in ISO-8859-1!). So if you're serving ISO-8859-1, it's probably better to serve it using Windows-1252 as the charset so that both FF2 and IE7 will render the characters the same when those sneaky smart quotes slip in (ala copypaste from Word). - Bil
[jQuery] Re: jQuery core charset???????????(please help!!!!me!)
ok I read bout it and found it. It has to included in the php file I am calling. Will test it now. thanks a lot On Jun 4, 11:03 am, joomlafreak [EMAIL PROTECTED] wrote: hi thanks for the this more elaborate explanation. I still have one question though. Where do I specify my charset so make the change in response header, in the output from the php file that I am using to query with GET or in the ajax call itself to this php file, which I suppose would be using beforeSubmit? I hope you would reply to this rather mundane question for you. Thanks again On Jun 4, 3:32 am, Bil Corry [EMAIL PROTECTED] wrote: joomlafreak wrote on 6/3/2007 8:20 PM: I don't know if it should be utf-8 or something anywhere in this. I read on this thread or some other thread that the javascript will deal with this encoding in utf-8. Where you see the following in the response header: Content-Type: text/html It should be this in order for the browser to correctly use the charset being sent: Content-Type: text/html; charset=ISO-8859-1 I set up a little test, curious to see how the browsers would handle various charsets on one page: http://www.corry.biz/charset/ What you're looking at is four .load()s, each one specifying (or not) the charset of the text. The text is the same for all four, but in their respective charsets. I also have the em-dash in both UTF-8 and Windows-1252 in all four as well. Testing it with FF2 and IE7, I see that not specifying a charset in the response header defaults to UTF-8. Specifying it as the correct charset causes it to work properly. Specifying ISO-8859-1 but including the extended chars from Windows-1252 (smart quotes, em-dash, etc) causes FF2 to render the text as Windows-1252 even though ISO-8859-1 was specified. However, IE7 is less forgiving and (correctly) renders the em-dash as an unknown character (em-dash doesn't exist in ISO-8859-1!). So if you're serving ISO-8859-1, it's probably better to serve it using Windows-1252 as the charset so that both FF2 and IE7 will render the characters the same when those sneaky smart quotes slip in (ala copypaste from Word). - Bil
[jQuery] Re: jQuery core charset???????????(please help!!!!me!)
Oscar, JavaScript provides native encoding capabilities for UTF-8 only. jQuery's ajax functionality merely uses the native encodeURIComponent method that JavaScript provides. If your server depends on processing 8859 then you need to do one of the following: 1. Do not use ajax for these pages. 2. Add support in the ASP page to convert UTF-8 into 8859. 3. Write your own JavaScript encoder to convert the data before sending it on the client. Setting headers on the client using beforeSubmit or beforeSend does not do anything to effect how the data is encoded. jQuery prepares ajax data in $.param and if you look at that method you will see that uses encodeURIComponent unconditionally. In my opinion, server pages that an not capable of processing or converting UTF-8 data are not good candidates for ajax targets. Mike Hi Mike, Then: There are not way to do a ajax call with charset iso8859¿? I can not add any header or something like that beforeSubmit in order to force iso8859 instead Of utf-8 ¿? My problem is I can not change the charset of asp pages which recives the ajax call. I feel a little bit idiot!!! On 3 jun, 19:28, Mike Alsup [EMAIL PROTECTED] wrote: I always recommend going full utf when you have this kind of problem... Same here. jQuery is only going to submit UTF-8 because it uses encodeURIComponent (as it should). If you need a different charset on the server then that's where you'll need to convert it. Mike
[jQuery] Re: NEWS: HTML entity lookup tool built in jQuery
Thanks for picking this up guys. @Andy - I'll add an option over the next couple of days to compress the output - something that allows you to see more without having to scroll. On Jun 4, 3:48 pm, Andy Matthews [EMAIL PROTECTED] wrote: That's VERY nice. Wish the text was a little smaller. You have to scroll too much to get to the bottom of the list. Very well done though. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Monday, June 04, 2007 9:42 AM To: jQuery Discussion Subject: [jQuery] NEWS: HTML entity lookup tool built in jQuery Ajaxian had an article about a very cool HTML entity lookup tool: http://ajaxian.com/archives/an-entity-lookup-that-helps When I checked it out, low and behold it was using jQuery. Direct Link: http://leftlogic.com/lounge/articles/entity-lookup/ Great work, Left Logic! Rey... -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED]://www.iambright.com
[jQuery] Re: jQuery core charset???????????(please help!!!!me!)
jQuery's ajax functionality merely uses the native encodeURIComponent method that JavaScript provides. I should also mention that ALL the major JS libraries (dojo, YUI, Prototype, Moo, etc) use this same technique. Mike
[jQuery] $.post not load why?
I want to load news in my html page from a php script from another site. I have included this script in my html page, but not work, maybe I'm wrong using $.post? $(document).ready(function(){ $.post(http://www.othersite.it/news.php;, function(data){ $(#response).append(data).show('fast'); }); }); div id=response/div -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ It's easier to invent the future than to predict it. -- Alan Kay
[jQuery] Re: $.post not load why?
Massimiliano Marini ha scritto: I want to load news in my html page from a php script from another site. I have included this script in my html page, but not work, maybe I'm wrong using $.post? $(document).ready(function(){ $.post(http://www.othersite.it/news.php;, function(data){ $(#response).append(data).show('fast'); }); }); div id=response/div ajax can't work cross domain by design for security reasons. Renato
[jQuery] Re: jQuery core charset???????????(please help!!!!me!)
joomlafreak wrote on 6/4/2007 8:03 AM: I hope you would reply to this rather mundane question for you. Thanks again I know you found the answer; the reason I didn't provide it is because I don't use PHP, so I'm unfamiliar with how headers are set within it. - Bil
[jQuery] Re: $.post not load why?
ajax can't work cross domain by design for security reasons. There's no other method, workaround or something else? -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ It's easier to invent the future than to predict it. -- Alan Kay
[jQuery] Re: $.post not load why?
Depends on what you are trying to do, if you can run php on your server, you can pull in the external site and the use ajax to reference that php page. On 6/4/07, Massimiliano Marini [EMAIL PROTECTED] wrote: ajax can't work cross domain by design for security reasons. There's no other method, workaround or something else? -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ It's easier to invent the future than to predict it. -- Alan Kay -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Re: $.post not load why?
Depends on what you are trying to do, if you can run php on your server, you can pull in the external site and the use ajax to reference that php page. Not always php is present, I want to include a script and a div in html page, the script must populate the div querying a .php file in another server. Only this. I'm curious about your solution, how can I implement it? -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ It's easier to invent the future than to predict it. -- Alan Kay
[jQuery] Question about jQuery effects and append method
Hi! I'm making js script which allows to create div floating windows. I want to use jQuery + interface but I met with difficulties. I create html code with js: function createWindow() { var windowId = '#test'; var htmlW = 'div id='+windowId+' class=windowdiv class=windowTopdiv class=windowTopContentWindow example/ divimg src=images/window_min.jpg class=windowMin /img src=images/window_max.jpg class=windowMax /img src=images/ window_close.jpg class=windowClose //divdiv class=windowBottomdiv class=windowBottomContentnbsp;/div/ divdiv class=windowContentpbla 1/ppbla 2/ppbla 3/p/ divimg src=images/window_resize.gif class=windowResize // div'; $(htmlW).appendTo(body); if($(windowId).css('display') == 'none') { $(windowId).DropInRight(1000); } } Unfortunately it doesn't work ;/ I read about $(document).ready (http://docs.jquery.com/Tutorials:Introducing_%24%28document%29.ready %28%29) and ... Is there any chance to generate html code in js then append it to body and add effects etc. to it?
[jQuery] JQuery hide/show bug in Safari
hi all. im having a few problems with a safari bug with a jquery hide/show div.. please click on the core-approach section here. http://www.fifthcorner.co.uk/build/fraser/index.php?s=about it loads correctly but when you click hide, then show, the div reappears, then jumps to the top left. there is a [ margin-left:-200px; ] applied to this div (called .wrapper) that may be confusing safari. if anyone has any ideas or solutions, please let me know.. it works in all other browsers. cheers, - josh - PS: dont ask about the IFRAMES, its a quick fix to a last minute 'amend' to the site :P
[jQuery] Re: Plugin to link words/phrases
Michael Edmondson ha scritto: I am working on writing a plugin that, given a list of words/phrases, will link text. That sounds so ... less than spectacular. The concept is similar to those in-text ads, except without the popups/bubbles. (Even less spectacular-sounding.) I was wondering if there already existed a plugin for this or similar functionality. I was also wondering if it would be of interest to anyone else. you can give a look at the SearchHighlight plugin (http://www.jquery.info/spip.php?article50). It is search related but using the keys option can do what you want. Ciao Renato
[jQuery] Re: NEWS: HTML entity lookup tool built in jQuery
Right... More of a suggestion than a criticism Remy...it's a great idea, and extremely well implemented. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Remy Sharp Sent: Monday, June 04, 2007 10:17 AM To: jQuery (English) Subject: [jQuery] Re: NEWS: HTML entity lookup tool built in jQuery Thanks for picking this up guys. @Andy - I'll add an option over the next couple of days to compress the output - something that allows you to see more without having to scroll. On Jun 4, 3:48 pm, Andy Matthews [EMAIL PROTECTED] wrote: That's VERY nice. Wish the text was a little smaller. You have to scroll too much to get to the bottom of the list. Very well done though. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Monday, June 04, 2007 9:42 AM To: jQuery Discussion Subject: [jQuery] NEWS: HTML entity lookup tool built in jQuery Ajaxian had an article about a very cool HTML entity lookup tool: http://ajaxian.com/archives/an-entity-lookup-that-helps When I checked it out, low and behold it was using jQuery. Direct Link: http://leftlogic.com/lounge/articles/entity-lookup/ Great work, Left Logic! Rey... -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED]://www.iambright.com
[jQuery] Re: TableSorter question
Try using something similar to the following: // TableSorter $('.reportTable').tableSorter({ sortColumn: 'date', // Integer or String of the name of the column to sort by. sortDir: 2, // Change the default sort direction to 2 (descending) sortClassAsc: 'headerSortUp', // Class name for ascending sorting action to header sortClassDesc: 'headerSortDown',// Class name for descending sorting action to header headerClass: 'header', // Class name for headers (th's) stripingRowClass: ['even','odd'],// Class names for striping supplyed as a array. stripeRowsOnStartUp: true, // Strip rows on tableSorter init. }); Notice the sortColumn and sortDir values. sortColumn takes a value based on the text between a th and /th. sortDir is defaulted to 0, and is used in a trinary operator to determine the default sort direction based on 'dir % 2', which basically says take the number 'dir' divide it by 2 and if 1, 'true' is the remainder then sort ascending, otherwise sort descending. Setting it to 2 reseults in a remainder of 0, 'false' so the default sort direction is now descending. I hope this helps. -- Michael Chris W. Parker wrote: I want my table to be sorted in the opposite direction that it's currently being sorted in when TableSorter does its first sort. I can't find a switch to do that but perhaps I'm not seeing it. Anyone know what it's called or should I just add my own? -- View this message in context: http://www.nabble.com/TableSorter-question-tf3548948s15494.html#a10953966 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] AjaxExperience 2007 Presentation
http://ajaxexperience.techtarget.com/west/html/speakers.html#GLipka http://ajaxexperience.techtarget.com/west/html/sessions.html#GLipkajQuery Personally, I think it's a fluke. The conference is most about Ajax, so I sent in a proposal about Experience. Insane huh? I haven't spoken to a crowd since last millennium. I am super nervous about it. I received a refer-a-friend code, but I am not sure if they will honor it because I am getting a refund. I asked about it and will post it if they approve. Proceeds to jQuery, of course. Hmm, since I saved my boss $1300, maybe he could donate some to jQuery? Worth a shot. Anyway, please send me comments on the presentation and things you might like to see in it. Glen
[jQuery] SOT : CurvyCorners Plugin Issue in IE
I tried to post this question on the CurvyCorner forum, but it wouldn't let me activate my registration, so I thought I'd try here in the hopes that other users of the plugin can offer some insight. The plugin works great in Firefox and IE6 (my test browsers for now), but in IE, as soon as I add an opacity value to the container the rounded corners disappear and I'm left with just the original container. In Firefox, the opacity doesn't bother the plugin at all. What I have is an unordered list item (not a div) whose corners are to be rounded. The corners are rounded nicely and, at this point, looks exactly the same as in Firefox. I then apply filter: alpha(opacity=85) to the li (opacity=.85 in Firefox). Firefox handles the property fine, but IE just drops the elements that create the corners. Any idea why the application of an opacity property would have such a dramatic effect? Is there any way to avoid this (while maintaining the opacity specification)? Any thoughts would be greatly appreciated. Rob Wilkerson
[jQuery] Re: SOT : CurvyCorners Plugin Issue in IE
I have had alot of problems with the different curved corners scripts. In IE, I find that it requires a background-color or image to work properly. Then I also find that IE6 acts strange in certain float:left situations, but I can't put my finger on it. Glen On 6/4/07, Rob Wilkerson [EMAIL PROTECTED] wrote: I tried to post this question on the CurvyCorner forum, but it wouldn't let me activate my registration, so I thought I'd try here in the hopes that other users of the plugin can offer some insight. The plugin works great in Firefox and IE6 (my test browsers for now), but in IE, as soon as I add an opacity value to the container the rounded corners disappear and I'm left with just the original container. In Firefox, the opacity doesn't bother the plugin at all. What I have is an unordered list item (not a div) whose corners are to be rounded. The corners are rounded nicely and, at this point, looks exactly the same as in Firefox. I then apply filter: alpha(opacity=85) to the li (opacity=.85 in Firefox). Firefox handles the property fine, but IE just drops the elements that create the corners. Any idea why the application of an opacity property would have such a dramatic effect? Is there any way to avoid this (while maintaining the opacity specification)? Any thoughts would be greatly appreciated. Rob Wilkerson
[jQuery] Re: Bug? $('#foo #bar')
More importantly, why are you using two ID's? Remember, ID's are supposed to be unique, so just $('#bar') should work. If your ID's aren't unique, I highly suggest you change them to classes. ~Sean
[jQuery] script killing IE
I have this script that is absolutely killing IE, but works fine in FF. I wish I could post the working model, but it's behind our firewall. Here's the script: $(function(){ bindResults = function(){ $('#sbmsdata_1 a').click(function(){ $('#sbmsdata_1 img').attr('src','/images/sbms/folderclosed.gif'); $('img', $(this).parent().prev()).attr('src','/images/sbms/ folderopen.gif'); var linkval = $(this).attr('href'); $(this).blur(); $('#sbmsitems').load(linkval, function(){ $('a', this).click(function(){ $(this).blur(); return false; }); }); return false; }); } var openfolder = 'none'; loadSubjects = function(scope){ $('a', scope).click(function(){ $('img','#sbmsdata_0').attr('src','/images/sbms/folderclosed.gif'); var linkval = $(this).attr('href'); $.post(linkval, function(j){ $('table#sbmsdata_1').remove(); $('#sbmsitems').empty(); $(placement).append(j); bindResults(); }); $(this).blur(); var placement = $(this).parent(); $('img', $(this).parent().prev()).attr('src','/images/sbms/ folderopen.gif'); $(this).unbind(); $(this).click(function(){ $('img','#sbmsdata_0').attr('src','/images/sbms/ folderclosed.gif'); $('table#sbmsdata_1').remove(); $('#sbmsitems').empty(); $(this).unbind(); $(this).blur(); loadSubjects($(this).parent()); return false; }); if (openfolder != 'none'){ $('a', openfolder).unbind(); loadSubjects(openfolder); } openfolder = $(this).parent(); return false; }); } loadSubjects('#sbmssubjects'); });
[jQuery] Eliminating a plugin instance
A typical plugin pattern is $.fn.plugin = function( options ) { ... this.each(function() { var elem = this; new $.plugin(elem, options); }); return this; }; and to call the plugin $(function() { $(#my_id).plugin(options); }); How would I go about deleting the plugin instance so that I can set up a new plugin instance like this: $(#elem).click(function() { var new_options = { ... }; $(#my_id).plugin(new_options); }); If I follow this exactly I end up with two instance of plugin, conflicting with each other so I need to eliminate the first one before setting up the plugin again. Any ideas ? thanks jose
[jQuery] Re: Question about jQuery effects and append method
A good place to start here would be to wrap your DOM elements in $(), so it would look like this: var htmlW = $('div id='+windowId+' class=windowdiv class=windowTopdiv class=windowTopContentWindow example/ divimg src=images/window_min.jpg class=windowMin /img src=images/window_max.jpg class=windowMax /img src=images/ window_close.jpg class=windowClose //divdiv class=windowBottomdiv class=windowBottomContentnbsp;/div/ divdiv class=windowContentpbla 1/ppbla 2/ppbla 3/p/ divimg src=images/window_resize.gif class=windowResize //div'); then call your createWindow function within document.ready: $(document).ready(createWindow); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 4, 2007, at 12:34 PM, radzio wrote: Hi! I'm making js script which allows to create div floating windows. I want to use jQuery + interface but I met with difficulties. I create html code with js: function createWindow() { var windowId = '#test'; var htmlW = 'div id='+windowId+' class=windowdiv class=windowTopdiv class=windowTopContentWindow example/ divimg src=images/window_min.jpg class=windowMin /img src=images/window_max.jpg class=windowMax /img src=images/ window_close.jpg class=windowClose //divdiv class=windowBottomdiv class=windowBottomContentnbsp;/div/ divdiv class=windowContentpbla 1/ppbla 2/ppbla 3/p/ divimg src=images/window_resize.gif class=windowResize // div'; $(htmlW).appendTo(body); if($(windowId).css('display') == 'none') { $(windowId).DropInRight(1000); } } Unfortunately it doesn't work ;/ I read about $(document).ready (http://docs.jquery.com/Tutorials:Introducing_%24%28document%29.ready %28%29) and ... Is there any chance to generate html code in js then append it to body and add effects etc. to it?
[jQuery] Re: script killing IE
So I have determined that it's dying when I unbind and bind a new click function to that item. Where it starts: $(this).unbind();$ (this).click(function(){... When I commented this out, it works (of course it doesn't have that second click function). On Jun 4, 10:28 am, Shelane [EMAIL PROTECTED] wrote: I have this script that is absolutely killing IE, but works fine in FF. I wish I could post the working model, but it's behind our firewall. Here's the script: $(function(){ bindResults = function(){ $('#sbmsdata_1 a').click(function(){ $('#sbmsdata_1 img').attr('src','/images/sbms/folderclosed.gif'); $('img', $(this).parent().prev()).attr('src','/images/sbms/ folderopen.gif'); var linkval = $(this).attr('href'); $(this).blur(); $('#sbmsitems').load(linkval, function(){ $('a', this).click(function(){ $(this).blur(); return false; }); }); return false; }); } var openfolder = 'none'; loadSubjects = function(scope){ $('a', scope).click(function(){ $('img','#sbmsdata_0').attr('src','/images/sbms/folderclosed.gif'); var linkval = $(this).attr('href'); $.post(linkval, function(j){ $('table#sbmsdata_1').remove(); $('#sbmsitems').empty(); $(placement).append(j); bindResults(); }); $(this).blur(); var placement = $(this).parent(); $('img', $(this).parent().prev()).attr('src','/images/sbms/ folderopen.gif'); $(this).unbind(); $(this).click(function(){ $('img','#sbmsdata_0').attr('src','/images/sbms/ folderclosed.gif'); $('table#sbmsdata_1').remove(); $('#sbmsitems').empty(); $(this).unbind(); $(this).blur(); loadSubjects($(this).parent()); return false; }); if (openfolder != 'none'){ $('a', openfolder).unbind(); loadSubjects(openfolder); } openfolder = $(this).parent(); return false; }); } loadSubjects('#sbmssubjects'); });
[jQuery] Re: Bug? $('#foo #bar')
here we go again... :-) I replied to a similar question regarding specifying an ID inside of a class a few days ago. same thing applies to ID inside an ID... This paragraph from the reference section of the upcoming Learning jQuery book might help explain why someone would want or need to preselect a class first. It discusses specifying a tag name rather than a class, but the same principle applies: It might not be immediately clear why someone might want to specify a tag name associated with a particular id, since that id needs to be unique anyway. However, some situations in which parts of the DOM are user-generated may require a more specific expression to avoid false positives. Furthermore, when the same script is run on more than one page, it might be necessary to identify the id's element, since the pages could be associating the same id with different elements. For example, Page A might have h1 id='title' while Page B has h2 id='title'. Hope that makes sense. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 4, 2007, at 1:28 PM, Sean Catchpole wrote: More importantly, why are you using two ID's? Remember, ID's are supposed to be unique, so just $('#bar') should work. If your ID's aren't unique, I highly suggest you change them to classes. ~Sean
[jQuery] Re: AjaxExperience 2007 Presentation
Ahh, they are cool with it. Use this code when you sign up to donate $50 to jQuery. RAF318 Glen On 6/4/07, Glen Lipka [EMAIL PROTECTED] wrote: http://ajaxexperience.techtarget.com/west/html/speakers.html#GLipka http://ajaxexperience.techtarget.com/west/html/sessions.html#GLipkajQuery Personally, I think it's a fluke. The conference is most about Ajax, so I sent in a proposal about Experience. Insane huh? I haven't spoken to a crowd since last millennium. I am super nervous about it. I received a refer-a-friend code, but I am not sure if they will honor it because I am getting a refund. I asked about it and will post it if they approve. Proceeds to jQuery, of course. Hmm, since I saved my boss $1300, maybe he could donate some to jQuery? Worth a shot. Anyway, please send me comments on the presentation and things you might like to see in it. Glen
[jQuery] Slideshow with unknown amount of images
Hi there, this is more a general question than a jQuery based one, but maybe jQuery really is the thing to implement this. I have to create a slideshow with an unknown amount of images. The person that is managing the content doesn't want to edit any source code or something when uploading new images, so the best method would be to just cycle a whole directory of images, at least if I want to avoid server side scripting. Is this possible in any way using JavaScript and/or jQuery? I fear it's not, but maybe you have a hint or something. Thanks in advance, Arne
[jQuery] jqBrowser and, why no email?
Hey all, First off I stopped receiving emails from the list a while back. I have unsubscribed/re-subscribed but still nothing. My settings say I'm supposed to receive emails on each post. Is there something else I can do to get the emails going again? Secondly, I tried out the jqBrowser plugin, but it seems to cause conflicts with jQuery. Is there perhaps a backward-compatible issue, as the last update to jqBrowser looks to be from June last year? Anyone got this working? -- Josh
[jQuery] Jquery wizard plugin?
Hey just wondering if theres a plugin similar to dojo's wizard plugin?
[jQuery] Re: QuickTime control bar disappearing after .remove() and .load()
Aaron, I've found that it is somewhat unreliable to add object elements using innerHTML. For my media plugin I resorted to using DOM methods to add media in IE. For an example, look at the generate method at the bottom of this file: http://malsup.com/jquery/media/jquery.media.js Mike On 6/4/07, Aaron Scott [EMAIL PROTECTED] wrote: http://www.andcuriouser.com/sandbox/jqueryqt/test.html Contents of test.html: script src=thickbox/jquery-latest.pack.js type=text/javascript/ script script type=text/javascript function swapMovie() { $(#TB_movie).remove(); $(body).append(div id='TB_movie'/div); $(#TB_movie).load(test-movie.html); } // swapMovie() /script body a onclick=swapMovie();Swap the movie/a /body Contents of test-movie.html: object classid=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B codebase=http://www.apple.com/qtactivex/qtplugin.cab; width=500 height=500 param name=src value=serve/sample.mov / param name=controller value=true / param name=autoplay value=false / !--[if !IE]-- object type=video/quicktime data=serve/sample.mov width=500 height=500 param name=autoplay value=false / param name=controller value=true / /object !--![endif]-- /object The bug: In Firefox, everything works as expected: the QuickTime is removed, and then replaced. In IE, however, when the QuickTime is replaced, it appears sans control bar. This appears in both IE6 and IE7, and it doesn't seem to matter whether you use the Embed or Object methods to display the movie. If anyone knows why this is happening, or knows of a workaround, I'd greatly appreciate some insight.
[jQuery] Re: jqBrowser and, why no email?
I'm not sure about list emails. It's working for me... Have you tried this plugin: http://www.alterform.com/resources/jqbrowser-2 --Erik On 6/4/07, JoshN [EMAIL PROTECTED] wrote: Hey all, First off I stopped receiving emails from the list a while back. I have unsubscribed/re-subscribed but still nothing. My settings say I'm supposed to receive emails on each post. Is there something else I can do to get the emails going again? Secondly, I tried out the jqBrowser plugin, but it seems to cause conflicts with jQuery. Is there perhaps a backward-compatible issue, as the last update to jqBrowser looks to be from June last year? Anyone got this working? -- Josh
[jQuery] html() doesn't render html with select in it
Hello everyone, This code I wrote in October of 2006 using 1.0.x and it worked fine when I wrote it. $(#major_cats).change(function(){ $(#subcats).html(); $.post('sublist.mas' ,{ super_id: $(#major_cats).val(), market: 1, year: 2007 }, function(data) { $(#subcats).html(data); ///THIS LINE DOESN'T WORK IN 1.1.2 $(#minor_cats).change(function(){ document.location='lists/?minor_id=' + $(this).val(); }); }); }); I was called to this code because someone noticed it wasn't working any longer. We have upgraded to 1.1.2 and I thought that might be the problem. I tried downgrading, but no luck. I'm not sure how the code once worked, but it did, and it should still according to the docs. The post to sublist.mas returns the following: br clear=all/ select id=minor_cats option -- View Sub Category List --/option option value=4Advertising Agencies (1)/option option value=15Wireless Communication (1)/option option value=23Printing Companies/Copy Centers (1)/option option value=109Web Design/Hosting Companies (1)/option option value=128Film/Video Production Companies (1)/option option value=140Telecommunications Cos./Equipment/Retailers (1)/option option value=192Promotions Firms (1)/option /select This html is not rendered in the #subcats div, nor is an error thrown. The only way I have managed to get it working is to change this line: $(#subcats).html(data); to this: $(#subcats).get(0).innerHTML = data; This only seems to happen when the html to be rendered has a select in it. Has anyone else seen this problem? Thanks, Kevin
[jQuery] Re: Plugin to link words/phrases
@Renato Formato: Very nice. Perhaps DOM tree walking would be better than my blanket regex over HTML... Thanks.
[jQuery] Re: jqBrowser and, why no email?
Josh, -- First off I stopped receiving emails ... -- Your email address is bouncing back, make sure you can accept the jquery-en@googlegroups.com email address. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Re: Slideshow with unknown amount of images
My dog does that! Actually we do it for him... he just sits for pictures... I wrote a plugin http://jqueryjs.googlecode.com/svn/trunk/plugins/traverseDir/ that I use all over his site http://jpassoc.com/junior On 6/4/07, Arne-Kolja Bachstein [EMAIL PROTECTED] wrote: Hi there, this is more a general question than a jQuery based one, but maybe jQuery really is the thing to implement this. I have to create a slideshow with an unknown amount of images. The person that is managing the content doesn't want to edit any source code or something when uploading new images, so the best method would be to just cycle a whole directory of images, at least if I want to avoid server side scripting. Is this possible in any way using JavaScript and/or jQuery? I fear it's not, but maybe you have a hint or something… Thanks in advance, Arne -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
[jQuery] Re: Slideshow with unknown amount of images
Ⓙⓐⓚⓔ schrieb: My dog does that! Actually we do it for him... he just sits for pictures... I wrote a plugin http://jqueryjs.googlecode.com/svn/trunk/plugins/traverseDir/ http://jqueryjs.googlecode.com/svn/trunk/plugins/traverseDir/ that I use all over his site http://jpassoc.com/junior omg ! micha
[jQuery] Re: Slideshow with unknown amount of images
Nice! Is this still in development or ready to go? Glen On 6/4/07, Michael Stuhr [EMAIL PROTECTED] wrote: Ⓙⓐⓚⓔ schrieb: My dog does that! Actually we do it for him... he just sits for pictures... I wrote a plugin http://jqueryjs.googlecode.com/svn/trunk/plugins/traverseDir/ http://jqueryjs.googlecode.com/svn/trunk/plugins/traverseDir/ that I use all over his site http://jpassoc.com/junior omg ! micha
[jQuery] Re: Slideshow with unknown amount of images
Junior is 10 months old. the pages are some 3-4 months old. I've re-used the code many times!!! I hope it works well for everyone! On 6/4/07, Glen Lipka [EMAIL PROTECTED] wrote: Nice! Is this still in development or ready to go? Glen On 6/4/07, Michael Stuhr [EMAIL PROTECTED] wrote: Ⓙⓐⓚⓔ schrieb: My dog does that! Actually we do it for him... he just sits for pictures... I wrote a plugin http://jqueryjs.googlecode.com/svn/trunk/plugins/traverseDir/ http://jqueryjs.googlecode.com/svn/trunk/plugins/traverseDir/ that I use all over his site http://jpassoc.com/junior omg ! micha -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
[jQuery] Re: jQuery core charset???????????(please help!!!!me!)
Mike Alsup wrote on 6/4/2007 8:15 AM: 2. Add support in the ASP page to convert UTF-8 into 8859. I don't know if this will help, but here's all the Windows-1252 chars and their UTF-8 equivalents: http://corry.biz/conversion_chart.html - Bil
[jQuery] Re: script killing IE
Shelane, First, you should be able to chain a few of your functions, ie: $(this).unbind().click(function()... Secondly, I may be misunderstanding the purpose of the .blur function but I don't think it will work the exact way you are using it: Note: This does not execute the blur method of the underlying elements! If you need to blur an element via code, you have to use the DOM method, eg. $(#myinput)[0].blur(); Sorry if I am not much help. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Re: QuickTime control bar disappearing after .remove() and .load()
I've found that it is somewhat unreliable to add object elements using innerHTML. For my media plugin I resorted to using DOM methods to add media in IE. For an example, look at the generate method at the bottom of this file: http://malsup.com/jquery/media/jquery.media.js Thanks for your suggestion. I'm fairly new to jQuery, so I appreciate some patience. I assume that .html() and .append() are DOM functions, while .load() uses innerHTML? I tried to test things out this way (IE-only Object method): script src=thickbox/jquery-latest.pack.js type=text/javascript/ script body divAbove movie/div div id='TB_movie'/div divBelow movie/div script type=text/javascript var o = object classid=\clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B \ codebase=\http://www.apple.com/qtactivex/qtplugin.cab\; width= \200\ height=\100\param name=\src\ value=\serve/sample.mov\ / param name=\controller\ value=\true\ /param name=\autoplay\ value=\false\ //object; // $(#TB_movie).append(o); $(#TB_movie).html(o); /script /body ... but if you check the results: http://www.andcuriouser.com/sandbox/jqueryqt/test2.html ... they're anything but what I'd expect. Not only do I not get the control bar, but I also get the QuickTime stuck in the top-left corner of the screen, though space is still reserved for it in the appropriate place.
[jQuery] Re: QuickTime control bar disappearing after .remove() and .load()
I assume that .html() and .append() are DOM functions, while .load() uses innerHTML? Sort of, but the dom manipulation methods all call clean which uses innerHTML so you're not really escaping that limitation. ... but if you check the results: http://www.andcuriouser.com/sandbox/jqueryqt/test2.html ... they're anything but what I'd expect. Not only do I not get the control bar, but I also get the QuickTime stuck in the top-left corner of the screen, though space is still reserved for it in the appropriate place. That problem that is fixed by using straight DOM code for creating the object and param elements. Mike
[jQuery] Re: script killing IE
The blur actually does work. All I needed the blur to do was not show that box around the clicked link. I have now completely reconfigured this script. I think I was making it too difficult. This now works in IE: $(function(){ bindResults = function(){ $('#sbmsdata_1 a').click(function(){ $('#sbmsdata_1 img').attr('src','/images/sbms/folderclosed.gif'); $('img', $(this).parent().prev()).attr('src','/images/sbms/folderopen.gif'); var linkval = $(this).attr('href'); $(this).blur(); $('#sbmsitems').load(linkval, function(){ $('a', this).click(function(){ $(this).blur(); return false; }); }); return false; }); } var openfolder = 'none'; loadSubjects = function(scope){ $('a', scope).click(function(){ $('table#sbmsdata_1').remove(); $('#sbmsitems').empty(); if($(this).is('.sbmsopen')){ $(this).removeClass('sbmsopen'); $('img','#sbmsdata_0').attr('src','/images/sbms/folderclosed.gif'); } else{ $('img','#sbmsdata_0').attr('src','/images/sbms/folderclosed.gif'); $('a','#sbmsdata_0').removeClass('sbmsopen'); var linkval = $(this).attr('href'); $.post(linkval, function(j){ $(placement).append(j); bindResults(); }); $(this).addClass('sbmsopen'); var placement = $(this).parent(); $('img', $(this).parent().prev()).attr('src','/images/sbms/folderopen.gif'); } $(this).blur(); return false; }); } loadSubjects('#sbmssubjects'); }); On 6/4/07 12:43 PM, Benjamin Sterling [EMAIL PROTECTED] wrote: Shelane, First, you should be able to chain a few of your functions, ie: $(this).unbind().click(function()... Secondly, I may be misunderstanding the purpose of the .blur function but I don't think it will work the exact way you are using it: Note: This does not execute the blur method of the underlying elements! If you need to blur an element via code, you have to use the DOM method, eg. $(#myinput)[0].blur(); Sorry if I am not much help.
[jQuery] JSON / PHP's json_encode()
Has nothing to do with jQuery directly, but there's alot of really great developers here, so maybe I'm missing something that someone else will catch... -- [json.js] { itemtitle1: function(){ alert(this is item title 1's callback); }, itemtitle2: function(){ alert(this is item title 2); } } -- This works great in Javascript- exactly how I want it -- mainscript.js $.getJSON(json.js,{}, function(json) { json.itemtitle1(); // fires the alert for itemtitle1 } ); -- The problem arises when I use the same json.js in my PHP script -- mainpage.php $json=json_decode(file_get_contents('json.js'),1); -- Note that if I change the function in json.js to a string of text or a boolean etc., then the php file works fine- for some reason it's not parsing my javascript function, even though that works [because JSON is an object, my json.js has a function named itemtitle1. I don't expect PHP to run or convert my function, but I need to be able to use json.js in my php script. Any ideas? Is this invalid JSON, even though it's valid javascript, or is it json_encode()'s fault?
[jQuery] Re: Jquery wizard plugin?
Link? On 6/4/07, sublimenal [EMAIL PROTECTED] wrote: Hey just wondering if theres a plugin similar to dojo's wizard plugin?
[jQuery] Re: malsup form plugin with bassistance validation plugin help
Matt2012 wrote: Im struggling to integrate the form plugin with the validation plugin [...] but since uploading the latest version of the validation plugin this does not work. Your code looks alright. Could you detail what exactly wents wrong? Maybe a testpage? It may be a regression in the validation plugin and I'd like to fix that as soon as possible. Your help is appreciated. -- Jörn Zaefferer http://bassistance.de
[jQuery] Re: update input name
oscar esp wrote: I have a code to clone a input. After that I need to change the id and name it... seems that change id works fine but not the name: jQuery(#+inputID,addedItem).attr(id,newInputID); - works ok jQuery(#+inputID,addedItem).attr(name,newInputID); - seems doesn't work Any idea? http://jquery.bassistance.de/api-browser/#attrStringObject Note that you can't set the name property of input elements in IE. Use $(html) or .append(html) or .html(html) to create elements on the fly including the name property. Maybe that helps. -- Jörn Zaefferer http://bassistance.de
[jQuery] Re: Eliminating a plugin instance
Jose wrote: A typical plugin pattern is [...] If I follow this exactly I end up with two instance of plugin, conflicting with each other so I need to eliminate the first one before setting up the plugin again. Any ideas ? It depends on what the plugin actually does. Most apply some event handlers which could be removed manually. In other cases it may suffice to add a hook allowing you to change options at runtime. -- Jörn Zaefferer http://bassistance.de
[jQuery] Re: Jquery wizard plugin?
Made a wizard, not really a plugin but more of a hack if anyone wants it feel free to take the code. Step css and graphics thanks to Cody Lindley http://codylindley.com/CSS/325/css-step-menu If you want the code you can get it here http://worcesterwideweb.com/jquery/wizard/ -Tony sublimenal wrote: Hey just wondering if theres a plugin similar to dojo's wizard plugin?