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  |  

DotNetNuke Marketplace
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  AJAX Page Call
Previous Previous
 
Next Next
New Post 8/4/2008 4:58 AM
Unresolved
User is offline admlange
30 posts
10th Ranked


AJAX Page Call 

Hi Everybody,

I've been crunching on an issue with a cart module i'm trying to create tailored to our wishes. How should it work:

Arbitrary product page (in our case XMOD) should show products.
An add-to-cart link should put the products in a cart. 
Then you have the view/update cart
...etc.

First i crated the cart module than in the first try i created an addtocart.aspx page iheriting from the wystem.web.ui.page. This however would result in not really enjoying the DNN functionality. It DID work however. So i stepped over to a addtocart usercontrol under the same namespace and got it working! Now i want to be able to test the cart more extensively and seeing as i do not have XMOD in my development environment i wanted to create an AJAX call to this control (something like the url the cart resides on but then the .../ctrl/AddToCart/etc... to acces it. This works if put into the browser manually. I know want to add it to my viewcart.ascx but am not able to find out how to call an OTHER control and get the response back with AJAX in DNN. I've developed quite a bit of AJAX applications and understand the principals very well but can not see any DNN examples that do NOT involve asmx files or call to the same pagebehind. THe reason i really want the client to call the control through ajax is that i can mimic the way XMOD works (within an XMOD template you can define the page you want to call and capture the responsetext or responsexml and process that. The second reason i want this is because i might want to place some of the cuntionality of the cart in a seperate control to have it grouped an use ajax around the module to call this controll.

Is there anyone out there who can give me an example in which i can call a different control (may also be an example posting top the same pagebehind that uses loadcontroll) and have that controll, though being an entire DNN page, return a message like "| Added to cart" which i can popup or write to some updatepanel?

I wopuld be REALLY thankfull seing i have already sp[ent a good 6 hours googling this.

Thanks in Advance,

Alexander

 
New Post 8/13/2008 2:12 AM
User is offline admlange
30 posts
10th Ranked


Re: AJAX Page Call 

Anybody?

 
New Post 8/13/2008 4:12 PM
User is offline admlange
30 posts
10th Ranked


Re: AJAX Page Call 

Basically :

I used to have a JS function on my (classic)ASP page included that took a url-to-post-to and a return-function parameter. It would xmlhttprequest another asp page with post or get params and show the result in a popup or assigned div. This is what i would like to do here as well. As i have a custom module in a namespace where the ascx control resides as partial class casting somehow does not work (hence the loadcontrol is not parameterisable(?)). I do however beleive that it should be possible to have the request go to the resolveclienturl(editurl("controlname")) . All of the ajax eaxmples i see deal with handling the request (postback / callback) in the same codebehind file. How can i:

- use DNN to handle it

- send it to an external page (ascx file / control)

?

Hope someone has an idea...

Tx in advance. Alexander

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  AJAX Page Call
 


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.

 


TronixSoft
Hosting for local businesses that want more from their websites.
www.TronixSoft.com
The Forerunner Network
The Forerunner Network consists of a group of Dynamic Website & Interactive Membership Portal hosting services that are managed by Forerunner Communications. Our services span a wide range of markets and enable individuals, organizations and businesses to build and manage dynamic, interactive portals and websites.
The Forerunner Network
ZLDNN.COM
We provide commercial DotNetNuke modules.
www.zldnn.com

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