ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 3.50 average. Display Modes
 
Unread Dev Shed Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old August 20th, 2003, 08:08 AM
coume coume is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: France / Finland
Posts: 13 coume User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Change a frame content while redirecting to a new page :(

Hello,

I have a restricted access, and 2 frames top and main..

When I check that the user as access to the menu.asp, I use this code
Code:
Response.Redirect("menu.asp")

to change the content of the main frame, but I would like at the same time to chnage the content of my top frame, to make it become "topadmin.htm"

I browsed the Internet, but I found nothing, Do someone knows how to do that?

Thxs
Ludo

Reply With Quote
  #2  
Old August 20th, 2003, 08:55 AM
tomsn tomsn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Dresden, Germany
Posts: 44 tomsn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 13 m 9 sec
Reputation Power: 5
Send a message via ICQ to tomsn
it is better to use javascript:

like:
Code:
if isAdmin then
 Response.Write "<script language=""JavaScript"">" & vbCrLf
 Response.Write "//JS-Code for Redirecting top-frame" &vbCrLf
 Response.Write "//JS-Code for Redirecting self-frame" &vbCrLf
 Response.Write "</script>" & vbCrLf
end if


the js code for redirecting a frame is:
Code:
parent.frames[1].location.href = "foo.htm";


tom

Reply With Quote
  #3  
Old August 21st, 2003, 01:06 AM
coume coume is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: France / Finland
Posts: 13 coume User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi!
thxs for the answer but it doesn't work
I might do something wrong...

This is my frame definition:
Code:
<frameset rows="80,*" frameborder="NO" border="0" framespacing="0"> 
  <frame name="topFrame" scrolling="NO" noresize src="top.htm" >
  <frame name="mainFrame" src="index.asp">
</frameset>


and the code is used in ASP:
Code:
Response.Write "<script language=""JavaScript"">" & vbCrLf
Response.Write "parent.topFrame.location.href = ""topadmin.htm"";" & vbCrLf
Response.Write "parent.mainFrame.location.href = ""usersreport.asp"";" & vbCrLf
Response.Write "</script>" & vbCrLf


But it gives me this error:
Quote:
Error Type:
ADODB.Recordset (0x800A0E78)
Operation is not allowed when the object is closed.
/check.asp, line 15


And this error is located at a line earlier this redirection code... But it sure that it is this one that createsthe problem, because if I change it by
Code:
Response.Redirect("usersreport.asp")

My script is then working fine...
Can you see the error in the frame redirection code?

Thank you
Ludo

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Change a frame content while redirecting to a new page :(


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway