.NET Framework Bookmark and Share   
 index > JScript for the .NET Framework > Individual Frame Loading
 

Individual Frame Loading

Hi All,

We have created a tool bar application,in that we are dividing the browser page into no. of columns(resizable),for that we are using frameset and iframe concepts. Here our requirement is to load three different urls into three colums froma single addressbar(customized). So for that we are using javascript but we are unable to call script into our application and even we unable to load(refresh) each frame(using javascript) as the total page is refreshing. Please any one helpus on this regard.


Thanks in Advance...
  • Moved byYiChun ChenMSFTWednesday, February 11, 2009 3:06 AMJavaScript Issue (Moved from Visual Studio Setup and Installation to JScript for the .NET Framework)
  •  
Add-On
Hi Add-On,

I am moving this thread from Base "Visual StudioSetup and Installation"forum to the "JScript for the .NET Framework" forum, since the issue is related toJavaScript programming. There are moreJavaScript experts in the "JScript for the .NET Framework" forum.

Thanks


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
YiChun Chen

Hi,
Please provide more details like how you are trying to load the page.

Regards,

Gg Aben

Gg Aben
Hi Gg Aben,

Thanks for the response. We have used frameset and iframe concepts for loading the page. We are able to displaying different websites into different columns by total page refreshing. But we want individual frame(column) refreshing.




Thanks In Advance...


Add-On
if you have used..Frames..
then add following code in each frame

<META HTTP-EQUIV="Refresh"
CONTENT="30"; URL=http://www.example.net/some/place/"> (in head tag)

same should also work with iframes, if "src" is set to the file having same code given above..

if because of some reasons it is not working ,
then on your main page , you can have a JavaScript function, which will set src attribute of all 3 iframes,

& just make sure that this function is called after a specific time interval.

I hope this solves your problem.

Prashant C
  • Proposed As Answer byPrashant C Friday, February 20, 2009 9:39 PM
  •  
Prashant C
Hello,

Below is the code for the frames:-

<
frame
 id
=
"xyz"
 src
=
"example.html"
>

Below is the code from the main HTML to change the source of the frame:-

<script>
   document.getElementById("xyz"
).src = "example2.html"
; // Non Prototype Calls

   $("xyz"
).src = "example2.html"
; // For calls with Prototype JS Inherited

</script>

To change the source of another frame from 1 frame then the hidden trick is:-

<a href="example3.html"
 target="xxyyzz"
 style="display:NONE"
 id="testLink"
>Hello</a>
<script>
   document.getElementById("testLink"
).click(); // used for calls without prototype JS implemented

   $("testLink"
).click(); // used for calls when prototype JS is implemented

</script>

Hope you like the codes specially the last one.

Regards,
Akshit Soota



A give back money offer on my domains at http://www.namepros.com/showthread.php?p=3368384#post3368384 . For each 2,000$ Domains you buy, you get 300$ back within 2 days of purchase , For each 1,000$ Domains you buy, you get 250$ back within 3 days of purchase, For other priced domain you buy, you get 400$ back within 2 days of purchase. You can choose any one offer ( Bulk Buy / Above given Offer ). You will need to give me the "FORUMSXYZ" code on your purchase for the above offer. For each order you do, you get a code, and each person you pass on this project and then he/she buys my domain then:- For each 2,000$ Domains he/she buys, you get 100$ back within 2 days of purchase, For each 1,000$ Domains he/she buys, you get 50$ back within 3 days of purchase, For other priced domain he/she buys, you get 150$ back within 2 days of purchase. Grab your domain fast ( although they are .info but still precious ones )
Akshit

You can use google to search for other answers

Custom Search

More Threads

• How do you turn off javascript intellisense updating
• ConfigurationManages namespace
• Problem w/listboxes in javascript & .net
• Rollout functionality in drop downlist (asp .net)
• Passing parameters and Relative coordinates in JScript
• Javascript error out of memory while processing array of elements having 84275 elements.
• IS it possible to call a Javascript Code in C# windows Application...
• This forum is moving ?week of 5/27
• Invoke DOS Command using Jscript.NET
• JavaScript Variable visibility from C#