CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/20/2007 6:05:20 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 48 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
klgrube
Asp.Net User
How do you reference a control on a content page in javascript?2/20/2007 6:05:20 AM

0/0

Hi!

   I'm trying to set focus on and then select the text in a particular textbox control, but I'm having a problem.

   I'm using AJAX enabled pages,  I have a master page.  The control I want to reference is on a content page.  The content page contains a multiview control.  The text box is in one of the two views - the second one.

 Normally I'd do something like . . . in the onload event of the content page:

tb_SelectText.Attributes.add ("onfocus","SetSelected();")

Then at the top of the content page, I'd add

function SetSelected()

{ document.Form1.txt_SelectText.select();}

But I get a javascript error that the control either doesn't exist or is null.

What am I doing wrong?  Please let me know.,  If there's an easier way to do this, I'd appreciate knowing.

Thanks!
Karen

 

MorningZ
Asp.Net User
Re: How do you reference a control on a content page in javascript?2/20/2007 12:52:47 PM

0/0

klgrube:

What am I doing wrong? 

 

You are not understanding the naming container scheme used by master pages

about 2/3rds down the page of this artcile (http://www.odetocode.com/Articles/450.aspx), you will get a better understanding of what happened to the name and why you cannot "find" the control


"If you make it idiot proof, they'll build a better idiot"
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
JavaScript Bible Authors: Danny Goodman, Michael Morrison, Brendan Eich, Pages: 1173, Published: 2007
ASP.NET 2.0 MVP Hacks and Tips Authors: David Yack, Joe Mayo, Scott Hanselman, Fredrik Normén, Dan Wahlin, J. Ambrose Little, Jonathan Goodyear, Pages: 400, Published: 2006
ASP.NET AJAX Programmer's Reference: With ASP.NET 2.0 Or ASP.NET 3.5 Authors: Shahram Khosravi, Pages: 1522, Published: 2007
JavaScript & DHTML Cookbook Authors: Danny Goodman, Pages: 582, Published: 2007
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
JavaScript: The Complete Reference Authors: Thomas A. Powell, Fritz Schneider, Pages: 948, Published: 2004
Beginning JavaScript Authors: Paul Wilton, Pages: 1056, Published: 2000
Web Design in a Nutshell: A Desktop Quick Reference Authors: Jennifer Niederst, Jennifer Niederst Robbins, Pages: 618, Published: 2001
Programming ASP.NET AJAX Authors: Christian Wenz, Pages: 454, Published: 2007

Web:
How do you reference a control on a content page in javascript ... How do you reference a control on a content page in javascript? Last post 02-20- 2007 7:52 AM by MorningZ. 1 replies. Sort Posts: ...
Robust ASP.NET control referencing in JavaScript | Encosia Robust ASP.NET control referencing in JavaScript · AJAX, ASP.NET By Dave Ward on August 8th, 2007 .... It works the same way from a content page. ...
YouTube JavaScript Player API Reference - YouTube APIs and Tools ... Skip to page content Skip to main navigation. English | Site Directory ... The JavaScript API allows users to control the YouTube embedded video players via ...
Best Practices for Speeding Up Your Web Site Reduce the Number of DOM Elements. tag: content. A complex page means more bytes to download and it also means slower DOM access in JavaScript. ...
TheMSsForum.com >> Asp >> Scriptmanager1.setfocus reference from ... How can I do this, without using a 3-rd party Menu control? thanks, Chris. Tag: Scriptmanager1.setfocus reference from content page Tag: 462831 ...
How to reference and populate controls on Content Page try using the JavaScript getElementById method to reference the ... >content >> > control with data from popup page that is not part of the ...
JavaScript Source: Free JavaScripts, Tutorials, Example Code ... Get free Java Script tutorials, references, code, menus, calendars, ... layouts difficult to manage when the height of content cannot be known in advance, ...
Element-Enhancing Javascript in ASP.NET Master Pages - Stack Overflow Put a ContentPlaceHolder in the head section of the master page, then add a asp: Content control on the content page referring to the placeholder and put ...
Fax Everywhere Fax Client Reference Guide To get the most out of this Web page you should enable Javascript in your browser's setup ... Fax Everywhere Control Panel and Service Panel Reference Guide ...
Microsoft Web Platform - Browser Resize Zoom Events And then we pass on the reference to this or the page object. ... We’re going to use this ID to get a reference to the control from JavaScript. ...

Videos:
Ning Head-ache? Fix it with Head Doctor from WidgetLaborator Finally a fast and easy way to get full control over your Ning website header area. Just point and click and you can put any content you wish into yo...
الجهاد PLEASE READ VERY CAREFULLY THESE TERMS AND CONDITIONS AND THE PROGRAM FREQUENTLY ASKED QUESTIONS LOCATED ON THE PROGRAM WEBSITE AT https://upload.vi...
Fogos 2008 ! PLEASE READ VERY CAREFULLY THESE TERMS AND CONDITIONS AND THE PROGRAM FREQUENTLY ASKED QUESTIONS LOCATED ON THE PROGRAM WEBSITE AT https://upload.v...
الله اكبر PLEASE READ VERY CAREFULLY THESE TERMS AND CONDITIONS AND THE PROGRAM FREQUENTLY ASKED QUESTIONS LOCATED ON THE PROGRAM WEBSITE AT https://upload.vi...
tutty shih tzu PLEASE READ VERY CAREFULLY THESE TERMS AND CONDITIONS AND THE PROGRAM FREQUENTLY ASKED QUESTIONS LOCATED ON THE PROGRAM WEBSITE AT https://upload....
قدرة الله قوية PLEASE READ VERY CAREFULLY THESE TERMS AND CONDITIONS AND THE PROGRAM FREQUENTLY ASKED QUESTIONS LOCATED ON THE PROGRAM WEBSITE AT https://upload.vi...
YouTube Player APIs and Tools Tutorial Stephanie Liu gives a short tutorial on the basic functionality available in the JavaScript and Flash player APIs, as well as the Chromeless Player. ...
Developing JavaScript with Chickenfoot Google TechTalks July 25, 2006 Rob Miller Michael Bolin ABSTRACT Chickenfoot is a Firefox extension that embeds a JavaScript programming environmen...
The Archimedes Palimpsest Google TechTalks March 7, 2006 Will Noel Roger L. Easton, Jr. Michael B. Toth ABSTRACT The Archimedes Palimpsest is a 10th Century medieval manuscr...
Web Applications and the Ubiquitous Web Google TechTalks February 1, 2006 Dave Raggett Dave Raggett is currently a W3C Fellow from Canon, and W3C Activity Lead for Multimodal Interaction....




Search This Site:










menu control help

contentplaceholder and control's id

how to add html tag in a aspx page which is under a master page?

question regarding combining multiple themes together

sitemap and dynamic queries

menu control - changing the appearance of the top node to buttons

treeview - node.parent is null even though it has a parent node

menu control style suggestions (asp.net 2.0)

converting stand-alone pages to master pages

2nd menu in masterpage

is masterpage only apply to pages? not usercontrols?

htm map to placeholder

securitytrimmingenabled bug

global master page

asp.net treenode value in client side

master page and javascript

how to dynamically change master page

menu control issues

2 master pages within one site not nested

treeview without expand icons, and expanddepth=0

menu - current item and parent item selected?

wizard w/ validationsummary in navigationtemplates

masterpage that pulls content from secondlevel directory off of root traps you in that directory

skin for html control

tabmenu

some questionable remarks in the sitemappath document

user controls inside placeholders don't show up

how to apply staticselectedstyle on top level (horizontal) menu, when lower level was selected

adding javascript to a menu item in a menu control

newbie - how to convert existing html page into a master page?

  Privacy | Contact Us
All Times Are GMT