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
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
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
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.
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,
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
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
..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
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
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
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
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
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
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
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
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
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
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
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:
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,
$$('.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,
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
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
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?
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
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
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, {});
});
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';}
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,
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
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
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
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
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
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
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
36 matches
Mail list logo