Current date/time is Tue Nov 24, 2009 3:48 pm

Post a reply

Post a reply
 

HTML is OFF
BBCode is ON
Smilies are ON

  
Options


Jump to:  

Topic review

by Akhilesh B Chandran on Tue Oct 07, 2008 9:57 pm

U r welcome:)

by stormchaser on Tue Oct 07, 2008 9:48 pm

Hi Akilesh & Thava

Good to see your reply Smile today i have converted all the 22 files, its easy to do in vbscript

Thanks 4 u r reply

Best Regards
Stormy

by Akhilesh B Chandran on Mon Oct 06, 2008 7:33 pm

The actual javascript code of the first program:
Code:
  var lists = new SPAPI_Lists('http://localhost')
      var listDef = lists.getListAndView('Tasks', '{4011C1CE-A840-4BEB-89E3-A42DF3E3711E}');

      if (listDef.status == 200)
      {
        // The list definition is in listDef.resultNode and is a browser specific XML document
      }
      else
      {
        alert('There was an error: ' + listDef.statusText);
      }

A small conversion of the first program:

Code:
var lists = new SPAPI_Lists('http://localhost')
      var listDef = lists.getListAndView('Tasks', '{4011C1CE-A840-4BEB-89E3-A42DF3E3711E}');


dim lists
dim listDef
      if listDef.status = 200 then
      ' // The list definition is in listDef.resultNode and is a browser specific XML document
      else
        document.write("There was an error: " & listDef.statusText)
      end if

here the first two lines are not converted. I don't know what the function is doing in there. The other lines were converted. Similarly, you can convert the other codes also. If you have any doubts, please feel free to ask Smile

-Gud nite Smile

by Akhilesh B Chandran on Mon Oct 06, 2008 7:26 pm

Hai storm Smile,
Glad to see you here Smile and thanx for becoming a member of this form.
First of all I want to say that, I don't know javascript. If you tell me what each line do in javascript, then I can convert it into vb Smile

Here is a link for learning vbscript: VBScript Tutorial

What thava had said is almost right.... Smile When I checked that webpage, I found that most of the lines are easy to convert but except the variables decalred... I think its some built in functions of javascript. I will have a look at it and will soon reply Smile

-Gud nite Smile

by thava on Mon Oct 06, 2008 7:08 pm

i think its not much difficult than to change to vb script ,you need make some changes only in the basic constructs like if, endif ; for next and so on other things are same if you find any thing difficult just post that portion only