How Software Gets Done  


Software Buyers
Request bids
Search coders
My Buyer Account
Buyer help
Buyer articles
Buyer FAQ
Latest news
Software Coders
Newest open work
Browse all work
Search all work
My Coder Account
Coder help
Coder articles
Coder FAQ
Latest news
My Affiliate Account
Affiliate help
Affiliate FAQ
Latest news
Newest Bid Requests.
(See all)
Single Web Page Table
By mrlanguage on Jul 31
Max Bid: $15

Text file formatting for quickbooks
By GeorgeChapin on Jul 30
Max Bid: $200

Move Online Shopping Cart
By BMF Webmaster on Jul 30
Max Bid: $200

Thermostat web graphic / chart that will get hotte ...
By JRKlein on Jul 30
Max Bid: $25

Excel VBA macro for personal finance
By California Design on Jul 30
Max Bid: $20

Oracle Connection Pooling
By jeanpaul on Jul 30
Max Bid: $100

Click here to put this ticker on your own site and/or get live RSS newsfeeds

Open Work Categories.
(157 open)
(60 open)
(88 open)
(12 open)
   SQL Server 
(72 open)
   Other DB 
(23 open)
Documentation / Tech Writing 
(27 open)
   Language (Human) Translations 
(2 open)
Data Entry 
(23 open)
Game Development 
(19 open)
Graphics / Art / Music 
(57 open)
(65 open)
     Adobe AfterEffects 
(8 open)
     Adobe Photoshop 
(34 open)
     Adobe Premiere 
(5 open)
     3d Animation 
(14 open)
   Art (Misc.) 
(18 open)
(14 open)
(4 open)
   3d Modeling 
(9 open)
Language Specific 
(111 open)
(65 open)
   ASP .NET 
(48 open)
(42 open)
   C++ / C 
(132 open)
   Carbon (Mac OS) 
(3 open)
   Cocoa / Obj-C 
(2 open)
   Cold Fusion 
(13 open)
(48 open)
(72 open)
(11 open)
(35 open)
(85 open)
(38 open)
   Visual Basic 
(148 open)
   Visual Basic .Net 
(81 open)
(64 open)
(31 open)
(3 open)
(34 open)
   Video Editing 
(7 open)
(47 open)
   Network Design 
(9 open)
   Network Implementation 
(17 open)
(65 open)
(175 open)
     MS Exchange 
(6 open)
     MS Office 
(19 open)
(8 open)
   Internet Browser 
(41 open)
(57 open)
(24 open)
   Hand Held/PDA Programming 
(12 open)
(14 open)
(38 open)
Testing / Quality Assurance 
(17 open)
(172 open)
   Page Design 
(91 open)
(50 open)
   Web Services 
(77 open)
   Web (Other) 
(73 open)
(14 open)
   Computer Based 
(11 open)
Other Sites

Download the free Rent A Coder IE toolbar!
Show Bid Request

Help with Javascript Bug
Bid Request Id: 27461
Bookmark in my 'To Do' list
Posted by: jocksncops (9 ratings)
(Software buyer rating 10)
Non-action Ratio: Very Good - 18.18%
Buyer Security Verifications: Good
Approved on: Sep 14, 2002
2:11:48 AM EDT
Bidding Closes: Sep 28, 2002
2:30:51 AM EDT
Viewed (by coders): 305 times
100% of work completed and accepted. Coder has been paid.
Max Accepted Bid: Bidding is closed
Project Type: Question or Beginner / Newbie Assistance
Bidding Type: Open Auction
Categories: Java, Internet Browser
Enter chat room for this bid request
(0 active users at Jul 31, 2003 10:26:04 AM EDT)

Hi attached is a sample ASP with some javascript that does not seem to be working correctly. The page dynamically inserts some elements using the document.createElement("xxx") syntax. This part works ok, but other things do not. There is some javascript code included in the setAttribute statement for one of the dynamically added items, but this code does not fire. My guess is that maybe the new item is generated outside of the form? But it seems to be in there properly as evidenced by clicking on the Show All button. Is it simply javascript does not work for dynamically added items?

In my example ASP page, there are only 3 buttons on the page that are of concern.

1. The button labeled "Button" - This one dynamically creates a button.
2. The newly created button "btn" - There is javascript in this button, but nothing happens.
3. The "Show All" button, this displays some HTML information about certain document elements. I added this because the "View Source" option does not include any dynamically added elements.

In a nutshell, I need to be able to dynamically create screen items that the user wishes to add, and I need each of these items to support javascript.

IMPORTANT: I am only looking for a bug fix, not an expensive complete re-write.

working code example


Additional Files:
This bid request includes IMPORTANT additional attached files. Please download and read fully before bidding.

Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements. We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation. If you notice a violation please help out the site and report it. Thanks for your help.
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests.

See all rejected bids (and all comments)
Name   Bid Amount 
Date   Coder Rating  
This bid was accepted by the buyer!
(10 ratings)
in Kiev, Kiev
Bid id: 309,734
$15 (USD) Sep 14, 2002
4:46:54 AM EDT



object.attachEvent('onmousedown', myalert)

function myalert() {
allert ('hello');
Attached File
  See 1 private reply(ies)
to/from bukhtik.

(10 ratings)
in Kiev, Kiev
Bid id: 309,735
N/A Sep 14, 2002
4:48:29 AM EDT
don't forget look to attach in previous message - you can find edited rentacoder.txt

(10 ratings)
in Kiev, Kiev
Bid id: 309,743
N/A Sep 14, 2002
5:04:23 AM EDT
!!!Pay attantion - previous script will work only in IE5+ so you need to use this!!! function addEvent(elementPtr, eventType, eventFunc) { if (elementPtr.addEventListener) { //Works in NN6 elementPtr.addEventListener(eventType, eventFunc, false); } if (elementPtr.attachEvent) { //Works in IE5+ elementPtr.attachEvent('on' + eventType, eventFunc); } else { // make something if old browsers } } function removeEvent(elementPtr, eventType, eventFunc) { if (elementPtr.removeEventListener) { //Works in NN6 elementPtr.removeEventListener(eventType, eventFunc, false); } if (elementPtr.detachEvent) { //Works in IE5+ elementPtr.detachEvent('on' + eventType, eventFunc); } else { // make something if old browsers } } Example, HowToUse: addEvent(mybutton, 'mousedown', myAlert) removeEvent(mybutton, 'mousedown', myAlert) Don't forget look to attach!
Attached File

Bid Request Search
 Advanced Search
Newest Open Work
Latest News  


Rent A Coder upholds the rigorous business practices required to be both a BBB member and Square Trade vendor.
  • All customer issues addressed within 2 days
  • Openly disclosed pricing and return policies
  • Participation in mediation at buyer request
  • Superior selling track record
This site is verified through its parent company, Exhedra Solutions, Inc.
Top Coders.

Anuj Gakhar
Rated a 9.96 on 104 jobs 
Rated a 9.96 on 114 jobs 
Rated a 9.83 on 81 jobs 
Andrei Remenchuk
Rated a 10 on 14 jobs 
Rated a 9.97 on 151 jobs 
Michael Sharp
Rated a 9.98 on 182 jobs 
Rated a 9.93 on 38 jobs 
Rated a 10 on 22 jobs 
Rated a 9.93 on 67 jobs 
Maxnet Technologi es Private Limited
Rated a 9.92 on 75 jobs 

See all top coders...

(What makes a top coder?)

Top Exam Scorers

Rent A Coder is PayPal verified through its parent company, Exhedra Solutions, Inc.

Created in partnership with:


Affiliate Sites
Latest News | About Us | Kudos | Feedback/Contact    Affiliates | Advertise    Privacy | Legal

Copyright 2001, Exhedra Solutions, Inc. All rights reserved.
By using this site you agree to its Terms and Conditions.
"Rent A Coder" (tm), "Safe Project Escrow" (tm) and "How Software Gets Done" (tm)
are trademarks of Exhedra Solutions, Inc.