Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  DNN 4.5.3 Simple ClientAPI getVar() Error - Object doesn't support this property or method
Previous Previous
 
Next Next
New Post 1/31/2008 8:04 AM
User is offline Tigris7
166 posts
9th Ranked


DNN 4.5.3 Simple ClientAPI getVar() Error - Object doesn't support this property or method 
Modified By Tigris7  on 1/31/2008 11:23:06 AM)

I am attempting to pass a variable to clients side script,edit the value, and return it to server side. To start with, for testing, I did the following in the server side:

If ClientAPI.BrowserSupportsFunctionality(ClientAPI.ClientFunctionality.DHTML) Then

    ClientAPI.RegisterClientVariable(Page, "Of", "Frank", True)
    DNNClientAPI.AddBodyOnloadEventHandler(MyBase.Page, "GetURL()")   

End If

So this calls function GetURL() on the client side in the page load event. In GetURL I have:

function GetURL()

{

    var sOF = dnn.getVar('Of');

}

    this line alone causes a 'Object doesn't support this Property or Method" javascript error

What am I doing wrong? For testing I put GetURL() in the dnncore.js file and I am calling it from admin/security/signin.ascx.

PLEASE help me.

 

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  DNN 4.5.3 Simple ClientAPI getVar() Error - Object doesn't support this property or method
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Cygnusoft Custom Software
Cygnusoft has been providing cutting-edge custom software solutions for 20 years. Cygnusoft is also a leading start-up incubator, helping our partners build successful new businesses.
www.cygnusoft.com
Digicon: DotNetNuke design and development
Digicon is based in Brisbane, Queensland, Australia
digicon.com.au
Live Visitor Tracking & Live Chat For DotNetNuke
Track your visitors in real time and add live chat for sales & support. Free Trial.
www.whoson.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP