right click warning not working

J.T.J.T. Registered Users Posts: 279 Major grins
edited August 29, 2007 in SmugMug Support
I have customized my right click protection in my javascript to read: rightClickWarning = "All photographs are property of J.T. Photography. All rights reserved. Unauthorized use is prohibited.";

It used to work but for some reason it doesn't work now. It's still in my javascript exactly as it reads above. I recently added some new javascript to protect from spam emails (<a href="javascript:norobotmail('capturemoment',%20 'sbcglobal.net')" class="nav">email me</a>) and thought it might have something to do with it but I am not sure.

How can I fix this so the right click protection goes back to my customized text?

Thanks :scratch
John "J.T."
http://johnthiele.smugmug.com

Nikon D80 w/MB-D80 vertical grip
Tokina 50-135 f/2.8
Nikkor 50mm f/1.4D
Nikkor 18-55mm f/3.5-5.6G
Nikkor 70-300mm f/4.5-5.6G VR

RPS Studio Rotating Flash Bracket

SB 600

"Sometimes I do get to places just when God's ready to have somebody click the shutter." -- Ansel Adams

Comments

  • denisegoldbergdenisegoldberg Administrators Posts: 14,339 moderator
    edited August 28, 2007
    I don't have an answer for you - but I thought you might like to know that your right click message on Firefox is correct.

    So this appears to be an IE-only problem.

    I've included a screen shot from Firefox below.

    --- Denise
  • J.T.J.T. Registered Users Posts: 279 Major grins
    edited August 28, 2007
    weird...
    I don't have an answer for you - but I thought you might like to know that your right click message on Firefox is correct.

    So this appears to be an IE-only problem.

    I've included a screen shot from Firefox below.

    --- Denise

    Thanks Denise...that's nice to know? Weird, hmm. I use IE7 at work which is where I noticed this problem. I mainly use a mac at home with safari and firefox. Those probably are okay though. I'll check later.

    Thanks.
    John "J.T."
    http://johnthiele.smugmug.com

    Nikon D80 w/MB-D80 vertical grip
    Tokina 50-135 f/2.8
    Nikkor 50mm f/1.4D
    Nikkor 18-55mm f/3.5-5.6G
    Nikkor 70-300mm f/4.5-5.6G VR

    RPS Studio Rotating Flash Bracket

    SB 600

    "Sometimes I do get to places just when God's ready to have somebody click the shutter." -- Ansel Adams
  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited August 28, 2007
    J.T. wrote:
    I have customized my right click protection in my javascript to read: rightClickWarning = "All photographs are property of J.T. Photography. All rights reserved. Unauthorized use is prohibited.";

    It used to work but for some reason it doesn't work now. It's still in my javascript exactly as it reads above. I recently added some new javascript to protect from spam emails (<a href="javascript:norobotmail('capturemoment',%20 'sbcglobal.net')" class="nav">email me</a>) and thought it might have something to do with it but I am not sure.

    How can I fix this so the right click protection goes back to my customized text?

    Thanks <img src="https://us.v-cdn.net/6029383/emoji/headscratch.gif&quot; border="0" alt="" >
    Please link us to the page where it wasn't doing what you expected, ok?
  • J.T.J.T. Registered Users Posts: 279 Major grins
    edited August 29, 2007
    Andy wrote:
    Please link us to the page where it wasn't doing what you expected, ok?

    Andy here is one link to a gallery, but it's occuring on every gallery when I am using Internet Explorer 7. I haven't had a chance to check using Safari or Firefox, but on the previous reply, Firefox seems to be working fine. ???

    Thanks.

    http://www.jtcapturethemoment.com/gallery/3162503#173850038
    John "J.T."
    http://johnthiele.smugmug.com

    Nikon D80 w/MB-D80 vertical grip
    Tokina 50-135 f/2.8
    Nikkor 50mm f/1.4D
    Nikkor 18-55mm f/3.5-5.6G
    Nikkor 70-300mm f/4.5-5.6G VR

    RPS Studio Rotating Flash Bracket

    SB 600

    "Sometimes I do get to places just when God's ready to have somebody click the shutter." -- Ansel Adams
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited August 29, 2007
    J.T. wrote:
    I have customized my right click protection in my javascript to read: rightClickWarning = "All photographs are property of J.T. Photography. All rights reserved. Unauthorized use is prohibited.";

    It used to work but for some reason it doesn't work now. It's still in my javascript exactly as it reads above. I recently added some new javascript to protect from spam emails (<a href="javascript:norobotmail('capturemoment',%20 'sbcglobal.net')" class="nav">email me</a>) and thought it might have something to do with it but I am not sure.

    How can I fix this so the right click protection goes back to my customized text?

    Thanks <img src="https://us.v-cdn.net/6029383/emoji/headscratch.gif&quot; border="0" alt="" >

    It appears that you have some sort of JavaScript error in IE7 that doesn't show in Firefox and that error is causing your Javascript that sets the right click message to not execute. I see the error in IE7 on this page: http://www.jtcapturethemoment.com/gallery/3162503#173850038, but I haven't yet figured out what is causing it since the JS debugging tools for IE7 are not as good as those for Firefox.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited August 29, 2007
    JavaScript errors in your page
    jfriend wrote:
    It appears that you have some sort of JavaScript error in IE7 that doesn't show in Firefox and that error is causing your Javascript that sets the right click message to not execute. I see the error in IE7 on this page: http://www.jtcapturethemoment.com/gallery/3162503#173850038, but I haven't yet figured out what is causing it since the JS debugging tools for IE7 are not as good as those for Firefox.

    OK, here are two JavaScript errors in your JavaScript customizations.

    In the JavaScript line:

    var objElement = YD.get("comment")

    you need a semicolon at the end of the line.


    Also, you have this HTML:

    <a href="javascript:norobotmail('capturemoment',%20 'sbcglobal.net')" class="nav">email me</a>

    in your JavaScript section. It does not belong there and creates JavaScript errors. I don't know where you want it - perhaps you were trying to put it in your header or footer. If so, put it in those sections of your customization, not in the JavaScript section.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • BarbBarb Administrators Posts: 3,352 SmugMug Employee
    edited August 29, 2007
    J.T. wrote:
    Thanks Denise...that's nice to know? Weird, hmm. I use IE7 at work which is where I noticed this problem. I mainly use a mac at home with safari and firefox. Those probably are okay though. I'll check later.

    Thanks.

    Hi,

    I checked your code, and it is the script you are using in your javascript for your email. I removed it from your javascript and placed it in your bio where your email me link is. There was also some javascript that belonged in your JS code, but was not there. I have added it. No errors. If that is not where you wanted it, just holler!
    Barb
    Smug since 2006
    SmugMug Help
    PhotoscapeDesign
  • J.T.J.T. Registered Users Posts: 279 Major grins
    edited August 29, 2007
    thanks
    Barb wrote:
    Hi,

    I checked your code, and it is the script you are using in your javascript for your email. I removed it from your javascript and placed it in your bio where your email me link is. There was also some javascript that belonged in your JS code, but was not there. I have added it. No errors. If that is not where you wanted it, just holler!

    Thanks Barb. I will check with IE7 tomorrow at work and see if it still is a problem. If it is I'll holler, otherwise, thanks!
    John "J.T."
    http://johnthiele.smugmug.com

    Nikon D80 w/MB-D80 vertical grip
    Tokina 50-135 f/2.8
    Nikkor 50mm f/1.4D
    Nikkor 18-55mm f/3.5-5.6G
    Nikkor 70-300mm f/4.5-5.6G VR

    RPS Studio Rotating Flash Bracket

    SB 600

    "Sometimes I do get to places just when God's ready to have somebody click the shutter." -- Ansel Adams
  • J.T.J.T. Registered Users Posts: 279 Major grins
    edited August 29, 2007
    thanks
    jfriend wrote:
    OK, here are two JavaScript errors in your JavaScript customizations.

    In the JavaScript line:

    var objElement = YD.get("comment")

    you need a semicolon at the end of the line.


    Also, you have this HTML:

    <a href="javascript:norobotmail('capturemoment',%20 'sbcglobal.net')" class="nav">email me</a>

    in your JavaScript section. It does not belong there and creates JavaScript errors. I don't know where you want it - perhaps you were trying to put it in your header or footer. If so, put it in those sections of your customization, not in the JavaScript section.

    Thanks for looking into my problem John. It looks like Barb took care of it today.
    John "J.T."
    http://johnthiele.smugmug.com

    Nikon D80 w/MB-D80 vertical grip
    Tokina 50-135 f/2.8
    Nikkor 50mm f/1.4D
    Nikkor 18-55mm f/3.5-5.6G
    Nikkor 70-300mm f/4.5-5.6G VR

    RPS Studio Rotating Flash Bracket

    SB 600

    "Sometimes I do get to places just when God's ready to have somebody click the shutter." -- Ansel Adams
Sign In or Register to comment.