Hi, I''m using the prototype in a proyect, and the most of the people that uses, use Internet explorer 7 or 6, the problem is that the function doesn''t work in ie, but in firefox does, so I don''t know how to fix this, here is the code: <script type="text/javascript"> function botton() { new Ajax.Updater(''botton'',''js/botton.php'', {method:''get''} ); } </script> and the function is called by a select option: <select name="fk_int_contract"> <option onclick=''botton()'' selected=''selected'' >Click here</option> </select> and here the page should be pasted, but it don''t. <div id="botton"></div> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Seems IE does not fire click events on option tags, you could add it to the select tag instead but it doesn''t really work very well when it''s a drop down list as it fires when you drop the list. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Are you wanting it to fire when they click on the select? Try: <select onclick="botton()">...</select> Or when they select the option? (seems like it''d be the closest substitute for what you were doing) Try: <select onchange="button()">...</select> I haven''t heard of too much support for events for <option>''s...maybe I''m just out of the loop. But, since your user demographic is mostly IE-based, you might be limited to <select> events. I''m curious, though... Why are trying to make a button out of a select box and option? - Jon L. On Mar 10, 3:49 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, I''m using the prototype in a proyect, and the most of the people > that uses, use Internet explorer 7 or 6, the problem is that the > function doesn''t work in ie, but in firefox does, so I don''t know how > to fix this, here is the code: > > <script type="text/javascript"> > function botton() > { > new Ajax.Updater(''botton'',''js/botton.php'', > {method:''get''} > );} > > </script> > > and the function is called by a select option: > > <select name="fk_int_contract"> > <option onclick=''botton()'' selected=''selected'' >Click here</option> > </select> > > and here the page should be pasted, but it don''t. > > <div id="botton"></div>--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
"Botton" is the name of the page, the content is different in each option (this is the simplified code). But anyway I''m gonna try the <select onchange="button()">...</select> I try to put the onclick="botton()" in this case, just to try: <a onclick="botton()" href=''#'' > Click to try </a> But this doesn''t work eather, so it has to be a problem with something more, I note that when i put this code: <a onclick="botton()"> Click to try </a> (without the href=''#'' ) the cursor doesn''t chance to pointer form, but when I add the " href=''#'' " it does! so I this that the event onclick isn''t fireing - But the way I''m Latin, sorry about my English - On 10 mar, 20:40, "Jon L." <jonllm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Are you wanting it to fire when they click on the select? > Try: <select onclick="botton()">...</select> > > Or when they select the option? (seems like it''d be the closest > substitute for what you were doing) > Try: <select onchange="button()">...</select> > > I haven''t heard of too much support for events for <option>''s...maybe > I''m just out of the loop. > But, since your user demographic is mostly IE-based, you might be > limited to <select> events. > > I''m curious, though... > Why are trying to make a button out of a select box and option? > > - Jon L. > > On Mar 10, 3:49 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, I''m using the prototype in a proyect, and the most of the people > > that uses, use Internet explorer 7 or 6, the problem is that the > > function doesn''t work in ie, but in firefox does, so I don''t know how > > to fix this, here is the code: > > > <script type="text/javascript"> > > function botton() > > { > > new Ajax.Updater(''botton'',''js/botton.php'', > > {method:''get''} > > );} > > > </script> > > > and the function is called by a select option: > > > <select name="fk_int_contract"> > > <option onclick=''botton()'' selected=''selected'' >Click here</option> > > </select> > > > and here the page should be pasted, but it don''t. > > > <div id="botton"></div>--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
> <a onclick="botton()" href=''#'' > Click to try </a>You''ll have to cancel the default action. Otherwise, the page is probably reloading with an empty hash in the URI. Try: <a onclick="button(); return false;" href="#"> Click to try </a> - Jon L. On Mar 10, 8:55 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> "Botton" is the name of the page, the content is different in each > option (this is the simplified code). > But anyway I''m gonna try the <select onchange="button()">...</select> > I try to put the onclick="botton()" in this case, just to try: > > <a onclick="botton()" href=''#'' > Click to try </a> > > But this doesn''t work eather, so it has to be a problem with something > more, I note that when i put this code: > > <a onclick="botton()"> Click to try </a> > > (without the href=''#'' ) the cursor doesn''t chance to pointer form, > but when I add the " href=''#'' " it does! so I this that the event > onclick isn''t fireing > > - But the way I''m Latin, sorry about my English - > > On 10 mar, 20:40, "Jon L." <jonllm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Are you wanting it to fire when they click on the select? > > Try: <select onclick="botton()">...</select> > > > Or when they select the option? (seems like it''d be the closest > > substitute for what you were doing) > > Try: <select onchange="button()">...</select> > > > I haven''t heard of too much support for events for <option>''s...maybe > > I''m just out of the loop. > > But, since your user demographic is mostly IE-based, you might be > > limited to <select> events. > > > I''m curious, though... > > Why are trying to make a button out of a select box and option? > > > - Jon L. > > > On Mar 10, 3:49 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hi, I''m using the prototype in a proyect, and the most of the people > > > that uses, use Internet explorer 7 or 6, the problem is that the > > > function doesn''t work in ie, but in firefox does, so I don''t know how > > > to fix this, here is the code: > > > > <script type="text/javascript"> > > > function botton() > > > { > > > new Ajax.Updater(''botton'',''js/botton.php'', > > > {method:''get''} > > > );} > > > > </script> > > > > and the function is called by a select option: > > > > <select name="fk_int_contract"> > > > <option onclick=''botton()'' selected=''selected'' >Click here</option> > > > </select> > > > > and here the page should be pasted, but it don''t. > > > > <div id="botton"></div>--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I try this two and and doesn''t work eather, the: <a onclick="botton(); return false;" href="#"> Click to try </a> and <select onchange="botton()">...</select> I thought that can be a failure with javascript so i try this to check: <a onClick="window.location.reload( true );" href="#"> Click to try </a> And it works the refresh so, im probalby doing something wrong with the javascript that im calling.. but remind that in firefox does work! I''m confused! On Mar 10, 8:00 pm, "Jon L." <jonllm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > <a onclick="botton()" href=''#'' > Click to try </a> > > You''ll have to cancel the default action. > Otherwise, the page is probably reloading with an empty hash in the > URI. > > Try: <a onclick="button(); return false;" href="#"> Click to try </a> > > - Jon L. > > On Mar 10, 8:55 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > "Botton" is the name of the page, the content is different in each > > option (this is the simplified code). > > But anyway I''m gonna try the <select onchange="button()">...</select> > > I try to put the onclick="botton()" in this case, just to try: > > > <a onclick="botton()" href=''#'' > Click to try </a> > > > But this doesn''t work eather, so it has to be a problem with something > > more, I note that when i put this code: > > > <a onclick="botton()"> Click to try </a> > > > (without the href=''#'' ) the cursor doesn''t chance to pointer form, > > but when I add the " href=''#'' " it does! so I this that the event > > onclick isn''t fireing > > > - But the way I''m Latin, sorry about my English - > > > On 10 mar, 20:40, "Jon L." <jonllm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Are you wanting it to fire when they click on the select? > > > Try: <select onclick="botton()">...</select> > > > > Or when they select the option? (seems like it''d be the closest > > > substitute for what you were doing) > > > Try: <select onchange="button()">...</select> > > > > I haven''t heard of too much support for events for <option>''s...maybe > > > I''m just out of the loop. > > > But, since your user demographic is mostly IE-based, you might be > > > limited to <select> events. > > > > I''m curious, though... > > > Why are trying to make a button out of a select box and option? > > > > - Jon L. > > > > On Mar 10, 3:49 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hi, I''m using the prototype in a proyect, and the most of the people > > > > that uses, use Internet explorer 7 or 6, the problem is that the > > > > function doesn''t work in ie, but in firefox does, so I don''t know how > > > > to fix this, here is the code: > > > > > <script type="text/javascript"> > > > > function botton() > > > > { > > > > new Ajax.Updater(''botton'',''js/botton.php'', > > > > {method:''get''} > > > > );} > > > > > </script> > > > > > and the function is called by a select option: > > > > > <select name="fk_int_contract"> > > > > <option onclick=''botton()'' selected=''selected'' >Click here</option> > > > > </select> > > > > > and here the page should be pasted, but it don''t. > > > > > <div id="botton"></div>--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Oh, crap. Sorry. The <select onchange="..."> doesn''t work because the option is already selected. So, it never actually changes. Try: <select onfocus="...">...</select> As for the <a onclick="...">, I''m not having any issues with a test page. I just created a botton.txt and filled it with text from lipsum.com. But, it works in both FF and IE7. <html> <body> <a onclick="botton(); return false;" href="#">Click to try</a> <div id="botton"></div> <script src="prototype.js"></script> <script type="text/javascript"> function botton() { new Ajax.Updater(''botton'', ''botton.txt'', { method: ''get'' }); } </script> </body> </html> Are you sure it isn''t an error in your PHP? - Jon L. On Mar 11, 2:47 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I try this two and and doesn''t work eather, the: > <a onclick="botton(); return false;" href="#"> Click to > try </a> > and > <select onchange="botton()">...</select> > I thought that can be a failure with javascript so i try this to > check: > > <a onClick="window.location.reload( true );" href="#"> > Click to try </a> > > And it works the refresh so, im probalby doing something wrong with > the javascript that im calling.. but remind that in firefox does work! > > I''m confused! > > On Mar 10, 8:00 pm, "Jon L." <jonllm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > <a onclick="botton()" href=''#'' > Click to try </a> > > > You''ll have to cancel the default action. > > Otherwise, the page is probably reloading with an empty hash in the > > URI. > > > Try: <a onclick="button(); return false;" href="#"> Click to try </a> > > > - Jon L. > > > On Mar 10, 8:55 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > "Botton" is the name of the page, the content is different in each > > > option (this is the simplified code). > > > But anyway I''m gonna try the <select onchange="button()">...</select> > > > I try to put the onclick="botton()" in this case, just to try: > > > > <a onclick="botton()" href=''#'' > Click to try </a> > > > > But this doesn''t work eather, so it has to be a problem with something > > > more, I note that when i put this code: > > > > <a onclick="botton()"> Click to try </a> > > > > (without the href=''#'' ) the cursor doesn''t chance to pointer form, > > > but when I add the " href=''#'' " it does! so I this that the event > > > onclick isn''t fireing > > > > - But the way I''m Latin, sorry about my English - > > > > On 10 mar, 20:40, "Jon L." <jonllm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Are you wanting it to fire when they click on the select? > > > > Try: <select onclick="botton()">...</select> > > > > > Or when they select the option? (seems like it''d be the closest > > > > substitute for what you were doing) > > > > Try: <select onchange="button()">...</select> > > > > > I haven''t heard of too much support for events for <option>''s...maybe > > > > I''m just out of the loop. > > > > But, since your user demographic is mostly IE-based, you might be > > > > limited to <select> events. > > > > > I''m curious, though... > > > > Why are trying to make a button out of a select box and option? > > > > > - Jon L. > > > > > On Mar 10, 3:49 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Hi, I''m using the prototype in a proyect, and the most of the people > > > > > that uses, use Internet explorer 7 or 6, the problem is that the > > > > > function doesn''t work in ie, but in firefox does, so I don''t know how > > > > > to fix this, here is the code: > > > > > > <script type="text/javascript"> > > > > > function botton() > > > > > { > > > > > new Ajax.Updater(''botton'',''js/botton.php'', > > > > > {method:''get''} > > > > > );} > > > > > > </script> > > > > > > and the function is called by a select option: > > > > > > <select name="fk_int_contract"> > > > > > <option onclick=''botton()'' selected=''selected'' >Click here</option> > > > > > </select> > > > > > > and here the page should be pasted, but it don''t. > > > > > > <div id="botton"></div>--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
> But, it works in both FF and IE7.Sorry. I meant IE6. I''m not really awake. ;) - Jon L. On Mar 11, 3:48 pm, "Jon L." <jonllm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Oh, crap. Sorry. > > The <select onchange="..."> doesn''t work because the option is already > selected. > So, it never actually changes. > > Try: <select onfocus="...">...</select> > > As for the <a onclick="...">, I''m not having any issues with a test > page. > I just created a botton.txt and filled it with text from lipsum.com. > But, it works in both FF and IE7. > > <html> > <body> > > <a onclick="botton(); return false;" href="#">Click to try</a> > > <div id="botton"></div> > > <script src="prototype.js"></script> > <script type="text/javascript"> > function botton() { > new Ajax.Updater(''botton'', ''botton.txt'', { > method: ''get'' > });} > > </script> > </body> > </html> > > Are you sure it isn''t an error in your PHP? > > - Jon L. > > On Mar 11, 2:47 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I try this two and and doesn''t work eather, the: > > <a onclick="botton(); return false;" href="#"> Click to > > try </a> > > and > > <select onchange="botton()">...</select> > > I thought that can be a failure with javascript so i try this to > > check: > > > <a onClick="window.location.reload( true );" href="#"> > > Click to try </a> > > > And it works the refresh so, im probalby doing something wrong with > > the javascript that im calling.. but remind that in firefox does work! > > > I''m confused! > > > On Mar 10, 8:00 pm, "Jon L." <jonllm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > <a onclick="botton()" href=''#'' > Click to try </a> > > > > You''ll have to cancel the default action. > > > Otherwise, the page is probably reloading with an empty hash in the > > > URI. > > > > Try: <a onclick="button(); return false;" href="#"> Click to try </a> > > > > - Jon L. > > > > On Mar 10, 8:55 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > "Botton" is the name of the page, the content is different in each > > > > option (this is the simplified code). > > > > But anyway I''m gonna try the <select onchange="button()">...</select> > > > > I try to put the onclick="botton()" in this case, just to try: > > > > > <a onclick="botton()" href=''#'' > Click to try </a> > > > > > But this doesn''t work eather, so it has to be a problem with something > > > > more, I note that when i put this code: > > > > > <a onclick="botton()"> Click to try </a> > > > > > (without the href=''#'' ) the cursor doesn''t chance to pointer form, > > > > but when I add the " href=''#'' " it does! so I this that the event > > > > onclick isn''t fireing > > > > > - But the way I''m Latin, sorry about my English - > > > > > On 10 mar, 20:40, "Jon L." <jonllm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Are you wanting it to fire when they click on the select? > > > > > Try: <select onclick="botton()">...</select> > > > > > > Or when they select the option? (seems like it''d be the closest > > > > > substitute for what you were doing) > > > > > Try: <select onchange="button()">...</select> > > > > > > I haven''t heard of too much support for events for <option>''s...maybe > > > > > I''m just out of the loop. > > > > > But, since your user demographic is mostly IE-based, you might be > > > > > limited to <select> events. > > > > > > I''m curious, though... > > > > > Why are trying to make a button out of a select box and option? > > > > > > - Jon L. > > > > > > On Mar 10, 3:49 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > Hi, I''m using the prototype in a proyect, and the most of the people > > > > > > that uses, use Internet explorer 7 or 6, the problem is that the > > > > > > function doesn''t work in ie, but in firefox does, so I don''t know how > > > > > > to fix this, here is the code: > > > > > > > <script type="text/javascript"> > > > > > > function botton() > > > > > > { > > > > > > new Ajax.Updater(''botton'',''js/botton.php'', > > > > > > {method:''get''} > > > > > > );} > > > > > > > </script> > > > > > > > and the function is called by a select option: > > > > > > > <select name="fk_int_contract"> > > > > > > <option onclick=''botton()'' selected=''selected'' >Click here</option> > > > > > > </select> > > > > > > > and here the page should be pasted, but it don''t. > > > > > > > <div id="botton"></div>--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Well in the same page (the one with the code) I''m using a Fireworks CS3 menu, i don''t know if this makes any changes (it shouldn''t i think) And I dont think so, it''s not a php error, because in firefox works. Any idea or hypothesis? this is very strange! On Tue, Mar 11, 2008 at 2:50 PM, Jon L. <jonllmsed-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > But, it works in both FF and IE7. > > Sorry. I meant IE6. > > I''m not really awake. ;) > > - Jon L. > > On Mar 11, 3:48 pm, "Jon L." <jonllm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Oh, crap. Sorry. > > > > The <select onchange="..."> doesn''t work because the option is already > > selected. > > So, it never actually changes. > > > > Try: <select onfocus="...">...</select> > > > > As for the <a onclick="...">, I''m not having any issues with a test > > page. > > I just created a botton.txt and filled it with text from lipsum.com. > > But, it works in both FF and IE7. > > > > <html> > > <body> > > > > <a onclick="botton(); return false;" href="#">Click to try</a> > > > > <div id="botton"></div> > > > > <script src="prototype.js"></script> > > <script type="text/javascript"> > > function botton() { > > new Ajax.Updater(''botton'', ''botton.txt'', { > > method: ''get'' > > });} > > > > </script> > > </body> > > </html> > > > > Are you sure it isn''t an error in your PHP? > > > > - Jon L. > > > > On Mar 11, 2:47 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I try this two and and doesn''t work eather, the: > > > <a onclick="botton(); return false;" href="#"> Click to > > > try </a> > > > and > > > <select onchange="botton()">...</select> > > > I thought that can be a failure with javascript so i try this to > > > check: > > > > > <a onClick="window.location.reload( true );" href="#"> > > > Click to try </a> > > > > > And it works the refresh so, im probalby doing something wrong with > > > the javascript that im calling.. but remind that in firefox does work! > > > > > I''m confused! > > > > > On Mar 10, 8:00 pm, "Jon L." <jonllm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > <a onclick="botton()" href=''#'' > Click to try </a> > > > > > > You''ll have to cancel the default action. > > > > Otherwise, the page is probably reloading with an empty hash in the > > > > URI. > > > > > > Try: <a onclick="button(); return false;" href="#"> Click to try > </a> > > > > > > - Jon L. > > > > > > On Mar 10, 8:55 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > "Botton" is the name of the page, the content is different in each > > > > > option (this is the simplified code). > > > > > But anyway I''m gonna try the <select > onchange="button()">...</select> > > > > > I try to put the onclick="botton()" in this case, just to try: > > > > > > > <a onclick="botton()" href=''#'' > Click to try </a> > > > > > > > But this doesn''t work eather, so it has to be a problem with > something > > > > > more, I note that when i put this code: > > > > > > > <a onclick="botton()"> Click to try </a> > > > > > > > (without the href=''#'' ) the cursor doesn''t chance to pointer > form, > > > > > but when I add the " href=''#'' " it does! so I this that the event > > > > > onclick isn''t fireing > > > > > > > - But the way I''m Latin, sorry about my English - > > > > > > > On 10 mar, 20:40, "Jon L." <jonllm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > Are you wanting it to fire when they click on the select? > > > > > > Try: <select onclick="botton()">...</select> > > > > > > > > Or when they select the option? (seems like it''d be the closest > > > > > > substitute for what you were doing) > > > > > > Try: <select onchange="button()">...</select> > > > > > > > > I haven''t heard of too much support for events for > <option>''s...maybe > > > > > > I''m just out of the loop. > > > > > > But, since your user demographic is mostly IE-based, you might > be > > > > > > limited to <select> events. > > > > > > > > I''m curious, though... > > > > > > Why are trying to make a button out of a select box and option? > > > > > > > > - Jon L. > > > > > > > > On Mar 10, 3:49 pm, Jeank <jeansala...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > Hi, I''m using the prototype in a proyect, and the most of the > people > > > > > > > that uses, use Internet explorer 7 or 6, the problem is that > the > > > > > > > function doesn''t work in ie, but in firefox does, so I don''t > know how > > > > > > > to fix this, here is the code: > > > > > > > > > <script type="text/javascript"> > > > > > > > function botton() > > > > > > > { > > > > > > > new Ajax.Updater(''botton'',''js/botton.php'', > > > > > > > {method:''get''} > > > > > > > );} > > > > > > > > > </script> > > > > > > > > > and the function is called by a select option: > > > > > > > > > <select name="fk_int_contract"> > > > > > > > <option onclick=''botton()'' selected=''selected'' >Click > here</option> > > > > > > > </select> > > > > > > > > > and here the page should be pasted, but it don''t. > > > > > > > > > <div id="botton"></div> > > >-- _______________________ www.ClipSolutions.net Jean Carlo Salas. Cel: 844-3882. Mail: jeank-JWkwsrRJd4GikuSvNLsyVV6hYfS7NtTn@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---