Results 1 to 3 of 3

Thread: [RESOLVED] Embedding javascript

  1. #1
    Join Date
    Feb 2011

    resolved [RESOLVED] Embedding javascript

    I'm real new to javascript, and I need to add a drag and drop feature to my webpage. I found a great demo webpage, http://www.webreference.com/programm...column2/3.html. The only problem is that there are two bits of code and I'm not sure where each bit goes. I know its real basic, but if somebody could generate a html page from these two bits (just so I can see where I'm supposed to put each piece and what tags I need to add), that would be really helpful. I guessed that the first bit goes in the header and the second bit is just plain html and goes in the body, but when I tried it, it didn't work

    Thanks in advance!

  2. #2
    Join Date
    Feb 2011
    if you try to open your page in chrome and do 'inspect element' what's the error it gives you?
    if its unidentified element or such, i think you should just place the html as you would normally, and the javascript code underneath it, this way, the elements load before any variables are set.

  3. #3
    Join Date
    Feb 2011


    I got it all figured out. Thanks for the advice

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center