LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-24-2004, 12:45 PM   #1
Dewar
Member
 
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90

Rep: Reputation: 15
ASP using VBScript conversion to Perl


A company I work for contracted a website out from a third party. The website was delivered to me on disk, and I was to put it on the webservers. The catch is, our webservers only understand ASP based on Perl, and they wrote it in ASP based on VBScript. I'd like some help transfering it over.

Here's the main page:


Code:
<%
Dim menuStick 		:		menuStick =	"HOME"
%>
<html>

<head>
<!-- #include file="includes/meta.asp" -->
<link rel="stylesheet" type="text/css" href="css/claw.css">
<script language="javascript" src="js/claw.js"></script>
<title>*eddited*</title>
</head>

<body>
<table border=0 cellpadding=0 cellspacing=0 width=100% height=100% id="Table1">
   <tr>
      <td colspan=2 valign=top><!-- #include file="includes/header.asp" --></td>
   </tr>

...
The meta.asp include doesn't have any VBScript in it, but the header.asp does. Here it is...

Code:
...
<tr>
   <td  background="images/top_right_bottom.gif">
      <img border="0" src="images/top_right_bottom.gif" width="137"></td>
   <td><img src="images/btn_spacer.gif"></td>
   <% 
      If menuStick <> "HOME" Then
   %>
   <td><a href="default.asp" onmouseover="highlighter('home','over')"
      onmousedown="highlighter('home','down')" onmouseout="highlighter('home','')">
      <img border="0" src="images/buttons/btn_home_up.gif" width="56"
          height="20" name="home" alt="Home"> </a> </td>
   <%
      Else
   %>
   <td><img border="0" src="images/buttons/btn_home_down.gif"
      width="56" height="20" name="home" alt="Home"></td>
   <%	
   End If
   %>
   <td><img src="images/btn_spacer.gif"></td>

...
I've tried to bold the ASP parts. The code isn't too complicated, so I thought it wouldn't be to hard to convert it over to Perl, yet I keep running into problems. If anyone can help me with this bit of code, I think I can do the rest by my self.

Also, as an aside, would converting it all to PHP be a better solution? (Note, even if it is, I would still like an answer to my main question. My boss may not let me use PHP.)

Thanks for your help.
-Dewar
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP using VBScript conversion to Perl Dewar Linux - Software 1 06-24-2004 12:46 PM
ASP to PHP Conversion Goblin Programming 11 08-26-2003 12:43 PM
asp ? oer perl? andox Programming 4 06-25-2003 03:23 PM
ASP mod perl.... Marble Programming 0 06-19-2003 01:45 AM
ASP? ASP for Perl? northwind blank Linux - Networking 3 02-04-2003 10:52 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration