[Proto-Scripty] Re: writeAttribute problem
you may be having an issue passing those arguments with the dot notation... you might also try setAttribute() i'm currently developing a set of helper methods that look like jquery but are used with prototype, we're dealing with this kind of thing lately. -Original Message- Date: Wednesday, March 04, 2009 6:21:27 pm To: "Prototype & script.aculo.us" From: "Quleczka" Subject: [Proto-Scripty] Re: writeAttribute problem Third option is maybe not the best one but you can always try simple $(a).b=c; Quleczka p.s. honestly I don't think it can be FF related issue --~--~-~--~~~---~--~~ 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: Creating Checked Radio buttons, not working in IE
On Mar 4, 7:13 pm, "Alex Mcauley" wrote: > Yes walter is correct... As far as i know you cannot insert an element into > another element if it does not exist in the DOM I guess that by "insert" you mean "append" (and that isn't what Walter said). > (as the element is still an > object that resides in memory at the time) .. though i could be wrong Yes, you are wrong. :-( -- Rob --~--~-~--~~~---~--~~ 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: writeAttribute problem
On Mar 5, 7:32 am, Lee Jenkins wrote: > Are there any known problems with writeAttribtue and FF3? I have a small > function: > > function(obj){ > Element.writeAttribute(obj.elname, obj.attr, obj.newValue); > > } > > It doesn't update the attribute. How did you determine that? Do you have a test case? > I also tried with literal values instead of > using the object's properties as params. Setting the value using dot notation > works however and both the dot notation and writeAttribute works on IE7. Don't use writeAttribute for attributes defined in HTML 4 for DOM elements where setting the dot property does the job. writeAttribute uses setAttribute which has known differences between browsers (e.g. when working with form controls, using setAttribute to set the value attribute will only change the value in IE, Firefox changes both the value and the defaultValue). setAttribute is intended to be a general way to set the value of attributes, not properties. While it works more or less interchangeably with the dot property 99% of the time, the few foibles mean that it's safter to only use it for setting attributes that aren't standard HTML 4 attributes (and use the dot property for everything else). -- Rob --~--~-~--~~~---~--~~ 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: writeAttribute problem
Quleczka wrote: > Third option is maybe not the best one but you can always try simple > > $(a).b=c; > > Quleczka > > p.s. honestly I don't think it can be FF related issue Well that's good to know. I'll keep trying. -- Warm Regards, Lee --~--~-~--~~~---~--~~ 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: writeAttribute problem
Third option is maybe not the best one but you can always try simple $(a).b=c; Quleczka p.s. honestly I don't think it can be FF related issue --~--~-~--~~~---~--~~ 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: writeAttribute problem
I've checked also Element.writeAttribute('username', 'id','testId'); and also worked in my browser --~--~-~--~~~---~--~~ 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: writeAttribute problem
> function(obj){ > Element.writeAttribute(obj.elname, obj.attr, obj.newValue); > > } > Isn't is Element.writeAttribute('obj.elname', {'obj.attr':'obj.newValue'}); At least Element.writeAttribute('username', {'id':'testId'} ); is working for me :) using FF3 and firebug console I haven't tried with objects :) Quleczka --~--~-~--~~~---~--~~ 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] writeAttribute problem
Are there any known problems with writeAttribtue and FF3? I have a small function: function(obj){ Element.writeAttribute(obj.elname, obj.attr, obj.newValue); } It doesn't update the attribute. I also tried with literal values instead of using the object's properties as params. Setting the value using dot notation works however and both the dot notation and writeAttribute works on IE7. Thanks, Lee --~--~-~--~~~---~--~~ 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: passthrough of
Hi Here is the script code that is inside my HTML code, it stops all the way up when I load this. I do not understand why. http://maps.google.com/maps? file=api&v=2&key=ABQIC8qQ5K5OzgUXSp3HAHYLCBToCz2T6q0h8s9gNtyOGdr19HE7IRShryCxKI7T0XpWQzOZ1s6y4B66sQ" type="text/javascript" charset="utf-8"> // FCK googlemaps v1.97 document.write('.'); function CreateGMap200917133224() { if(!GBrowserIsCompatible()) return; var allMapTypes = [G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP] ; var map = new GMap2(document.getElementById("gmap200917133224"), {mapTypes:allMapTypes}); map.setCenter(new GLatLng(58.2069,7.99255), 10); map.setMapType( allMapTypes[ 3 ] ); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); AddMarkers( map, [] ) ; } xcvxcv xcvxcv qwqw // FCK googlemapsEnd v1.97 function AddMarkers( map, aPoints ) { for (var i=0; iyou might want to try > > something like this ... > > var element='someElementId'; > var req=new Ajax.Request('/'+url, { > evalScripts: false, // <-- notice "false" is not wrapped in quotes > !! > method: 'post', > onSuccess : function(transport) { > $(element).update(transport.responseText); > } > > }); > > req=null; // null the object to free up memory > > } > > HTH > > Alex > > > > - Original Message - > From: "erling" > To: "Prototype &script.aculo.us" > Sent: Tuesday, March 03, 2009 11:02 PM > Subject: [Proto-Scripty] Re: passthrough of
[Proto-Scripty] Re: Error by use HTTPS, Google Adwords and Prototype Ajax.(Periodical)Updater
Are you loading Prototype from an https:// location? Like: https://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js --~--~-~--~~~---~--~~ 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: Creating Checked Radio buttons, not working in IE
have you trie using Builder to create and register your element? also, try setting the checked attribute to 'checked' instead of 'true' -Original Message- Date: Wednesday, March 04, 2009 4:38:06 am To: prototype-scriptaculous@googlegroups.com From: "Richard Quadling" Subject: [Proto-Scripty] Re: Creating Checked Radio buttons, not working in IE 2009/3/4 Alex Mcauley : > > Yes walter is correct... As far as i know you cannot insert an element into > another element if it does not exist in the DOM (as the element is still an > object that resides in memory at the time) .. though i could be wrong > > > > - Original Message - > From: "Walter Lee Davis" > To: > Sent: Wednesday, March 04, 2009 3:24 AM > Subject: [Proto-Scripty] Re: Creating Checked Radio buttons, not working in > IE > > >> >> Try inserting it, then checking it after it's in the DOM. Also, try >> setting input.checked = true rather than adding that as a part of the >> initial new Element deal. >> >> if ( i == 1 ) { >> var input = new Element( >> 'input',{ >> 'type': 'radio', >> 'value': i, >> 'name': 'test' >> } >> ); >> li.insert(input); >> input.checked = true; >> }else{ >> var input = new Element( >> 'input',{ >> 'type': 'radio', >> 'val --~--~-~--~~~---~--~~ 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: Any known browser specifict issues with Ajax.Updater & evalScripts?
Hey thanks Richard, I did resolve the issue by using jQuery and $.getJSON within the updater. For some reason that seemed to work, but I will look into your solution as well. --~--~-~--~~~---~--~~ 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: Crop Image With Preview
Hi! Thanks for your answers... I used div with overflow hidden and javascript positionning and sizing, and it works... But as zero said, it is a waste of traffic... My main problem is the memory_limit of my server which is limited. I can't modify a big image using library GD... On Mar 3, 5:36 pm, zero wrote: > ye i also used it in the past when i need it. > But its just GUI for user to show part of image to be cropped. So u > can than send params to server to crop image. > > On 3 Mar, 17:29, Diodeus wrote: > > > Take a look at this: > > >http://www.defusion.org.uk/code/javascript-image-cropper-ui-using-pro... > > > On Mar 3, 5:06 am, calitom wrote: > > > > Hi, > > > > I wanted to know how you do to display the croped part of an image? > > > I tryied to crop an image in php, with imagecopyresamled, but with big > > > images it didn't work due to my server memory limit... > > > > How can i do to display just a part of an image with top left position > > > of area to display and width/height of the area? > > > > In fact i want to display a part of an image in a 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-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: Creating Checked Radio buttons, not working in IE
2009/3/4 Alex Mcauley : > > Yes walter is correct... As far as i know you cannot insert an element into > another element if it does not exist in the DOM (as the element is still an > object that resides in memory at the time) .. though i could be wrong > > > > - Original Message - > From: "Walter Lee Davis" > To: > Sent: Wednesday, March 04, 2009 3:24 AM > Subject: [Proto-Scripty] Re: Creating Checked Radio buttons, not working in > IE > > >> >> Try inserting it, then checking it after it's in the DOM. Also, try >> setting input.checked = true rather than adding that as a part of the >> initial new Element deal. >> >> if ( i == 1 ) { >> var input = new Element( >> 'input',{ >> 'type': 'radio', >> 'value': i, >> 'name': 'test' >> } >> ); >> li.insert(input); >> input.checked = true; >> }else{ >> var input = new Element( >> 'input',{ >> 'type': 'radio', >> 'value': i, >> 'name': 'test' >> } >> ); >> li.insert(input); >> } >> >> See if that helps. >> >> Walter >> >> On Mar 3, 2009, at 6:49 PM, jachin wrote: >> >>> Does anyone know of a work around to this problem? A way to get a >>> dynamically generated radio button selected? >> >> >> > >> > > > > > Even less code... document.observe("dom:loaded", function() { var my_list = $('my_list'); for( i = 0; i < 3; i++ ) { var li = new Element( 'li' ); var input = new Element( 'input', { 'type': 'radio', 'value': i, 'name': 'test', 'checked' : (i = 1) } ); li.insert(input); my_list.insert(li); } }); -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" --~--~-~--~~~---~--~~ 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: Creating Checked Radio buttons, not working in IE
Yes walter is correct... As far as i know you cannot insert an element into another element if it does not exist in the DOM (as the element is still an object that resides in memory at the time) .. though i could be wrong - Original Message - From: "Walter Lee Davis" To: Sent: Wednesday, March 04, 2009 3:24 AM Subject: [Proto-Scripty] Re: Creating Checked Radio buttons, not working in IE > > Try inserting it, then checking it after it's in the DOM. Also, try > setting input.checked = true rather than adding that as a part of the > initial new Element deal. > > if ( i == 1 ) { > var input = new Element( > 'input',{ > 'type': 'radio', > 'value': i, > 'name': 'test' > } > ); > li.insert(input); > input.checked = true; > }else{ > var input = new Element( > 'input',{ > 'type': 'radio', > 'value': i, > 'name': 'test' > } > ); > li.insert(input); > } > > See if that helps. > > Walter > > On Mar 3, 2009, at 6:49 PM, jachin wrote: > >> Does anyone know of a work around to this problem? A way to get a >> dynamically generated radio button selected? > > > > > --~--~-~--~~~---~--~~ 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: passthrough of
you might want to try something like this ... var element='someElementId'; var req=new Ajax.Request('/'+url, { evalScripts: false, // <-- notice "false" is not wrapped in quotes !! method: 'post', onSuccess : function(transport) { $(element).update(transport.responseText); } }); req=null; // null the object to free up memory } HTH Alex - Original Message - From: "erling" To: "Prototype & script.aculo.us" Sent: Tuesday, March 03, 2009 11:02 PM Subject: [Proto-Scripty] Re: passthrough of