[Proto-Scripty] Re: Creating a Submit Button

2009-03-06 Thread Michael Hauptmann

Hi Tomaso,

The submit is a input element.

new Element('input', {'type' : 'submit'})

should work.

Miguel

Tommaso wrote:
 I am having a problem creating a submit button with prototype in IE.

 I use the following code:

 button = new Element('button', {'type' : 'submit'});
 form.insert(button)

 unfortunately in IE if you make at button, and run the code

 new Element('button', {'type' : 'submit'}).type

 You always get button, not submit. Consequently none of my forms
 submit in explorer. Am i doing something wrong? Thanks in advance for
 the help.


 


--~--~-~--~~~---~--~~
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: Creating a Submit Button

2009-03-06 Thread Michael Hauptmann
Hi Colin,

I wasn't aware about these details, but the last time I had this problem 
I could solve it by using an input element :-)
As many times... this problem finally is an IE issue, it's not about 
standards :-)

Regards,
Miguel

ColinFine wrote:

 On Mar 6, 10:05 am, Michael Hauptmannmhauptm...@gmail.com  wrote:

 Hi Tomaso,

 The submit is a input element.

 new Element('input', {'type' : 'submit'})

 should work.

 Miguel

  

 Hang on, Miguel

 HTML has bothinput type='submit'  andbutton type='submit', so
 Tommaso's expectation is reasonable.

 Flanagan (the O'Reilly Javascript, The Definitive Guide) does not
 discuss the 'Button' object in the reference section, but refers the
 reader to the 'Input' object: I took that at first to mean that JS
 doesn't implement a 'Button' object separate from the 'Input' object,
 but that can't be right: all the DOM reference sites certainly list
 HTMLButtonObject as an interface.

 So, I don't know what is going wrong, but I don't see why it shouldn't
 work.

 In the meantime, using an 'input' object might be easiest :-)
 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: Autocompleter and Modalbox

2008-10-03 Thread Michael Hauptmann
Hi CB,

You could try and assign a zIndex higher than 10.000 to #div1.
I'm using both together without problems, but had to increase the zIndex 
of the results div in order to show it above the layer.

Maybe that helps,
Miguel

MikeFeltman wrote:
 I'm having some problems with ModalBox as well. It doesn't appear to
 be very well supported and despite a number of open issues it's going
 on a year without an update. It seems its author's have abandoned it
 and I am considering the same.

 On Oct 3, 10:18 am, CallinBollig[EMAIL PROTECTED]  wrote:

 updated to prototype 1.6.0.3 but no change in behaviour.

 On Oct 3, 2:41 pm, T.J. Crowder[EMAIL PROTECTED]  wrote:

  
 Hi,

 And that's the value of hard numbers:  That's not the latest version
 of Prototype, v1.6.0.3 was released on the 28th.  Probably nothing to
 do with it, but...

 -- T.J. ;-)

 On Oct 3, 2:07 pm, CallinBollig[EMAIL PROTECTED]  wrote:

 OK apologies for being so vague.
 Versions are from the .js files
  
 Modalbox.js VERSION 1.6.0 Last Modified: 12/13/2007
 Prototype.js Prototype JavaScript framework, version 1.6.0.2
 script.aculo.us scriptaculous.js v1.8.1
  
 hope this clears up any confusion
  
 On Oct 3, 9:38 am, T.J. Crowder[EMAIL PROTECTED]  wrote:
  
 Hi,

 I am using the latest version of Prototype.cs and the scriptaculous
 files.
  
 The latest version is a very slippery concept.  Specific versions?
 --
 T.J. Crowder
 tj / crowder softare / com

 On Oct 3, 9:16 am, CallinBollig[EMAIL PROTECTED]  wrote:

 Hi,
 I have a small issue, which I can't find a solution to on the web.
 Perhaps you can help. Using Prototype and Scriptaculous I have created
 an autocompleter which calls an ASP.NET web service and works fine.
 However when I put it onto a Panel which is made visible by a
 modalbox.Show() the autocompleter no longer fires.
 I am using the latest version of Prototype.cs and the scriptaculous
 files.
  
 Here is the code
  
 div id=Panel1
  table cellspacing=3 cellpadding=3
  tr
  td
  Possible Values
  br /
  %--asp:ListBox ID=lbPossiblefiltervalues
 runat=server Height=500px Width=150px/asp:ListBox--%
  div id=div1 class=autocompleteContainer
  h3
  Custom autocomplete using AJAX and
 parameters/h3
  div id=divDetails5
  nbsp;/div
  input id=autocomplete5 type=text /
  div id=autocomplete_choices5
 class=autocomplete
  /div
  /div
  /td
  /tr
  /table
  input type=button value=Save onclick=onSavePopup() /
  input type=button value=Cancel
 onclick=Modalbox.hide();return false; /
  /div
  
 just let me reiterate the control works fine outside the modal box,
 just not in the panel when the modal box is active. I've checked the
 rendered html and the id's are correct.
  
 Any help would be appreciated,
  
 Best Regards
  
 CB
  
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---