Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] javascript in widget not working (http://forum.bytesforall.com/showthread.php?t=7260)

Emanuele May 24, 2010 08:43 AM

[SOLVED] javascript in widget not working
 
Hi,

Can anyone tell me why when i put this javascript code in the text of the widget sidebar area, it delete all the content of all pages and of the other sidebar. Only the header and this sidebar remains!!!
This is the code:
<Script charset ="Shift_JIS" src ="Http://chabudai.sakura.ne.jp/blogparts/honehoneclock/honehone_clock_wh.js"> </ Script>

Thanks to everybody
Emanuele

juggledad May 24, 2010 09:12 AM

what is happening is that as the page is being dynamically built, that code is causing an error ending the building of the page. Check your error logs on the server to see if you can find out what the error is.

Emanuele May 24, 2010 09:39 AM

Thank you very much for your quick reply.
I have no idea how to check my error log!!!
any tips?
Thanks

juggledad May 24, 2010 09:43 AM

it's something on teh server. You could try this, go to the theme editor and edit index.php and add
HTML Code:

error_reporting(E_ALL ^ E_NOTICE);
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
error_reporting(-1);

as the second line of index.php and see if anything shows up on the screen,

Emanuele May 24, 2010 09:54 AM

Now it's quite messy!!!
www.ashtangayogaoxford.org

juggledad May 24, 2010 10:01 AM

is the java code in?

Emanuele May 24, 2010 10:02 AM

no! it's not in the sidebar
should i put it in?

juggledad May 24, 2010 10:06 AM

well the error won't show if the code causing it is not there....

Emanuele May 24, 2010 10:10 AM

I put the code in the widget text of the left sidebar and this is what happen...
www.ashtangayogaoxford.org

thankx thankx

juggledad May 24, 2010 10:25 AM

ok, take the code out (the java and the code you put in index.php) I was hoping it might show something but it doesn't

Emanuele May 24, 2010 10:28 AM

Thank you very much for all your effort. It's much appreciated! :)
If you have any other tips are all welcome.

I'm going to donate.

Thankx
Emanuele

juggledad May 24, 2010 10:41 AM

you have an error in the way you have typed the code. Use this
HTML Code:

<script charset="Shift_JIS" src="http://chabudai.sakura.ne.jp/blogparts/honehoneclock/honehone_clock_tr.js"></script>
you had a space between the back slash and the word script at the end that I think was causing your problem.

Emanuele May 24, 2010 03:14 PM

You are amazing!
You can fix anything.

Thankx


All times are GMT -6. The time now is 11:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.