答复: [Proto-Scripty] Re: problem in Event.observe()

2011-06-07 Thread 操坤
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); }

[Proto-Scripty] FixComputerpProblemsSite Surely Knows How to Fix Computer Problems!

2011-06-07 Thread Fixcomputerproblems Site
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.

Re: [Proto-Scripty] FixComputerpProblemsSite Surely Knows How to Fix Computer Problems!

2011-06-07 Thread Alex McAuley
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

[Proto-Scripty] how-to add option to select

2011-06-07 Thread Phil Petree
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

[Proto-Scripty] Re: ajax.updater - json to fill select

2011-06-07 Thread Jason
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

Re: [Proto-Scripty] Re: ajax.updater - json to fill select

2011-06-07 Thread Matt Petrovic
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

Re: [Proto-Scripty] Re: ajax.updater - json to fill select

2011-06-07 Thread Phil Petree
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

Re: [Proto-Scripty] how-to add option to select

2011-06-07 Thread Walter Davis
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

Re: [Proto-Scripty] how-to add option to select

2011-06-07 Thread Phil Petree
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

Re: [Proto-Scripty] how-to add option to select

2011-06-07 Thread Matt Petrovic
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

Re: [Proto-Scripty] how-to add option to select

2011-06-07 Thread Walter Davis
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

Re: [Proto-Scripty] how-to add option to select

2011-06-07 Thread Phil Petree
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

Re: [Proto-Scripty] how-to add option to select

2011-06-07 Thread Walter Davis
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