RE: [Proto-Scripty] Re: How to create a new DOM-element from a string?
Is it just me,... I don't understand what you're even asking/trying to accomplish? What kind of DOM object are you hoping to create? Call it a potayto, or a potahto but any element you insert the HTML into is a wrapper. Apologies if this seems terse but I truly do not understand your question/goal. -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Luke Sent: Tuesday, December 07, 2010 9:59 AM To: Prototype script.aculo.us Subject: [Proto-Scripty] Re: How to create a new DOM-element from a string? Hm ok, hoped there would be a way I could generate a DOM object that consists of just the HTML (without wrapper) and before I insert it. On Dec 7, 4:52 pm, Walter Lee Davis wa...@wdstudio.com wrote: That's because I called innerHTML on it at the end, and that returns a string. If you then want to create a new element out of that, you could try inserting it into your page somewhere with $('someElementOnYourPage').insert({after: foo}); Of you could just leave the innerHTML part off the end, which would leave foo populated with the outer wrapper object created by new Element... Walter On Dec 7, 2010, at 3:20 AM, Luke wrote: Hmm, damn. the returned value is still a string :( On Dec 7, 9:16 am, Luke kickingje...@gmail.com wrote: Thanks Walter! On Dec 6, 6:28 pm, Walter Lee Davis wa...@wdstudio.com wrote: On Dec 6, 2010, at 12:12 PM, Walter Lee Davis wrote: It's OT for this list, but have a look at Prototype.js. You can create a new DOM element in memory, and do all the things you want to it without ever showing it to the user. Sorry, this was completely bone-headed of me -- I thought I was on another list. Walter -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group athttp://groups.google.com/group/prototype-scriptaculous?hl=en . -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
RE: [Proto-Scripty] Re: can't get queues to work right
Glad you got it working but FWIW, Your understanding of the queues seems to be ok but something must be lost in the translation... is the Appear beginning *before* the Fade finishes if you use the queue? Your original message states that it Fades (and I read that to mean that the Fade completes) and then Appears. Unless something has changed in the library, afterFinish is fine but the queues were written for exactly this case. -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Raphael75 Sent: Wednesday, September 01, 2010 8:43 AM To: Prototype script.aculo.us Subject: [Proto-Scripty] Re: can't get queues to work right Thank you. I thought about trying that but I thought the queue was supposed to do the same thing. It's ok, you solved it. :) On Sep 1, 8:56 am, Peter De Berdt peter.de.be...@pandora.be wrote: On 01 Sep 2010, at 14:34, Raphael75 wrote: But isn't the queue supposed to handle that? I inserted the Fade first (queue: 'front') and then the Appear (queue: 'end'). Isn't that right? Or is there some other way to have the Appear wait to start until the Fade is finished? Use the afterFinish callback like so: var olstext = $('olstext'); olstext.fade({duration: 0.35, afterFinish: function() { olstext.update(Some new text); olstext.appear({duration: 0.5}); }}); Best regards Peter De Berdt -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
RE: [Proto-Scripty] invoke method update
This is weird... when FF renders this HTML for me it is putting the divs inside each other like the following. I have never seen this behavior before (but explains why the code is working like it is): div id=OUT div class=out out1 div class=out out2 ... /div /div /div -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of kstubs Sent: Wednesday, August 25, 2010 12:48 PM To: Prototype script.aculo.us Subject: [Proto-Scripty] invoke method update I'd expect all div.out containers to be updated with the value testing, but just getting the first one. What is wrong with the following code? Expected: testing testing testing testing Actual: testing The code: ul libutton onclick=$ ('OUT').select('div.out').invoke('update','testing');Test/button/ li /ul div id=OUT div class=out out1/ div class=out out2/ div class=out out3/ div class=out out4/ /div -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
RE: [Proto-Scripty] Morph and setTimeout
I'm pretty sure Ralph's suggestion will work. I prefer to write this in a way which will hopefully highlight the potential bug to a less-experienced maintenance developer after I have moved onto a 6-digit consulting career that I run two-hours a day from the Bahamas (boy, sure hope my idea works or that consulting career is a pipe-dream): var elid = 'masinfo' + id; setTimeout($(elid).show(),500,id); -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Ralph Brickley Sent: Tuesday, July 20, 2010 3:04 PM To: prototype-scriptaculous@googlegroups.com Subject: Re: [Proto-Scripty] Morph and setTimeout JavaScript doesn't know what the +id is because it's within the double quotes. Do this instead setTimeout($('masinfo'+id+).show(),500,id); } Sent from my iPhone On Jul 20, 2010, at 12:59 PM, Martín Marqués martin.marq...@gmail.com wrote: I'm trying to mix Effect.Morph and setTimeout() to enlarge a div and after the div finishes enlargening another div inside it appears (this is where I use setTimeout()). The problema is that I get a error and can't find out why. Here is the code: function expandir(id,newh){ new Effect.Morph('cont'+id, { style: 'height:'+newh+'px;', // CSS Properties duration: 0.5 // Core Effect properties }); setTimeout($('masinfo'+id).show(),500,id); } Here it says that id is not defined in the setTimeout line. Any ideas? -- Martín Marqués select 'martin.marques' || '@' || 'gmail.com' DBA, Programador, Administrador -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
RE: [Proto-Scripty] Morph and setTimeout
Oops, already made a mistake; Make that: var cmd = $('masinfo' + id + ).show(); setTimeout(cmd,500,id); -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Rick.Wellman Sent: Tuesday, July 20, 2010 3:42 PM To: prototype-scriptaculous@googlegroups.com Subject: RE: [Proto-Scripty] Morph and setTimeout I'm pretty sure Ralph's suggestion will work. I prefer to write this in a way which will hopefully highlight the potential bug to a less-experienced maintenance developer after I have moved onto a 6-digit consulting career that I run two-hours a day from the Bahamas (boy, sure hope my idea works or that consulting career is a pipe-dream): var elid = 'masinfo' + id; setTimeout($(elid).show(),500,id); -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Ralph Brickley Sent: Tuesday, July 20, 2010 3:04 PM To: prototype-scriptaculous@googlegroups.com Subject: Re: [Proto-Scripty] Morph and setTimeout JavaScript doesn't know what the +id is because it's within the double quotes. Do this instead setTimeout($('masinfo'+id+).show(),500,id); } Sent from my iPhone On Jul 20, 2010, at 12:59 PM, Martín Marqués martin.marq...@gmail.com wrote: I'm trying to mix Effect.Morph and setTimeout() to enlarge a div and after the div finishes enlargening another div inside it appears (this is where I use setTimeout()). The problema is that I get a error and can't find out why. Here is the code: function expandir(id,newh){ new Effect.Morph('cont'+id, { style: 'height:'+newh+'px;', // CSS Properties duration: 0.5 // Core Effect properties }); setTimeout($('masinfo'+id).show(),500,id); } Here it says that id is not defined in the setTimeout line. Any ideas? -- Martín Marqués select 'martin.marques' || '@' || 'gmail.com' DBA, Programador, Administrador -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
RE: [Proto-Scripty] Ajax in IE7 vs. IE8
Sorry for this short reply which may not even be correct but... Usually the port number is considered part of the URL from the server session viewpoint so if you're trying to go back to a different port than the rest of your app uses, that could be a problem. [I may have butchered this explanation so someone able to use more specific jargon... feel free to help or even tell me I'm completely wrong.] From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: Friday, May 28, 2010 4:24 PM To: prototype-scriptaculous@googlegroups.com Subject: RE: [Proto-Scripty] Ajax in IE7 vs. IE8 It appears that IE7 doesn't like the port number added to the URL. Any thoughts on how to get around this? I have to have the port numbers. From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: Friday, May 28, 2010 3:08 PM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Ajax in IE7 vs. IE8 Ok this doesn't make any sense to me. The following code works in IE8 but not IE7. The Ajax calls never get fired according to my proxy software. I don't have the luxury of firebug since I am relegated to IE here at work. Any ideas? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head title/title style type=text/css .status{ margin-left: 10px; margin-right: 10px; width: 50px; } /style script type=text/javascript src=prototype.js/script script type=text/javascript var secs = 10; document.observe('dom:loaded', function(){ $('secs').update(secs); checkAll(); new PeriodicalExecuter(function() { checkAll() },secs); }); function check(num){ $('jetway0'+num).value ='...'; $('jetway0'+num).style.color='black'; new Ajax.Request(http://10.0.0.5:80+num+/shared/login.jsp;, { onSuccess: function(transport) { $('jetway0'+num).value ='Up'; $('jetway0'+num).style.color='green'; }, onFailure: function(transport){ $('jetway0'+num).value='Down'; $('jetway0'+num).style.color='red'; } }); } function checkAll(){ for (i=1; i=6; i++){ check(i); } } /script /head body Checks every span id=secs/spannbsp;seconds.br /br / Jetway01: input class=status id=jetway01/span style=text-decoration: underline; color: blue; cursor: hand; onclick=check(1)Refresh/spanbr / Jetway02: input class=status id=jetway02/span style=text-decoration: underline; color: blue; cursor: hand; onclick=check(2)Refresh/spanbr / Jetway03: input class=status id=jetway03/span style=text-decoration: underline; color: blue; cursor: hand; onclick=check(3)Refresh/spanbr / Jetway04: input class=status id=jetway04/span style=text-decoration: underline; color: blue; cursor: hand; onclick=check(4)Refresh/spanbr / Jetway05: input class=status id=jetway05/span style=text-decoration: underline; color: blue; cursor: hand; onclick=check(5)Refresh/spanbr / Jetway06: input class=status id=jetway06/span style=text-decoration: underline; color: blue; cursor: hand; onclick=check(6)Refresh/spanbr / br / span style=text-decoration: underline; color: blue; cursor: hand; onclick=checkAll()Refresh All/span /body /html -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
RE: [Proto-Scripty] Re: Hide or Remove non-HTML element from HTML
I've only partially followed this thread so apologies if this was suggested/shotdown. Can you wrap it with a well-formed HTML element? i.e. div (most likely) and remove it with javascript/prototype? -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Jelks Sent: Tuesday, April 20, 2010 10:36 AM To: Prototype script.aculo.us Subject: [Proto-Scripty] Re: Hide or Remove non-HTML element from HTML On Apr 20, 10:43 am, Jonathan Rosenberg j...@tabbysplace.org wrote: Ok, so I was too glib. Maybe it's not very simple. 1) Do you have control of the delivery of this document at the server side? Only somewhat. If I had total control, I would not be letting this AsyncExceptionError occured during AsyncInvocation./ AsyncException arrive in and pollute the document. 2) Is it well-formed XHTML? Yes. But it's served as text/html. 3) I'm not sure I understand what you're trying to do with this page while it's in a browser. JIs it just to remove the text node Yes, to remove that text node (with *or without* it's bogus ASYNCEXCEPTION and /ASYNCEXCEPTION apparently sibling nodes that IE creates from that XML snippet above) -- in order that I don't see this: Error occured during AsyncInvocation. at the top of the page in IE (no problem hiding it in Firefox/Chrome). Thanks, Jelks -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
RE: [Proto-Scripty] Ajax Updater running from a DVD under IE8
Um, maybe I'm whack, but... Doesn't an AJAX request need an HTTP server? Am I correct in understanding that you are just trying to distribute files/static content? -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Walter Lee Davis Sent: Tuesday, February 16, 2010 11:17 AM To: prototype-scriptaculous@googlegroups.com Subject: Re: [Proto-Scripty] Ajax Updater running from a DVD under IE8 Sorry to bump this so soon, but my client is getting itchy. Has anyone seen anything like this, where an Ajax Updater will not run in a local file context under IE8? No errors on screen, but no updated content, either. I've updated to 1.6.1, moved my call to the updater from a document.observe to a Yahoo-style script block before /body, to no avail. Thanks, Walter On Feb 15, 2010, at 6:59 PM, Walter Lee Davis wrote: I have a site that gets distributed on DVD as a portable library. IE8 users are complaining that an element I am loading into the home page using Ajax Updater is not appearing at all for them. The problem only seems to happen when the site is accessed from the DVD. If you visit the preview version of the site here: http://files.libertyfund.org/pll everything loads just fine under any browser. This site is using 1.6.0.3, I haven't updated it yet to 1.6.1, and I can't recall if there was any work done in this area between those two versions. Does this ring any bells for anyone? Is it going to be fix-able, or do you suspect it might be one of those IE features? Thanks in advance, Walter -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com . To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en . -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
RE: [Proto-Scripty] Re: Multiple timed slideshows
I am guessing that one of two things is true (maybe a little of both): 1) Though this is the correct forum, no response would mean that no one who reads this knows of boiler plate code. 2) I cannot imagine this is terribly different from code you've done before with small modifications. Is there some specific aspect of it that has you perplexed? -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of greyhound Sent: Monday, February 01, 2010 4:06 PM To: Prototype script.aculo.us Subject: [Proto-Scripty] Re: Multiple timed slideshows If I have posted this in the wrong section, please could someone give me a heads up? Thanks On Jan 31, 8:16 pm, greyhound b...@greyhound-computing.com wrote: Hi everyone, I have been using the script library to create simple slide shows with no problem. I have recently been asked to create 3 slideshows which fade in one after the other, very similar to this example (which is in Flash)http://www.rockarchive.com/(see the top 3 discs that rotate) Does anyone know of any examples as to how this could be achieved? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] RSS Feed
My apologies if there is a different forum to ask this, but when I originally signed up to this group I setup an RSS feed. I do not get regular RSS updates (actually I get none except the first) and was wondering if others are experiencing the same thing or if I need to investigate my client (the dreaded MS Outlook). I mainly suspect the server side because I am getting other RSS subscriptions. Rick Wellman Applications Programmer -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
RE: [Proto-Scripty] Blinddown IE7 problem
It seems to me that there is a comment somewhere that you need to put a container div within the div you are applying the effect to. i.e. div div ... all of your stuff ... /div /div Sorry I do not have time to find the original documentation and/or confirm but I am pretty sure I have come across undesired behavior with blindup/blinddown and this was necessary. HTH -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of drewB Sent: Wednesday, December 30, 2009 3:56 PM To: Prototype script.aculo.us Subject: [Proto-Scripty] Blinddown IE7 problem I develop using FF3 and have been testing my design on IE7. I have noticed a big problem with using blinddown / blindup. When it blinds down, the div overlaps the next div and at the end is shifted to the left (overlapping the div to the right of it). Once I move the mouse, things go back to normal. When I blind up the div often shifts to the right and items from the next div disappear (things don't go back to normal after moving the mouse). You can see a demo of it at http://67.214.211.38/demosite/member/demos/blinddown.html. Click on any of the Show Plan links to see the blind down and then click Hide Plan to blind up. I have found a hand full of posts about a similar problem but no resolutions that work for me: https://prototype.lighthouseapp.com/projects/8887/tickets/7-effect-blind up-and-effect-blinddown-not-rendering-properly-on-ie7 http://dev.rubyonrails.org/ticket/8710 Does anyone have advice about how to fix this? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
RE: [Proto-Scripty] Re: Blinddown IE7 problem
Ok, well that is all I got. I did notice that you had an unordered list outside of the div. Until you find the actual problem, I highly suggest putting everything inside the container. Good luck. div style=overflow: visible; div div class=action_plan heading_container h3 class=title Plan img class=clickable src=../../images/add_button.png alt=Add Task style=margin-left: 0.45em; title=Add Task/ a class=clickable style=font-size: 70%;Add Task/a /h3 /div /div ul class=steps_chbx ... /ul /div -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of drewB Sent: Wednesday, December 30, 2009 4:16 PM To: Prototype script.aculo.us Subject: [Proto-Scripty] Re: Blinddown IE7 problem That was first thought as well but it didn't end up making a difference. On Dec 30, 2:04 pm, Rick.Wellman rick.well...@kiewit.com wrote: It seems to me that there is a comment somewhere that you need to put a container div within the div you are applying the effect to. i.e. div div ... all of your stuff ... /div /div Sorry I do not have time to find the original documentation and/or confirm but I am pretty sure I have come across undesired behavior with blindup/blinddown and this was necessary. HTH -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of drewB Sent: Wednesday, December 30, 2009 3:56 PM To: Prototype script.aculo.us Subject: [Proto-Scripty] Blinddown IE7 problem I develop using FF3 and have been testing my design on IE7. I have noticed a big problem with using blinddown / blindup. When it blinds down, the div overlaps the next div and at the end is shifted to the left (overlapping the div to the right of it). Once I move the mouse, things go back to normal. When I blind up the div often shifts to the right and items from the next div disappear (things don't go back to normal after moving the mouse). You can see a demo of it athttp://67.214.211.38/demosite/member/demos/blinddown.html. Click on any of the Show Plan links to see the blind down and then click Hide Plan to blind up. I have found a hand full of posts about a similar problem but no resolutions that work for me:https://prototype.lighthouseapp.com/projects/8887/tickets/7-effect-blind up-and-effect-blinddown-not-rendering-properly-on-ie7http://dev.rubyonrails.org/ticket/8710 Does anyone have advice about how to fix this? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
RE: [Proto-Scripty] Issues selecting checkboxes in FF
Um,... I am pretty sure if you see that a checkbox is checked then it is checked. You gotta suspect your validation code ('cause it sounds like your validation code is checking a group of checkboxes to make sure that at least one is checked). -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of smartcookie Sent: Tuesday, December 15, 2009 2:18 PM To: Prototype script.aculo.us Subject: [Proto-Scripty] Issues selecting checkboxes in FF Hey there: Does anyone know a good way to programmably select or click on a checkbox input in FF? I have tried : el.down('input').checked = 'checked'; and el.down('input').onclick(); In the first code, I can see the checkboxes being checked, but when I submit, my error validation alerts that nothing is selected... Does anyone know another method.. Thanks -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Forms
$F() gets the *value* of the form element (i.e. a dropdown's value, the text in a text box, etc.) $() just gets the DOM element itself (so would return the dropdown, the text box, etc. respectively). [so also, using $F() on a non-form element is fairly pointless] -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: Thursday, October 29, 2009 10:28 AM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Re: Forms Then how is $F() any different than $()? Also, any idea why I can't get my form to submit. I have been all over Google and can't figure it out. -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Walter Lee Davis Sent: Thursday, October 29, 2009 10:24 AM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Re: Forms Try giving your form elements IDs to match their NAME property. I have always needed the ID to be set in order to get a value out of $F. Walter On Oct 29, 2009, at 11:08 AM, Russell Keith wrote: Ok, maybe I'm just being dense, but I am reading the API for forms and I am getting nothing from it. What is proper use of the $F utility and what can it do for me? I have read the Form.Element.getValue and it means nothing to me. I have this form: form name=createPDF action=/pdf/pdf_process.php method=POST input type=hidden name=A_NAME value=John / input type=hidden name=APPLY_DATE value=?=date(m/d/Y)? / input type=hidden name=A_BIRTH_DATE value=01/01/01 / input type=hidden name=L_NAME value=Jane / input type=hidden name=L_BIRTH_DATE value=01/01/01 / input type=hidden name=A_ACCOUNT value=1 / /form When I try to do alert($F('A_NAME')); I get an 'Object does not support this property or method' error. I get the same error when I try to submit the form with 'document.createPDF.submit();' is there something wrong with my form? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: $$ is a violation of Model-View-Controller
Though I consider javascript/prototype to be one of my weaker web app skills (which is why I like Prototype in the first place), I feel compelled to add to this discussion in that: While I certainly agree with the Use Case that you are describing (and the one referenced in the response) I guess I have been lucky enough to have never used $$() that way. However, I have used it (and will most likely continue to do so) to retrieve elements based on their CSS class selector. In fact, some of the page effects that I have been asked to implement rely on the use of $$(). So, IMHO, maybe it is better stated that $$() is part of the View in the MVC paradigm? Just like Struts is a Controller but many people use the Struts tags which are part of the View? -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of kangax Sent: Thursday, October 29, 2009 4:51 PM To: Prototype script.aculo.us Subject: [Proto-Scripty] Re: $$ is a violation of Model-View-Controller On Oct 29, 4:36 pm, JoJo tokyot...@gmail.com wrote: Is it poor practice to use $$? $$('#grandparent #parent tag.class'); I've been using $$ quite a lot because it has sped up DEVELOPMENT, but now I have realized that it will slow down MAINTENANCE. Recently, my boss asked me to move a whole div to another part of the page. Since I was accessing that div with $$, I was forced to change my JS along with my HTML. If I had accessed that div with $('elementID'), I would have only needed to edit my HTML. For this, I believe that $$ is a violation of the model-view- controller paradigm. HTML and CSS are the view. JS should be thought of as the controller. If you think about it, JS processes user input just like PHP, except on a livelier schedule. To make your website easier to implement, you should refrain from using $$ to describe the HTML structure. What are your thoughts? Yep. I came to the very same conclusion recently - http://stackoverflow.com/questions/1567496/jquery-anti-pattern-building-selectors-with-string-manipulation/1567743#1567743 -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---