Hexagora Forum
Hexagora Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Share self-made extensions with other users
 Action adding
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

petran
Super User

Netherlands
345 Posts

Posted - 24 Nov 2009 :  13:28:08  Show Profile  Visit petran's Homepage  Reply with Quote
I'm working on an extension to place Google maps in a page. This requires a Javascript call like this: onload="jsCheckZoom();initialize();". (jsCheckzoom made by DHE).
Of course I can place it there manually in the page-properties window, but it would be better to let the extension take care of that.
Is there a way to get that done?

--------

regards

Petran

s.dav
Site Admin

Italy
3360 Posts

Posted - 25 Nov 2009 :  09:14:38  Show Profile  Visit s.dav's Homepage  Reply with Quote
You can simply write in the header code of your extension this javascript code (not tested but it should work):

<script language="javascript" type="text/javascript">
<!--

window.onload=myInit;

function myInit()
{
jsCheckZoom();
initialize();
}


//-->
</script>

Regards, Davide
Go to Top of Page

petran
Super User

Netherlands
345 Posts

Posted - 25 Nov 2009 :  11:54:29  Show Profile  Visit petran's Homepage  Reply with Quote
It worked when I placed it in the body, Thanks

--------

regards

Petran
Go to Top of Page

sajjad123
Novice

Nigeria
1 Posts

Posted - 09 Dec 2014 :  23:55:02  Show Profile  Reply with Quote
Ciao,

a me il data picker non apre nessun calendario e mi rimanda al top pagina... dove sbaglio?
Nella pagina io ho semplicemente creato un form e poi inserito il data picker, niente di +. Debbo forse fare altre azioni?

Grazie.

aliiii
Go to Top of Page

s.dav
Site Admin

Italy
3360 Posts

Posted - 10 Dec 2014 :  02:28:42  Show Profile  Visit s.dav's Homepage  Reply with Quote
alii, mi mandi un esempio via email?
Controlla nella pagina dei contatti l'indirizzo

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000