FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Javascript error

 


Alie
I have portal based on free engine phpNuke 7.9
Just wanted to add javascripts into some blocks: Add to Favorites into the navigation panel and javascript Page Open in another one.

Both scripts are working perfectly, but when they are wrking in the same time, usually IE shows me javascript error... Strange thing, that after refreshing the page error disappears....

Can somebody tell me what to do with it? Sad
varun_dodla
U can use a try-catch block with an alert message in the catch to verify if in any case the error is thrown.

Try this link on how to use the try catch in javascript:
http://www.w3schools.com/js/js_try_catch.asp

OR If you only want to suppress the errors(esp. in IE) then you would like this link http://chunkysoup.net/basic/breakingjs/
jabapyth
what's the error? tyr enabling ie javascript debugging
Alie
Thank to both of you for answering and helping me!

It shows me syntax error in line 119, symbol 1, code 0...
I've opened sorce code of the page and found no syntax mistakes, nor javascript code...

2 varun_dodla: I'll check your links now.
Alie
2 varun_dodla: thank you very much! All your links are really usefull for me, and I've solved my problem already Twisted Evil

One more thing: if someone knows which javascript can give me ability to comment line in code? For example I have code like this in index.php:
Code:
<?php
....
<img src='img/button1.gif'>
echo "<P>";
echo "Some text";
...
?>

When I press button1 on my site, I want to string:
Code:
echo "Some text";

become commented. Code changes after pressing button1:
Code:
<?php
....
<img src='img/button1.gif'>
echo "<P>";
//echo "Some text";
...
?>
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.