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: 191 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:













please help with returning a record specific value for an <embed> ipix image.

microsoft commerce starter kit (ibuyspy)

problem with access version of ibuyspy store

how to modify data in sql server

shipping/billing info tables, modules

looking for suggestions as to where to find prospects for made to spec e-commerce

cannot see the commercecsvs default page

localhost install complication?????

after new install - ie displays unprocessed html sounce??

problems updating the productsdb.vb in the components folder…???

to admin: i am unable to post replies

error bc30455 - argument not specified for parameter 'password'

ordersdetail error on commerce starter kit code

packaging the software

shopping cart

i need resources for developing e-commerce site

crypt password

am i missing something, commerce starter kit

paypal csk - mail problems

installing vbsdk starter kit

about shoppingcart

mdoules

ssl, please help

warnings when i try to unzip

help, problem when making changes!

admin for commerce starter kit

deployment

ibuyspy store admin section..please help!!!

problems with the asp.net starterkit commerce download...please help!

ups xmltextreader parsing

how do i getcustomerdetails to show up in email?

'unsuccessful database connection' on install

register page not working

problem logging in or registering with the commerce starter kit

adding ebook product using commerce starter kit

using starter kits in commercial products

credit cards....

sql server does not exist or access denied

the complete guide to build the commerce starter kit from the ground up

unable to open the solution(source code) through visual studio

ibuyspy spec

could not add aspnet user to sql server

the communitystarterkits can not use a database located on another server machine

download on commercestarterkit.org does not work

reviewlist doesn't get correct productid

addtocart.aspx

how to cretate a virtual directory configured as an application in iis?

admin section

changing the image size in products.aspx

getting data from the database using a loop

   
  Privacy | Contact Us
All Times Are GMT