Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Java Script is driving me NUTS, 2 weeks worth of work! :( :( HELP!!!

  1. #1
    Join Date
    Jan 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Java Script is driving me NUTS, 2 weeks worth of work! :( :( HELP!!!

    Im going crazy. I have this site im working on for a friend i have the whole thing done but i cant figure out ONE SMALL THING!

    The website is www.****wallstreet.com/test/

    You go there and there is a grid, your suppose to be able to click a spot on the grid and then it goes to the http://www.****wallstreet.com/test/Buy.html page and then there is a X and Y field. It doesnt Show what X and Y is on the field. The grid is 1000 x 1000 and i want to define which box on the grid they click.

    Im missing something on my coding for some reason!

    please help me figure out what it is im missing a deadline. I was doing it as a free good dead to a friend

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I do love your FAQ.


    1. Whats the idea?
    To Bring the whole adult industry together on one page for everyone on the internet to view! That way they dont have to search allover the internet to find a good site for themselves. There are so many sites online we thought the internet finally needed a site where you could go and see all of them on one page!


    I don't think a million pixels will even scratch the top layer of the internet's seemingly infinite adult industry.
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Jan 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy lol

    Ya i know thats why i figured i would try. Do you have any idea what the problem is? Or if its even a java problem? It just wont post!! I even went to other websites to download their sites and see if i could figure out the problem.

    I've been google'n everything and yahoo.com and been on forums and mIRC channels trying to figure it out but no one will reply

    Its due tommorow....

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It may simply be that post is not allowed on Yahoo at your current level of host services. I'd ask customer service or read the terms of service before I worried about it further.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jan 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry

    I havent checked with yahoo. but shouldnt it work on my computer? because on my computer it goes to the Buy.html page but the X and Y does not appear.

    Thats my question is why wont the X any Y appear on the page. If yahoo doesnt support the POST then ill switch thats not a big deal. But I wanna know why the X and Y doesnt show up on the Buy.html page. It doesnt even show up when its just on my harddrive


    Please help!!!

  6. #6
    Join Date
    Jan 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    here is my HTML coding for the index.html page

    The seperate JavaScript file is at www.****wallstreet.com/test/script.js

    PLEASE HELP ME

    If you go to http://www.mypersonalpixel.com/
    On this kids webpage when you click any box on the page it goes to a Buy page and on there it says the X and Y properties of where he clicked. Whats the script for that? Or where could i find it.

    HELP ME!!!!!!!!


    ======================================================
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>Million Dollar Home Page. Own a piece of Internet Hystory! - Pixels</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="Million Dollar Home Page. Your Final Chance to Own a Piece of Internet History!" />
    <link href="style.css" rel="stylesheet" type="text/css" />
    <link rel="icon" href="favicon.ico" />
    <link rel="shortcut icon" href="favicon.ico" />
    <script src="script.js" type="text/javascript"></script>





    <style type="text/css">
    <!--
    body {
    background-color: #999999;
    }
    .style1 {color: #660000}
    .style3 {font-size: 12px; }
    .style4 {color: #990000}
    .style6 {font-size: 14px}
    -->
    </style></head>
    <body onload="">
    <div class="container">
    <div class="header">
    <div style="padding: 0px;">
    <table width="1004" border="0" align="left">
    <tr>
    <td width="10">&nbsp;</td>
    <td width="778"><table width="769" border="0">
    <tr>
    <td width="534" rowspan="4"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="530" height="100">
    <param name="movie" value="new_banner.swf" />
    <param name="quality" value="high" />
    <embed src="new_banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="530" height="100"></embed>
    </object></td>
    <td width="225" valign="top"><p class="style3">&nbsp;</p></td>
    </tr>
    <tr>
    <td valign="top"><span class="style6"><span class="style4">&gt;</span> 1,000,000 Pixels</span></td>
    </tr>
    <tr>
    <td valign="top"><span class="style6"><span class="style4">&gt;</span> $1 A Pixel</span></td>
    </tr>
    <tr>
    <td valign="top"><span class="style6"><span class="style4">&gt;</span> For all the best sites online!</span></td>
    </tr>
    </table></td>
    <td width="311"><table width="200" border="0" bordercolor="#330000">
    <tr>
    <td width="90" bgcolor="#330000">Sold:</td>
    <td width="100" bgcolor="#666666">0</td>
    </tr>
    <tr>
    <td bgcolor="#330000">Available:</td>
    <td bgcolor="#666666">1,000,000</td>
    </tr>
    </table></td>
    </tr>
    </table>
    </div>
    </div>
    <div class="header_nav">
    <div class="header_div"> <a href="index.html" class="header_link" title="View Pixels">View Pixels</a>&nbsp;| <a href="Blog.html" class="header_link" title="Blog">Blog</a>&nbsp;| <a href="FAQ.html" class="header_link" title="FAQ">FAQ</a>&nbsp;| <a href="testimonials.html" class="header_link" title="Testimonials">Testimonials</a>&nbsp;| <a href="Press.html" class="header_link" title="Press">Press</a>&nbsp;| <a href="Contact.html" class="header_link" title="Contact Us">Contact Us</a>&nbsp;| <a href="Buy.html" class="header_link" title="Buy Pixels">Buy Pixels</a> </div>
    </div>
    <div class="center">
    <div class="adsense" style="display: none;"> </div>
    <center>
    <div class="grid" id="grid" onclick="return getPosition(event);" onmouseover="return escape('These pixels are available, click on the spot where you want your ad placed.');"">
    <div align="left"><span style="position: relative;"><a href="http://www.yahoo.com" title="Find Women and Men Latin. Free Services"><img src="0d357ade3f9492a602e34c63c97df54c.jpg" style="position: absolute; left: 50px; top: 30px; z-index: 1;" alt="Find Women and Men Latin. Free Services, visited 21 times (50, 30)" /></a></span></div>
    </div>
    </center>
    <form action="Buy.html" method="post" id="grid_form">
    <input type="hidden" name="x" />
    <input type="hidden" name="y" />
    </form>
    </div>
    <script src="wz_tooltip.js" type="text/javascript"></script>
    &copy; 2006 <a href="http://www.****wallstreet.com/" title="**** Wallstreet" class="link style1">****Wallstreet.com</a> <br />
    All rights reserved. I am not responsible for the content of external sites. Images featured on homepage are &copy; of their respective owners. <br />
    <img border="0" src="paypal.gif" width="68" height="29" /> </div>
    </body>
    </html>

    ======================================================

    please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Last edited by tsvehla1220; 01-30-2006 at 11:09 AM.

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The example site you list is PHP driven. Which, is probably a good idea. To do this with javascript alone will mean that you miss non-javascript enabled browsers and run the risk of having some folks hack your data - to what end, I don't know but, if there is anyway to cause problems someone will find it.

    With that in mind, this can be done with javascript by changing the method to get on the sending page and making your code on the receiving page look like so:

    Code:
        <div class="row">
          <span class="label style1">X_1 position: </span><span class="formw" id="x_1"></span>
    
          <input type="hidden" id="x" name="x" value="" />
        </div>
        <div class="row">
          <span class="label style1">Y_1 position: </span><span class="formw" id="y_1"></span>
    
          <input type="hidden" id="y" name="y" />
    
      <script type="text/javascript">
    document.getElementById('x_1').innerHTML=document.getElementById('x').value=window.location.search.match(/x=\d*/).toString().replace(/x=/, '')
    document.getElementById('y_1').innerHTML=document.getElementById('y').value=window.location.search.match(/y=\d*/).toString().replace(/y=/, '')
    </script>
        </div>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Jan 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default soo

    so my input page would be the index.html file, but then my receiving page would be the buy page? So i'd put that coding on my buy page correct?

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yep, substitute it for the similar looking html code you already have there on Buy.html.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. #10
    Join Date
    Jan 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default hmmm

    i did that and it didnt work here's what my page looks like for the buy.html




    ==================================================
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>HAHAHA YES! :)</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="Hell Yea!" />
    <link href="style.css" rel="stylesheet" type="text/css" />
    <link rel="icon" href="favicon.ico" />
    <link rel="shortcut icon" href="favicon.ico" />
    <script src="script.js" type="text/javascript"></script>

    <style type="text/css">
    <!--
    body {
    background-color: #999999;
    }
    .style1 {color: #660000}
    .style3 {font-size: 12px; }
    .style4 {color: #990000}
    .style6 {font-size: 14px}
    .style7 {color: #FFFFFF}
    -->
    </style></head>
    <body onload="">
    <div class="container">
    <div class="header">
    <div style="padding: 0px;">
    <table width="1004" border="0" align="left">
    <tr>
    <td width="10">&nbsp;</td>
    <td width="778"><table width="769" border="0">
    <tr>
    <td width="534" rowspan="4"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="530" height="100">
    <param name="movie" value="new_banner.swf" />
    <param name="quality" value="high" />
    <embed src="new_banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="530" height="100"></embed>
    </object></td>
    <td width="225" valign="top"><p class="style3">&nbsp;</p></td>
    </tr>
    <tr>
    <td valign="top"><span class="style6"><span class="style4">&gt;</span> 1,000,000 Pixels</span></td>
    </tr>
    <tr>
    <td valign="top"><span class="style6"><span class="style4">&gt;</span> $1 A Pixel</span></td>
    </tr>
    <tr>
    <td valign="top"><span class="style6"><span class="style4">&gt;</span> For all the best sites online!</span></td>
    </tr>
    </table></td>
    <td width="311"><table width="200" border="0" bordercolor="#330000">
    <tr>
    <td width="90" bgcolor="#330000">Sold:</td>
    <td width="100" bgcolor="#666666">0</td>
    </tr>
    <tr>
    <td bgcolor="#330000">Available:</td>
    <td bgcolor="#666666">1,000,000</td>
    </tr>
    </table></td>
    </tr>
    </table>
    </div>
    </div>
    <div class="header_nav">
    <div class="header_div"> <a href="index.html" class="header_link" title="View Pixels">View Pixels</a>&nbsp;| <a href="Blog.html" class="header_link" title="Blog">Blog</a>&nbsp;| <a href="FAQ.html" class="header_link" title="FAQ">FAQ</a>&nbsp;| <a href="testimonials.html" class="header_link" title="Testimonials">Testimonials</a>&nbsp;| <a href="Press.html" class="header_link" title="Press">Press</a>&nbsp;| <a href="Contact.html" class="header_link" title="Contact Us">Contact Us</a>&nbsp;| <a href="Buy.html" class="header_link" title="Buy Pixels">Buy Pixels</a> </div>
    </div>

    <div style="text-align: left; padding-left: 10px; font-size: 15px; font-weight: bold; color: #435e82;">
    <p align="center" class="style2 style7">Fill the following form to complete your request.</p>
    </div>

    <center><div style="width: 410px; text-align: center;">
    <span style="text-align: left;"></span>


    <form action="" method="post" enctype="multipart/form-data">
    <div class="row">
    <p><span class="label style1">Name:</span>
    <span class="formw">
    <input type="text" name="name" id="name" maxlength="50" class="form-item" value="" />
    <input type="hidden" id="predefined_price" name="predefined_price" value="1" />
    <input type="hidden" id="hidden_price" name="price" value="" />
    </span> </p>
    </div>

    <div class="row">
    <span class="label style1">Email:</span>
    <span class="formw">
    <input type="text" name="email" id="email" maxlength="250" class="form-item" value="" /></span>
    </div>
    <div class="row">
    <span class="label style1">X_1 position: </span><span class="formw" id="x_1"></span>

    <input type="hidden" id="x" name="x" value="" />
    </div>
    <div class="row">
    <span class="label style1">Y_1 position: </span><span class="formw" id="y_1"></span>

    <input type="hidden" id="y" name="y" />

    <script type="text/javascript">
    document.getElementById('x_1').innerHTML=document.getElementById('x').value=window.location.search.match(/x=\d*/).toString().replace(/x=/, '')
    document.getElementById('y_1').innerHTML=document.getElementById('y').value=window.location.search.match(/y=\d*/).toString().replace(/y=/, '')
    </script>
    </div>

    <div class="row">
    <span class="label style1">Width (in blocks):</span>
    <span class="formw">
    <input type="text" name="width" id="width" maxlength="3" class="form-item" style="width: 30px;" value="" onchange="return calculate();" /></span>
    </div>
    <div class="row">
    <span class="label style1">Height (in blocks):</span>
    <span class="formw">
    <input type="text" name="height" id="height" maxlength="3" class="form-item" style="width: 30px;" value="" onchange="return calculate();" /></span>
    </div>
    <div class="row">

    <span class="label style1">Website link:</span>
    <span class="formw">
    <input type="text" name="link" id="link" maxlength="250" class="form-item" value="" /></span>
    </div>
    <div class="row">
    <span class="label style1">Message (link title):</span>
    <span class="formw">
    <input type="text" name="title" id="title" maxlength="50" class="form-item" value="" /></span>
    </div>
    <div class="row">

    <span class="label style1">Image:</span>
    <span class="formw">
    <input type="file" name="file" /></span>
    </div>
    <div class="row">
    <span class="label style1">Allowed file types:</span>
    <span class="formw">*.jpg, *jpeg, *.gif, *.png, *.bmp. Not animated!</span> </div>
    <div class="Vspace"></div>

    <div class="row">
    <span class="label style1">Price:</span>
    <span class="formw" style="font-weight: bold;" id="price_">Not calculated yet.</span> </div>
    <div class="row">
    <p><span class="label"></span>
    <span class="formw">
    <input type="image" src="templates/images/paypal.gif" name="submit" onclick="return this.form.submit();" />
    </span></p>
    <p>&nbsp;

    </p>
    </div>

    <div class="Vspace"></div>
    </form>
    </div></center>
    </div>

    <script src="templates/scripts/wz_tooltip.js" type="text/javascript"></script>
    <div class="Vspace"></div>
    <div class="bottom" style="">
    &copy; 2006 <a href="http://www.****wallstreet.com" title="Yeah!" class="link style1">Yeah!</a>

    <br>
    All rights reserved. I am not responsible for the content of external sites. Images featured on homepage are &copy; of their respective owners.


    <br>
    <img border="0" src="templates/images/paypal.gif" width="68" height="29">
    </div>
    </div>

    </body>
    </html>
    ==================================================


    What am i missing? I know its something small! Thanks for your help ive been looking everywhere trying to figure this one out. I havent even gone to bed yet, i have a deadline in 1 hour lol

    What do i need to do?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •