[Proto-Scripty] Re: prototype Ajax.Request returning 12002 ONLY in IE on remote server.

2009-07-23 Thread Alex McAuley

Most browsers limit the number of simultanious requests and or paralel 
downloads not just IE


Alex Mcauley
http://www.thevacancymarket.com
- Original Message - 
From: David Dyer dd...@artifact-software.com
To: Prototype  script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Wednesday, July 22, 2009 6:07 PM
Subject: [Proto-Scripty] Re: prototype Ajax.Request returning 12002 ONLY in 
IE on remote server.



Some further info after a bit more investigation.

The failing ajax.request hangs in readyState 1 for approximately 5
minutes. After that it gets a readyState 4 and a response.status of
12002.

Watching the apache access logs and java debugging logs on the servlet
mapped to the request URL confirms that the request is never seen
server side (not surprising since readyState 1 means that the
transport hasn't executed it's send yet.

It appears to be related to the fact that IE limits the number of
concurrent requests (in IE 7 the limit is 2 for http 1.1), although
the requests in my case are synchronous and there is only one ajax
request being executed at any given moment. However, raising the
request limit using the registry editor did get rid of the problem.
However that's not a feasible solution for end users. Any ideas for a
workaround?

David


On Jul 20, 1:46 pm, David Dyer dd...@artifact-software.com wrote:
 I've come across a problem that maybe someone in this group can help.

 Context:
 --
 I'm running a SCORM engine within a portal. The engine is essentially
 the ADL sample runtime, which uses prototype to communicate between
 the SCORM api wrapper and the server.

 I've tested the application in IE and Firefox on a windows machine
 under a tomcat container and it works fine with various SCORM packages
 created from different sources (eg Reload, Articulate, some other
 third party proprietary courseware).

 However, when run on a remote server (linux/apache/tomcat environment)
 all the courses from one particular source, created using Articulate
 have problems in IE (specifically testing in IE 7 at the moment) but
 not in Firefox.

 Description:
 
 The problem does not always occur at the same place within a course,
 it can happen immediately or at a later point within the
 presentation.

 When the error occurs the content being loaded into the flash
 presentation stops and eventually the Ajax.Request returns 12002
 response in the onFailure (below). IE becomes completely unresponsive
 to mouse events such as right clicks or attempts to close the window.

 I've also tried upgrading the version of prototype to 1.6.1_rc3 from
 1.5.1 with no change in results.

 The function calling the Ajax.Request is copied below:

 Javascript calling prototype:
 -
 script src=../js/prototype.js/script

 function genericAJAXCall(parm) {
 var url = '%=session.getAttribute(APP_REL_PATH)%rts';
 var res = false;
 var myAjax = new Ajax.Request(url, {
 method: 'post',
 postBody: parm,
 asynchronous: false,
 onSuccess: function(transport) {
 res = transport.responseText;
 },
 onFailure: function(xhr) {
 alert('st_js_ajax_failure' + xhr.status);
 },
 onException: function (xhr, e){
 alert('st_js_ajax_exception' + e);
 }
 } );
 return res;
 }



--~--~-~--~~~---~--~~
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: Need help for performantly creating tooltips

2009-07-23 Thread Chris

Hi all!

@Trevan:
Thank you for this information, I am going to look if I need to tweak
that function or if I leave it alone.

@Matt:
As stated in my mail from 22 Jul., 12:07, this is no option for us. I
am well aware that the title-Attribute exists, but cannot use it for
the reasons I stated in my last mail.

I thank you all for your help, I will post my solution when its ready.
--~--~-~--~~~---~--~~
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: Parsing XML

2009-07-23 Thread ferion

Hello everybody,

thanks to Mona, who pointed me to the the right direction. The problem
originated in illegal Tags which were forbidden in the XHTML Type.
I surpassed thes Problem by recursively parsing the XML an convert ist
by document.createElement (thuss new Element from Prototype). This
won't work in IE, due to a strange type missmatch by appending
childNodes, but in that case my old parser (as seen above) still
works.

I have to tune some performance issues in that, but i will succeed in
this.

If anybody needs the solution don't hesitate to ask vor it. The code
ist far too long to post it here.

Thanks
Joker


On Jul 22, 2:34 pm, Mona Remlawi mona.reml...@gmail.com wrote:
 I agree with Colin, but I guess in your case, it looks like you are
 parsing some kind of a service response ..
 Just a bit of explanation, it's only normal that your code breaks when
 you set XHTML as a DOCTYPE since XHTML only identifies and accepts a
 list of valid HTML elements (and your XML document ain't one of them)
 and the rest would just be ignored. Which brings me to the question,
 why embedding your responseXML in your HTML? I haven't worked on
 front-end XML in a long while now, but I am sure that is not the way
 to go.

 I can't advice anymore, just you need to do a bit of reading, probably
 start 
 withhttps://developer.mozilla.org/en/Migrate_apps_from_Internet_Explorer_...

 cheers

 --
 mona



 On Wed, Jul 22, 2009 at 1:08 PM, ColinFinecolin.f...@pace.com wrote:

  On Jul 22, 6:48 am, ferion fer...@gmx.de wrote:
  Olla,

  is there nobody out there who is able to help me out?
  If i'm posting in the wrong forum or if my question is stupid like
  shooting in your own foot, please tell this to me.

  I'm realy clueless.

  Ferion

  I'm sorry, I have never (well, not since my very first attempt)
  returned XML from an Ajax call. JSON is much easier to handle.- Hide quoted 
  text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: prototype Ajax.Request returning 12002 ONLY in IE on remote server.

2009-07-23 Thread David Dyer

So I've discovered, although most browsers allow more than 2 (the
limit on IE 7 using HTTP 1.1, 4 for HTTP 1.0 apparently).

An interesting side note. The content (created in Adobe Articulate
Presenter 09) launches itself in a pop-up window. If a change the
launch sequence to load the index html page into the current frame
instead of allowing it to use a pop-up the problems described in my
first post disappear. I'm a little uncertain as to why the number of
windows would be relevant, but it appears to be. The same problem was
reported in Moodle in their forums.

David

On Jul 23, 2:30 am, Alex McAuley webmas...@thecarmarketplace.com
wrote:
 Most browsers limit the number of simultanious requests and or paralel
 downloads not just IE

 Alex Mcauleyhttp://www.thevacancymarket.com

 - Original Message -
 From: David Dyer dd...@artifact-software.com
 To: Prototype  script.aculo.us prototype-scriptaculous@googlegroups.com
 Sent: Wednesday, July 22, 2009 6:07 PM
 Subject: [Proto-Scripty] Re: prototype Ajax.Request returning 12002 ONLY in
 IE on remote server.

 Some further info after a bit more investigation.

 The failing ajax.request hangs in readyState 1 for approximately 5
 minutes. After that it gets a readyState 4 and a response.status of
 12002.

 Watching the apache access logs and java debugging logs on the servlet
 mapped to the request URL confirms that the request is never seen
 server side (not surprising since readyState 1 means that the
 transport hasn't executed it's send yet.

 It appears to be related to the fact that IE limits the number of
 concurrent requests (in IE 7 the limit is 2 for http 1.1), although
 the requests in my case are synchronous and there is only one ajax
 request being executed at any given moment. However, raising the
 request limit using the registry editor did get rid of the problem.
 However that's not a feasible solution for end users. Any ideas for a
 workaround?

 David

 On Jul 20, 1:46 pm, David Dyer dd...@artifact-software.com wrote:
  I've come across a problem that maybe someone in this group can help.

  Context:
  --
  I'm running a SCORM engine within a portal. The engine is essentially
  the ADL sample runtime, which uses prototype to communicate between
  the SCORM api wrapper and the server.

  I've tested the application in IE and Firefox on a windows machine
  under a tomcat container and it works fine with various SCORM packages
  created from different sources (eg Reload, Articulate, some other
  third party proprietary courseware).

  However, when run on a remote server (linux/apache/tomcat environment)
  all the courses from one particular source, created using Articulate
  have problems in IE (specifically testing in IE 7 at the moment) but
  not in Firefox.

  Description:
  
  The problem does not always occur at the same place within a course,
  it can happen immediately or at a later point within the
  presentation.

  When the error occurs the content being loaded into the flash
  presentation stops and eventually the Ajax.Request returns 12002
  response in the onFailure (below). IE becomes completely unresponsive
  to mouse events such as right clicks or attempts to close the window.

  I've also tried upgrading the version of prototype to 1.6.1_rc3 from
  1.5.1 with no change in results.

  The function calling the Ajax.Request is copied below:

  Javascript calling prototype:
  -
  script src=../js/prototype.js/script

  function genericAJAXCall(parm) {
  var url = '%=session.getAttribute(APP_REL_PATH)%rts';
  var res = false;
  var myAjax = new Ajax.Request(url, {
  method: 'post',
  postBody: parm,
  asynchronous: false,
  onSuccess: function(transport) {
  res = transport.responseText;
  },
  onFailure: function(xhr) {
  alert('st_js_ajax_failure' + xhr.status);
  },
  onException: function (xhr, e){
  alert('st_js_ajax_exception' + e);
  }
  } );
  return res;
  }
--~--~-~--~~~---~--~~
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: IE8 invalid argument line 4501

2009-07-23 Thread Jeff

We've having this exact error with IE8 and it's always related to
developers using element IDs that begin with non-Alpha characters.
Doing something like adding and underscore to the id fixes the
problem.

On Jul 14, 6:37 am, adamski adam.elemen...@gmail.com wrote:
 We're now going through the enjoyable task of getting our app working
 in IE, 6-8 we are aiming for.

 We just downloaded the latest prototype RC3, which seems to fix a few
 errors, however, I am getting this error on page load, IE8 only:

 Message: Invalid argument.
 Line: 4501
 Char: 9
 Code: 0
 URI:http://bgp.brightgreen.local/javascripts/prototype.js?1247565795

 and also from scriptaculous effects.js:

 Message: Exception thrown and not caught
 Line: 485
 Char: 24
 Code: 0
 URI:http://bgp.brightgreen.local/javascripts/effects.js

 Anyone else come across these?

--~--~-~--~~~---~--~~
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] compatibility prototype_scriptaculos et mootools

2009-07-23 Thread lvdesign

Hi, i am new french member. So i hope you could understand my
question.

I use several .js library for a site's development and i have a
conflict between prototype and mootools.

I resolve the problem with Jquery and proto like that:

//--pour jQuery
jQuery(function($) {
//functionDoSomething
});

jQuery.noConflict()
jQuery(document).ready(function ($) {
 $('.functionDoSomething').functionDoSomething();
});

//

I would like only use sound.js of prototype. [ Not another library
propose this fonctionality(?)]

How can i do to resolve the $ conflict ?

thanks a lot for the answer

Merci d'avance pour une réponse

--~--~-~--~~~---~--~~
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: compatibility prototype_scriptaculos et mootools

2009-07-23 Thread Tobie Langel

Hi.

Mootools and Prototype are unfortunately totally incompatible.

You'll have to choose one or the other.

Best,

Tobie

On Jul 23, 6:10 pm, lvdesign mail...@lvdesign.com.fr wrote:
 Hi, i am new french member. So i hope you could understand my
 question.

 I use several .js library for a site's development and i have a
 conflict between prototype and mootools.

 I resolve the problem with Jquery and proto like that:

 //--pour jQuery
 jQuery(function($) {
 //functionDoSomething

 });

 jQuery.noConflict()
 jQuery(document).ready(function ($) {
  $('.functionDoSomething').functionDoSomething();

 });

 //

 I would like only use sound.js of prototype. [ Not another library
 propose this fonctionality(?)]

 How can i do to resolve the $ conflict ?

 thanks a lot for the answer

 Merci d'avance pour une réponse
--~--~-~--~~~---~--~~
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: compatibility prototype_scriptaculos et mootools

2009-07-23 Thread lvdesign

Thanks for the messsage and you know what?  i am very happy to know
that! (sic)


but where i can find an clever library with sound.js? i must created
it?

bye, bye and merci encore.

On Jul 23, 8:29 pm, Tobie Langel tobie.lan...@gmail.com wrote:
 Hi.

 Mootools and Prototype are unfortunately totally incompatible.

 You'll have to choose one or the other.

 Best,

 Tobie

 On Jul 23, 6:10 pm, lvdesign mail...@lvdesign.com.fr wrote:



  Hi, i am new french member. So i hope you could understand my
  question.

  I use several .js library for a site's development and i have a
  conflict between prototype and mootools.

  I resolve the problem with Jquery and proto like that:

  //--pour jQuery
  jQuery(function($) {
  //functionDoSomething

  });

  jQuery.noConflict()
  jQuery(document).ready(function ($) {
   $('.functionDoSomething').functionDoSomething();

  });

  //

  I would like only use sound.js of prototype. [ Not another library
  propose this fonctionality(?)]

  How can i do to resolve the $ conflict ?

  thanks a lot for the answer

  Merci d'avance pour une réponse
--~--~-~--~~~---~--~~
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] Masked Input in Prototype

2009-07-23 Thread Celso

Anyone know a masked input in prototype?

Thanks,
Celso.
--~--~-~--~~~---~--~~
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: get controls array

2009-07-23 Thread Douglas

I'd use classes instead

input type=text name=opt[0][] class=text test /br /
input type=text name=opt[0][] class=text test /br /
input type=text name=opt[0][] class=text test /br /
input type=text name=opt[0][] class=text test /br /
input type=text name=opt[1][] class=text test /br /
input type=text name=opt[1][] class=text test /br /
input type=text name=opt[2][] class=text test /br /
input type=text name=opt[2][] class=text test /br /

script type=text/javascript
//![CDATA[
alert($$('input.test').length);
//]]
/script

The '$$' reference: http://www.prototypejs.org/api/utility/dollar-dollar

On Thu, Jul 23, 2009 at 6:50 PM, diegoturriagadiegoturri...@gmail.com wrote:

 I have something like that:

 tr
  tdPEPE/td
  tdinput ... name=opt[0][]input ... name=opt[0][] ...
 input ... name=opt[0][]/td
  tdselect ... name=selA[].../select/td
  tdselect ... name=selB[].../select/td
 /tr
 tr
  tdJUAN/td
  tdinput ... name=opt[1][]input ... name=opt[1]
 []...input ... name=opt[1][]/td
  tdselect ... name=selA[].../select/td
  tdselect ... name=selB[].../select/td
 /tr
 ...
 tr
  tdTITO/td
  tdinput ... name=opt[n-1][]input ... name=opt[n-1][] ...
 input ... name=opt[n-1][]/td
  tdselect ... name=selA[].../select/td
  tdselect ... name=selB[].../select/td
 /tr

 I want to get the array opt[x] using prototype but $('opt[x]') give me
 only the first instance.

 I need something like getElementsByName but using prototype :)

 Sorry for my english...
 




-- 
Believe nothing, no matter where you read it, or who said it, no
matter if I have said it, unless it agrees with your own reason and
your own common sense.

--~--~-~--~~~---~--~~
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: get controls array

2009-07-23 Thread Matt Foster

Hey Diego,

  I'd suggest learning CSS, in particular CSS Selectors.  Second
read up on prototype, you were a dollar sign away from almost having
it.

In your case, the name is too inconsistent, you could have almost
gotten away with $$(input[name~=opt) but alas there is no space
after it so it fails.

As an alternative, looking at your code you just do... $$(input
[type=text]) or if your collection requisites are more specific, add
a class to the elements you want to collect and then simply $
(.myClass)


--

http://positionabsolute.net


On Jul 23, 5:50 pm, diegoturriaga diegoturri...@gmail.com wrote:
 I have something like that:

 tr
   tdPEPE/td
   tdinput ... name=opt[0][]input ... name=opt[0][] ...
 input ... name=opt[0][]/td
   tdselect ... name=selA[].../select/td
   tdselect ... name=selB[].../select/td
 /tr
 tr
   tdJUAN/td
   tdinput ... name=opt[1][]input ... name=opt[1]
 []...input ... name=opt[1][]/td
   tdselect ... name=selA[].../select/td
   tdselect ... name=selB[].../select/td
 /tr
 ...
 tr
   tdTITO/td
   tdinput ... name=opt[n-1][]input ... name=opt[n-1][] ...
 input ... name=opt[n-1][]/td
   tdselect ... name=selA[].../select/td
   tdselect ... name=selB[].../select/td
 /tr

 I want to get the array opt[x] using prototype but $('opt[x]') give me
 only the first instance.

 I need something like getElementsByName but using prototype :)

 Sorry for my english...
--~--~-~--~~~---~--~~
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: Masked Input in Prototype

2009-07-23 Thread Matt Foster

You must further define your idea of masked input

http://www.google.com/search?q=define%3A+masked+inputie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a

On Jul 23, 3:58 pm, Celso cels...@gmail.com wrote:
 Anyone know a masked input in prototype?

 Thanks,
 Celso.
--~--~-~--~~~---~--~~
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: get controls array

2009-07-23 Thread diegoturriaga

Well... first that all thanks for your reply!

I'm trying to use a multidemensional javascript array... various
arrays of input controls of type checkbox

I have 10 controls with name myarray[1][]
other 10 controls with name myarray[2][]
other 10 controls with name myarray[3][]
...
other 10 controls with name myarray[n][]

And I need get al controls named iqual in an array var... something
like:

var aux = document.getElemntsByName('myarray[1][]`);

but using prototype sintax... :)


On Jul 23, 7:04 pm, Matt Foster mattfoste...@gmail.com wrote:
 Hey Diego,

       I'd suggest learning CSS, in particular CSS Selectors.  Second
 read up on prototype, you were a dollar sign away from almost having
 it.

 In your case, the name is too inconsistent, you could have almost
 gotten away with $$(input[name~=opt) but alas there is no space
 after it so it fails.

 As an alternative, looking at your code you just do... $$(input
 [type=text]) or if your collection requisites are more specific, add
 a class to the elements you want to collect and then simply $
 (.myClass)

 --

 http://positionabsolute.net

 On Jul 23, 5:50 pm, diegoturriaga diegoturri...@gmail.com wrote:



  I have something like that:

  tr
    tdPEPE/td
    tdinput ... name=opt[0][]input ... name=opt[0][] ...
  input ... name=opt[0][]/td
    tdselect ... name=selA[].../select/td
    tdselect ... name=selB[].../select/td
  /tr
  tr
    tdJUAN/td
    tdinput ... name=opt[1][]input ... name=opt[1]
  []...input ... name=opt[1][]/td
    tdselect ... name=selA[].../select/td
    tdselect ... name=selB[].../select/td
  /tr
  ...
  tr
    tdTITO/td
    tdinput ... name=opt[n-1][]input ... name=opt[n-1][] ...
  input ... name=opt[n-1][]/td
    tdselect ... name=selA[].../select/td
    tdselect ... name=selB[].../select/td
  /tr

  I want to get the array opt[x] using prototype but $('opt[x]') give me
  only the first instance.

  I need something like getElementsByName but using prototype :)

  Sorry for my english...- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: get controls array

2009-07-23 Thread Douglas

Did you read the given references?

On Thu, Jul 23, 2009 at 9:02 PM, diegoturriagadiegoturri...@gmail.com wrote:

 Well... first that all thanks for your reply!

 I'm trying to use a multidemensional javascript array... various
 arrays of input controls of type checkbox

 I have 10 controls with name myarray[1][]
 other 10 controls with name myarray[2][]
 other 10 controls with name myarray[3][]
 ...
 other 10 controls with name myarray[n][]

 And I need get al controls named iqual in an array var... something
 like:

 var aux = document.getElemntsByName('myarray[1][]`);

 but using prototype sintax... :)


 On Jul 23, 7:04 pm, Matt Foster mattfoste...@gmail.com wrote:
 Hey Diego,

       I'd suggest learning CSS, in particular CSS Selectors.  Second
 read up on prototype, you were a dollar sign away from almost having
 it.

 In your case, the name is too inconsistent, you could have almost
 gotten away with $$(input[name~=opt) but alas there is no space
 after it so it fails.

 As an alternative, looking at your code you just do... $$(input
 [type=text]) or if your collection requisites are more specific, add
 a class to the elements you want to collect and then simply $
 (.myClass)

 --

 http://positionabsolute.net

 On Jul 23, 5:50 pm, diegoturriaga diegoturri...@gmail.com wrote:



  I have something like that:

  tr
    tdPEPE/td
    tdinput ... name=opt[0][]input ... name=opt[0][] ...
  input ... name=opt[0][]/td
    tdselect ... name=selA[].../select/td
    tdselect ... name=selB[].../select/td
  /tr
  tr
    tdJUAN/td
    tdinput ... name=opt[1][]input ... name=opt[1]
  []...input ... name=opt[1][]/td
    tdselect ... name=selA[].../select/td
    tdselect ... name=selB[].../select/td
  /tr
  ...
  tr
    tdTITO/td
    tdinput ... name=opt[n-1][]input ... name=opt[n-1][] ...
  input ... name=opt[n-1][]/td
    tdselect ... name=selA[].../select/td
    tdselect ... name=selB[].../select/td
  /tr

  I want to get the array opt[x] using prototype but $('opt[x]') give me
  only the first instance.

  I need something like getElementsByName but using prototype :)

  Sorry for my english...- Hide quoted text -

 - Show quoted text -
 




-- 
Believe nothing, no matter where you read it, or who said it, no
matter if I have said it, unless it agrees with your own reason and
your own common sense.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---