473,795 Members | 3,175 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is there a way of doing this server-side?

I use ASP and I need to know how to attaches an Iframe Id with its page so I
can load menu options ( eg. 1.htm, 2.htm, 3.htm, ect...) into the Iframe
from any given page on my website.
The problem is for me that I cannot use _top because I am not always on the
page that holds the Iframe in question ( page_iframe.htm ). that holds the
Iframe ( Iframe001). I can load any given page into the iframe only when I
am on ( page_frame.htm. )

Now what if I am on index.asp and I have a menu with sub options. I want
those sub options (eg, 1.htm, 2.htm, 3.htm..ect..) to load into Iframe001
which is located on ( page_frame.htm ) How do we do that?

Here is one idea but its client-side . Is there a better way to do it
server-side?

--------------Client side code----------------------------
- From Menu -
<a href="mainpage. asp?ifp=subpage .asp">Click</a>

mainpage.asp -
<%
ifpsrccode="doc ument.getElemen tbyid.Iframe001 .src='" & request("ifp") & "'"
%>
<html>
....
<body onload="<%=ifps rccode%>">
<iframe id=Iframe001 name=Iframe001> </iframe>
....
</html>
--------------End of client side code----------------------

Thanks in advance for reading this post. :)

Paul

Jul 22 '05 #1
6 1449
Gazing into my crystal ball I observed "Paul"
<pa***********@ sympatico.ca> writing in
news:1P******** ***********@new s20.bellglobal. com:
I use ASP and I need to know how to attaches an Iframe Id with its page
so I can load menu options ( eg. 1.htm, 2.htm, 3.htm, ect...) into the
Iframe from any given page on my website.


<snip>

I hate to say this, but, you need to rethink this unless you are working on
an Intranet. Iframes have the same problems as regular frames (as you have
discovered), and javascript navigation will fail for visitors without
javascript enabled, like Google.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #2
HI! I plan to use a javascript checker, and my content is 50% flash
templates and other js script related templates.

So the user will most probably have his/hers java enabled or will want
too in order to preview the templates.

Do you have any idea how I can use server code to do it?

Paul

*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #3
Gazing into my crystal ball I observed Paul <no****@devdex. com> writing
in news:ux******** ******@TK2MSFTN GP09.phx.gbl:
HI! I plan to use a javascript checker, and my content is 50% flash
templates and other js script related templates.
You can do preliminary checking client side. Do not depend on it, always
validate server side.

So the user will most probably have his/hers java enabled or will want
too in order to preview the templates.
Why would the user have to have java enabled? Flash is not java, and
javascript is certainly not java. Oh! You mean that the visitor is
going to have to have javaSCRIPT enabled in order to preview the
templates. That's not a wise idea. More and more people are disabling
javascript to get away from nasty things, pop-ups, etc.

A website should never be dependent on client side scripting. Using
javascript to enhance the user's experience is one thing, dependency
another.

Do you have any idea how I can use server code to do it?


ASP know absolutely nothing about what is going on client side.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 24 '05 #4
HI! yes flash does not need java enabled, what I meant was that the site
that I am affiliated with uses scripting and I already found one item that
gets blocked with Norton Internet Security Spam Blocker. all affiliates are
sort of force to use it or they must use WebAPI to download all the
templates for previewing. WebAPI is the preferred method of coarse. but not
everyone knows how to use it. I for one.

Since this is a commercial site selling products I figure that if I check
for a blocker I can alert the user to allow scripting for the site or advise
him that some functionality will be dis-abled and I can re-direct the user
to another page.

For now however I am using this method as it works,

<%
dim ifp
ifp = Request.QuerySt ring("ifp")
if ifp <> "" then
%>
<iframe src=<%= ifp %> name="Iframe001 " width="750px" height="920px"
scrolling="yes" id="Iframe001"> If you are reading this then your browser
cannot view Iframe, Please upgrade you browser.</iframe>
<% else %>
<iframe src="defaultpag e.htm" name="Iframe001 " width="750px" height="920px"
scrolling="yes" id="Iframe001"> If you are reading this then your browser
cannot view Iframe, Please upgrade you browser.</iframe>
<% end if %>

The only thing thought, I don't know how to do this in JavaScript. the only
docs I read and help I got was in VB.
Paul
"Adrienne" <ar********@sbc global.net> wrote in message
news:Xn******** *************** ***@207.115.63. 158...
Gazing into my crystal ball I observed Paul <no****@devdex. com> writing
in news:ux******** ******@TK2MSFTN GP09.phx.gbl:
HI! I plan to use a javascript checker, and my content is 50% flash
templates and other js script related templates.


You can do preliminary checking client side. Do not depend on it, always
validate server side.

So the user will most probably have his/hers java enabled or will want
too in order to preview the templates.


Why would the user have to have java enabled? Flash is not java, and
javascript is certainly not java. Oh! You mean that the visitor is
going to have to have javaSCRIPT enabled in order to preview the
templates. That's not a wise idea. More and more people are disabling
javascript to get away from nasty things, pop-ups, etc.

A website should never be dependent on client side scripting. Using
javascript to enhance the user's experience is one thing, dependency
another.

Do you have any idea how I can use server code to do it?


ASP know absolutely nothing about what is going on client side.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jul 24 '05 #5
Gazing into my crystal ball I observed "Paul"
<pa***********@ sympatico.ca> writing in
news:uQ******** ******@tk2msftn gp13.phx.gbl:

HI! yes flash does not need java enabled,
Flash has absolutely _nothing_ to do with java. Java is a compiled
language, Flash is a browser plugin.

what I meant was that the site that I am affiliated with uses scripting and I already found one
item that gets blocked with Norton Internet Security Spam Blocker. all
affiliates are sort of force to use it or they must use WebAPI to
download all the templates for previewing. WebAPI is the preferred
method of coarse. but not everyone knows how to use it. I for one.
Do you have a URL? I've got to see this.

Since this is a commercial site selling products I figure that if I
check for a blocker I can alert the user to allow scripting for the
site or advise him that some functionality will be dis-abled and I can
re-direct the user to another page.

A commercial site that sells products must be especially aware of users who
do not have client side scripting available, iframes enabled, flash
available, images enabled, etc. Checking for a blocker is the least of
your concerns.
For now however I am using this method as it works,

<%
dim ifp
ifp = Request.QuerySt ring("ifp")
if ifp <> "" then
%>
<iframe src=<%= ifp %> name="Iframe001 " width="750px" height="920px"
scrolling="yes" id="Iframe001"> If you are reading this then your
browser cannot view Iframe, Please upgrade you browser.</iframe>
<% else %>
<iframe src="defaultpag e.htm" name="Iframe001 " width="750px"
height="920p x"
scrolling="yes" id="Iframe001"> If you are reading this then your
browser cannot view Iframe, Please upgrade you browser.</iframe>
<% end if %>
Jehosephat! I hate sites that tell me I have to upgrade my browser to see
something - I always leave and find what I want somewhere else.

You know, your most important visitor is going to see that message as well,
but Google can't do that.

The only thing thought, I don't know how to do this in JavaScript. the
only docs I read and help I got was in VB.
Then you need to post to a javascript group, comp.lang.javas cript might be
a good place to start.


Paul
"Adrienne" <ar********@sbc global.net> wrote in message
news:Xn******** *************** ***@207.115.63. 158...
Gazing into my crystal ball I observed Paul <no****@devdex. com>
writing in news:ux******** ******@TK2MSFTN GP09.phx.gbl:
HI! I plan to use a javascript checker, and my content is 50% flash
templates and other js script related templates.


You can do preliminary checking client side. Do not depend on it,
always validate server side.

So the user will most probably have his/hers java enabled or will
want too in order to preview the templates.


Why would the user have to have java enabled? Flash is not java, and
javascript is certainly not java. Oh! You mean that the visitor is
going to have to have javaSCRIPT enabled in order to preview the
templates. That's not a wise idea. More and more people are
disabling javascript to get away from nasty things, pop-ups, etc.

A website should never be dependent on client side scripting. Using
javascript to enhance the user's experience is one thing, dependency
another.

Do you have any idea how I can use server code to do it?


ASP know absolutely nothing about what is going on client side.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share



--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 24 '05 #6
Thanks for your comments, I will keep that in mind :)
Paul

"Adrienne" <ar********@sbc global.net> wrote in message
news:Xn******** *************** *****@207.115.6 3.158...
Gazing into my crystal ball I observed "Paul"
<pa***********@ sympatico.ca> writing in
news:uQ******** ******@tk2msftn gp13.phx.gbl:

HI! yes flash does not need java enabled,


Flash has absolutely _nothing_ to do with java. Java is a compiled
language, Flash is a browser plugin.

what I meant was that the
site that I am affiliated with uses scripting and I already found one
item that gets blocked with Norton Internet Security Spam Blocker. all
affiliates are sort of force to use it or they must use WebAPI to
download all the templates for previewing. WebAPI is the preferred
method of coarse. but not everyone knows how to use it. I for one.


Do you have a URL? I've got to see this.

Since this is a commercial site selling products I figure that if I
check for a blocker I can alert the user to allow scripting for the
site or advise him that some functionality will be dis-abled and I can
re-direct the user to another page.


A commercial site that sells products must be especially aware of users
who
do not have client side scripting available, iframes enabled, flash
available, images enabled, etc. Checking for a blocker is the least of
your concerns.
For now however I am using this method as it works,

<%
dim ifp
ifp = Request.QuerySt ring("ifp")
if ifp <> "" then
%>
<iframe src=<%= ifp %> name="Iframe001 " width="750px" height="920px"
scrolling="yes" id="Iframe001"> If you are reading this then your
browser cannot view Iframe, Please upgrade you browser.</iframe>
<% else %>
<iframe src="defaultpag e.htm" name="Iframe001 " width="750px"
height="920px "
scrolling="yes" id="Iframe001"> If you are reading this then your
browser cannot view Iframe, Please upgrade you browser.</iframe>
<% end if %>


Jehosephat! I hate sites that tell me I have to upgrade my browser to see
something - I always leave and find what I want somewhere else.

You know, your most important visitor is going to see that message as
well,
but Google can't do that.

The only thing thought, I don't know how to do this in JavaScript. the
only docs I read and help I got was in VB.


Then you need to post to a javascript group, comp.lang.javas cript might be
a good place to start.


Paul
"Adrienne" <ar********@sbc global.net> wrote in message
news:Xn******** *************** ***@207.115.63. 158...
Gazing into my crystal ball I observed Paul <no****@devdex. com>
writing in news:ux******** ******@TK2MSFTN GP09.phx.gbl:

HI! I plan to use a javascript checker, and my content is 50% flash
templates and other js script related templates.

You can do preliminary checking client side. Do not depend on it,
always validate server side.
So the user will most probably have his/hers java enabled or will
want too in order to preview the templates.

Why would the user have to have java enabled? Flash is not java, and
javascript is certainly not java. Oh! You mean that the visitor is
going to have to have javaSCRIPT enabled in order to preview the
templates. That's not a wise idea. More and more people are
disabling javascript to get away from nasty things, pop-ups, etc.

A website should never be dependent on client side scripting. Using
javascript to enhance the user's experience is one thing, dependency
another.
Do you have any idea how I can use server code to do it?
ASP know absolutely nothing about what is going on client side.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share



--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jul 24 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1607
by: middletree | last post by:
Intranet tech support system using ASP/VBScript running on W2000 Server, IIS, and using SQL Server 2000. I need to add a search engine. The problem with using a regular SQL query is that if you put a phrase, say "red car" in the text box, to hit submit, my SQL qurey would only look for that phrase, and would leave out other items where the words red and car appeared separately. I guess what I am saying is that I would like something like...
1
3260
by: Benny | last post by:
Hi, I would like to know, if I need to do some floting point operations (mainly multiplication and division) on each roll of a table, should I read the data out from the DB and do the calculation with a programming language, say C#, or should I just use sql to do it on the sql server. An obvious advantage of doing it in the sql server is that you dont need to transfer the data between the sql server and he application server.
5
1317
by: colin.steadman | last post by:
I'm building a statistics page and would like to ping a server and show the result in ASP. This shouldn't be a problem, but I'd like to be able to get the same information for 40 other servers all at the same time. The only solution I can think of would be to put the list of servers into an array and loop through it. But this approach would take seconds to process each server and therefore the entire page would take an age to load.
17
2649
by: Paul | last post by:
HI! I get an error with this code. <SCRIPT language="JavaScript"> If (ifp==""){ ifp="default.htm"} //--></SCRIPT> Basicly I want my iframe to have a default page if the user enters in directly. so I need a way doing this. so I check to see if the ifp value is null and if so then assign it a value. is this correct?
2
14653
by: UJ | last post by:
Is there a way with a asp:checkbox to run a JavaScript to display/hide text/input on the screen without doing a postback? I also need to be able to access the stuff at the server so I need to have run=server with it. TIA - Jeff.
1
1466
by: Ben Kim | last post by:
Hello all, We are connecting to a remote server using FTP and sending up 100's of files daily to this site. I just received a call from the operations manager of this site and they are complaining that we are doing a CD.. in our connection prior to uploading. Once we signon, they claim we are "in" the correct folder. I have adopted this code from another programmer who is long gone. I do not see anything in this code that would...
0
1738
by: Nightcrawler | last post by:
I hope this is the right group for this question. I recently started looking into AJAX and I am doing the following: I have a repeater (dummydata) that is bound to a datatable (Articles). Each ItemTemplate in the repeater has an Label control that is showing ArticleName and an UpdatePanel. The UpdatePanel contains another Repeater. I also have a button above the repeater. Each UpdatePanel has an AsyncPostBackTrigger setup to my Button...
6
4975
by: dgleeson3 | last post by:
Hello All I have VB code (.Net 2005) reading from an SQL server 2005 database. Im getting InvalidCastException when doing reader.GetInt32(0) Im simply reading an int from a simple database. It has two columns, User and Tel number. User is filled with 1,2,3 and tel number has 3 telephone numbers. The User data column is specified as (PK, int, not null) in MS SQL
25
2546
by: Darsin | last post by:
Hi all I need to perform a summation on a column of a table based on a criteria given in another column in the same table. The catch is i need to perform different sums according to the number of criterias in the criteria column, in a single query. the structure of the table is somethinmg like this (only relevant columns are shown) TABLE1 Value - numeric(20,6) Month - int
0
4544
by: okonita | last post by:
Hi all, I am having a DB2 connectivity problem that I hope someone can help me resolve. I need this to test Replication and such other things. What am I doing wrong here? Any help that I can get will be highly appreciated. First, the error that I am getting when I try to connect to the remote host after performing NODE and database catalog is the following: SQL1336N The remote host "WINSVR2008R2-2" was not found. SQLSTATE=08001. I...
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10436
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.