you are resetting evt on the invoke ...
try
onSuccess:function(e) {
$$('li.clickinc').invoke('observe','click',function(evt) {
`e` bing the object to get the responseText from and `evt` being the
element that was clicked
}
- Original Message -
From: James Hoddinott
i am sure that everything inside the https page needs to be https linked
including all images and all scripts
- Original Message -
From: [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Tuesday, November 04, 2008 8:59 AM
Subject:
with 2 requests
- Original Message -
From: geoffcox [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Wednesday, November 05, 2008 10:16 AM
Subject: [Proto-Scripty] can I run 2 scripts?
Hello
I have the following code which works fine
can you re-post your full sourcecode for the funciton and the elements that
it produces and the elements you want to observe .. i will edit it for you
and put in some debugging for you
Regards
Alex Mcauley
- Original Message -
From: James Hoddinott [EMAIL PROTECTED]
To: prototype
so only 60% resides in memory not 100% ..
hope this helps
- Original Message -
From: James Hoddinott [EMAIL PROTECTED]
To: prototype-scriptaculous@googlegroups.com
Sent: Wednesday, November 05, 2008 12:05 PM
Subject: [Proto-Scripty] Re: In a bind...
2008/11/5 Alex Mcauley [EMAIL
: Wednesday, November 05, 2008 2:46 PM
Subject: [Proto-Scripty] Re: In a bind...
2008/11/5 Alex Mcauley [EMAIL PROTECTED]:
I've made some comments and put in some debugging ... you should get an
alert when you click an li now .. with the id ..
So the function now looks like:
Event.observe
);
$('message').activate();
new PeriodicalExecuter(pollChat,3);
Walter
On Nov 5, 2008, at 10:58 AM, James Hoddinott wrote:
2008/11/5 Alex Mcauley [EMAIL PROTECTED]:
does firebug report any error at all ...
Not a thing.
you could also try to evalJs in the options and put the invoke
inside
have you tried onComplete()
- Original Message -
From: James Hoddinott [EMAIL PROTECTED]
To: prototype-scriptaculous@googlegroups.com
Sent: Wednesday, November 05, 2008 4:51 PM
Subject: [Proto-Scripty] Re: In a bind...
2008/11/5 Alex Mcauley [EMAIL PROTECTED]:
another thought
/11/5 Alex Mcauley [EMAIL PROTECTED]:
another thought is that onSuccess isnt being fired ...
Try to onSuccess: function(evt) {
alert(evt.responseText); and see if it reposnds with some html or
whatever
your php script is echoing
I tried that one :)
By adding an alert() to the
onSuccess
well spotted Kangax !! i didnt even see that
- Original Message -
From: kangax [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Wednesday, November 05, 2008 8:35 PM
Subject: [Proto-Scripty] Re: In a bind...
On Nov 4, 11:37 am, James
Hope this helps .. please let me know how you got on
Regards
Alex
From: James Hoddinott [EMAIL PROTECTED]
To: prototype-scriptaculous@googlegroups.com
Sent: Wednesday, November 05, 2008 3:58 PM
Subject: [Proto-Scripty] Re: In a bind...
2008/11/5 Alex Mcauley [EMAIL PROTECTED]:
does firebug
You need to get the contents of the element as $('foo') is the element
itself ..
innerHTML or innerTEXT should work ...
var total=$('foo').innerTEXT;
alert(parseFloat(total));
- Original Message -
From: Scott [EMAIL PROTECTED]
To: Prototype script.aculo.us
Hi guys and gals ... today i am building a lazyLoader based on prototype
Its already working except i assumed i could do a synchronous request so
nothing further in the javascript function is executed untill the request
has finished ... it seems that asynchronous : false; is not wokring
i want it to be transparent hence the syncronous request ... so the function
that calls the dependencies waits to continue untill the scripts that it
requires are loaded
I have it inserting a script into the dom properly but if i try to call the
function in the test script it doesnt work
you can observe the window to load and set a timeout to execute Effect.Fade
Regards
Alex
- Original Message -
From: [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Thursday, November 06, 2008 2:34 PM
Subject: [Proto-Scripty] Setting a
the
script tags to the header.
[1] http://blog.niftysnippets.org/2008/03/horror-of-implicit-globals.html
[2] http://ajaxian.com/archives/evaling-with-ies-windowexecscript
FWIW HTH,
--
T.J. Crowder
tj / crowder software / com
On Nov 6, 2:52 pm, Alex Mcauley [EMAIL PROTECTED]
wrote:
i want
you cannot upload or download files with an XHR its impossible
- Original Message -
From: Uzm [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Thursday, November 06, 2008 4:03 PM
Subject: [Proto-Scripty] AJAX file upload using Prototype
i wanted to build my own for POC and because i dont want it bloated ...
- Original Message -
From: buda [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Thursday, November 06, 2008 7:17 PM
Subject: [Proto-Scripty] Re: Building a lazy Loader
for
the contents of the file became dependent on the script tag and not
the JS execution.
On Nov 6, 11:50 am, Alex Mcauley [EMAIL PROTECTED]
wrote:
yes thanks for the reply, i have removed evalScripts, i only put it in for
a
second to test i am going to put in a timeout to pause the script
before
Hi Jonathon ..
You are giving the request the wrong parameter ...
You dont need to set a header of text/javascript either
evalJS : true,
making your script
new Ajax.Request('test.php', {
evalJS: true, // - notice evalJS not evalScripts
onSuccess: function(transport) {
okay i am trying to get this correct ..
You want to see if a certain amount of spans in an element have a class name
of 'complete' and if so do something else
firstly you can easily count the amount with $$
var $complete=$$('.complete').length
then you want to do something if they are more
Its very simple to do,
You can pretty much do it in CSS all except the little bit of opacity that
it has
[css]...
.classname:hover {
margin-right:15px;
}
- Original Message -
From: mumbojumbo [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
click on CONTACT,
the same thing happens, this time overlapping the previous page
which was CONTENT.
I managed to make individual instances of the Effect.Appear using
Script.aculo.us, but my DIVs won't overlap. I tried fixing it with CSS
z-index, but it's still messed up.
On Nov 10, 8:04 pm, Alex
and
change. In my case though, instead of sliding, I want mine to fade in
and out.
On 10 Nob, 22:07, Alex Mcauley [EMAIL PROTECTED]
wrote:
You may be better off loading the content with Ajax requests rather than
all
the content being in hidden elements in the page
- Original Message
Cogent : firstly stay away from onload ... use the
Event.observe(window,'load',function() {
Your exeutable functiosn go in here
});
Wrapper
there are a couple of ways to achieve what you want ..
You could set a timeout on a for loop counting each of the divs in a
classname and
The bind's are bubbling up the DOM ... you need to look at Event.stop(event)
to stop this happening
- Original Message -
From: Hippyjim Starbrook [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Sunday, November 09, 2008 8:58 PM
Subject:
On Mon, Nov 10, 2008 at 12:31 PM, Alex Mcauley [EMAIL PROTECTED] wrote:
can you pastebin your code or put it in the reply and tell us what browsers
it works / not works in, then we can make an assesment to where the problem lies
Thanks
Its okay i fixed it myself ... i didnt realise that getStyle('right') did it
!!
- Original Message -
From: Jeztah [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Tuesday, November 11, 2008 6:28 PM
Subject: [Proto-Scripty] Right offset Of
just FYI i really would not use unsanitized $_POST data in the search, it
can lead to SQL injection
- Original Message -
From: Walter Lee Davis [EMAIL PROTECTED]
To: prototype-scriptaculous@googlegroups.com
Sent: Tuesday, November 11, 2008 6:48 PM
Subject: [Proto-Scripty] Re: How do I
Alex.
On 11 Nob, 01:08, Alex Mcauley [EMAIL PROTECTED]
wrote:
That one uses the hidden divs and is really not a good idea for a few of
reasons ..
Firstly:- speed of page loading ... if all of your content
is on the first page it will tak a long time to load all of it
Secondly:- if the user
Thanks Chris ..
This release only took me abut 12 hours to write !!
Could you point out the stuff that needs cleaning up (aside the
indentation!!)
As for the liscence ... i know nting about liscencing ... i just want people
to be able to use the code as they want to and modify it to suit
:09 PM, Alex Mcauley
[EMAIL PROTECTED] wrote:
Thanks Chris ..
This release only took me abut 12 hours to write !!
Could you point out the stuff that needs cleaning up (aside the
indentation!!)
As for the liscence ... i know nting about liscencing ... i just want
people
to be able to use
- Original Message -
From: Chris Brody [EMAIL PROTECTED]
To: prototype-scriptaculous@googlegroups.com
Sent: Wednesday, November 12, 2008 4:58 PM
Subject: [Proto-Scripty] Re: Window System - WebOs / Web Desktop
On Wed, Nov 12, 2008 at 5:46 PM, Alex Mcauley
[EMAIL PROTECTED] wrote:
yes its
perhaps put your code up so someone can evaulate it and put forward a
suggesiton ?
- Original Message -
From: matte [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Thursday, November 13, 2008 9:30 AM
Subject: [Proto-Scripty] Extending
area etc etc etc
A few CSS changes to pretty up the application
Demo available @
http://dev.thecvmarket.com/unitTest.php
Regards
Alex Mcauley
- Original Message -
From: Alex Mcauley [EMAIL PROTECTED]
To: prototype-scriptaculous@googlegroups.com
Sent: Wednesday, November 12, 2008 7:09 PM
at 10:39 AM, Alex Mcauley
[EMAIL PROTECTED] wrote:
A few bugs have been fixed and some new additions made including double
clicking the title bar to maximize/minify the window, Z-indexes fixed to
position windows accordingly when having multiple smaller windows open in
the container, inner
Regards
Alex
- Original Message -
From: Alex Mcauley [EMAIL PROTECTED]
To: prototype-scriptaculous@googlegroups.com
Sent: Thursday, November 13, 2008 10:24 AM
Subject: [Proto-Scripty] Re: Window System - WebOs / Web Desktop
that is strange for the safari ... i just tested it on my
have you tried to remove the single quotes around the json string ?
- Original Message -
From: gingerbbm [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Thursday, November 13, 2008 4:28 PM
Subject: [Proto-Scripty] Re: evalJSON hangs IE
here is a pastie of the test i ran in Firefox at least
http://pastie.org/314776
Regards
Alex
- Original Message -
From: T.J. Crowder [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Friday, November 14, 2008 12:02 PM
Subject:
sorry my original code was wrong ..
http://pastie.org/314784
The code above actually says 2 requests when there should only be 1 !!!
Here is a better example i cant recreate the problem entirely as it
needs a few periodical updaters to be going on in the background but
when they
each does an array itterator no ?
- Original Message -
From: laurin1 [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Friday, November 14, 2008 8:29 PM
Subject: [Proto-Scripty] Chrome, Object and each()
Apparently, this does not work? I
perhaps missing ; on the end of the statements ?
- Original Message -
From: Tarscher [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Sunday, November 16, 2008 5:39 PM
Subject: [Proto-Scripty] code works in chrome not ff and ie
Hi all,
archief';
}
else
{
$('archive_function_link').innerHTML = 'Verberg
archief' ;
};)
%
but no succes
On 16 nov, 19:22, Alex Mcauley [EMAIL PROTECTED]
wrote:
perhaps missing ; on the end of the statements ?
- Original Message -
From
you can assign the request to a variable
myRequest = new Ajax.Request(..
- Original Message -
From: Manish [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Monday, November 17, 2008 9:09 AM
Subject: [Proto-Scripty] new
basically i think i need a push method to push values into a json object
then i can try to decode it on the server!!
- Original Message -
From: Jeztah [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Monday, November 17, 2008 11:51 AM
@googlegroups.com
Sent: Monday, November 17, 2008 12:34 PM
Subject: [Proto-Scripty] Re: Sending Json to the server
hmm just out of the top of my head here, did you try using
$H(form.serialiaze()) ?
cheers
--
mona
[EMAIL PROTECTED]
On Mon, Nov 17, 2008 at 1:13 PM, Alex Mcauley
[EMAIL PROTECTED] wrote
what about this:
var params = {};
$$('.formJson').each(function(e) {
params[$(e).dbCol] = $(e).value;
}
cheers
--
mona
[EMAIL PROTECTED]
On Mon, Nov 17, 2008 at 1:43 PM, Alex Mcauley
[EMAIL PROTECTED] wrote:
cant use it as it needs to be custom as stipulated ... i need to get
I suppose what i need is a push into my json object method ... though i
cant seem to find a working one in prototypejs ..
merge(); and update(); both seem to want to be used with $H() but it updates
with my var ...
Something like {l : doe}
when it should be {surname : doe};
plus it doesnt
true / flase should usually be not in quotes ... try removing the quotes
- Original Message -
From: scripter [EMAIL PROTECTED]
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Monday, November 17, 2008 1:35 PM
Subject: [Proto-Scripty] Javascript error in IE6
).value;
...it's not at all clear that's not meant to be code. Not *good*
code, but I've seen worse. ;-)
Thanks,
-- T.J.
On Nov 17, 1:11 pm, Alex Mcauley [EMAIL PROTECTED]
wrote:
because i need to evaluate each one and i need to send other post data
that
does not need evaluating .. the other
(and that includes avoiding shorthand).
Thank you!
Tobie
On Nov 17, 3:33 pm, Alex Mcauley [EMAIL PROTECTED]
wrote:
okay m8 calm down lol its no biggie ..
- Original Message -
From: T.J. Crowder [EMAIL PROTECTED]
To: Prototype script.aculo.us
prototype-scriptaculous@googlegroups.com
Sent
on teh same ish subject, this cropped up on ajaxian today !!... might be
worth a read
http://ajaxian.com/archives/trying-to-be-private-in-javascript
- Original Message -
From: Mona Remlawi [EMAIL PROTECTED]
To: prototype-scriptaculous@googlegroups.com
Sent: Monday, November 17, 2008
should parameters not be wrapped like so
parameters : {
f: v;
}
- Original Message -
From: James Hoddinott [EMAIL PROTECTED]
To: prototype-scriptaculous@googlegroups.com
Sent: Tuesday, November 18, 2008 12:56 PM
Subject: [Proto-Scripty] Passing variables after an onComplete
or this method !! ... but be warned if you have other request asynchrnously
in the page then they will start to become synchronous due to this
But if you dont then this will work too
Regards
Alex
- Original Message -
From: Matt Foster [EMAIL PROTECTED]
To: Prototype script.aculo.us
messy but if it a'int broke dont fix it is my motto !!
- Original Message -
From: James Hoddinott [EMAIL PROTECTED]
To: prototype-scriptaculous@googlegroups.com
Sent: Tuesday, November 18, 2008 5:44 PM
Subject: [Proto-Scripty] Re: Passing variables after an onComplete
2008/11/18 Matt
As an added bonus totally unforseen by me, when removing the element that
the object was initialized in - it seems to remove the object too ...
i.e the Object was created in an ajax callback in an element .. once i
applied $('div').remove(); to the element that created it then it seems to
if you want to use the jquery one you can tell jquery to not conflict with
prototype's namespace
$jQuery=jQuery.noConflict();
then ... $jQuery('#some-id').someJqueryFunction() .. for jQuery methods
and $('some-id').somProtoFunction() .. for prototype methods
Regards
Alex
- Original
i am not familier with the light window but most haev a classname so best
thing to do is find the classname for the parent container of the lightbox
and do something like
$$('.TheClassName').each(function(e) {
$(e).remove();
});
Regards
Alex
- Original Message -
From: pradeep [EMAIL
i cant see a question .. perhaps i am blind - it is monday afterall !!
- Original Message -
From: Marcus Richter [EMAIL PROTECTED]
To: prototype-scriptaculous@googlegroups.com
Sent: Sunday, November 30, 2008 3:12 PM
Subject: [Proto-Scripty] Re: Window Scrolling -- sortables.create() and
not everything is a class and needs initiating with new ... you should
check what does need new and what doesn't .. some effects need to be
initiated as objects as they are classes and some dont
Regards
Alex
- Original Message -
From: fero [EMAIL PROTECTED]
To: Prototype
Add a class to each div you want faded and remove the inline handler
create a function that listens to click on the href's
then do something like
function handleFade(element) {
$$('.the-class-name-for-the-faded-elements').each(function(e) {
Effect.toggle(e,'fade'); // fades out
perhaps it is trying to fire the default clicking for the href try to
substitue the href for a span or somehting and see if it stops it ... if it
does then you need to add an event.stop to stop the default behaviour of the
href element
Regards
Alex
- Original Message -
From:
thinking of a prototype solution and not
necessarily the jQuery solution.
But, in on the flip side i have the following:
http://proto-scripty.wikidot.com/extras
but i do agree, a tiny bit of research would have been more prudent.
On Wed, Nov 26, 2008 at 9:43 AM, Alex Mcauley
webmas
I would look at the observe in a different way ...
by that i mean observe the element that you are hovering not the whole
window this way the event will bubble up the DOM and can be stopped as
bubbling goes up the document not down.. this is a quick and dirty tooltips
script i wrote a
try unpacking the javascript below the function or adding the packed js
above the function .. perhaps the interpreter is still unpacking or has not
unpacked the js before the function is called ?
- Original Message -
From: debbie zef.andr...@gmail.com
To: Prototype script.aculo.us
if its any help the same thing happens in google chrome !!
- Original Message -
From: Cyrus arianglan...@googlemail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Monday, January 12, 2009 5:27 PM
Subject: [Proto-Scripty] Re: Opera and $$('.wrapper
I scrapped the idea and made it dissapear after a certain time .. was to
much a headache !!
- Original Message -
From: bflanagan flanag...@gsicommerce.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Thursday, January 15, 2009 2:38 PM
Subject:
Thanks TJ i didnt think about it like that, the second way would work ...
its oky now as i just mke it fade away after 10 seonds or something
Thanks again
Alex
- Original Message -
From: T.J. Crowder t...@crowdersoftware.com
To: Prototype script.aculo.us
if you want to work out whats currently selected you can add a click event
to the tab headings and store the value in a hidden field somewhere .. then
you can allways access it whenever you need to
Regards ALex
- Original Message -
From: Matt guitarroman...@gmail.com
To: Prototype
scripteka.com
- Original Message -
From: Joshua Partogi joshua.j...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Saturday, February 07, 2009 11:40 AM
Subject: [Proto-Scripty] Recommendable Prototype based widgets
Dear all,
Can anyone
its also possibly to do with the minimum height needed to slide stuff in and
out ive noticed before that elements under about 50px in different
browsers dont do whats required this is more than likely somehting to
do with the default height used by the browser html renderer (think of
event.preventDefault();
or
return false;
- Original Message -
From: cyrusdev08 cyrusde...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Tuesday, February 10, 2009 7:00 AM
Subject: [Proto-Scripty] Event.stop(event) FF Issue
Hello Every One
Thanks for the input ... i have coded many sites that work with and without
and enhanced by JS ... the question i am asking is not how to achieve it but
should we as developers be forcing the issue of making more interactive
sites ... I am all for serverside code as thats where i began but its
oops sorry my bad ... i posted the wrong function ...
Here is the correct one
$$('.cancel').each( function(element) {
alert($(element).next()); // returns undefined ?
alert($(element).next(0)); // returns undefined ?
alert($(element).next(1)); // returns undefined ?
i am not observing .. simply calling the alerts on each of
$$('.classname')..
Does that still take event as the first argument
Thanks
Alex
- Original Message -
From: Walter Lee Davis wa...@wdstudio.com
To: prototype-scriptaculous@googlegroups.com
Sent: Tuesday, February 10, 2009 4:39
Thanks SWilk ... i saved myself the hassle and changed the classname it was
looking for instead !!
- Original Message -
From: SWilk wilkola...@gmail.com
To: prototype-scriptaculous@googlegroups.com
Sent: Tuesday, February 10, 2009 5:24 PM
Subject: [Proto-Scripty] Re: Possible prototype
a redirect.
On Feb 10, 11:09 am, Alex Mcauley webmas...@thecarmarketplace.com
wrote:
Thanks for the input ... i have coded many sites that work with and
without
and enhanced by JS ... the question i am asking is not how to achieve it
but
should we as developers be forcing the issue of making
use firefox and firebug and see whats getting posted in the console log ..
it should hell you to understand if Javascript is sending the data or not
- Original Message -
From: Paul pauljeffer...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent:
because the body is not a dynamically added element !!!
I want to add an element to the document dynamically and have it appear in
the center of the screen no matter where the scroller is
Thanks for the reply
I sorted it
Alex
- Original Message -
From: asterix m...@free.fr
To:
Craig..
Why not try removing the onclick and adding it to an observer
img id=foo /
Event.observe(window,'load', function() {
$('foo').observe('click',function() {
/*
please change foloowing for a tenary oprator if needs be !!
*/
if($(this).style.display!='none') {
look at Event.stop(event) ... that will stop it bubbling up the DOM
but you need the event passed to the function
HTH
ALex
- Original Message -
From: Jason Frisvold xenopha...@gmail.com
To: prototype-scriptaculous@googlegroups.com
Sent: Friday, February 20, 2009 1:58 PM
Subject:
use jQuery.noConflict(); and it wont conflict
HTH
Alex
- Original Message -
From: David roca.da...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Tuesday, February 24, 2009 1:01 PM
Subject: [Proto-Scripty] Re: Conflict event noAvailable
when jQuery is loaded do $jq=jQuery.noConflict();
then $jq becomes jquery
or just use jQuery() instead of $()
- Original Message -
From: T.J. Crowder t...@crowdersoftware.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Thursday, February 26, 2009 9:50
Firstly in your CSS you have float:centre
There is no float:center as far as i know .. if there were it would be
center --- american spelling
i also cannot see any Javascript in there to help you with
- Original Message -
From: vanq69 jaed...@gmail.com
To: Prototype
it global safe.
Oh well, I guess we're still in the Wild West era of JS coding...
If I get feedback from them that is useful, I'll post it back to this
list for posterity.
Thanks,
Boysenberry Payne
On Feb 26, 2009, at 3:56 AM, Alex Mcauley wrote:
when jQuery is loaded do $jq
be my eventual solution.
Right now, I have emailed some folks at Digg to see if they have a
solution that doesn't require me to load prototype out of the natural
order it comes in using our current build.
--Boysenberry
On Feb 26, 2009, at 9:05 AM, Alex Mcauley wrote:
jQuery is globally
- this is what
I am unsure of how to do.
Hope this clears things up, thanks for the help so far :)
On Feb 26, 1:18 pm, Alex Mcauley webmas...@thecarmarketplace.com
wrote:
Firstly in your CSS you have float:centre
There is no float:center as far as i know .. if there were it would be
center
Jonny ..
i wrote this a few months back and forgot about it ...
Its the basics you will need to achieve what you want to do
Any questions please ask
http://proto-scripty.wikidot.com/prototype:how-to-throttle-ajax-requests
Regards
Alex
- Original Message -
From: Alex Mcauley
yes you can call from the iframe a function in the parent easily
Or, you can read the iframe contents by traversing its DOM and looking for
elements (inputs or things) just as easily as traversing the parent
container
HTH
Alex
- Original Message -
From: zero
myTimeout=setTimeout(function(var,var2,var3,var4) {
global x,y,z;
alert('foo = bar');
},5000);
whats wrong with that ?
I dont think this leaks memory so why should any timeout leak memory
Alex
- Original Message -
From: BearState wixelb...@yahoo.com
To: Prototype script.aculo.us
global how .. that doesnt really explain much
If you mean globaly accessible to javascript then you need to do something
like
?php
$bar='bar';
echo(scriptfoo=$bar/script);
?
scriptalert(foo);/script
...
otherwise please be more specific
Thanks
Alex
- Original Message -
: 'Boing'}, onComplete: function(transport)
{
var data=transport.responseText;alert(data);}
});
});
HTH
Alex
- Original Message -
From: Alex Mcauley webmas...@thecarmarketplace.com
To: prototype-scriptaculous@googlegroups.com
Sent: Tuesday, March 03
PM
Subject: [Proto-Scripty] Re: Ajax.Request and php global variable
Alex Mcauley wrote:
global how .. that doesnt really explain much
If you mean globaly accessible to javascript then you need to do
something
like
?php
$bar='bar';
echo(scriptfoo=$bar/script);
?
marioosh
I am not sure that you can pass objects from php to javascript and back
again ...
You can pass javascript objects from php to javascript with serialization
but i dont think php objects will pass correctly ...
Perhaps there is a better way to do what you want, could you explain what
you are
I dont think sessions will cut it if he is trying to move around php objects
async, process them and or add to them and return the same object ... - is
all depends on what he is trying to do but for instance to set a session
variable in PHP then retrieve that session variable later on in a
Message -
From: Szymon Wilkołazki wilkola...@gmail.com
To: prototype-scriptaculous@googlegroups.com
Sent: Tuesday, March 03, 2009 1:41 PM
Subject: [Proto-Scripty] Re: Ajax.Request and php global variable
Alex Mcauley pisze:
Quoting does not allways matter when setting javascript vars
you could addMethods the whole ajax class and add your own parameters ..
see here :
http://www.prototypejs.org/api/class/addMethods
and add them at that point...
This would be one solution
Regards
Alex
- Original Message -
From: Cameron McCloud cameron.mccl...@gmail.com
To:
you might want to try
something like this ...
var element='someElementId';
var req=new Ajax.Request('/'+url, {
evalScripts: false, // -- notice false is not wrapped in quotes
!!
method: 'post',
onSuccess : function(transport) {
Yes walter is correct... As far as i know you cannot insert an element into
another element if it does not exist in the DOM (as the element is still an
object that resides in memory at the time) .. though i could be wrong
- Original Message -
From: Walter Lee Davis
is it php thats generating the reposnse ..
If so you can just tell php to not output warnings ..
example:
ini_set('display_errors','0');
HTH
Alex
- Original Message -
From: Richard Quadling rquadl...@googlemail.com
To: prototype-scriptaculous@googlegroups.com
Sent: Friday, March 06,
1 - 100 of 492 matches
Mail list logo