Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8830057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:58:47+00:00 2026-06-14T07:58:47+00:00

This is a very specific question, so sorry if it sounds repetitive. I have

  • 0

This is a very specific question, so sorry if it sounds repetitive.

I have a block of code that manipulates a WordPress’s “Press This” feature that allows for quick blogging about a remote site, including copying a selection of text.

What I’m wanting to manipulate it to, is to re-blog (with credit) an entire blog post from a wordpress engine site. WordPress.com has this feature built into their site, but if you have your own hosted site, this feature isn’t present.

I have managed to select the correct DIV, along with getting the pop-up to work, however the content isn’t there.

The results from :

 y = d.getElementsByClassName('entry'),

is that y = [Object Node List]

z = y.innerHTML,

the result is ‘undefined’

for (var i = 0; i < y.length; ++i) {
z = z + y[i];}

the result is ‘[object HTMLDivElement][object HTMLDivElement]’
(The result is the same as if it pulls from y.innerHTML)

I’ve searched extensively for help, yet can not introduce a solution to the code.

Can anybody help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:58:49+00:00Added an answer on June 14, 2026 at 7:58 am

    Not sure why you put a ‘,’ at the end where a ‘;’ should be

     y = d.getElementsByClassName('entry'),
    

    Your problem is that getElement s ByClassName(‘entry’) returns an array of all elements which share the class name ‘entry’;

    If you want to access the first you should use

    y = d.getElementsByClassName('entry')[0];
    

    Or you can use for to go through all:

    for(var i in d.getElementsByClassName('entry')) {
      y = d.getElementsByClassName('entry')[i];
      alert(y.innerHTML);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this is a very specific question. I am compiling a c++ code
this is a very specific question, but i also have very specific details on
This is a very specific question, however; Say I have a batch file running
Sorry for a very specific question, bot why VS2008 and VS2010 crashes with this
This is a very specific question regarding MySQL as implemented in WordPress . I'm
I inspired by MeBigFatGuy interesting question , in this conection I have very specific
The title to this question isn't written very well. Sorry 'bout that. I'm curious
First of I'm very sorry but this questions is not so so specific. All
This is a very specific question which will probably earn me the tumbleweed badge,
This is a very specific question for a Google Chrome extension. http://www.meebo.com/mobile/ This page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.