[Proto-Scripty] Re: The Unofficial Wiki

2010-04-08 Thread disccomp
T.J. Crowder: Question: Do we need a wiki with user-generated content? We should: just move all of the relevant content to the Prototype website and make sure the process for contributing to the website is well-publicized, easy, and efficient I think the site needs an integrated

[Proto-Scripty] Re: AJAX.Request complains about 'function expected' in IE6

2010-03-18 Thread disccomp
I think: requestHeaders: ['Accept-Encoding', ''] should be: requestHeaders: {'Accept-Encoding': ''} 'msg' is not explicitly defined in your post, it is set somewhere, right? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post

[Proto-Scripty] Re: Ajax.Request - can't get to work in Firefox, Chrome

2010-03-15 Thread disccomp
Are you sure your servlet is responding with the proper headers. Try creating a small self-contained minimum test case which fails. Using a relative URL ensures that it is from the same origin as the loading page. -Mark -- You received this message because you are subscribed to the Google Groups

[Proto-Scripty] Re: Dashboard

2010-02-25 Thread disccomp
I worked on something similar, 3 columns, portlets can be moved from column to column with asyncronous callbacks to the server to update portlet order. It's simple and only requires prototype/scriptaculous.

[Proto-Scripty] Re: document.write() vs Element/appendChild()

2009-12-11 Thread disccomp
A good reason to get out of the habit of using document.write, is that it is NOT supported by XHTML.[1] [1] http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group,

[Proto-Scripty] Re: Scriptaculous drag and drop

2009-10-09 Thread disccomp
Check out the scriptaculous draggable examples[1], specifically the yellow box example of { scroll: window }. Hope this helps. -Mark [1] http://wiki.github.com/madrobby/scriptaculous/draggable --~--~-~--~~~---~--~~ You received this message because you are

[Proto-Scripty] Re: Content-type for AJAX/JSON? Argh!

2009-09-28 Thread disccomp
I'd inspect the headers with Firebug just to be sure, I'd also use change the 'alert(Response: + foo);' to 'console.dir(foo);' and check it in Firebug as well. Might give you a better idea of exactly whats going on. Good luck, -Mark --~--~-~--~~~---~--~~ You

[Proto-Scripty] Re: YSlow's rule JavaScript at the bottom w/Prototype

2009-09-16 Thread disccomp
..move scripts to the bottom of the page if they are deferrable. I think you should read more into the last word of this quote. If your application is dependent on the javascript for basic functionality then those scripts are not deferrable. If the scripts just added eye candy or some other

[Proto-Scripty] Re: Prototype and Xhtml validation

2009-09-15 Thread disccomp
Just to clarify, In case some other noob sees this. You EITHER use a script tag to include an external .js file OR you xml escape inline code. NOTICE: you must add two forward slashes so old browsers ignore the CDATA tags. Example: script src=prototype.js type=text/javascript/script OR

[Proto-Scripty] Re: Prototype and Cross Domain Access

2009-08-31 Thread disccomp
So, your options are: 1. Proxy the request to feed yourself 2. Let Google or someone else proxy it for you Note: parsing RSS feeds can be pretty resource intensive if you have many users loading many feeds simultaneously. I use the Google RSS Feed API and let them do the heavy lifting. I then

[Proto-Scripty] Re: determine if dom:onload has happened yet?

2009-06-25 Thread disccomp
Shouldn't that check happen in the library? I don't think I've ever had this happen to me, but it sounds like it is something easily solved. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

[Proto-Scripty] Re: Bizzarre goings on

2009-06-10 Thread disccomp
IE8 Developer Tools work great for finding these problems. --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: Adding method to Object to be able to iterate over a json property

2009-05-29 Thread disccomp
I came across this quirk in PHP as well. IMHO, it is much better to fix the code on the server side than it would be to mess with (correctly functioning) code on the client. -Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Proto-Scripty] Re: Ajax.Updater and JavaScript source files inclusions

2009-05-27 Thread disccomp
I cam across these related tickets: http://dev.rubyonrails.org/ticket/6722 http://dev.rubyonrails.org/ticket/9871 I think it would probably be critical for many use cases that the scripts load synchronously in order of appearance after an element is updated. Maybe another value for the

[Proto-Scripty] Namespace Function

2009-04-21 Thread disccomp
Came across this page: http://blog.arc90.com/2008/06/an_easy_way_to_implement.php This function would make a nice utility function to include in Prototype, call it $N. So, $N('first.second.third.request) = New Ajax.Request(... $N Would make sure that each level of the namespace exists then

[Proto-Scripty] Re: Namespace Function

2009-04-21 Thread disccomp
Here's the working code: http://pastie.org/454045 --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: Namespace Function

2009-04-21 Thread disccomp
Oops, left hand assignment error, didn't quite work the way I thought it would. --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: having a default of no selection in drop down list

2009-04-07 Thread disccomp
Maybe set an id on the blank option, and set that option's SELECTED attribute with a js call in afterUpdateElement. -Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to

[Proto-Scripty] Re: having a default of no selection in drop down list

2009-04-03 Thread disccomp
First thing I noticed was the display:none inline style of #autocomplete_choices is going to make any updates hidden. I've never actually used this feature myself, maybe unhiding this div is automatic. If you haven't yet, check out:

[Proto-Scripty] Re: having a default of no selection in drop down list

2009-04-02 Thread disccomp
Try a ruby(or whatever that code is) forum or paste in the source from firefox after it has been interpreted. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group,

[Proto-Scripty] Re: examine whether methode is already used

2009-04-02 Thread disccomp
$$('.ClassNameToGet') --~--~-~--~~~---~--~~ 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,

[Proto-Scripty] Re: Error by use HTTPS, Google Adwords and Prototype Ajax.(Periodical)Updater

2009-03-04 Thread disccomp
Are you loading Prototype from an https:// location? Like: https://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To

[Proto-Scripty] Re: AJAX

2009-02-12 Thread disccomp
I usually respond with a JSON object that at least provides some debug info like: {msg:'panel_X removed from col1'} {msg:'panel_X inserted in col2, position Y'} or {msg:'panel_X moved to position Y'} On the client I pass the debug string to a logging function that I use to output all my

[Proto-Scripty] Re: Browser and PDF file in a iFrame interaction

2009-02-06 Thread disccomp
It looks like your on your way to a solution. It's one thing to post technical questions, your first post was great. You'll probably see this again GIYF(Google is your friend) Try experimenting with events. (Event.observe) Before asking for code, Ask yourself, Am I a help vampire?

[Proto-Scripty] Re: Hash#filter returns an Array?

2009-02-03 Thread disccomp
Maybe filter should be an alias of findall for arrays, but shouldn't it really return a hash for hashes? Especially if thats its behavior in ruby, which Prototype is supposed to be modeled after. On Feb 3, 4:59 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi Brad, Sorry, I missed that

[Proto-Scripty] Re: help with autocompleter

2009-01-30 Thread disccomp
and i need to get this value, like this $searchterm=$_REQUEST['id'];?? You should make it injections safe, for example if using PHP: $safe_id = mysql_real_escape_string($_REQUEST['id']); $query = SELECT last_name, first_name FROM people WHERE last_name='$safe_id' ; Checkout

[Proto-Scripty] Re: help with autocompleter

2009-01-28 Thread disccomp
Just a guess. Maybe try waiting for the DOM to load before calling your function: new Ajax.Autocompleter(autocomplete, autocomplete_choices, ./ li.php, {}); Like this: Event.Observe(window,'load',function(){ new Ajax.Autocompleter(autocomplete, autocomplete_choices, ./ li.php, {}); });

[Proto-Scripty] Re: Scriptaculous problem with option field

2009-01-22 Thread disccomp
Ajax.Request and methods that inherit it(like autocompleter) accept JSON encoded objects as parameters (AFAIK) /* Set isMirror to something */ isMirror = myobj.isMirror(); /* OR if this is a server-side determined value echo it */ isMirror = ?php if(something){echo 'true';}else{echo 'false';}

[Proto-Scripty] Re: Scriptaculous problem with option field

2009-01-22 Thread disccomp
myParam:{action:'save',mirror:isMirror, value:myVal} //setup JSON Sorry, should be: myParam = NOT myParam: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group,

[Proto-Scripty] Re: What's crashing this page in IE6?

2009-01-22 Thread disccomp
Try Downloading the IE 8 Beta and the Developer Tools, works much like Firebug in Firefox. It can catch javascript errors and let you step through the code. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Event.observe: listen for form submit cancelled

2009-01-22 Thread disccomp
Is there a way to listen for the user cancellation of a form submission. IE they press ESC or click 'Stop' in the browser after having initiated submission? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: Portal Interface

2008-11-23 Thread disccomp
Request for peer code review: I'd really appreciate it if anyone has a chance to review the code in SVN. Thanks -Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to

[Proto-Scripty] Re: Portal Interface

2008-11-19 Thread disccomp
Bugs Fixed, now works as expected in the tested browsers, watch window added to the sample page. Tested Browsers: FireFox 1.5.0.10, 2.0.0.6, 3.04 Safari 3.04, 3.2 IE 7.0.5730.11, 8.0.6001.18241 --~--~-~--~~~---~--~~ You received this message because you are

[Proto-Scripty] Re: Portal Interface

2008-11-14 Thread disccomp
I asked for info on where it would be best to collaborate on this and no one offered any suggestions. What/where do you suggest? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To

[Proto-Scripty] Re: Portal Interface

2008-11-10 Thread disccomp
Anybody think a Portal Extender like this would gain any traction? And if so, where would be a good place to collaborate on it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To

[Proto-Scripty] Portal Interface

2008-11-05 Thread disccomp
I found an old blog entry that uses Prototype script.aculo.us to create a drag-drop portal style interface. http://aymanh.com/drag-drop-portal-interface-with-scriptaculous It's got a couple of bugs that are noted but the author is no longer interested in developing it further. I think if the