This topic is locked

Can I

2/15/2004 11:44:30 AM
ASPRunnerPro General questions
author

? 1 How do I change the size of the popup window after clicking on the more link.

( text file shows only XXX and more, when link is clicked popup with file shows some of the text and not all.
? 2 I want to have two pages 1 for the editor (ed_list.asp) and (list.asp) for the puplic to see, I would like the puplic page not to display& edit delete can this be done
? 3 How can I pull data from the db to my website and have it show in a table.

example scores of a game like hockey or pictures or a news release, can this be done with this prog? or do i have to put the the whole list page on to my site.
Im new to this this program it is helping me understand asp and db.

hope you can help.

Sergey Kornilov admin 2/15/2004

Hi,

  1. Find Function named ProcessLargeText in ...aspfunctions.asp file and change popup window width and height (in bold).
    Function ProcessLargeText(strValue)

    ProcessLargeText = HTMLEncode(strValue)
    if cNumberOfChars>0 then

    if Len(ProcessLargeText)>cNumberOfChars and left(strValue,7)<>"<a href" then

      ProcessLargeText = Left(ProcessLargeText, cNumberOfChars ) &


      " <a href=""#"" onClick=""java script: pwin = window.open(null,null,'height=300,width=400,status=yes,resizable=yes,toolbar=no,menubar=no,location=no,left=150,top=200,scr

    ollbars=yes'); "

      ind = 1

      ProcessLargeText = ProcessLargeText & "pwin.document.write('" & HTMLEncode(Replace(Replace(Mid(strValue,ind, ind+800),"'","\'"), vbcrlf, "
    ")) & "');" & vbcrlf

      ProcessLargeText = ProcessLargeText & "pwin.document.write('
    <hr size=1 noshade><a href=# onClick=\'window.close();return false;\'>Close window</a>');"

      ProcessLargeText = ProcessLargeText & "return false;"">More ...</a>"

     

    end if
    end if
    End Function


2. Do not check off "Edit page" and "Delete button" checkboxes in ASPRunner (step 7 of 12).
3. I'm not sure I understand this question. Actually list page displays data in a table. Do you need something different?

501004 2/15/2004

Still cant get the whole text file to show even after changing the w & h
Q>? 3 How can I pull data from the db to my website and have it show in a table.

>example scores of a game like hockey or pictures or a news release, can this be done >with this prog? or do i have to put the the whole list page on to my site.
A> I'm not sure I understand this question. Actually list page displays data in a table. Do you need something different?
? 1 I would like to put the table that AR made into a webpage that as been made already the layout is made, Backgroung buttons and pics, now I have a spot where I would like to put a list of game scores for examples that was generated by AR. Do I incert the page that was created or do I have to call for It something like redirecting it.

Sergey Kornilov admin 2/17/2004
  1. "More ..." popup cannot display more than 800 characters which is Javascript restriction. If you need to display more info - use Edit page for this purpose.
  2. You can insert ASP code generated by ASPRunner into any web page (.ASP of course). Just make sure you don't break the code.