Javascript does not render.

digiwise
14 years, 1 month ago
Hello

I'm new to Mobile Joomla and I just installed and configured it for a J1.5 site.
It's a great extension, I loved it!

But I'm doing something wrong, I think.
I setup the Smartphone (XHTML) to use the mobile_pda template and I also set it to do not remove script tags but no javascript is running. I also setup iphone clients to run the same mobile_pda template, and it's running javascript without a problem.

Probably I'm doing something dumb. Please throw me a light.


Regards,
Sam
digiwise
14 years, 1 month ago
I forgot some Important information.

Here it goes:


1 - Joomla version: 1.15.22
2 - Mobile Joomla Version: 0.9.12
3 - user agent: Mozilla/5.0 (Linux; U; Android 2.3; xx-xx; Nexus S Build/GRH41B) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

4 - Hosting provider: Godaddy.com shared hosting
dryabov
14 years, 1 month ago
Set "Remove unsupported tags" to No.
Kamui
13 years, 2 months ago
Also me having the same problem. Your suggestion worked only for iphone template but not for XHTML

mobile joomla! 1.0 RC5
Joomla Version 1.5.22

Any solutions? Does anyone else have the same prob?
Kamui
13 years, 2 months ago
A little more info in this. I have remove unsupported tags and script tags set to No but I'm sure now that Mobile joomla still cuts out my scripts. To be specific

 
$document->addScript(JURI::base().'components/com_geosos/views/js/geo.js');
$document->addScript('http://code.google.com/apis/gears/gears_init.js');
$document->addScript('http://maps.google.com/maps/api/js?sensor=false');
$document->addScript(JURI::base().'components/com_geosos/views/js/sample.js');


This four lines after I load the xhtml page from firefox and show the source are nowhere to be found.
Where is the method that strips out scripts so I'll disable is by hand?

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.