error while pasting an HTML code!

  • 1
  • Question
  • Updated 8 years ago
  • Answered
I have my test menu nicely working on my Homepage..
I wanted to experiment a bit more with its code so i copied the whole code n pasted on a new page in an HTML widget, after pasting when i click OK, i get the following error

why this error?
My homepage is www.thebeautybliss.com n my test page where i tried pasting this code is on www.thebeautybliss.com/test-1.php
Photo of Monica

Monica

  • 60 Posts
  • 0 Reply Likes
  • confused

Posted 8 years ago

  • 1
Photo of jeremy

jeremy, Employee

  • 1349 Posts
  • 90 Reply Likes
Hi there Monica,
You are getting an error because your code you pasted seems to be incorrect.

When copying your code you need to be sure that you copy all of it and that you don't miss something.
I am going to send an email to our HTML team to ask them to take a look at your site and see if they can find the problem .

I hope this helps.
Photo of Monica

Monica

  • 60 Posts
  • 0 Reply Likes
Thanks alot for looking into the problem jeremy!
for copying i used ctrl+a to select all, copied n pasted on other page.
i used this technique 3-4 times n all times i got this error.
now i tried copying the code by selecting the whole code by mouse instead, copied n pasted n now i didn't get any error!
i dont know whether it was a bug, my mistake, or got magically fixed by yola!
I m still wondering!
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
yea, but also remember, an error message could simply mean nothing. I get an error message every time I place a certain code which I know for sure is the exact code given to me. But nothing is wrong with the code, it works just fine for me.

"Error, something is wrong with your pasted javascript code" but nothing is wrong with it.
Photo of Monica

Monica

  • 60 Posts
  • 0 Reply Likes
ok, now i m confused.
i pasted a script on my page.
Only changed Urls, the width of menu from initial 180 px to 145px now.
the menu is working in chrome but not in firefox!
where as if i visit the dynamic drive's page their demo is working in my firefox! help
here is my site: www.thebeautybliss.com
here is dynamic drive's demo: http://www.dynamicdrive.com/dynamicin...
Photo of Monica

Monica

  • 60 Posts
  • 0 Reply Likes
i checked in other browsers..
my site's menu works only in chrome.. not in FF, IE n opera
though Dynamic drive's demo seem to works everywhere :(
Help!
Photo of diane

diane

  • 1238 Posts
  • 121 Reply Likes
I don't believe Google allows hot linking to your js file. When I went to the url it merely downloaded the file. I use sigmirror.com to host external js files. Not sure why it works in Chrome except that Google owns Chrome.
Photo of Monica

Monica

  • 60 Posts
  • 0 Reply Likes
i also tried hot linking the .js file on sigmirror.com n the menu worked in all browsers! strange!
Thanks for the help diane :)
Photo of Kershnee

Kershnee

  • 2087 Posts
  • 152 Reply Likes
Hi Monica - do you still need help with this or is it all sorted out?
Photo of Monica

Monica

  • 60 Posts
  • 0 Reply Likes
Sorted out! i just tried copy pasting 2-3 times n it stopped appearing any more!
Thanks for lending a helping hand Jeremy, Donald, Diane n Kershnee :)