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  |  

Maximum ASP
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
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.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Question about forms
Previous Previous
 
Next Next
New Post 8/8/2008 3:35 PM
User is offline nickfox
63 posts
10th Ranked


Question about forms 

I have a module with a form.

<form id="jobform" name="jobform" action="">

I am trying to use prototype.js to serialize the form fields but it's not working. I suspect there is a problem with having my form buried within the default.aspx form. So how can I get a form *name* that I can use?

thanks

Nick

 

 

 

 
New Post 8/8/2008 4:23 PM
User is offline Sebastian Leupold
15045 posts
www.deutschnetnuke.de
1st Ranked












Re: Question about forms 

forms cannot be nested. Have a look e.g. on Feedback or Survey module, how to use DNN form.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 8/9/2008 11:32 PM
User is offline nickfox
63 posts
10th Ranked


Re: Question about forms 

I did take a look at the feedback module but it did not answer my question. I wanted to share with you what my problem is and how I solved it. It ended up being pretty simple.

I'm porting a complex .net application to dotnetnuke. It's complex because it uses a lot of client side javascript and ajax. I am not using the microsoft ajax library. When I wrote the application 2 years ago, I was using prototype.js. The microsoft library was not able to do drag and drop properly. If you have 2 <div>s and they both have scrollbars, the microsoft library was not able to properly track the position of the element as it moved from one scrollable <div> to the other. Matter of fact, 2 years ago, *no* javascript libraries that I found correctly handled this problem so I had to write my own.

Since then, the problem has been solved and I found that Yahoo's YUI library to be the best and most robust open-source javascript library available. So I have chosen that as my front end development environment. The past week of getting YUI to work with DotNetNuke has been quite educational... But I decided I needed to go through the pain to create the product I'm working on. The drag and drop module is working great.

The problem I had yesterday was working with an iCalendar algorithm that I had written. It relied heavily on statements such as this:

document.theform.duration[1].checked = true;

As you can see, I needed the document's form to get to things like radio button collections, etc. The line of code above was what I had written 2 years ago. As I was studying DotNetNuke, I finally found that a global variable was created for the form:

var theform = document.forms['form'];
if (!theform) {
    theform = document.form;
}

this is from default.aspx. Its very similar to what I had written 2 years ago. When I changed all my code to this:

theform.duration[1].checked = true;

everything just started working. That was a serious relief. This particular module has thousands of lines of javascript and I seriously was having major butterflies in my stomach trying to get this to work...

I'm really happy that I chose

a) DotNetNuke and
b) Yahoo YUI

the combination of the 2 is making for a robust website with a great consistent look.

I hope this long post helps someone.
Nick

 
New Post 8/9/2008 11:37 PM
User is offline nickfox
63 posts
10th Ranked


Re: Question about forms 

I was just rereading my post and I saw that the DotNetNuke software took the word

t h e Fo r m

that had the F capitalized and lower-cased the F to turn it into theform all lower-cased.

What the heck is that all about?

I just wanted to clarify that so someone else doesn't struggle with trying to use a lower-cased theform which will not work in javascript.

Nick

 

 
New Post 8/10/2008 12:21 AM
User is offline Sebastian Leupold
15045 posts
www.deutschnetnuke.de
1st Ranked












Re: Question about forms 

I apologize, there are a few simple substitution rules applied to prevent injections.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Question about forms
 


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.

 


Web Valley
Website design, Database development
www.webvalley.com
UK DotNetNuke CMS installation, hosting & support
UK based installation, branding, customising, integration, hosting, training, support and maintenance services for DotNetNuke
www.deburca.co.uk
Need Help with your DotNetNuke website?
Jango Studios offers exclusive DotNetNuke Skin Design, Module Development, Web Marketing and Web Hosting.
www.jangostudios.net

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