Javascript

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentJavascript

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old July 13th, 2011, 10:29 AM
Vlad Vlad is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Jul 2011
Location: Edmonton, Alberta, Canada
Posts: 1 Vlad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 sec
Reputation Power: 0
GetElementByID in jscript

Hi,
I am creating a custom aspx page in Sharepoint that contains a dataview, with the following code:

<asp:TextBox runat="server" name="FileTxt" ID="FileTxt" text="{@PrevMaintFile}" __designer:bind="{ddwrtataBind('u','FileTxt','Text','TextChanged' ,'EqID,TempID',concat(ddwrt:EscapeDelims(string(@E qID)),',',ddwrt:EscapeDelims(string(@TempID))),'@P revMaintFile')}" />
<asp:FileUpload runat="server" name="File1" id="File1" onchange="File1_OnChange(this.value,event);" />

Basically what I want to achieve is to assign the value in control File1 (the full file name of the file selected by the user) to the FileTxt textbox.
Here's the jscript function:

function File1_OnChange(myvalue,e)
{
document.getElementByID("< %= FileTxt.ClientID%>").value = myvalue;
}
When the function runs I get an error message:

Object doesn't support this property or method

What am I doing wrong? This is my first post on this forum. Any help is appreciated

Vlad

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentJavascript > GetElementByID in jscript


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap