CodeVerge.Net Beta


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




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 7/25/2006 4:21:44 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 129 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
usmevans7
Asp.Net User
OnPropertyChange Javascript Master Page7/25/2006 4:21:44 PM

0

I have some pages that a client has requested be changed from using forms to use Master Pages. Some of these pages have textboxes for phone numbers that are using javascript with onpropertchange events to determine when the user has typed 3 characters into them and they then move the cursor to the next textbox. Now that I'm going to be using Master Pages and Content pages how can I get this javascript to work? Below is the original javascript:


        <SCRIPT language="javascript" event="onpropertychange" for="txtWPhone1">
            if ( event.propertyName == "value" && Form1.txtWPhone1.value.length >= 3 )
            {
            Form1.txtWPhone2.focus();
            Form1.txtWPhone2.select();
            }
        </SCRIPT>


I've tried making adding the script to the page on the PageLoad of the content page like so:

Dim onloadScript As New System.Text.StringBuilder()
        onloadScript.Append("<SCRIPT language='javascript' event='onpropertychange' for='txtWPhone1'>")
        onloadScript.Append(vbCrLf)
        onloadScript.Append("if ( event.propertyName == 'value' && form1.txtWPhone1.value.length >= 3 )")
        onloadScript.Append(vbCrLf)
        onloadScript.Append("{")
        onloadScript.Append(vbCrLf)
        onloadScript.Append("form1.txtWPhone2.focus();")
        onloadScript.Append(vbCrLf)
        onloadScript.Append("form1.txtWPhone2.select();")
        onloadScript.Append(vbCrLf)
        onloadScript.Append("}")
        onloadScript.Append(vbCrLf)
        onloadScript.Append("</SCRIPT>")
        Me.ClientScript.RegisterStartupScript(Me.GetType(), "onLoadCall", onloadScript.ToString())



But this isn't working either. I'm sure my problem is with the onpropertychange event in the script tag or with how the page knows which control I'm referring to but I can't figure out what I need to change. Any help would be greatly appreciated!!

-Marshall-
-InfiNet Development Inc.-
usmevans7
Asp.Net User
Re: OnPropertyChange Javascript Master Page7/25/2006 7:17:33 PM

0

When I said they were changing from using forms to Master Pages I meant changing from FRAMES to using Master Pages.

-Marshall-
-InfiNet Development Inc.-
chime
Asp.Net User
Re: OnPropertyChange Javascript Master Page7/31/2006 2:37:46 PM

0

Hi

Volcano is answering a question I have open on this very subject at

http://forums.asp.net/1356096/ShowThread.aspx#1356096

and there is also

http://blogs.claritycon.com/blogs/steve_holstad/archive/2005/12/22/128.aspx

 

This should get you going.

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
OnPropertyChange Javascript Master Page - ASP.NET Forums Now that I'm going to be using Master Pages and Content pages how can I get this javascript to work? Below is the original javascript: ...
JS onpropertychange event - ASP.NET Forums I add a small javascript to the masterpage of the website to if the user ... The other point is to attach a handler to the onpropertychange ...
Div onpropertychange Feb 4, 2007 ... Want to know why onpropertychange is not triggering or is there any other ... ... Prev by Date: Re: Master pages and Firefox ... If I put an "alert" in the Javascript right after the ... the object reappears. ...
How to catch onpropertychange event for DIV HTML element in C# BHO ... 3, Include div pages in breadcrumb · Scripting. 4, ajax multiple div · JavaScript. 5, Question about DIV ? .... Rank: Master. RedKelvin: Hi Peter, the DIV element, does not have an OnPropertyChange event, that is why you cannot capture it. ... Rank: Master. RedKelvin: Excellent, does that mean you got it working? ...
ASP.NET limit max characters across three text boxes and show ... Oct 30, 2008 ... Second, in the HTML code of the page, place this javascript inside the ... ... Rank: Master. sm394: I have build a ASP. ...
Javascript / DHTML / Ajax Page 4 - Bytes Site Map Page 4-JavaScript web scripting language - Ask questions about JavaScript ... onpropertychange event is not fired when you change document location ...
Bizarre: ReportViewer toolbar is present, Report and data absent The problem arises when we switch the master page and the report viewer ... false))" language="javascript" style="height:16px;width:16px;padding:2px;" /> .... Text" onpropertychange="ClientToolbar_ctl1_PageBody_ReportViewer1__ctl1 . ...
CodeProject: Extending the ASP.Net Multiline TextBox control to ... Nov 16, 2007 ... Is this work with master pages and user controls . ..... I use the onpropertychange event to call a common JavaScript function which trims ...
Doc JavaScript - JavaScript Tip of the Day Archive Add Doc JavaScript's Tip of the Day to your personal My Netscape page .... Learn how to use the onPropertyChange() event handler. ... HTC-Master Focus/Blur Events: How many times have you been frustrated when failing to set a DHTML ...
JavaScript Bible 5th Edition Quick Reference Page 2 of 2 — Original DOM (NN2+, IE3+) Quick Reference ...... onpropertychange. W5 onreadystatechange onresize onresizeend. W5.5 onresizestart. W5.5 onselectstart ..... Master JavaScript and DOM concepts with Danny Goodman’s ...






reference controls in masterpage from class in app_code

linking a masterpage to many projects!

the file web.sitemap required by xmlsitemapprovider does not exist.

htlm render bug?

different color background for each menu item in navigation menu ???

how dynamically make and show asp.net menu items using xml datasource?

can the imageurl adapt to a theme

sqlsitemapprovider and onsitemapchanged

table row background image - not showing in firefox why?

themes in master pages

multilingual database driven site a real challenge!

help!!! can't access form data fields with master page!

web.sitemap title gets capitalized?

how to add data to the content place holder at runtime

accessing an instance of a class declared in a masterpage

master pages, css, themes...oh my!

changes to treenode text are not applied to html

questions about using two master pages and using flash

determine theme name stored in web.config

master page tree menu with "pop out" submenu

can't load <profiles> values into gridview

frames in master page

dynamic breadcrumbs

programatically editing web.sitemap

page works w/o masterpage, but when masterpage is used nothing happens.

how retrieve the textbox id in master pages using javascript

confusion of staticselectedstyle in a menu control.

supressing menu hyperlink

dynamic masterpage?

.css file overrides my theme file?

   
  Privacy | Contact Us
All Times Are GMT