Flex - Updating An IFrame Without A Page Refresh Using Actionscript 3?

Jan 10, 2010

I would like to have a FLEX SWF Menu in .NET that is animated, and use button clicks to update an iFrame in an .NET 2.0 Ajax enabled application without a page update or refresh. If I use URLVaribles in Flex, The only way I've gotten to them to ASP.NET is via URL Page Navigation which always refreshes the screen. There is a LOADVARS function but I have not gotten it to work. Is there any suggestion on how one would do this??

Do I need to look into using JSON for Flex??? Or WebOrb???

This works fine... but with a page refresh (which is not cool)...

navigateToURL( new URLRequest( "http://localhost:50294/WEBAPP/Default.aspx?P=2&H=500" ), "_self" );

This does NOT work fine... (in fact it just loads the whole page .NET page in FLEX, not what I am looking for)

var variables:URLVariables = new URLVariables();
variables.P="1";
variables.H="400";
var request:URLRequest = new URLRequest();
request.url = "http://localhost:50294/Timber2/Default.aspx?";
request.method = URLRequestMethod.POST;
request.data = variables;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, uploadComplete);
try
{
loader.load(request);
}
catch (error:Error)
{
trace("Unable to load URL");
}

View 2 Replies


Similar Messages:

File Upload From FLEX Or ActionScript 3?

Jul 12, 2010

I would like to know how to upload a file from ActionScript 3 (From a FLEX Application) to a Dot Net Back End, maybe to an ASHX file, an ASPX file or similar and using C# as core backend language.

View 1 Replies

C# - Refresh Iframe When Refreshing Page?

Mar 14, 2011

i have web page it has a page header content like main menu,logo and so..on..

and in iframe i am loading the side menu and content. while loading the web page i am using an empty home page to display. after some time in mid of some page while refresing the page it reloads the home page. But i need to display the page that i am using as a current page

code is

[code]....

in that iframe deafult page is Homepage.aspx,it is empty page. When i clicked the sub menu it loads the content like AddMaster.aspx. When i refresh the page it loads Homepage.aspx, but i need to display AddMaster.aspx

View 2 Replies

Updating Div After Full Page Refresh Following AJAX Request?

Jun 9, 2010

I have an AJAX controller action which returns JSON. The returned JSON is handled via jQuery and contains a message displayed in an update div. The JSON also contains a flag which indicates a change in state. If this is true the entire page needs to be reloaded from a different url. This is currently performed in the jQuery using window.location.replace(url). In the situation where a full page refresh occurs, I still want to display the message from the JSON in the update div, but after the page has fully reloaded.

How can I ensure the div is updated with the message after the window.location.replace call and the page has been completely reloaded? (I realise AJAX is not intended for full page refreshes but I can't think of a simple way of avoiding it in this scenario. Normal behaviour here is updating the div with a status message.)

View 2 Replies

Forms Data Controls :: How To Refresh DataList Control On Parent Page After Data Submission From The Iframe Page

Jan 11, 2010

How can i refresh(Asych) the contents of my Datalist on the parent page from a data change in a page that is displayed in an iFrame on the parent page.

I have movie names with image in the data list that is on parent page.

there another page is openend in the parent pages in an iFrame control.

in that sub page i upload image and other data related to a new movie.

What i want is that when i submit that information in an iFrame page, the DataList should update(Asych) itself on the parent page showing new updated info.

the structure is like;

[code]...

View 1 Replies

Forms Data Controls :: FormView Updating (again) Upon Page Refresh After Successful Edit / Update

May 21, 2010

I have a strange issue with the FormView. After working through some issues getting the update to work (as this is my first experience with FormViews) I now have a new issue. After I perform an update, and the FormView updates and returns to read mode, if I hit F5 (refresh) the FormView performs another update to the datasource, despite the fact it is read-only mode and none of the fields on the screen are editable.

I would think that a refresh in read mode for the FormView after an edit would simply refresh the data from the database, not perform another update. Again, the FormView is in Read Only Mode, but a refresh is creating another Update event (which I can debug and see if I break in the ItemUpdating event). This only happens after I perform an edit, not when the page initially loads.

View 2 Replies

Passing Parameter From Page To Flex Application

Apr 22, 2010

I have an asp.net page where I get the user_id from who's logged in. Now I need to pass this user_id to a flex application that runs in an asp.net page as a .swf. How can I get this user_id in a variable in my flex application. Or what is the best way to get the user_id into flex.

View 2 Replies

VS 2012 AJAX - Updating IFrame Correctly

Jan 24, 2014

I have a page with an updatepanel, which at runtime has controls dynamically created. The controls are saved within the cache, and readded to the page upon postback each time when needed. Sometimes the controls need to change, sometimes not. In most of my cases, if I just re-add the control to the page without any changes to the control AJAX will leave the control alone on the client-side leaving me with what I expect to see, which is no change. If I make a change, it obviously updates correctly.

Now, I have added a literal control which defines an iFrame which points to another page. ie:

Code:
.LiteralControl.Text = "<iframe name='" & .LiteralControl.ID & "' id='" & .LiteralControl.ClientID & "' frameborder='no' scrolling='auto' height='" & _
.ItemHeight & "px' width='" & .ItemWidth & "px' src='" & "WBRender.aspx?ViewID=" & strUniqueID.ToString & "' style='position: absolute; " & _
"left:" & .ItemLeft & "px; top:" & .ItemTop & "px;'></iframe>"

If I re-add this control on postback, with a change, I get the item on the page as I expect. If I make no changes to the .Text and simply re-add the control to the page, it flashes as though it has been changed and then re-requests the page defined by the src. The whole point of me caching this, is to stop the client-side from updating a control that has not changed, removing a flashing screen and all the resizing that goes with it.

View 1 Replies

Web Forms :: Iframe From Code Behind / Load A Dynamic iframe But It Cannot Visualize The Page?

Nov 30, 2010

i am trying to load a dynamic iframe but it cannot visualize the page.

this is my html code:

[Code]....

and this is my codebehind:

[Code]....

i am using a content update panel on the page but the div of the iframe is out of the content panel.

View 1 Replies

How To Get URL Of The Page Where Iframe Is Open From Iframe

Jun 14, 2010

i open a iframe in a page, from that page opend in iframe, i want the page url.means one page mainpage.aspx have a iframe, that iframe open open a iframepage.aspx page.from the iframepage.aspx page's button click event i want to referesh the mainpage.aspx page.how can i do.

View 1 Replies

Forms Data Controls :: How To Refresh Page Without Going To Top Of Page When Refresh Is Done

Nov 3, 2010

I have a table on my page. I need to scroll down a little to get to that table. In that table i have som data that i edit and save to database. When the save is done i need to refresh the page( Response.Redirect(Request.RawUrl )) so it loads the new data to that table. When the refresh is done the page is on top again so that i need to scroll down again to see the table. This makes it very unusable for the user.

How can i refresh the page without it going back to top again? I tryed wrapping an updatepanel around the table but it didnt

View 1 Replies

Refresh Small Part Of The Webpage Without Refresh The Entire Page In C# ?

Mar 11, 2011

how we can refresh small part of the web page without refresh the entire page in C# ?

View 2 Replies

Web Forms :: Make An Ifrom Refresh Without Having To Refresh The Whole Page?

Jan 18, 2010

1. Is there anyway to make an ifrom refresh without having to refresh the whole page?

2. My iframe just wont display when I run it. It just displays a grey screen with the file name in the middle.

<
iframe
runat="server"
id="IframeOne"
src="~/Test.aspx"></iframe>

View 3 Replies

Web Forms :: Return XML To Flash/actionscript?

Mar 31, 2010

I have had a request come in to do this, and I remember doing this in a different way a couple of years ago but forgotten how it should work and how to make it work for this scenario: a swf will be doing POST/GET requests to an ASPX file.

this ASPX file will have methods to do specific functions. In the end, it will return back a custom XML back to the swf.This is all fine but here is the problem that I am having:how will the ASPX page know what method is to be "executed" along with the parameters? Parameters I understand will be obtained from querystring or form variables.How does one "send back" the result in XML? Do we do a write on the Response stream (setting the contenttype/mime type) or just return back an XML string on the method being called?

View 1 Replies

Page.Refresh Type Of Command To Refresh A Page?

Feb 10, 2010

Is there a Page.Refresh type of Command to refresh a page? I don't want to redirect to the page or refresh in javascript.

View 4 Replies

Actionscript 3 - Incorporating Flash Components In One Site?

Jan 21, 2011

I need to integrate ASP.NET into an existing Flash site. The site is heavily laden with Flash and needs to communicate with a SQL Server database. I want to use ASP.NET SQLDataSource for this purpose. Given that I need to integrate the two technologies for one web page on the site, do I need to make the site fully ASP.NET with embedded Flash objects? Or, can I just add a single ASPX page to the site that contains the web.config and connection string to SQL Server?

View 1 Replies

ActionScript Syntax Error 1084 - Expecting Rightbrace Before Leftbrace And Var 'colour' Will Be Scoped To Default Namespace?

Feb 13, 2010

1084 syntax error; expecting rightbrace before leftbrace as well as var 'colour' will be scoped to default namespace. Im' not sure what is going on but it is interfering with my ability to debug. it is action script

1084 error

package {
import flash.display;
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.Event;
import flash.net.*;:

public class assgn extends Sprite
{
public function assgn()
{
var request = new URLRequest("C:UsersFujitsu UserDesktopprojects folder09_10");
var loader = new Loader();
loader.load(request);

[Code].....

View 2 Replies

Asp.net - Get Flex Modules From ASP MVC?

Aug 18, 2010

We re developing an ASP MVC application witch the View (aspx) has a Flex embed. This aspx/flex view is composed by a flex application and several modules.So, when we call the application url (http://localhost:9090/MyProject/Flex/Index),the server invoke the method the will return the ActionResult that represents this action, in this case the ~/Views/Flex/Index.aspx (with the Flex app). However when the ModuleLoader,in the Flex application, try to load a module an error occurs. The problem is that the Flex application can´t directly access the modules folder (~/Views/Flex/modules/module.swf)Are there any way to get the module through an ASP MVC action? Or the best approach is to allow the access to this folder through web.config?

View 1 Replies

Database Connection With Flex And C#

Feb 4, 2010

I've started with Flex recently, I've noticed that some plugin for Visual Studio exist, instead of buying a licence for another program (Flex Builder). I was wondering how I could manage to remotely connect to my database with a Flash/Flex application with the help of C#/Asp.Net. If I've correctly understood what I've read in the last few days, there is basically no way to 'query' to a database with Flex 3. So I suppose there is another way by using a webservice in C# on the database server that would respond to the Http query from Flex. Am I right or totally of the track?

View 3 Replies

Put Flex Charts In Application?

Jan 29, 2010

Is it possible to put flex charts in a asp.net application?

Any other easy to use chart controls, but fancy looking ?

View 2 Replies

Web Forms :: How To Access The Parent Page From Within Page Inside IFRAME

Jan 18, 2011

how Triggering an event in the Parent Page from within Page inside IFRAME?

how to access the Parent Page from within Page inside IFRAME?

View 1 Replies

Web Forms :: How To Create Iframe Dynamically That Shows Another Page In Page

Mar 10, 2011

when i try to create an Iframe using :

[code]....

the page is not showing in the main page just shows pdf reader loading then nothing happens. Even when i try to load another page which of type aspx same case its not being showed in the main page only windows authenticating box appears then page sleeps

however when i create the iframe using the page markup its being correct for both cases.

View 5 Replies

Javascript - Getting Iframe Page Name / Value Pairs In Parent Page Submit

Nov 17, 2010

I have a Parent Page that includes an iframe containing html page with many field. The parent page contains the "Save" button. Now i want to get the values of iframe page while submitting the parent page. How can i access the iframe pages fields in parent page submit?

View 2 Replies

Web Forms :: Modifying A Control On A Parent Page From Within An IFrame Page?

Sep 15, 2010

I have a webform named Default.aspx and in it an iFrame...

The iFrame will load one of a few different pages/forms/aspx... (for this example lets just say its test.aspx)

On test.aspx I have 2 buttons Button1 and Button2 If I have code in my test.aspx.vb for Button1 click of:

button2.text = "hello world"

it looks as if it reloads test.aspx inside the iFrame and sure enough Button2 states "hello world"

So now lets say on the Default.aspx I also have a button and its named Button5.

How would I go about updating the Button5.Text from with in the vb code of Button1 click/vb code located on Test.aspx

I have looked over some other post [URL] and the tell of using "PreviousPage" but that not seam to be what I need, I want to be able to state the page/form I want to effect a control on it...

I know how to do this in jut standard VB.net (not web) its like:

FromName.ControleName.Text = "Hello World" but then again in VB.net windows apps you dont have Iframse to deal with...

View 3 Replies

Web Forms :: Page Not Capturing Event Inside IFrame Page?

Nov 6, 2010

I have a default.aspx page with an iFrame that displays another "main.aspx" page.

The main.aspx page has some buttons and other controls .. and some events associated to page load and so on .. When i open main.aspx in a browser, evrthg works perfect .. but when i open up defaults.aspx , evrthg loads correctly, but if i click on any button inside "main.aspx" , nthg happens .. and none of the events is triggered ..

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved