Re: [Proto-Scripty] Show of hands

2014-01-03 Thread Dave Kibble
Happy New Year to you too. I'm not a power user but maintain a site
with lots of widgets that are Prototype based, including wide use of
TableKit and Ajax pop-up editors. I've been holding off investing too
heavily in scriptaculous and Prototype because of the uncertainty but
on the flip side have a big job to convert to anything else.

thanks for your support on this forum though - it's comforting to know
there's some out there.

If Prototype were open-sourced with the enthusiasts maintaining it I
would feel much better about it.

cheers
Dave

On 3 January 2014 14:01, Walter Lee Davis wa...@wdstudio.com wrote:
 It's been mighty quiet here, and I'm wondering if everyone just knows how to 
 use Prototype, and doesn't have any questions, or if you've all defected to 
 the Dark Side.

 Happy New Year,

 Walter

 --
 You received this message because you are subscribed to the Google Groups 
 Prototype  script.aculo.us group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to prototype-scriptaculous+unsubscr...@googlegroups.com.
 To post to this group, send email to prototype-scriptaculous@googlegroups.com.
 Visit this group at http://groups.google.com/group/prototype-scriptaculous.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Proto-Scripty] Ajax CORS error message

2013-01-16 Thread Dave Kibble
is the page served from http://test.heroku.com ?

If not, it's a cross-site scripting security issue.

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



Re: [Proto-Scripty] highlighting a tablerow

2013-01-01 Thread Dave Kibble
I think there's also something weird about CSS applied to table rows,
(I think) cells don't inherit all properties from the row they
'belong' to. Make sure your HTML/CSS works in a stand-alone document
first to check.

Dave

On 1 January 2013 22:53, Phil Petree phil.pet...@gmail.com wrote:
 I have an empty div that gets an ajax result that contains a table which
 looks like this:

 HTML:
 table class='form' id='mail' width='100%' border='1'
   tr
 thSubject:/th
 thFrom:/th
 thSent:/th
 thAction/th
   /tr
   tr class='mailrow' onclick='viewMsg( .$id .,\ .$subject .\);' 
 td$subject/td
 td$username/td
 td$sentdate/td
 td valign='middle' align='center'
   img src='/images/icons/delete.png' width='16' height='16'
 onclick='deleteMsg(this, $id);'
   img src='/images/icons/reply.png' width='16' height='16'
 onclick='replyMsg(this, $id, \{$subject}\ );'
   img src='/images/icons/forward.png' width='16' height='16'
 onclick='forwardMsg(this, $id, \{$subject}\ );'
 /td
   /tr
 /table

 In the onComplete: I am calling this code to try and cause the rows to
 highlight during the mouseover... I'm getting nothing.  My first thought is
 that the table hasn't been rendered when onComplete is called but then,
 onComplete should be called after all other work is done.  What's the
 solution to this?

 Prototype:
 $$('tr.mailrow').each(function(item) {
 item.observe('mouseover', function() {
 item.setStyle({ backgroundColor: '#303030' });
 });
 item.observe('mouseout', function() {
 item.setStyle({backgroundColor: '#fff' });
 });
 });

 CSS:
 .mailrow tr:hover { color: #303030; }



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

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



Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Dave Kibble
To answer your OP directly (not sure if it has been, I didn't notice it).

   open_div = 'system'+k+'';
   ...
   if ($(open_div).visible()==true) {

if there is no item with id 'system'+k then $(open_div) returns null
(correctly) and so $(open_div).visible() throws an error. (for example
if nothing has id='system123' then when k-123 the error wiil throw)

You can avoid it with:

   if ($(open_div)) {
   if ($(open_div).visible()==true) {


Dave

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



Re: [Proto-Scripty] stupid checkbox question

2012-04-27 Thread Dave Kibble
On 27 April 2012 09:12, Phil Petree phil.pet...@gmail.com wrote:
 Its 4a here, I'm gonna get some sleep.

On 27 April 2012 10:04, Phil Petree phil.pet...@gmail.com wrote:
 Well, that didn't work...

not enough sleep!

 input type='checkbox' id='1'

not a legal ID - must start with a letter

 onclick=saveChange(1);

1 is a number, '1' is a string


 function saveChange(cbValue)

a better name for the parameter would be cbID


Dave

-- 
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] new Element removes the name property from passed initialiser in IE7

2011-09-27 Thread Dave Kibble
Just spent more time than I should discovering a (possible) bug in
prototype's new Element and could not find it in a web search so
thought I'd log it here.

I have an object that stores the type of a pop-up (simplified):

  this.attributes = {name: 'value', type: 'text'};

then uses the object to create a new element of the correct type:

  new Element('input', this.attributes);

in IE7 (not Firefox) the name parameter is deleted so next time I call

   new Element('input', this.attributes);

the input element does not have a name property.


I fixed it with a rather big kludge in the call to make a copy of the
attributes:

new Element('input', $H(op.attributes).clone().toObject());

The problem seems to be in prototype.js global.Element where the code says

if (HAS_EXTENDED_CREATE_ELEMENT_SYNTAX  attributes.name) {
  tagName = '' + tagName + ' name=' + attributes.name + '';
  delete attributes.name;
...


Hope this helps someone (or maybe someone else can suggest a better fix!).

cheers
Dave

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



Re: [Proto-Scripty] Firefox height:100% bug w/ prototype fix

2010-11-22 Thread Dave Kibble
I suggest that you insert a doctype and then run it through a
validator until you get no errors or warning and then analyse what you
are left with if you still have the problem.

On 15 November 2010 19:26, Scott counterstre...@gmail.com wrote:
 So I've been working on a project the involves a table cell being
 scrollable. Firefox is not too friendly with height:100% when the
 parent element does not have a fixed height. (basically height:100% of
 height:auto = height:auto). From what I hear (and I don't want to
 start a standards compliance debate) firefox is following the rules
 but I'm not happy with it. IE, Chrome and Safari are rendering the
 desired results, I could care less who is doing it 'right'.

 This is more of a css issue but I'm pasting it here because I used the
 prototype library to aid me in my solution.

 http://pastie.org/1300351

 let me know what you think or if you have any suggestions to improve
 my code.
 (please exclude your opinions on standards compliance)

 - Scott

 --
 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-scriptacul...@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.



-- 
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-scriptacul...@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.



Re: [Proto-Scripty] Re: how to modify a part of an a href=...

2010-08-19 Thread Dave Kibble
depends entirely on what you are trying to capture - is the edit
always there? is the  /admin/users/ always there?

in general I'm a great fan of http://www.w3schools.com/ but not sure
what to recommend for regular expressions in general - most sites are
confusing rather than educational for the novice :) you can try
http://www.w3schools.com/jsref/jsref_obj_regexp.asp

On 19 August 2010 14:26, Erwin yves_duf...@mac.com wrote:
 I tried  the following

 var editRegExp = /(^.*?)([^\/]*)\/edit\?(.*$)/;

 var edit_link = $('edit_user').down('a');
 var match = editRegExp.exec(edit_link.href.toString());

 on this url  :

  /admin/users/4c6a275ea326cb01f401/edit?locale=en

 seems to work , maybe a better writing ?



 On 19 août, 15:10, Erwin yves_duf...@mac.com wrote:
 Hi Dave .. sorry to ask you an additional trick ...  but as you are
 qui good in RegExp ...

 what if the href is as following :

   /admin/users/4c6a275ea326cb01f401/edit?locale=en

 in this case (^.*?) is getting the 'edit' string, not the id number :
 4c6a275ea326cb01f401

 btw : which tutorial do you recommend to get a better understanding of
 RegExp ..?  (I found some of them w good explanation but few
 examples;..)

 erwin

 On 18 août, 19:27, Dave Kibble davekib...@gmail.com wrote:



  you might find this regular expression useful:

  var myRegExp = /(^.*?)([^\/]*)\?(.*$)/;
  var match = myRegExp.exec(link.href.toString());
  alert(match[1] + '\n' + match[2] + '\n' + match[3]);

 --
 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-scriptacul...@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.



-- 
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-scriptacul...@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.



Re: [Proto-Scripty] how to modify a part of an a href=...

2010-08-18 Thread Dave Kibble
you might find this regular expression useful:

var myRegExp = /(^.*?)([^\/]*)\?(.*$)/;
var match = myRegExp.exec(link.href.toString());
alert(match[1] + '\n' + match[2] + '\n' + match[3]);

-- 
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-scriptacul...@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: Simple Ajax form

2009-11-03 Thread Dave Kibble

What happens if you type your server/getIP.php into a browser address bar?

Your PHP should emit a valid HTML file (i.e. include head and body
tags), but I don't know if that would necessarily stop it working.

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