How Software Gets Done  


Login

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
 
Affiliates
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.
Database 
(157 open)
   Access 
(60 open)
   MySQL 
(88 open)
   Oracle 
(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)
   Graphics 
(65 open)
     Adobe AfterEffects 
(8 open)
     Adobe Photoshop 
(34 open)
     Adobe Premiere 
(5 open)
     3d Animation 
(14 open)
   Art (Misc.) 
(18 open)
   Music 
(14 open)
   Photography 
(4 open)
   3d Modeling 
(9 open)
Language Specific 
(111 open)
   ASP 
(65 open)
   ASP .NET 
(48 open)
   C# 
(42 open)
   C++ / C 
(132 open)
   Carbon (Mac OS) 
(3 open)
   Cocoa / Obj-C 
(2 open)
   Cold Fusion 
(13 open)
   Delphi 
(48 open)
   Java 
(72 open)
   JSP 
(11 open)
   Perl 
(35 open)
   PHP 
(85 open)
   XML/XSL 
(38 open)
   Visual Basic 
(148 open)
   Visual Basic .Net 
(81 open)
   Other 
(64 open)
Misc 
(31 open)
   CAD 
(3 open)
MultiMedia 
(34 open)
   Video Editing 
(7 open)
Network 
(47 open)
   Network Design 
(9 open)
   Network Implementation 
(17 open)
Platforms 
(65 open)
   Windows 
(175 open)
     MS Exchange 
(6 open)
     MS Office 
(19 open)
     Other 
(8 open)
   Internet Browser 
(41 open)
   Linux 
(57 open)
   UNIX 
(24 open)
   Hand Held/PDA Programming 
(12 open)
Requirements 
(14 open)
Security 
(38 open)
Testing / Quality Assurance 
(17 open)
Web 
(172 open)
   Page Design 
(91 open)
   Flash 
(50 open)
   Web Services 
(77 open)
   Web (Other) 
(73 open)
Training 
(14 open)
   Computer Based 
(11 open)
Other
 
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
Phase:
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)

Description:
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.


Deliverables:
working code example

Platform:
browsers

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.
 
Bidding/Comments:
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!
bukhtik
(10 ratings)
in Kiev, Kiev
Ukraine
Bid id: 309,734
 
$15 (USD) Sep 14, 2002
4:46:54 AM EDT
 10
(Excellent)
   
replace

object.setAttribute('onclick','javascript:alert('hello');');

with

object.attachEvent('onmousedown', myalert)

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

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

bukhtik
(10 ratings)
in Kiev, Kiev
Ukraine
Bid id: 309,743
 
N/A Sep 14, 2002
5:04:23 AM EDT
 10
(Excellent)
   
!!!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  
Credentials


 

 
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 
Securenext
Rated a 9.96 on 114 jobs 
Buddies
Rated a 9.83 on 81 jobs 
Andrei Remenchuk
Rated a 10 on 14 jobs 
Codman
Rated a 9.97 on 151 jobs 
Michael Sharp
Rated a 9.98 on 182 jobs 
D-N-S
Rated a 9.93 on 38 jobs 
markesh
Rated a 10 on 22 jobs 
teleCODERS
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

 
Other
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.