Home  | FAQ  | Search  | Memberlist  | Usergroups  | Register  | Profile  | Log in  | Log in for your private messages
Javascripts Not Working

 
Post new topic   Reply to topic    myWebland Forum Index -> Support
View previous topic :: View next topic  
Author Message
Chris COllins
Newbie


Joined: 27 Jun 2005
Posts: 24

PostPosted: Fri Mar 31, 2006 12:54 am    Post subject: Javascripts Not Working Reply with quote

I want to add a javascript popup to my blog but it doesn't seem to work. Here is what I have added to the blog_header.tpl:

Code:
<script language="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=375,left = 40,top = 90');");
}
// End -->
</script>


and here is how it is called:

Code:
<a href="javascript:popUp('popups/page.htm')">link</a>


and this is the error I am getting after I submit a new post:

Code:
Cannot query the database.
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'popups/page.htm')">hi', timestamp='1143769754', ca


I have it set in the config.php file to allow html in posts so I have no idea what is going on. Any ideas? Thanks!!!

Chris
_________________
Fractal Universe
Back to top
View user's profile Send private message
simpleguest
Junior Coder


Joined: 15 Aug 2005
Posts: 50

PostPosted: Fri Mar 31, 2006 10:54 pm    Post subject: Reply with quote

There's an internal problem in your server. I did the same on my server and it worked.
Back to top
View user's profile Send private message Visit poster's website
Chris COllins
Newbie


Joined: 27 Jun 2005
Posts: 24

PostPosted: Fri Apr 07, 2006 12:13 pm    Post subject: Reply with quote

Hmmm any suggestions on what to do? I have not run into this problem before.....
_________________
Fractal Universe
Back to top
View user's profile Send private message
simpleguest
Junior Coder


Joined: 15 Aug 2005
Posts: 50

PostPosted: Fri Apr 07, 2006 7:39 pm    Post subject: Reply with quote

Yeah, SQL error with this JS code is pretty unusual. Google for your problem or try diffrent server Smile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    myWebland Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
TNX?
Tnx.net