Click here to Skip to main content
16,005,473 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: How to hack website Pin
Mikeyyy7-Aug-07 17:15
Mikeyyy7-Aug-07 17:15 
AnswerRe: How to hack website Pin
Vasudevan Deepak Kumar7-Aug-07 23:31
Vasudevan Deepak Kumar7-Aug-07 23:31 
AnswerRe: How to hack website Pin
#realJSOP8-Aug-07 0:01
professional#realJSOP8-Aug-07 0:01 
AnswerRe: How to hack website Pin
scottgp8-Aug-07 3:51
professionalscottgp8-Aug-07 3:51 
AnswerRe: How to hack website Pin
leckey8-Aug-07 10:29
leckey8-Aug-07 10:29 
AnswerRe: How to hack website Pin
JimmyRopes8-Aug-07 17:51
professionalJimmyRopes8-Aug-07 17:51 
AnswerRe: How to hack website Pin
ktm TechMan8-Aug-07 23:52
ktm TechMan8-Aug-07 23:52 
QuestionResizing images retrieved from DB Pin
bryterlayter7-Aug-07 12:15
bryterlayter7-Aug-07 12:15 
Hi,

I hope this is the correct forum to post in.

The block of code retrieves image thumbnails (via GUIDs) from a database and displays them using a Javascript function. All the thumbnails are one size.

Is there a way in classic ASP to somehow resize the image once it is retrieved from the database? i basically want the thumbnails to appear larger and i am not concerned about pixelation.

/* comments by bma, 10/06/2007<br />
    /* here we retrieve the highest value in imgPosition<br />
    /* this determines how many image 'blocks' we're displaying */<br />
    <%<br />
    dim rsMaxImagePosition <br />
    strSQL = "select MAX(imgPosition) as MaxImgPosition from tblImageRotate"<br />
    set rsMaxImagePosition = emSQLGetStaticReadOnlyRS(strSQL, Application("strDSN"))<br />
<br />
    //for every image block, we create a new javascript array, incremented by 1<br />
    dim rsImageRotate<br />
    dim i<br />
    for i = 1 to rsMaxImagePosition("MaxImgPosition")  <br />
        //we pull the imageID from tblImageRotate, and also retrieve the GUIDs from tblImages<br />
        strSQL = "SELECT tblImageRotate.fldImagesID, tblImageRotate.imgPosition, tblImages.fldImageGUID " & _<br />
            "from tblImageRotate, tblImages " & _<br />
            "where tblImageRotate.fldImagesID = tblImages.fldImagesID " & _<br />
            "and tblImageRotate.imgPosition = " & i<br />
        set rsImageRotate = emSQLGetStaticReadOnlyRS(strSQL, Application("strDSN"))<br />
        <br />
        //for every row in a position, or 'block', we write a new row in the array<br />
        response.Write "var fadeimages" & i & "=new Array()" & VBCRlf <br />
            dim x<br />
            x = 0<br />
            while not rsImageRotate.eof<br />
               response.Write "fadeimages" & i & "[" & x & "]=['/images/thumbnail/" & server.urlencode(rsImageRotate("fldImageGUID")) & "', '/searchresults.asp?n=" & rsImageRotate("fldImagesID") & "&enlarge=1', '']" & VBCRlf<br />
                x = x + 1<br />
               rsImageRotate.movenext<br />
            wend<br />
            response.write VBCRlf<br />
    next<br />
    %>


Hope you can help.

-----------
Ben

AnswerRe: Resizing images retrieved from DB Pin
#realJSOP8-Aug-07 0:06
professional#realJSOP8-Aug-07 0:06 
QuestionWhy XML soap is fast Pin
dotnet3337-Aug-07 7:02
dotnet3337-Aug-07 7:02 
Questionwindow.document.thisForm.submit() Pin
ThaScorpion7-Aug-07 5:49
ThaScorpion7-Aug-07 5:49 
AnswerRe: window.document.thisForm.submit() Pin
JimmyRopes7-Aug-07 5:54
professionalJimmyRopes7-Aug-07 5:54 
GeneralRe: window.document.thisForm.submit() Pin
ThaScorpion7-Aug-07 6:07
ThaScorpion7-Aug-07 6:07 
AnswerRe: window.document.thisForm.submit() Pin
ThaScorpion8-Aug-07 3:24
ThaScorpion8-Aug-07 3:24 
AnswerRe: window.document.thisForm.submit() Pin
hxhl959-Aug-07 15:25
hxhl959-Aug-07 15:25 
QuestionOnmouseover Pin
.NET- India 7-Aug-07 5:32
.NET- India 7-Aug-07 5:32 
AnswerRe: Onmouseover Pin
JimmyRopes7-Aug-07 5:52
professionalJimmyRopes7-Aug-07 5:52 
Questionwebsite generator Pin
Richard Blythe7-Aug-07 4:21
Richard Blythe7-Aug-07 4:21 
AnswerRe: website generator Pin
hxhl959-Aug-07 15:42
hxhl959-Aug-07 15:42 
GeneralRe: website generator Pin
Richard Blythe9-Aug-07 16:46
Richard Blythe9-Aug-07 16:46 
GeneralRe: website generator Pin
hxhl959-Aug-07 18:57
hxhl959-Aug-07 18:57 
GeneralBrowser Based Link Checkers [modified] Pin
Vasudevan Deepak Kumar6-Aug-07 23:36
Vasudevan Deepak Kumar6-Aug-07 23:36 
GeneralRe: Browser Based Link Checkers Pin
Hans Dietrich6-Aug-07 23:53
mentorHans Dietrich6-Aug-07 23:53 
GeneralRe: Browser Based Link Checkers Pin
Vasudevan Deepak Kumar7-Aug-07 0:46
Vasudevan Deepak Kumar7-Aug-07 0:46 
GeneralRe: Browser Based Link Checkers Pin
S Douglas7-Aug-07 1:10
professionalS Douglas7-Aug-07 1:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.