Login
Register
05-07-2008

Resources for the DotNetNuke Community
Join WebHost4Life.com
Support this site

  Support forums  

You need to be logged in in order to post to this forums.
SearchForum Home
  DotNetNuke Development  Templates  Help regarding ...
 Re: Help regarding iframe
 
imgOfflinemaria_mir
11 posts
Joined
3/8/2006

Re: Help regarding iframe
Posted: 15 Mar 06 10:37 PM

hey

i have identified a problem

when i commented the regular expression validator statement in the html code of the EditIFrame.ascx , i saw there is no EditIFrame.ascx.vb file and the codebehind property of the editiframe.ascx has the value EditIFrame.ascx.vb , same is the case with IFrame.ascx... do u think this would be causing some problem??

secondly i wanted to know how to take a module from one dnn project to another?? should i copy only the folder of the module in the desktopmodules folder, or is there some proper way of exporting it or something??

please let me know

thanks a lot for all ur replies...im really thankful to u

imgOfflinednnjungle
141 posts
5th
Joined
3/13/2005

Re: Help regarding iframe
Posted: 17 Mar 06 2:57 AM
Actually my suggestion was a bit different: you don't need to comment the whole validator, instead add a "enabled=false" clause to the control and it will do.

Then you'll only need to copy that file to the server.

Disgrafic.com
imgOfflinemaria_mir
11 posts
Joined
3/8/2006

Re: Help regarding iframe
Posted: 19 Mar 06 11:10 PM

Ok... i set the enabled property to false.

yet there is no progress towards the solution..

lemme tell u the complete processs rite from the start. actually i really want to learn this dnn but i dont know this problem has stuck so long i feel that it wil not be solved now :S:( anyways

i created a dnn project and created an iframe module in it.

now i created an aspx file and i wanted to call that file in the iframe

i gave the complete path as

"http://localhost/docs/Visual Studio/Websites/New/Desktop Modules/DataGridModule/gridform.aspx"

where docs is a virtual directory and has many subdirectories inside it.

now when i load the iframe

i get the following error:

Server Error in '/docs' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'xmlns'.

Source Error:

Line 1:  <configuration  xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
Line 2:    <!-- register local configuration handlers -->
Line 3:    <configSections>

Source File: C:\Documents and Settings\maria.mir.ALITECK\My Documents\Visual Studio 2005\WebSites\New\web.config    Line: 1


Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032

Please notice that i m using Visual Studio 2005 and it creates a development server automatically when i build and run the file. the path that is created and displayed on the url field in the internet explorer is

http://localhost:2523/WebSite3/Default.aspx 

since i was gettig error on using the direct localhost path, i tried to run the default.aspx by creating another website (not a dnn project) and tried to run it. when i run it, it runs successfully.

but when i use the above path in the iframe source... i get "The page can not be displayed" error. i think this path is inaccessible to it since the port has not been activated by the Visual Studio 2005...

and when i tried the following path to run the default.aspx page directly in the internet explorer.

http://localhost/docs/Visual%20Studio%202005/WebSites/WebSite3/Default.aspx

i get the following error

 

Server Error in '/docs' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized configuration section 'connectionStrings'

Source Error:

Line 10: <configuration>
Line 11:     <appSettings/>
Line 12:     <connectionStrings/>
Line 13:     <system.web>
Line 14:         <!-- 

Source File: C:\Documents and Settings\maria.mir.ALITECK\My Documents\Visual Studio 2005\WebSites\WebSite3\web.config    Line: 12


Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032

 

i m really sorry to bother u again and again...

but can u please give me a detailed description and easy to understand tutorial on dnn and its usage. kindly also let me know any free ebooks that are available for beginners.

Thank You

imgOfflinednnjungle
141 posts
5th
Joined
3/13/2005

Re: Help regarding iframe
Posted: 23 Mar 06 8:56 AM

Maria,
I'm sorry about all your problems but I cannot figure what are you doing wrong.
I don't know of any free ebook about dnn, but on the core site you should be able to find a couple of interesting pointers about use and development. Look on the Guided Tour, Video tutorials, Resource portals, ...

I continue to think that your problem is not with dnn but with the other project you're trying to build, hence my first option, just disabling the validator, it's the easiest way.


Disgrafic.com
imgOfflinemaria_mir
11 posts
Joined
3/8/2006

Re: Help regarding iframe
Posted: 27 Mar 06 12:07 AM

well

i tried to disable the iframe source validator but it didnt help me cos the iframe was still empty.

can u please do me a great favor ill be reallay thankful tou

kindly create a new module and use an iframe in that module and load an aspx file in that iframe. and then please put it somewhere on the web so that i can download it and know whats wrong with my work

u can take ur time. i would be highly obliged

thank you

imgOfflinednnjungle
141 posts
5th
Joined
3/13/2005

Re: Help regarding iframe
Posted: 27 Mar 06 5:45 AM
Here is the code:
- create a module and add this to the ascx file:
    <asp:Button id="Button1" Text="Button" runat="server"></asp:Button>
    <asp:Label id="lblIFrame" Runat="server"></asp:Label>

- add the code for the button (just copied from the core IFrame module):
        Private Sub Button1_Click(...) Handles Button1.Click
            Dim FrameText As New System.Text.StringBuilder
            FrameText.Append("<iframe frameborder=""")
            FrameText.Append("yes")
            FrameText.Append(""" src=""")
            FrameText.Append("http://dnnjungle.vmasanas.net/")
            FrameText.Append(""" height=""")
            FrameText.Append("100")
            FrameText.Append(""" width=""")
            FrameText.Append("200")
            FrameText.Append(""" title=""")
            FrameText.Append("Title")
            FrameText.Append(""" name=""")
            FrameText.Append("name")
            FrameText.Append(""" scrolling=""")
            FrameText.Append("auto")
            FrameText.Append(""">")
            FrameText.Append("</iframe>")
            lblIFrame.Text = FrameText.ToString

        End Sub

And that's all! Not that difficult :)

Disgrafic.com
imgOfflinemaria_mir
11 posts
Joined
3/8/2006

Re: Help regarding iframe
Posted: 27 Mar 06 11:46 PM

actually i can also load absolute urls in my iframe like http://www.yahoo.com or http://www.msn.com  but what i wanted was to get an aspx file loaded in iframe.

however yesterday i got it working. now i wanted to ask how can i use javascript to call a method defined in the aspx page which is loaded in an iframe??

imgOfflinednnjungle
141 posts
5th
Joined
3/13/2005

Re: Help regarding iframe
Posted: 28 Mar 06 12:59 AM
Maria,
I've never done this sorry. You'd better search for javascript tutorials to see how to do this.


Disgrafic.com
imgOfflinemaria_mir
11 posts
Joined
3/8/2006

Re: Help regarding iframe
Posted: 28 Mar 06 11:17 PM
ok thanks
  DotNetNuke Development  Templates  Help regarding ...
© Vicenç Masanas Terms Of Use Privacy Statement   
.