CodeVerge.Net Beta


   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: > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: Date Entered: 3/20/2006 3:36:19 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 198 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
"dabi123" <>
NewsGroup User
theForm undefined3/20/2006 3:36:19 PM

0

I am using the MasterPages for my website. When I added a javascript function, I am getting an error on all the pages that theForm is undefined.

I have added the following to the <head> section of Master Page
<script type="text/javascript" language="javascript" src="Script/FormFunctions.js" />

In the Formfunctrion.js, I have defined a simple function

function sayHello(str)
{
alert(str);
}

When I view the page, I get the error that theForm is undefined!!!!
When I see the source code for the page, I see

theForm = document.forms[aspnetForm] and the form id of my page is aspnetForm...

I can't understand what is causing the error...

can someone please explain!!!!!

Thanks
dabi123

 

 

"jmparmer" <>
NewsGroup User
Re: theForm undefined6/13/2007 3:36:28 PM

0

 Greetings!  I don't know if you found a solution or not but I too was beating my head against the wall on this one.  After searching to net and finding no "free" answer I turned to the site that provided the solution for a price.  It ticked me off that I had to pay for it so I will post it here so others will not have to do the same.  For some reason, MasterPages do not like <script type=... in the head. 

To solve this problem simply do the following:

protected void Page_Load(object sender, EventArgs e)
        {
            Page.ClientScript.RegisterStartupScript(typeof("AnyType"), "AnyName", "<script type='text/javascript' language='javascript' src='YourScript' />");
        }

 

Good luck! 


Blackholes occur when GOD divides by zero.

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


Free Download:













7921102: x2p 64 bit conversions may fail at "configuring ope

7004448: linux filesystem hierarchy

7000199: openslp da returns authentication_failed in respons

7004670: migration could not continue as the migrating user

7004403: pvmove hangs when using the command 'pvmove /dev/dm

3594167: howto: configure multipath (mpio) to boot from san

3794234: can't uninstall business objects enterprise from zc

7004627: errors referencing missing libraries installing uni

3477912: history of issues resolved in edirectory 8.7.3 patc

3234091: tomcat4 does not load

7940100: error -222 running ibm client access with terminal

7001835: oracle instability on sles

7004758: icons inappropriately display with transparent or o

3876201: edirectory timezone change in united states, canada

7004717: error: ndsconfig: error while loading shared librar

7001209: adding the novell collaboration portlets to teaming

7970527: what process does powerrecon use to identify unique

7001256: ms sql auto archive for esec partitions fails

3066115: workstation imports with wrong name after imaging

7001818: teaming ldap search on groups returns extra objects

7002351: the definitive c05d and c067 tid.

7000506: udev debugging during system boot

7004535: how to delete or remove a groupwise library with it

7920876: platespin license entitlement manager

7004691: error: "libxm.so.3 is needed by novell-groupwise-ag

7004444: error 43 and 5002 while trying to login to oes serv

7004541: managed device cannot access bundles 2gb or larger

7004738: xad crashes in spengo

3484700: iprint printer fails to install with 1344, 1345 or

3302285: ziswin switches and functionality

7004292: zcm 10.2.x error on edit text file action when appe

3327927: sentinel control center gui stops displaying, scree

3980430: daylight saving time (dst) defaults changing in 200

3864678: groupwise client error: 8209 trying to restore mess

7004517: unable to image hp dc5850 minitower

7004731: gwia unable to create queues

7003451: zcm 10.2 schema upgrade failures and missing elemen

7920185: where are the kb articles?

7004744: unable to finish oes service pack upgrade

7003509: installation of sles10 sp2 on nec ia64 machine fai

7002125: modifying task resets priority to medium

3806333: ziswin does not change sid for windows vista

7921048: platespin powerrecon 3.2 release notes

3369641: plug-in support for imanager 2.6 running on 64-bit

7000493: error message at the end of an update via patchcd t

7004660: failed to connect to server. remote socket error.

7004589: slow logins due to unexpected edirectory referral c

3620037: zmd-messages log shows connection manager setting h

7004769: error: "lgncxw32 ldap contextless login: no ldap se

7004437: idm 3.6.1 fan-out driver install fails with error w

   
  Privacy | Contact Us
All Times Are GMT