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  |  

AspDotNetStoreFront
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! (Pro...  Using the $Find with DNN
Previous Previous
 
Next Next
New Post 8/8/2008 4:54 AM
User is offline Sarkie
11 posts
10th Ranked


Using the $Find with DNN 

Hi guys,

 

I am trying to use the $find( with dnn but it seems to append "dnn_ctrlxxx" before, so I can't seem to find the control, unless I find it elsewhere in the code and hardcode it.

 

I am trying to do this

 

http://forums.asp.net/p/1201162/2161341.aspx

http://www.codeplex.com/AjaxControlToolkit/WorkItem/View.aspx?WorkItemId=14890

 

Cheers for any help.!

 

Sarkie

 
New Post 8/8/2008 8:35 AM
User is offline Hooligannes
1599 posts
www.nesinteractivos.com
5th Ranked






Re: Using the $Find with DNN 

In webforms, there's always this kind of prefixing to avoid naming collisions. My first approach to this scenario was to strip the prefix. It worked, but it was too much overhead. I ended up wrapping my control in Div and working my way inside it.


Do you know the truth when you hear it?
The Dúnadan Raptor
Check My Blog for DNN advice and more
 
New Post 8/8/2008 6:51 PM
User is offline Baatezu
197 posts
9th Ranked


Re: Using the $Find with DNN 

This post http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/111/threadid/243027/scope/posts/Default.aspx might help you with javascript and controls.

 
New Post 8/11/2008 4:45 AM
User is offline Sarkie
11 posts
10th Ranked


Re: Using the $Find with DNN 

Cheers guys, I always forget about ClientID :) Here's the code, I couldn't use RegisterClientBlock as Sys. had not been loaded.

 


                if (!Page.ClientScript.IsStartupScriptRegistered("DDEFix"))
                {
                    string ddeFix = "function DDE_pageLoad(){$find('" +
                        DDE.ClientID +
                        "').unhover = doNothing; $find('" +
                        DDE.ClientID +
                        "')._dropWrapperHoverBehavior_onhover();}function doNothing() {}" +
                        "Sys.Application.add_load(DDE_pageLoad);";


                    Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "DDEFix", ddeFix,true);
                }

 

There you go :) Cheers guys.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! (Pro...  Using the $Find with DNN
 


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.

 


Swirlhost Inc.
Affordable DotNetNuke Hosting, Skin Development, Custom Module Development, and DotNetNuke Consulting. We will install your preference of DNN and now host with us and get a free license for the Swirl AJAX Chatroom Module.
www.swirlhost.com
Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com
DNNCovered.com - Your Offshore Dotnetnuke Partner
Dnncovered.com is the only Dotnetnuke offshore outsourcing center specializes in DNN skinning and module development with lowest pricing and quality service. Our staff is dedicated to websites based on DNN and our graphic designers are creative and imaginative well enough to provide customers the complete set of skinning solutions and packages
www.dnncovered.com

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