javascript form formatting not working well in mobile

General questions relating to Joomla! 3.x.
Post Reply
vx1
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Jan 20, 2021 2:20 pm

javascript form formatting not working well in mobile

Post by vx1 » Tue Jan 26, 2021 2:05 pm

so I have this little javascript form I am using it on latest Joomla
the form formatting not working well in mobile

its all over the map scroll bars show up and sizing is off etc
I am currently using a wrapper because the code version
really didn't work in Joomla - its javascript on html file

can anyone help out with this

Thanks

User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 6466
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: javascript form formatting not working well in mobile

Post by AMurray » Tue Jan 26, 2021 10:09 pm

Please provide a link to the site, demonstrating the problem.

First suggestion - is your template 'responsive'?

I don't know why javascript won't work in Joomla - it should, and does. It might be the article editor is stripping script tags; that's by design - unless you allow such script/html tags to be used in the text filtering and/or the editor's options.
Regards,
--------------------------------------------------------------
A Murray
Help you I can, yes!. Post your question, you should. Keep it on topic you must!
Use the Forc....Forum Post Assistant my young Padawan!

vx1
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Jan 20, 2021 2:20 pm

Re: javascript form formatting not working well in mobile

Post by vx1 » Wed Jan 27, 2021 2:12 am


User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 6466
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: javascript form formatting not working well in mobile

Post by AMurray » Wed Jan 27, 2021 9:31 am

Not an expert but think the iFrame has a lot to do with it. Is the iframe dimensions set to "auto" or to exact dimension % or pixels? I would expect it to at least 'attempt' to resize to something as small as a mobile screen. In my testing all I did was reduce the browser view-port size, and even that "messed it up".

Have you tried (just for testing) a different template e.g. Protostar?

As I said above, javascript (directly in an article page) should work as long as you allow the script tags through the filtering options in Global config or the editor config options.
Regards,
--------------------------------------------------------------
A Murray
Help you I can, yes!. Post your question, you should. Keep it on topic you must!
Use the Forc....Forum Post Assistant my young Padawan!

Pavel-ww
Joomla! Intern
Joomla! Intern
Posts: 78
Joined: Tue Jun 30, 2020 12:17 pm

Re: javascript form formatting not working well in mobile

Post by Pavel-ww » Wed Jan 27, 2021 9:51 am

I think the problem only in CSS on a page with a form. If you fix it, then everything should work fine.
1.jpg
You do not have the required permissions to view the files attached to this post.

vx1
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Jan 20, 2021 2:20 pm

Re: javascript form formatting not working well in mobile

Post by vx1 » Wed Jan 27, 2021 1:14 pm

ill look there


Post Reply

Return to “General Questions/New to Joomla! 3.x”