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 8 of 8

Thread: Java layer over a page?

  1. #1
    Junior Member
    Join Date
    Jun 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java layer over a page?

    Hello, I was wondering if it is possible to add a layer (sort of like an iframe) over a certain page.. for example site.com is a wordpress blog, but when people visit it, they only see the the iframe that is in the java code. Like a java layer over a website.. If you need more explanation please let me know. Thank you.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,145
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Java layer over a page?

    What kind of program is running and displaying the page? An applet in a browser or an application ??
    is the page built from html?

  3. #3
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Java layer over a page?

    Yes this is possible but I'd try doing it as a browser extension/addon if I was you, Java might not be the way to go.

    // Json

  4. #4
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Java layer over a page?

    Hmm... What you could do is have the iframe code in html, and then inside of that iframe, point to an address that only has the applet. I'm not exactly sure on the specifics of laying an iframe over existing content, but you could create a second iframe with the "hidden content" and use a javascript to switch between the two iframes as needed, creating an "illusion" of hiding the data beneath.

  5. #5
    Junior Member
    Join Date
    Jun 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java layer over a page?

    I am running a WordPress Blog. I tried Iframing, but when I look in Google result pages, the description is the url of the iframed site. Which looks bad. Basically I want to have a blog with quality content, but when people visit the site, they see something different, kind of like iframe BUT with the content in the background for search engines. Java is the only thing I can think of that Google spiders cannot really read.

    EDIT: Sorry for the delayed response.

  6. #6
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Java layer over a page?

    Quote Originally Posted by millhugz View Post
    IBasically I want to have a blog with quality content, but when people visit the site, they see something different, kind of like iframe BUT with the content in the background for search engines..
    Just my .02, but in case you have't, you should consider the consequences of doing something like this - the removal and ban of your site from search engines entirely. Its called 'black hat seo', and quite highly frowned upon. As far as I'm aware, flash and image content cannot be read by search engines - but this is not a conclusive statement.

  7. #7
    Junior Member
    Join Date
    Jun 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java layer over a page?

    Yes I understand this, I do not think its blackhat, I consider it gray hat, and also this is for testing purposes. I like to learn and try new things, is this possible though? Thanks for your input.

  8. #8
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Java layer over a page?

    could you show us an example of what it is that google's showing (and what you want it to show)? Generally with blogs, you want people to be able to read (and thus, search for) the content. If you want to limit content access to a certain group of people, I would suggest using password protection (or something similar) and not sending the data from the server until they have validated their identity. Then have your iframe only show the content that was sent, otherwise have a generic iframe with default content that search engines (and unregistered users) can look through.

Similar Threads

  1. control third party page in java.
    By kirti in forum Member Introductions
    Replies: 1
    Last Post: May 2nd, 2010, 03:33 PM
  2. reg how to use log in jsp page
    By javaking in forum JavaServer Pages: JSP & JSTL
    Replies: 7
    Last Post: April 9th, 2010, 12:36 AM
  3. Need help in JSP Page
    By vinothkumarrvk in forum Web Frameworks
    Replies: 1
    Last Post: March 12th, 2010, 07:43 AM
  4. Need help in JSP Page
    By vinothkumarrvk in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: March 9th, 2010, 05:20 AM
  5. [ASK] Make Object as a layer
    By bocahTuaNakalzz in forum AWT / Java Swing
    Replies: 2
    Last Post: October 24th, 2009, 01:07 PM