is there a way in javascript to retrieve the current coordinates of an element on screen with respect to the page viewport as well as the screen.?
i'm having this case where i have an INPUT element inside a DIV element and i have to scroll vertically through the DIV to view it.I want to get its coordinates when it is visible on the screen (ie. the coordinates that typically make it visible)
before scroll
x=232
y=2225...
User Profile
Collapse
-
current coordinates of an element
-
yeah for now the div is empty.No matter weither the div is empty or not, i want it to be uniformly displayed, even if the elements inside it are "big" enough to overflow so it would always occupy the same size.... -
sure
[HTML]<frameset rows="16%,4*,*" frameborder="no " border="0" framespacing="0 ">
<frame src="top.html" name="topFrame" scrolling="no" noresize="nores ize" id="topFrame" title="topFrame " marginheight="0 " marginwidth="0"/>
<frame src="main.html" name="mainFrame "...Leave a comment:
-
i have tried this and it's not working in both browsers (IE7 and FF 2).the div is like never displayed. since this is inside a frame, i also need that if an element is too large the frame would not overflow but rather become scrollable and its height always fixed.Any suggestions to achieve that ?
thanks...Leave a comment:
-
frame size issue
how can i make a div tag fill all the area inside body tag while its empty
ie.
[HTML]<body>
<div id="wrapper">
</div>
</body>[/HTML]
i'm putting this inside a frame, which i want it to be of fixed size because if i put a table inside the div and mangle with its size , the frame gets out of bound while i want it to be of fixed layout no matter what's inside it. -
i think response.binary write(rs("photo ")) should do it itself...Leave a comment:
-
hey man
i don understand why you wanna set the content type to image/jpeg because by default IE and most browsers can read it easily
so you just insert the image into the web page and the browser will display it for yaLeave a comment:
-
sorry forgot the screenshot !
but i think you'll get the idea...Leave a comment:
-
sorry forgot the screenshot !
but i think you'll get the ideaLeave a comment:
-
display index server hits in proper document format
hi
i dunno if this is the right forum to post this , but i couldn't find any other alternative
so here it goes
i'm using MS index server on a winXP machine to deliver a small search engine for an intranet(with ASP of course),nothing fancy.
Now everything worked just fine . My problem is with the hit highlighting feature:
the index server allows you to display a summary or a full hit-highlighted version of the document... -
display index server hits in proper document format
hi
i dunno if this is the right forum to post this , but i couldn't find any other alternative
so here it goes
i'm using MS index server on a winXP machine to deliver a small search engine for an intranet(with ASP of course),nothing fancy.
Now everything worked just fine . My problem is with the hit highlighting feature:
the index server allows you to display a summary or a full hit-highlighted version of the document... -
hey man
why don't you use ASPUpload
just google for ASPUpload and you'll get tons of results all free and very easy to useLeave a comment:
-
yeah hi and thanks for the reply,
i sort of procured a solution,but i'm interseted in knowing if ado provides such a functionality.
...Code:<% nPageCount=Rs.PageCount currentPage=CLng(request("page")) iStart=request.QueryString("start") if iStart="" then istart=1 if request.QueryString("origin")="set" then currentPage=clng(iStart) Rs.AbsolutePage=currentPageLeave a comment:
-
how to divide recordset to sets of pages
hi,
i need help to realise some paging through an ado Recordset
my question is how to divide the result into chunks of pages and make links to each chunk like 1-10 first pages 10-20 ... pages
i tried to use absolutePositio n with absolutePage but it won't work if absolutePositio n is set before absolutePage was set, it's like it only works inside a page ..
anyway , any help is much appreciated -
never mind i solved it
it turned out that the Win2000 server machine had a problem digesting some "unexpected characters" so iused createTextFile with unicode format designator instead of openTextFile and it 's working great.
hope this helps those who fall into the same holeLeave a comment:
-
by default asp is disabled on the win 2003 server
,
try enabling it from the IIS snap-in...Leave a comment:
-
is this a vbscript error or an IIS backwards compatibility issue
hi,
im using FileSystemObjec t's File object to create an html file and write it to the webserver's disk and then send it as a mail attachment.
...Code:final_draft="<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd""><html xmlns=""http://www.w3.org/1999/xhtml""><head><meta "&_
-
how to generate same layout for printer and screen
hi
one of my asp files generates a dynamic report that is a string sent back to the client's browser with all related css.
on screen all seems right
but when it is printed ,seems thatdoes not work at allCode:<style media='print'>
further more i wanna print multiple pages, and a common header for each,but this header will only be shown on print,again the print style does not seem to be applied
...Code:.header{displa -
insert multipe records at once how_URGENT
i'm developping a web application with an access database
in my application there's a loop that gets values of a form
like:
lastElt=request ("numberOfItems ")
for i=0 to lastElt
qty=request("qt y" & i )
desc=request("d esc" & i )
objConn.execute ("insert into items values(" & qty & " , ' " & desc & " ' )"... -
insert multipe records at once how_URGENT
i'm developping a web application with an access database
in my application there's a loop that gets values of a form
like:
lastElt=request ("numberOfItems ")
for i=0 to lastElt
qty=request("qt y" & i )
desc=request("d esc" & i )
objConn.execute ("insert into items values(" & qty & " , ' " & desc & " ' )"...
No activity results to display
Show More
Leave a comment: