Hi:
Sorry for my poor English :P
I know your meaning of your reply:
I did a simple test:
test=function(){
alert(11);
}
Event.observe(window,load,test);
function test2(){
alert(2);
}
I was having problems with my laptop before. Good thing *
FixComputerpProblemsSite* helped me fix it. And they are really the experts
when it comes to solving any computer related issues. They can easily fix
computer problems http://www.fixcomputerproblemssite.com/ without breaking
a sweat.
die();
From: Fixcomputerproblems Site
Sent: Tuesday, June 07, 2011 2:18 PM
To: prototype-scriptaculous@googlegroups.com
Subject: [Proto-Scripty] FixComputerpProblemsSite Surely Knows How to Fix
Computer Problems!
I was having problems with my laptop before. Good thing
I've tried every option that I can find or figure out to add an option to
a select using prototype or dom.
What I have figured out is that when prototype 1.6.x is present normal dom
functions dont SEEM work!
??? So how do you add an option to a select in prototype? ???
I have:
var value = New
Also make sure you exit; after the print json_ecode() so there is not
additional output that will corrupt your JSON string
Jason
On Jun 6, 6:15 am, Eric lefauv...@gmail.com wrote:
Hello,
This is a little out of topic, but here are few hints:
The easiest way to do that is to build a PHP
Updater expects the return result to be (X)HTML. It drops the response
directly into the container as is. You should be returning an HTML string,
or using Ajax.Request to get the JSON, convert it into HTML and dropping it
in place.
If you want to be hackish about it, you do your converting in
Jason,
I'm getting everything back from the php script just fine but I can not get
it into the select at all... I posted a new thread just a bit ago...
what I find is that if I use an onclick event to call my addOption function
with static data it works fine but if I call my function with static
Your function is using add() to add an option to the end of the
select, but I have never seen that work completely myself. Best to
stick with the long-hand methods, they are at least known to work in
most browsers:
menu = $('mySelectList');
menu.options[menu.options.length] = new
thanks Walter... bottom line is that addOption works fine if called directly
but only clears the select if called from the Ajax.updater onSuccess...
even using static data!
This works:
select id='county' name='county' onclick=addOption('city', 'New Boca','New
Boca')/selectbr/
This doesn't
try using Ajax.Request
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To view this discussion on the web visit
https://groups.google.com/d/msg/prototype-scriptaculous/-/QTllMU5xRkRZMllK.
To post to this group, send email to
Try doing this inside an Ajax.Request, not an Updater. You can still
update things, but you do it yourself, and I think you might not get
these problems. My guess is that you are trying to update a picker
that has been swapped out beneath you. If it works in a click, it will
work in an
Matt Walter,
You are both right... Ajax.Updater is, apparently, trying to update
the select AFTER it calls onSuccess and since it is incapable of updating
a select it was thereby overwritting my adds... no problem, once I
figured that out, I just added in a div id='results' and let the updater
On Jun 7, 2011, at 9:00 PM, Phil Petree wrote:
Matt Walter,
You are both right... Ajax.Updater is, apparently, trying to update
the select AFTER it calls onSuccess and since it is incapable of
updating a select it was thereby overwritting my adds... no
problem, once I figured that
13 matches
Mail list logo