Welcome, Guest
Username Password: Remember me

Javascript does not render.
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Javascript does not render.

Javascript does not render. 13 years, 8 months ago #3804

  • digiwise
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
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

Re: Javascript does not render. 13 years, 8 months ago #3810

  • digiwise
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
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

Re: Javascript does not render. 13 years, 8 months ago #3819

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
Set "Remove unsupported tags" to No.
The following user(s) said Thank You: Kamui

Re: Javascript does not render. 12 years, 10 months ago #7090

  • Kamui
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
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?
Last Edit: 12 years, 10 months ago by Kamui.

Re: Javascript does not render. 12 years, 10 months ago #7133

  • Kamui
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
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?
  • Page:
  • 1
Time to create page: 0.07 seconds

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.