Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Insert master or gloabal java script to disable globally onclick

  1. #1
    Junior Member
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Insert master or gloabal java script to disable globally onclick

    I'm using a third-party software provider's calendar program. The program is designed to produce both a mouseover, "title" window, and an onclick, pop up window tied to dates where events are scheduled. The calendar(s) produce(s) a mini, month-at-a-glance view.

    My web site has both a member (private) and public section. I am happy to have the onclick feature active in the member section, but don't want it to work in the public section. That calendar is displayed to show non-members what great events they are missing to generate sales. All I want for the public calendar is the "title" window. Anything more would give away the farm, so to speak.

    So... the php code that makes up each calendar page is called from multiple files, and inserts the onclick code during the process. What I want to do is insert a master or global java script on these "parent" pages, that blocks any and all onclick commands that may have been inserted there. Suggestions?

    Thanks in advance.
    Barbara


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: Globally disable onclick

    Hello karnesb.

    Welcome to the Java Programming Forums.

    You are talking about JavaScript and unfortunately, Java & Java Script are two completely different languages.

    "There's a world of difference between the two. Javascript is used for front-end web development while Java can only be used as a back-end language within a web environment. Java doesn't need a web browser to compile and execute like Javascript does. Java is compiled prior to runtime while Javascript is compiled at runtime. The syntax/reserved-words are also different."

    For more information:

    JavaScript Resources - Differences between Java and JavaScript

    I suggest you check google for a JavaScript forum. Someone is guaranteed to be able to help you then

    javascript forums - Google Search=
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  3. #3
    Junior Member
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Globally disable onclick

    Java PF,

    You are absolutely right. I'm looking for JS not Java. Thanks for catching my brain cloud, and for your generosity in pre-defining the google link for me.

    All the best,
    Barbara