javascript thing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
this is more a javascript related problem, but since im building the
application on php, you guys could help me. i implemented xajax as the
ajax motor for my aplication, so i MUST play a little bit with
javascript in some cases. here's the problem:

I have a form with the id="frmIntro". In the xajax script, i make this
call in order to change the onsubmit value of a form dinamically:
$obj->addScript('document.getElementById("frmIntro").onsubmit="alert(\'Test!\');"');
but it just doesn't seem to work.

i made several tries and it seems not to be working only when i try to
modify an onEvent value.
For example, this works:
$obj->addScript('document.getElementById("frmIntro").action="else.php"');

What am I doing wrong? For those who are not familarized with XAJAX,
just read the javascript part, it should be the same stuff.

Thanks,
Andres S


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux