|
Hi all.
Is there a way to populate a portion of your HTML page with the contents of another HTML file?
E.g. I have a DIV in a page and I would like the contents of this DIV to dynamically change depending on some things that are happening on the page. Is there a mechanism I could use to assign the contents of another file to the innerHTML property of the div?
Any ideas welcome!!
Pete
|
|
|
|
|
One word IFRAME
"There are no stupid question's, just stupid people."
|
|
|
|
|
innerHTML and assign it variables located elsewhere in an external JS file...
Not quite the solution you requested, but as close as you'r gonna get client side...
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hello,
I am displaying a server time on the page. If the server is in a country other than USA, then is it possible to show the corresponding CST time?
Thanks
Hitesh
|
|
|
|
|
I'm not sure if there's a standard way to query a user's timezone (someone will correct me if I'm wrong), so the simplest solution is just to have a page that lets the user pick a timezone, and store the value in a cookie
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
If I want to fetch a list of files from a HTTP server that has directory browsing enabled, what command do I send? Some form of GET?
Immerse your sould in love.
|
|
|
|
|
Robert Edward Caldecott wrote:
If I want to fetch a list of files from a HTTP server that has directory browsing enabled, what command do I send?
http://server/dir/ , Directory browsing must be enabled on the server , and it must not have a default page set.
There must be another ways as well, as I have seen GetRight do this with their browser. Not sure how..
Hope this helps
"There are no stupid question's, just stupid people."
|
|
|
|
|
I'm pretty sure getright just gets the same generated directory listing, and just parses the file list
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
See RFC 2616[^] for all your HTTP neeeds.
But, what you are needing is actually a WEBDAV command, named PROPFIND. Not all servers will have this enabled. In IIS, you can enable WEBDAV using Frontpage Web Server Extensions.
lazy isn't my middle name.. its my first.. people just keep calling me Mel cause that's what they put on my drivers license. - Mel Feik
|
|
|
|
|
I made a html with 2 frames. One of them reffers to a site where i have to login or to enable the automatical login process. If i open an IE window, type the site address and press enter it will login automatically as i have previously requested. If i use the html with frames sometimes it does and sometimes it doesn't
Do you know how should i fix this behaviour? Is it about providing cookie values to the site frame?
rechi
|
|
|
|
|
Cookies and Session Information are not shared among multiple webservers. For that reason, even web farms and web gardens suffer from Session Info being not able to be shared.
However, on login and on transfer to a different page, you can have the referring site submit the required information to the referred site by way of an implicit form post or a kind of encrypted querystring token or like that.
deepak
|
|
|
|
|
Hi
Can someone tell me how this works? Id there a formal process? I see many many websites , even personal ones with some kind of copyright attached.
Cheers
"There are no stupid question's, just stupid people."
|
|
|
|
|
In the United States there are two ways to copyright material. The simple way is just to attach a copyright notice to the material. This can be of the form "Copyright (c)2002 by Ed Gadziemski".
A second way, which provides better protection for the copyright holder, is to register the material with the copyright office. To do so, you file a copy of the material and pay a registration fee.
|
|
|
|
|
Ed Gadziemski wrote:
In the United States there are two ways to copyright material.
Thanks, it thought its one or the other, not both. Anyways, I am in South Africa and am not so sure if rule one applies or both.
"There are no stupid question's, just stupid people."
|
|
|
|
|
That's the great thing about being South African - the rules only apply when we want them too
(The above sentance was never uttered by me )
I've always heard that there was an idea behind Win ME... I still can't figure out what that was... anyboy know??? I;ve herad the idea was that it was supposed to be n operating system but I doubt this. - Brian Delahunty
|
|
|
|
|
Megan Forbes wrote:
the rules only apply when we want them too
....read below...
Megan Forbes wrote:
(The above sentance was never uttered by me )
Avoiding responsibility now huh?
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
yep, as with all MTV generation, I've been taught that this is the way forward
I've always heard that there was an idea behind Win ME... I still can't figure out what that was... anyboy know??? I;ve herad the idea was that it was supposed to be n operating system but I doubt this. - Brian Delahunty
|
|
|
|
|
Megan Forbes wrote:
I've been taught that this is the way forward
I believe you are using teachers as your scapegoat....oh well, whatever works for you.
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
Lol!
I've always heard that there was an idea behind Win ME... I still can't figure out what that was... anyboy know??? I;ve herad the idea was that it was supposed to be n operating system but I doubt this. - Brian Delahunty
|
|
|
|
|
Hi, everyone!
I want to add a user defined HTTP header field to a HTTP
response header.
I use the following statements in testHeader.jsp
--------
response.addHeader("myheader", "123");
response.sendRedirect("middleHeader.jsp");
--------
in middleHeader.jsp,
--------
out.print(request.getHeader("myheader"));
--------
But the output in middleHeader.jsp is null!
How to add a user defined HTTP header field to a HTTP
response header? Are there some sample codes?
Cheers,
George
|
|
|
|
|
George2 wrote:
How to add a user defined HTTP header field to a HTTP
response header? Are there some sample codes?
Did you add the HTTP HEader field in IIS first?
Go into IIS, right click a web, properties, HTTP Headers and then click the Add button. You should then, once setup, be able to use the header.
Paul Watson Bluegrass Cape Town, South Africa
Ray Cassick wrote:
Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Thanks, Paul pal!
Maybe you mis-understood my idea.
I wrote a web server by myself and it is able to receive
special header fields. So, I want to send a special header field
to my web server.
So, how can I send an HTTP request with a special header field?
Do you have any ideas?
Cheers,
George
|
|
|
|
|
George2 wrote:
I wrote a web server by myself
Hmm in that case I do not know. I would assume the code you posted up above would work.
Sorry I cannot help
Paul Watson Bluegrass Cape Town, South Africa
Ray Cassick wrote:
Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
I have a 3-box network at home... a Win2k Server (used as a file server and IIS/SQL host), a desktop running Win2k Server and a laptop running Win2k Server (used to have Pro).
I've been debating on moving the laptop to WinXP Pro but my concern has been it's capabilities as a development platform. The more and more I see screenshots and attend seminars, the more I see WinXP. I love the look and feel, just concerned about using it as a development platform (also to watch DVDs). I'm toying wiht the idea of putting WinXP on it and if I don't like it, just putting Win2K Pro back on (need those power managment features).
Does anyone have any opinions or input about using WinXP Pro on a laptop when the primary use of the laptop is development (VS.NET/PhotoShop/Illustrator/OfficeXP)? What about WinXP Pro's power managment features on a laptop?
Thanks,
-AC
|
|
|
|
|
Andrew Connell wrote:
Does anyone have any opinions or input about using WinXP Pro on a laptop when the primary use of the laptop is development (VS.NET/PhotoShop/Illustrator/OfficeXP)? What about WinXP Pro's power managment features on a laptop?
Well I use WXP all the time and it is great. A co-worker uses WXP on a laptop and has had no problems (battery life remained the same from W2K to WXP.)
I also do VS.NET, Photoshop, Illustrator and Office XP btw.
Ray Cassick
|
|
|
|