473,395 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

div ?

Hey
I need to put div like this :
<div id="ws" style="behavior:url(webservice.htc)"/>
but I can't put in body because I need to use frames. And even if I create a
body tag this div doesn't execute. It can execute even in some .js files if
you now the way ? But the main question is where to put it so browser will
execute it ? Because if I have it in my header it doesn't work ;(
Jarod

Nov 20 '05 #1
5 1334
You're kidding, right?

ASP.Net is a technology for programming web applications. A web application
is a rather complex animal that creates an interactive web site using
server-side object-oriented programming with the .Net framework, which
renders client-side HTML, CSS, JavaScript, Cookies, Images, and the whole
gamut of those client-side web technologies that make up what is commonly
known as a web page. So, in order to write an application that renders HTML,
CSS, JavaScript, Cookies, Images, and the whole gamut of those client-side
web technologies, it would be logical to assume that one would have at least
a smattering of knowledge about those technologies. It sounds to me like
you're trying to perform calculus without having studied multiplication
first. It might be a good idea to back up a little. Eating an entire
elephant at one sitting is difficult, to say the least.

In answer to your question, which concerns adding a div that has a CSS style
which calls a JavaScript behavior to a page, I might first point out that
the div in question has an external dependency on a JavaScript behavior. Do
you know anything about where that behavior might be found? Well, we can
deal with that tusk later.

You say you "need to use frames." Well, you really *are* a masochist, aren't
you? I hope you realize how frames and framesets in an ASP.Net application
add to the complexity and difficulty of writing one. But I'm not really
concerned about that. It is just another nail in the proverbial coffin in
this case. So, you want to use a frameset. Now, a frameset is an HTML
construct. It is an HTML document which, when loaded into a browser
instance, enables that browser instance to load multiple *other* HTML
documents into multiple windows (frames) defined in the frameset document.
This means that all a frameset renders is a bunch of frames. That's it. End
of story. Now, a div is an interface element which renders a box. As a div
is not a frame, it isn't going to appear anywhere in the frameset. No amount
of coaxing will change this. And as the <head> of an HTML document has
absolutely no interface in the document, well, fill in the rest. However, as
a frameset *contains* other HTML documents, one in each frame, the div can
be placed into one of these other documents.

Now, as to "so the browser will execute it," well, a browser doesn't execute
a div. It *can* execute a JavaScript behavior. That is, if you set up the
behavior correctly.

Still, if I were you, I would stop right now, before you go any further. You
are attempting to build a skyscraper, and you don't know what a brick is. I
think maybe a few bird-houses would be a better place to start. Work your
way up from there. It will be much less frustrating.

"Jarod" <bl*****@NOSPAM.gazeta.pl> wrote in message
news:uP**************@TK2MSFTNGP14.phx.gbl...
Hey
I need to put div like this :
<div id="ws" style="behavior:url(webservice.htc)"/>
but I can't put in body because I need to use frames. And even if I create
a body tag this div doesn't execute. It can execute even in some .js files
if you now the way ? But the main question is where to put it so browser
will execute it ? Because if I have it in my header it doesn't work ;(
Jarod

Nov 20 '05 #2
Did you read my question ? I didn't ask how to write asp.net handler that
would render whole page for me and so on... I just need to put somewhere in
HTML ( in aspx file ) a <DIV>. This div gives me access to webservice from
clientside... But the problem is the only way it works is in <body>
<div ... />
</body> ... And my problem again I am using frames and there is no body. So
where to put that div ?

I found some solution ;) It was a iframe instead of frames but I still
prefere a frames so If anybody knows where put <div> please tell me.
Jarod

Nov 20 '05 #3
> Did you read my question ?
....
If anybody knows where put <div> please tell me.
Did you read my answer? I told you to put it in one of the HTML documents
loaded into the FrameSet.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Jarod" <bl*****@NOSPAM.gazeta.pl> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl... Did you read my question ? I didn't ask how to write asp.net handler that
would render whole page for me and so on... I just need to put somewhere
in HTML ( in aspx file ) a <DIV>. This div gives me access to webservice
from clientside... But the problem is the only way it works is in <body>
<div ... />
</body> ... And my problem again I am using frames and there is no body.
So where to put that div ?

I found some solution ;) It was a iframe instead of frames but I still
prefere a frames so If anybody knows where put <div> please tell me.
Jarod

Nov 20 '05 #4
>> If anybody knows where put <div> please tell me.

Did you read my answer? I told you to put it in one of the HTML documents
loaded into the FrameSet.


Yeah, but there is a problem. I need to have access to it from the script
that is on the page with framesets ( no body tag ).
Jarod

Nov 20 '05 #5
<script type="text/javascript">
var elDiv = window.frames[0].document.getElementById("yourDivsId");
//...
</script>

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Jarod" <bl*****@NOSPAM.gazeta.pl> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
If anybody knows where put <div> please tell me.


Did you read my answer? I told you to put it in one of the HTML documents
loaded into the FrameSet.


Yeah, but there is a problem. I need to have access to it from the script
that is on the page with framesets ( no body tag ).
Jarod

Nov 20 '05 #6

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

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.