|
hmmm... my question was different... In my case.. I had setup the relationship in the ms acces itself. And, I use that through the ASP page.
All I want to know is... how can I get the calue from the second table, when I make the connection/record_set on the first table (both tables are linked by the relationship in access?!?!)...
I was born intelligent Education ruined me!.
|
|
|
|
|
I would like to use a "BACK" button that would take a visitor back to the site that they linked from. In my frames page, I have the following code: referer=lcase(request.servervariables("HTTP_REFERER"))
Can "referer" be used in the <a href> tag located in the navigation frame? Or could I use a field from a database?
The only access to this page will be when someone links from another site.
Is this posible?
Thanks!
|
|
|
|
|
if your....
blindzebra wrote:
referer=lcase(request.servervariables("HTTP_REFERER")
shows the page where user is visiting from... then... it can be used in.. href tag...
I was born intelligent Education ruined me!.
|
|
|
|
|
What should be the syntax of the href tag?
|
|
|
|
|
<a href='<%=request.servervariables ("http_referer")%>'>Click here to go back</a>
the code doesnt get displayed properly... so will mail u the code.....
I was born intelligent Education ruined me!.
|
|
|
|
|
I am trying to put a security banner at the top and bottom of a page with dynamic content between. I can do it with a table but I would like to do it with a <DIV> to get it right on the edges of the page. What I need is help finding the ending points of the dynamic content in pixels. Any body got an idea?
|
|
|
|
|
I'm not sure what your after, but...
<div style="width:100%">
<img src="head_banner.gif"/>
</div>
<div id="bodymain" style="width: 100%; height: 10px">
This is some dynamic content<br>
</div>
<div style="width:100%">
<img src="foot_banner.gif"/>
</div>
<input type="button" value="Click to see width and height of content" onClick="alert(document.getElementById(bodymain).style.pixelWidth);"/>
I'm pretty sure that pixelWidth is a property, but it might only work in IE...
pixelHeight should return height...
You might have to enclose bodymain in quotes...
I think thats what your trying to do??
I'm confused as to why you don't use tables tho...?
Cheers
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
I saw an asp site which one can upload a thumbnail image and it will enlarge it for the large image or vise-versa. If some one can give me info on it I would appreciate it.
Sam
|
|
|
|
|
I've seen this done using the onclick event in the anchor tag to replace the thumbnail image with a full-size version. I haven't used it myself, so I can't provide you with details, but it seems fairly simple.
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
2 options
1) Use a graphics library on the server side and resize the image on the server before output to the browser.
2) Use JScript and resize the img element itself, I think it will shrink or grow the image as required.
Obviously either will distort the image if going from small to large, so programmer beware!!! (unless you store thumbs and real-size images on the server)
Client side:
<!-- Method one - Use 2 images, NO distortion -->
<img src="small.gif" name="myImg">
<input type="button" onClick="document.myImg.src='large.gif'"/>
<!-- Method two - Use 1 image, resize element itself (distortion) -->
<img src="small.gif" name="myImg">
<input type="button" onClick="document.myImg.width=120px"/>
I haven't tested any code, so you might have to play around a lil' but you should get the idea...
Cheers
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
Hockey wrote:
2 options
1) Use a graphics library on the server side and resize the image on the server before output to the browser.
I'm interested your option #1 b/c I'm trying to get rid of distortion. do you know of any thing that I can do in classic asp.
Thanks,
Sam
|
|
|
|
|
|
Hello,
I have seen some sites where a cgi is called and loads a page to
the browser, then will automatically refresh again using the same connection - i.e - it does not use html refresh or call itself, etc.
I wish I remembered the URL so I could refer it here. But here is how I remember it - I go to the page using IE and it loads up some content. The progress bar at the bottom of the browser indicates that the page is not loaded yet. And after waiting for some time, new content shows in the same page, and so on. In other words, these pages never see a "done" on the
browser.
I was wondering if the cgi was playing with the content-length tag to starve the browser of necessary bytes to finish + also resending headers and content again. Again, this is just my guess; I would like to learn how this is done ? Thanks.
Robert
|
|
|
|
|
|
>>This is called "server push", see this document for explanation.
Thanks for the answer. But I thought SP is not supported in IE - this is why I was wondering if there was some equivalent?
Robert
|
|
|
|
|
Hi,
This is a very simple question but one that has had me vexed for a while......
How do I turn on wordwrap in the interdev development environment ? I am editing my ASP files in the source window of interdev but the code disappears off the right hand side of the window and it's driving me nuts.
HEEEEELLLLLLPPPPP !!
Thanks
Chris
"Inside, alway's tryin to get back inside" ~ Lane Staley
|
|
|
|
|
Interdev sux, doesn't it?
I know the hassle this causes, but haven't found a way to solve it. One problem with enabling wordwrap that might occur is that it could mask coding errors. Since VBScript doesn't have a line terminator, any time there is a line break it interprets this as a new statement. Even if wordwrap was enabled as a display-only function, it would still cause confusion in debugging if you inadvertently hit a CR in the middle of a line. JScript, of course, doesn't have this problem - or shouldn't.
One thing that helps is to minimize the Toolbars as much as possible. I generally dump the left pane since nothing there actually works, and I do all the ASP coding in the source editor anyway. The Project View and Properties windows are handy, but it's easy enough to minimize them and restore them when needed.
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
Thanks for your help Roger. What would the world be like without 'the great god Microsoft' in the sky eh !!
god bless us all.....
Stay cool
Chris
"Inside, alway's tryin to get back inside" ~ Lane Staley
|
|
|
|
|
I am new to CGI programming in Perl. I created the following code and saved the file as helloworld.cgi. If you try to open the location of the cgi, it should display hello world in html format.
This is the code:
#!usr/bin/perl
use warnings;
use strict;
print "Content-type:text/html\n\n";
print "<html><head><title>Hello World</title></head>\n";
print "<body>\n";
print "<h2>Hello World</h2>\n";
print "</body></html>\n";
This is the location:
http://people.eecs.ku.edu/~shaffer/cgi-bin/helloworld.cgi
I get the following error:
Server error!
Error message:
Premature end of script headers: helloworld.cgi
Is this a file permission problem or is it something else?
Any help would be appreciated.
thanks
kevin
Kevin Shaffer
Student of Computer Science
University of Kansas
kshaff03@msn.com
|
|
|
|
|
Change this
#!usr/bin/perl
to this
#!/usr/bin/perl
Also, make sure the cgi file is executable by all. You can accomplish this by changing to the directory where the cgi resides and chmod-ing it like so: chmod a+x helloworld.cgi
Jon Sagara
In India, when someone says "mad cow", you know it's actually a bull charging at him.
-- Rohit Sinha
|
|
|
|
|
Thanks Jon
You were right.
Thanks for your help!
Kevin Shaffer
Student of Computer Science
University of Kansas
kshaff03@msn.com
|
|
|
|
|
Hi, everyone!
I want to generate a Word file from a browser. The data which is going to be filled in Word file is in a database table. I just do not know how to generate a word file to download and fill in the data in the Word file.
Are there some samples that I can refer?
regards,
George
|
|
|
|
|
Hi.
The thing I can only remember is to automate Word on the server side. It is rather f***ed up business, and is to be avoided in any case if possible.
Anyhow if you are ready for (must do) it, there are samples on MSDN, and Google search should help you, too...
Igor
|
|
|
|
|
Thanks, wrda buddy!
Can you tell me which key words should I search? I
really have nothing about this topic.
Can you recommend some materials to me?
regards,
George
|
|
|
|
|
try something like:
"automating word object asp" or
"automation word object asp".
Also, you can try looking at http://groops.google.com
At http://msdn.microsoft.com/library/en-us/off2000/html/womscwhatsnewdev.asp
you can find documentation needed, together with soma samples
good luck
|
|
|
|