Thread: sidecopy ? javarrgh

  1. #1
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638

    sidecopy ? javarrgh

    meow.

    what does this do? found it when view source of web page.

    Code:
    <p align="left" class="sidecopy">E-mail Address:<br />
    this sends your email to them? i think.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,412
    You are looking at the use of a CSS class.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    i am trying to figure out what happen when or if i press "contactemail" button. does pressing
    the button send them the email address that i have or bring up theirs? what worrys me is the
    "email_signup.html". not want to sign up for spam. sign up by "post" to css form? arrgh

    sidecopy copies what to where?

    security question. i know not java well enough. to know if security risk.

    Code:
    <td>&nbsp;</td>
          <td><p>Sign up to get email updates and newsletters.... 
            </p>
            <form action="/htbin/formproc.pl?/email_signup.html&amp;pass" method="post">
    
              <p align="left" class="sidecopy">E-mail Address:<br />
                <input name="email" type="text" id="required-valid-email" /><br />
    			Your Name:<br />
                <input name="attr_45688" type="text" id="name" /><br />
                <input type="submit" name="Submit" value="Submit" style="height:25px;" />
              </p>
            </form></td>
          <td>&nbsp;</td>
    not sure if this will help

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,412
    As far as I can tell, there is no Java involved, though the form processing may be done by a Perl script.

    I think you are taking this out of proportion: this is just a simple form for you to fill in some information to send for processing, not much different from what you do by posting here. Of course, since the form requests for your email address, you should be wary that it collects email addresses for spamming, but whether or not it is intended for spamming cannot be determined by looking at the HTML code of the form.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    yes.
    since the form requests for your email address,
    autofill. this will copy the email address i have by sidecopy and send it to their web
    site by autofill perl script?.... with out asking. that is what i thought. thank you

  6. #6
    Registered User OnionKnight's Avatar
    Join Date
    Jan 2005
    Posts
    555
    I don't see any contactemail button but if you're worried about what the Submit button does it just sends the contents of the other <input>s inside the same <form>-tag to the page specified by the <form>-tag's action attribute. In this case it's what's in the email and attr_45688 text boxes. There's no Javascript in the HTML-snippet you posted (you can verify that by the lack of "callback" (forgot their real name) attributes, which start with "on" like onclick, onmouseover etc).

    About the class attribute, it has nothing to do with Java classes. It's a CSS class and CSS is strictly for layout, it doesn't run any scripts.

  7. #7
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    I don't understand your problem. If you don't want the site to have your email address, don't send it to them. Sheesh.

  8. #8
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    ok onionknight thank you.

    brewbuck i did not send them anything just looked at source code first to see what it does....was not sure so i asked. have you ever had any spamages? with more spam and still more spam....ever hear of montypythons "i do not like spam" skit? just trying to avoid spam....sheeshie....

  9. #9
    Lean Mean Coding Machine KONI's Avatar
    Join Date
    Mar 2007
    Location
    Luxembourg, Europe
    Posts
    444
    I don't think you understand that "sidecopy" is only a name for a CSS class, an identifier that links an HTML element to its CSS definition. If you are worried about potential evil JavaScript code, feel free to post the link to the form and I'll have a look at it. Since the id of the email field is called "required-valid-email", I suspect there is either a clientside or serverside validity check running, so I suspect there has been a JavaScript code loaded during the page load that hooked event listeners to the form input events. That code could potentially do everything with your email address but I can't tell for sure if you don't send me the url.

    To better illustrate what you can do with JavaScript, in my latest tutorial that can be found here I implement a script that reads this code:
    Code:
    <div class="rating" id="rating_1">3.5</div>
    and transforms it into a fully functional dynamic and animated rating widget.

  10. #10
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    Ok read your tutorial and now have a better understanding. At first I was not sure what “sidecopy” was or did. The “contactemail” button or aka “contact us by email” on the web page instead of bringing up a
    “mailto:[email protected]” brought up or brings up a form <from looking at source of page> that contained “sidecopy” and not knowing what that is I was not sure what that did. Hence the panic. It looked like to sent them the email address that I have .... still not sure about that but decided not to send message by their form.

Popular pages Recent additions subscribe to a feed