develop_827
10-27-2011, 10:21 AM
Mobile style breaks if javascript is added to footer template.
Here is the problem:
1) Add the code to footer template:
<vb:literal><script type="text/javascript"><!--
document.write("vBulletin Mobile doesn't work")
//--></script></vb:literal>
2) Open Mobile style page WITH ANY anchor in URL (for example add "#test" at the end of URL).
The page will be loading till the end of time and will contain only text "vBulletin Mobile doesn't work".
My actual javascript counter code is more complicated.
Why does the code above breaks Mobile Style?
Why does the page source contain ONLY text "vBulletin Mobile doesn't work"?
How can I change my javascript to work fine?
Here is the problem:
1) Add the code to footer template:
<vb:literal><script type="text/javascript"><!--
document.write("vBulletin Mobile doesn't work")
//--></script></vb:literal>
2) Open Mobile style page WITH ANY anchor in URL (for example add "#test" at the end of URL).
The page will be loading till the end of time and will contain only text "vBulletin Mobile doesn't work".
My actual javascript counter code is more complicated.
Why does the code above breaks Mobile Style?
Why does the page source contain ONLY text "vBulletin Mobile doesn't work"?
How can I change my javascript to work fine?