[Proto-Scripty] Client side searching

2009-07-06 Thread Jeztah

Good morning

I have a site that can be heavy server load and decided to try and
take out some filtering on a page..

Example. I have a page with a table of search results and would like
to be able to put client side searching (ala Crtl+f on firefox)

What i would like to do is make the rows not matched less opaque in
the table so the rows that matched the string found stand out more...

Anyone done this before or know of a good resource i can look at to
get me started

Of course the other way is to do an ajax request for the filter but i
dont want to load the server to much!

Alex
--~--~-~--~~~---~--~~
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] Help iterating objects in JSON via AJAX Request

2009-07-06 Thread seamusjr

I am trying to get a collection of objects in JSON that have children
and iterate through the name properties of those children.  For
example I want to get the collection of Furniture and return its
children.

I have tried to do this by converting the Object to a Hash and iterate
through it with an each.  It seems to get the Objects but returns them
as undefined.

How can I return the names of the children in id:3 as strings?

Thanks,
Seamus

sample.json:

{
id:   2,
name: Products,
children: [
{ id: 3, name: Furniture, children:
[
{ id: 4, name: Table, children: []},
{ id: 5, name: Chair, children: []},
{ id: 6, name: Lamp, children: []},

]
}
]
}

ajax.js:

var SomeObj = Class.create();
SomeObj.prototype = {
   initialize: function(){
console.log(Hello);
   },

getStuff: function(){
 new Ajax.Request('/sample.json',
 {
method:'get',
onSuccess: function(transport){
var json = transport.responseText.evalJSON();
$H(json).each(function(element){
 console.log(json.children.name);
  });

},

onFailure: function(){ console.log('Something went wrong...') }
});
}


}

Event.observe(document, dom:loaded, function(){
someObj = new SomeObj;
someObj.getStuff();
});


--~--~-~--~~~---~--~~
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: Client side searching

2009-07-06 Thread Peter De Berdt

On 06 Jul 2009, at 10:27, Jeztah wrote:

 I have a site that can be heavy server load and decided to try and
 take out some filtering on a page..

 Example. I have a page with a table of search results and would like
 to be able to put client side searching (ala Crtl+f on firefox)

 What i would like to do is make the rows not matched less opaque in
 the table so the rows that matched the string found stand out more...

 Anyone done this before or know of a good resource i can look at to
 get me started

Haven't done it, but I would just pass in a structured form of the  
data on page load (json for example). You can then write some  
javascript to run through your data store and highlight the row  
according to the id available in the store.

[
   {id: 2, content: Lorem ipsum dolor sit amet},
   {id: 5, content: consectetur adipisicing elit}
]

table
tbody
tr id=record_2tdLorem ipsum dolor sit amet/td/tr
tr id=record_5tdLorem ipsum dolor sit amet/td/tr
/tbody
/table

When a search is done for adi, your javascript search function  
returns the record with id 5, and you highlight $('record_5'). The  
complexity of your search function and the way to implement it would  
depend on the features you want to provide (case insensitive search,  
pattern matching, etc.).


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-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: Problems while upgrading from 1.5.x to 1.6.x

2009-07-06 Thread ColinFine



On Jul 3, 7:04 pm, El Bastardo elbastardo...@googlemail.com wrote:
 That's exactly what stands in the documentary and what already did not
 help me out.

 Should I literally write element.?? - WHen I do that it doesn't work
 and firebug gives me errors.

 Can't someone please type down the changed thin it's just two lines
 where the old insertion is now??

 To clarify again I tried this:

 if( 'object'== typeof date)             // date object was returned (i.e. as
 expected)
                         {
                                         date_header.lastChild.nodeValue=;
                                         element.insert(
                                                 {bottom:date_header,
                                                 Calendar.renderHTML( date, 
 text)}
                                         )
                         }
                         else                                                  
   // not-a-date-object-but-something-else was returned -
 error
                         {
                                 element.insert(
                                         {bottom:date_header,
                                         span 
 style='color:red;font-style:italic' + date + /span}
                                 );
                         }

 Nothing happens. As I said before. I even do not understand what
 element here and what goes into what.

 So if someone could please just change the old parts into the new that
 would be great!!

Rumata wasn't very clear. Where they wrote 'element' they meant you to
replace that by the element in your code that you want to update
(either a Javascript variable or an expression).

So you want
  date_header.insert({bottom: Calendar.renderHTML( date, text)})_;

which means insert the result of Calendar.renderHTML at the bottom of
date_header.

However, for this to work, your 'date_header' variable must have been
extended into a Prototype Element. So unless you know that has already
happened, you should write

$(date_header).insert( ...

(Or you could put
 date_header = $(date_header)
further up in your program.

Colin

--~--~-~--~~~---~--~~
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: Client side searching

2009-07-06 Thread Szymon Wilkołazki

Jeztah wrote:
 Good morning
 
 I have a site that can be heavy server load and decided to try and
 take out some filtering on a page..
 
 Example. I have a page with a table of search results and would like
 to be able to put client side searching (ala Crtl+f on firefox)
 
 What i would like to do is make the rows not matched less opaque in
 the table so the rows that matched the string found stand out more...
 
 Anyone done this before or know of a good resource i can look at to
 get me started
 
 Of course the other way is to do an ajax request for the filter but i
 dont want to load the server to much!
 

I wrote similar functionality for our intranet system. I can't share 
the code (contract does not allow me to), but I'll give you some tips.

I made a class to which I pass an ID/references to the filtering 
(empty) select elements, each of them along with css selector of 
corresponding table cells, and a reference to function which gathers 
their values and labels for values.

The configuration array looks like this:
[ { selectElem: 'id-of-select',
 columnSelector: '#myTabletbody.contenttrtd.filteredCell_year',
 getValue: function (cell) {
var result = cell.innerHTML.stripTags();
return { value: result, label: result.escapeHTML() } ;
 }
},
{ ...next filter field...}
]

Then the initialize() function iterates over the array, for each 
select element it executes gavers the cells using the selector, and 
for each cell it gets the values, I then filter the values so I keep 
only the uniqe entries. The values are then .map()'ed to new 
Options(entry.label, entry.value) and added to the corresponding select();

then, the initialize() attaches an change observer to the form 
containing the  filtering selects, so when any of the selects is 
changed I run the selector again and check if the value of the cell is 
equal to the selected one. If so i .show() the row, else - I .hide() it.

I might be not optimal approch, as I gather the cells values on each 
change, but for our ca 100 rows tables I is fast enought, so I don't 
care (yet). I'll optimize when necessary.

I didn't bother to create the selects dynamically, but it would be 
possible to achieve that.

Anyway,
A good read through the Enumerable documentation will be helpful while 
writing this function.

Hope this helps,
SWilk

--~--~-~--~~~---~--~~
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] Prototype script.aculo.us-- is not working in the Mozilla3.5

2009-07-06 Thread vishnu

HI all ,

I am using the Script.aculo.us and Protype for ajax action in my java
web application.I am facing problem in the Mozilla3.5 ,ajax controls
are not working (Like suggestion boxes(auto completer),Ajax
updater).Please help me .

thanksregards,
Vishnu.
--~--~-~--~~~---~--~~
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 script.aculo.us-- is not working in the Mozilla3.5

2009-07-06 Thread waldron.r...@gmail.com

can you post the code you're using along with a description of the problem

rick


-Original Message-
Date: Monday, July 06, 2009 6:50:37 am
To: Prototype  script.aculo.us prototype-scriptaculous@googlegroups.com
From: vishnu vardhana.vis...@gmail.com
Subject: [Proto-Scripty] Prototype  script.aculo.us-- is not working in the 
Mozilla3.5


HI all ,

I am using the Script.aculo.us and Protype for ajax action in my java
web application.I am facing problem in the Mozilla3.5 ,ajax controls
are not working (Like suggestion boxes(auto completer),Ajax
updater).Please help me .

thanksregards,
Vishnu.




--~--~-~--~~~---~--~~
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: Client side searching

2009-07-06 Thread ColinFine

Have you looked at Matt Kruse's http://javascripttoolbox.com/lib/table/
?
It's one not-very-big javascript file that you include and then apply
certain classes to headers in your table, and it sorts and filters on
user action.

It's not the same as you are asking for, but it may be that you could
use his filtering code but change what it does with the filter
results.


--~--~-~--~~~---~--~~
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] Ajax.Autocompleter and events after the list of choices is updated

2009-07-06 Thread RidderGraniet

I discovered that with the Autocompleter function in scriptaculous
doesn't provide a satisfying 'afterUpdateChoices' callback. This, in
my opinion, could be very usefull if you want to do something with the
list items that are populated in the div element you provide the
autocompleter with, for instance add mouse observers for custom
behavior on every list item. Because you need to know when the list is
updated and you can access the elements inside it, I figured I needed
a callback just after the list is populated.

Since onComplete ajax callback doesn't seem to work for me, I decided
to tweak the code a little bit so you can add a callback for
'afterUpdateChoices'. It are 2 simple lines,  really:

  updateChoices: function(choices) {
if(!this.changed  this.hasFocus) {
  this.update.innerHTML = choices;
  Element.cleanWhitespace(this.update);
  Element.cleanWhitespace(this.update.down());

  if(this.update.firstChild  this.update.down().childNodes) {
this.entryCount =
  this.update.down().childNodes.length;
for (var i = 0; i  this.entryCount; i++) {
  var entry = this.getEntry(i);
  entry.autocompleteIndex = i;
  this.addObservers(entry);
}
  } else {
this.entryCount = 0;
  }

  this.stopIndicator();
  this.index = 0;

  if(this.entryCount==1  this.options.autoSelect) {
this.selectEntry();
this.hide();
  } else {
this.render();
  }
}

if(this.options.afterUpdateChoices)
this.options.afterUpdateChoices(choices);
  },

It are the lower two lines you need to add to the updateChoices
function, and of course the option in your Autocompleter init with a
valid function.

Unless someone comes with a better way to get this kind of control, I
suggest it to be added in a next release :).

--~--~-~--~~~---~--~~
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] Each IE problem

2009-07-06 Thread Celso


Why this only works in Firefox and not in IE?

$$('input').each(function(e){
if(e.type == 'checkbox'  e.checked)
$('tr-'+e.id).morph('checked');
});

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] Loosing Dragables out of the window

2009-07-06 Thread Nich
Hi All,

I'm using Dragable to make a dialog box widget dragable, the problem is that
the dialog box can then be lost outside the window, and im unsure on howto
stop this happening, any ideas?

Nich

--~--~-~--~~~---~--~~
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] Effect.Scale options help

2009-07-06 Thread Kronprinz

i have an image that I want to scale to say 110% (or being able to
specify in pixels would be great too) on mouseOver and then back to
original size on mouseout.

I tried using scaleMode: { originalHeight: 400, originalWidth: 200 }
as an option but it didnt work...
--~--~-~--~~~---~--~~
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] How to get SELECTED option description

2009-07-06 Thread Martín Marqués

I have a select pull down within a form that at submition executes
some ajax stuff and updates the div where the SELECT tag lives. HTML
code is like this (I'm using HTML_Template_IT from PHP, so the
BEGIN-END define a block, and {} define replacable text):

  td class=tituloTipo de documento:/td
  td
div id=tipodoc
  SELECT id=tdocu name=tdocu
!-- BEGIN option --
OPTION value={VALOR}{DESC}/option
!-- END option --
  /SELECT
/div
  /td

What I want is, on submit to take the description that is shown in the
HTML page, not the value. How do I do that?

-- 
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-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: How to get SELECTED option description

2009-07-06 Thread Hector Virgen
It seems like you're working against the standard here. Normally, the value
is what's important upon submission.
But what you want can be done. There are two approaches to this:

1. When rendering the page, make the value and description the same. You'll
need to escape the value attribute with html entities to ensure it's read
properly. You'll end up with HTML that looks like this:

select id=tdocu name=tdocu
option value=Me amp; FriendsMe amp; Friends/option
/select

This approach is nice because it helps ensure that your page works when
Javascript is disabled or unavailable.

2. Alter the value with javascript before posting. That would look something
like this (untested):

$('myform').observe('submit', function(event)
{
var selectInput = $('tdocu');
var value = selectInput.value;
selectInput.value = selectInput.select('option[value=' + value +
']')[0].innerHTML;
});

--
Hector


2009/7/6 Martín Marqués martin.marq...@gmail.com


 I have a select pull down within a form that at submition executes
 some ajax stuff and updates the div where the SELECT tag lives. HTML
 code is like this (I'm using HTML_Template_IT from PHP, so the
 BEGIN-END define a block, and {} define replacable text):

  td class=tituloTipo de documento:/td
  td
div id=tipodoc
  SELECT id=tdocu name=tdocu
!-- BEGIN option --
OPTION value={VALOR}{DESC}/option
!-- END option --
  /SELECT
/div
  /td

 What I want is, on submit to take the description that is shown in the
 HTML page, not the value. How do I do that?

 --
 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-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: How to get SELECTED option description

2009-07-06 Thread Alexander Wallace
You should be able to do something along the lines of:
var select_menu = $(tdocu);
var description =
select_menu.childElements()[select_menu.selectedIndex].innerHTML;

- Alex

2009/7/6 Martín Marqués martin.marq...@gmail.com


 I have a select pull down within a form that at submition executes
 some ajax stuff and updates the div where the SELECT tag lives. HTML
 code is like this (I'm using HTML_Template_IT from PHP, so the
 BEGIN-END define a block, and {} define replacable text):

  td class=tituloTipo de documento:/td
  td
div id=tipodoc
  SELECT id=tdocu name=tdocu
!-- BEGIN option --
OPTION value={VALOR}{DESC}/option
!-- END option --
  /SELECT
/div
  /td

 What I want is, on submit to take the description that is shown in the
 HTML page, not the value. How do I do that?

 --
 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-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] How to display the waiting image

2009-07-06 Thread anthony

I am sure this is a commonly asked question or can be found in many
tutorials, but I just can;t see to figure out what to search for.

I am looking for something were when I hit submit, the page does not
go anywhere but something pops up or appears and say the page is
processing, not allowing the user to do anything. Can someone point me
in to the right direction?
--~--~-~--~~~---~--~~
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: How to display the waiting image

2009-07-06 Thread G. Sharon Yang

That's called processing bar. Depending on your back-end, you write
sth in java or php, or other server language, or simply using flash to
show the status.
what do you use in your back-end?

-Sharon

On Mon, Jul 6, 2009 at 2:33 PM, anthonymrsmi...@gmail.com wrote:

 I am sure this is a commonly asked question or can be found in many
 tutorials, but I just can;t see to figure out what to search for.

 I am looking for something were when I hit submit, the page does not
 go anywhere but something pops up or appears and say the page is
 processing, not allowing the user to do anything. Can someone point me
 in to the right direction?
 


--~--~-~--~~~---~--~~
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] IE 6.0.2900.2180.xpsp_sp2_rtm.040803-2158 Problem

2009-07-06 Thread Andy Wenk

Hi everybody,

I am new to the list and this is my first post.

Actually we have a problem wit the Internet Explorer
6.0.2900.2180.xpsp_sp2_rtm.040803-2158. We are not able to localize
the problem and try now to figure out wheter it could be a Javascript
Problem or anything else.

The site is running on one of our servers (PHP, PostgreSQL ...). A
company is calling this site via https:// out of their company's
network. The employees are only allowed to use the IE
6.0.2900.2180.xpsp_sp2_rtm.040803-2158. In a random turn the user gets
a DNS error page saying, that the DNS Server is not reachable. The
page where that happens is a simple html page with a login form. The
login form is submitted with $('form_name').submit().

As I said befor - sometimes it works - sometimes not. Even on one
machine with the same IE version are no problems at all and on another
one are these problems.

Are there any known problems with exactly this version of IE?
Especially with https:// ?

We don't think that the error has anything to do with Javascript or
our programming. But we have to make sure that this is a fact and not
just our idea ...

Every comment is higly appreciated.

Cheers

Andy

--~--~-~--~~~---~--~~
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: Help iterating objects in JSON via AJAX Request

2009-07-06 Thread seamusjr

Thanks a lot TJ, this is exactly what I needed.  I was confused about
iterating through the array that was in the Object and kept trying to
use for..in instead of the each.

Regards,
Seamus
--~--~-~--~~~---~--~~
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] [OT] differences with content-type?

2009-07-06 Thread Miguel Beltran R.
If use in my code (using zope)
response.setHeader('content-type', 'applicaction/x-javascript')

exists some differences to
response.setHeader('content-type', 'text/javascript')

I mean, to the browser really _think_ what it the same?

Another question.
If my server say what myjavascript.js is 'applicaction/x-javascript' and
me html code is

script src=myjavascript.js type=text/javascript/script

have some problem?

is different to FF or IE or Op?

Sorry by Off-Topic



-- 

Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida

--~--~-~--~~~---~--~~
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: How to get SELECTED option description

2009-07-06 Thread Martín Marqués

Excelent, this is what I was looking for.

onSuccess in Ajax.request will have something like this:

tipodoc.innerHTML =
  tdocuselect.childElements()[tdocuselect.selectedIndex].innerHTML +
addHidden('tdocu',tdocuselect.value);

where addHidden is this:

function addHidden(variable,valor){
   var salida = 'INPUT type=hidden name=' + variable + ' value=' +
  valor + '';
   return salida;
}

Thanks.

2009/7/6 Alexander Wallace alexmlwall...@gmail.com:
 You should be able to do something along the lines of:
 var select_menu = $(tdocu);
 var description =
 select_menu.childElements()[select_menu.selectedIndex].innerHTML;
 - Alex

 2009/7/6 Martín Marqués martin.marq...@gmail.com

 I have a select pull down within a form that at submition executes
 some ajax stuff and updates the div where the SELECT tag lives. HTML
 code is like this (I'm using HTML_Template_IT from PHP, so the
 BEGIN-END define a block, and {} define replacable text):

      td class=tituloTipo de documento:/td
      td
        div id=tipodoc
          SELECT id=tdocu name=tdocu
            !-- BEGIN option --
            OPTION value={VALOR}{DESC}/option
            !-- END option --
          /SELECT
        /div
      /td

 What I want is, on submit to take the description that is shown in the
 HTML page, not the value. How do I do that?

 --
 Martín Marqués
 select 'martin.marques' || '@' || 'gmail.com'
 DBA, Programador, Administrador




 




-- 
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-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: How to display the waiting image

2009-07-06 Thread Nich
On Tue, Jul 7, 2009 at 07:03, anthony mrsmi...@gmail.com wrote:


 I am sure this is a commonly asked question or can be found in many
 tutorials, but I just can;t see to figure out what to search for.

 I am looking for something were when I hit submit, the page does not
 go anywhere but something pops up or appears and say the page is
 processing, not allowing the user to do anything. Can someone point me
 in to the right direction?


If you are looking to provide an progress that displays the actual progress
of the request you will need to part of it on your server side and determin
some method of getting the progress information back to the user.

However most sits don't worry about displaying the actual progress, but just
some indicator that something is happening.
The normal method of doing this is with an animated gif image (I use ones
generated online [1]). As for stoping the user from doing anything while the
request is processing, the easiest way is to create a div which you
position: fixed, fills the windows and has a z-index that will position it
above all of the other elements.

Nich

[1] http://www.ajaxload.info/

--~--~-~--~~~---~--~~
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] problem with library Window 1.3 overflow

2009-07-06 Thread Miguel Beltran R.
Hi again list

I show a dialog before to load the real information, but when the second
window is loaded, the CSS value from attribute overflow is hidden.
If not show the first dialog (Dialgo.info) the second have overflow=auto;
someone have this problem before?

 var x4=Dialog.info(h3Loading.../h3, {
  top: 50,
  left:100,
  showProgress: true,
 destroyOnClose: true,
 className: alert_lite, //bluelighting, //
 width:160,
 zIndex: 90,
  });

  var win = new Window({
  id:vId+_ventana,
  className: bluelighting,
  width:Iwidth,
  height:Iheight,
  zIndex: 100,
  resizable: true,
  minimizable: false,
  maximizable: false,
  destroyOnClose: true,
  title: vId,
  draggable:true,
  wiredDrag: true
  ,onBeforeShow : function(){Dialog.closeInfo();}
   });


-- 

Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida

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