Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 29. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  New option... Javascript onClick

phpMyEdit Features     New option... Javascript onClick
Odoslať novú tému   Odpovedať na tému    
 
lukechiam     Založený: 05.12.2004   Príspevky: 5  
Príspevok Zaslal: 2004-12-05 06:59
Návrat hore  Odpovedať s citátom     

Using URL and URLtarget requires me to open a page and then in that page open another and close the previous just to have a small customised window.

I am adding new feature to the class... Javascript onClick option.

Anyone see a need for this?

 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2004-12-05 14:18
Návrat hore  Odpovedať s citátom     

Certainly, but are you speaking of link clic events (basic url 'javascript:foo()', or are you speaking of field clic events ?

_________________
hbernard - phpMyEdit updater.
 
lukechiam     Založený: 05.12.2004   Príspevky: 5  
Príspevok Zaslal: 2004-12-06 05:09
Návrat hore  Odpovedať s citátom     

I am talking about link click events; <a href="#" onClick='javascript:foo();'>

I read thru onlin doc and faq but didnt find anything similar to what I needed so I add to the script...

'URL' => '#',
'URLonClick' => 'javascript;popup( blah blah blah );'

now it is possible to directly popup a customised window providing "popup" function is added to the generated phpMyEdit script for the table.

Is that a hack job you think?

 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2004-12-06 06:13
Návrat hore  Odpovedať s citátom     

What's the difference with :

'URL' => 'javascript:popup( blah blah blah );'
which should work...

(No?)

_________________
hbernard - phpMyEdit updater.
 
lukechiam     Založený: 05.12.2004   Príspevky: 5  
Príspevok Zaslal: 2004-12-06 06:43
Návrat hore  Odpovedať s citátom     

Apparently thats the old style, non compliant to html 4... may cause issues with some browser.

Luke

 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2004-12-06 07:21
Návrat hore  Odpovedať s citátom     

lukechiam Napísal:
Apparently thats the old style, non compliant to html 4... may cause issues with some browser.


Interesting.
Do you have a link for this ?
This is how current tab switch is done inside PME.

the $opts['fdd']['foo']['js']['onClick'] seems a right API to me.

You may report a feature request inthe bugtracker.

Thanks.


--Hugues

_________________
hbernard - phpMyEdit updater.
 
lukechiam     Založený: 05.12.2004   Príspevky: 5  
Príspevok Zaslal: 2004-12-06 11:57
Návrat hore  Odpovedať s citátom     

I saw it on Expert Exchange http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20915622.html
but it is not definative nor did it says "non-compliance". Do you know of any issue with javascript in href?

 
lukechiam     Založený: 05.12.2004   Príspevky: 5  
Príspevok Zaslal: 2004-12-06 12:05
Návrat hore  Odpovedať s citátom     

http://groups.google.com.au/groups?hl=en&lr=&safe=off&selm=pkoi9.495%24BT5.33384707%40newssvr21.news.prodigy.com [url][/url]

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov