yeah, I'm sorry that was sloppy of me. Thierry is correct it should have
been "window.addEvent(".

On Thu, Feb 11, 2010 at 12:54 AM, Thierry bela nanga <[email protected]>wrote:

> Hello,
>
> javascript is a case sentitive language,
>
> you wrote window.addevent instead of window.*addEvent, *that's why you
> have that error,
>
>
>
> On Thu, Feb 11, 2010 at 7:47 AM, Deepali <[email protected]> wrote:
>
>> Thanks for your reply Gary.
>>
>> Getting this following error-
>>
>> Error: window.addevent is not a function
>> Source File: ..//autorefresh.php
>> Line: 6
>>
>> On Feb 10, 8:08 pm, Gary Hussey <[email protected]> wrote:
>> > make sure it only runs after the domready event is fired.
>> >
>> > window.addevent("domready",function(){
>> > $("element_ID").load.periodical(5000,this,'test.php');
>> >
>> > });
>> >
>> > if you run it before then there is no element to run ".load" from.
>> >
>> > - Gary
>> >
>> > On Wed, Feb 10, 2010 at 6:41 AM, Deepali <[email protected]> wrote:
>> > > Hello chris,
>> >
>> > > -->This can be done via mootools
>> >
>> > > Could you please tell me how? :'( or what i need to change in my
>> > > function or how to use periodical function without "Onclick" method?
>> >
>> > > On Feb 10, 4:46 pm, cbolson <[email protected]> wrote:
>> > > > So, you are back to what   @Ryan Rampersad originally said in his
>> > > > first response.
>> >
>> > > > If you want to change the address bar you need to refresh the page.
>> >
>> > > > This can be done via mootools, meta tags or even php (in the case
>> that
>> > > > that is your programming language)
>> >
>> > > > Chris
>> >
>> > > > On 10 feb, 12:28, Deepali <[email protected]> wrote:
>> >
>> > > > > Thanks for your reply gary,
>> >
>> > > > > I have got it what you are trying to tell me. but i want to
>> show(in
>> > > > > address bar) my test.php is refreshing after certain time.
>> > > > > I have tried your solution but got the error that "this" is not
>> > > > > define.
>> >
>> > > > > Cant we just do auto refreshing of page(without ajax) a with
>> mootools?
>> >
>> > > > > On Feb 10, 10:52 am, Gary Hussey <[email protected]> wrote:
>> >
>> > > > > > Sandy is right. Content loaded to your document using the AJAX
>> method
>> > > will
>> > > > > > not have any address bar indicators. Any AJAX RIA development
>> large
>> > > or small
>> > > > > > benefits from the right tools, grab a plugin for firefox called
>> > > "firebug".
>> > > > > > This plugin will make it easy as pie to watch your requests as
>> they
>> > > fire
>> > > > > > off. the interface also offers up some very nice response
>> handling as
>> > > well.
>> > > > > > Secondly the mootools documentation is some of the best in the
>> biz,
>> > > most of
>> > > > > > it even has working examples right there in the breakdown. This
>> case
>> > > is no
>> > > > > > exception, arm yourself with this documentation and you'll
>> discover
>> > > that you
>> > > > > > can do anything with this framework. I've been using it for over
>> 3
>> > > years and
>> > > > > > I still use the documentation regularly.
>> >
>> > > > > >
>> http://mootools.net/docs/core/Native/Function#Function:periodical
>> >
>> > > > > > Another great thing to know is what's actually going on with the
>> > > "Request"
>> > > > > > class. When I first started working AJAX I found a tutorial that
>> > > explains
>> > > > > > the real deal. Go through this tutorial and you'll know what's
>> > > actually
>> > > > > > going on behind the Request's magic curtain. It's not really as
>> much
>> > > as you
>> > > > > > might think.
>> >
>> > > > > >http://w3schools.com/ajax/ajax_intro.asp
>> >
>> > > > > > Forgive them for using ASP, the site is a wealth of free and
>> accurate
>> > > > > > information charts and knowledge, again I reference it
>> regularly.
>> >
>> > > > > > SOLUTION: (credit to Sandy's first response);
>> >
>> > > > > > $("element_ID").load.periodical(5000,this,'test.php');
>> >
>> > > > > > God bless and good luck with your content ticker as well as all
>> your
>> > > future
>> > > > > > projects.
>> >
>> > > > > > - Gary
>>
>
>
>
> --
> http://tbela99.blogspot.com/
>
> fax : (+33) 08 26 51 94 51
>



-- 
Gary Hussey
Web Craftsman
(205) 535-5736

Reply via email to