Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 4:59 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: InternetPost and InternetGet
PostPosted: December 20th, 2005, 11:43 am 
Offline

Joined: January 10th, 2005, 11:08 am
Posts: 63
Location: Birmingham, United Kingdom
Opus: All between ver Pro XE 4.5 and Ver 9.62
OS: Windows XP Pro SP3
System: Intel Core2 Duo 2.67Ghz, Matrox Millennium G550 dual head graphics card
I am currently, and quite successfully, sending and retrieving data from a publication via a set of ASP pages to a server SQL database using the Post Web Data action.
Wishing to expand the amount of scripting I use in a production I want to convert these actions into script. I have worked out the basics of InternetPostData but I am a bit stuck on how to retrieve a particular record from the data set.
I currently retrieve a record by sending two variables STUDENT_ID and COURSE_ID to the asp page, and that sends back the rest of the fields in the data record.
I have reviewed previous posts to the forum but none seem to cover this combined sending and retrieving action.
(At the end of the day I could stick to the action I am using, but you don't learn anything that way, do you :?: )

Andy Thompson

04 January 2006 - No replies as yet, this is either regarded as too difficult or far too simple to warrant a reply.


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 5th, 2006, 1:39 pm 
Offline

Joined: January 10th, 2005, 11:08 am
Posts: 63
Location: Birmingham, United Kingdom
Opus: All between ver Pro XE 4.5 and Ver 9.62
OS: Windows XP Pro SP3
System: Intel Core2 Duo 2.67Ghz, Matrox Millennium G550 dual head graphics card
Hey folks...5th January...49 people have viewed this and no-one has posted a reply. DG - maybe others are also wondering how this works and are too afraid to ask! :o


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 5th, 2006, 2:31 pm 
Offline

Joined: November 5th, 2004, 6:54 am
Posts: 130
Location: Hengelo, The Netherlands
Opus: 8.5/9.0
OS: Windows 7 64-bits, Android 2.1, Android 4.1.2, iOS 7
System: Pentium 7i, 6GB RAM, 750GB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses
Hi Andy,

I didn't read your message before (skiïng with Christmas).
Yes I'm also wondering how to use Opus Script to do this, because it's much more flexible than using actions.

Unfortunately at this moment I have no time to do some research.

But maybe others are?

To all who are reading this:

Please help Andy :!: :wink:

Kind regards,

_________________
Oscar Nijst
ON Education & Consultancy
Hengelo, The Netherlands
OPUS Pro 9.5
Pentium 7i, 16GB RAM, 1 TB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 11th, 2007, 12:17 am 
Offline

Joined: February 18th, 2005, 5:44 pm
Posts: 17
Location: Michigan (USA)
Opus: V7.04
OS: Win7 32-bit
System: Pentium QUAD 4GB RAM ATI HD 57XX
Not sure if this helps but I have been successful with using the InternetPostData script function to GET information (InternetGetData has never worked for me!). I posted an example below. Create a new object, I used that object name in the InternetPostData, then had my string of "&ca_user1=John&ca_user1status" in my cgi script populate the LobbyStatus object, with the 'true' option to return data sent in the function. So, basically, I'm sending nothing with the new object created but getting data from my cgi script. Works like a charm! :)




function GetTableUserStatus(){
var LobbyStatus = new Object()
GetTableUserStatusURL = ""+url+"lobby.php"
var LobbyStatus = InternetPostData(GetTableUserStatusURL,LobbyStatus,true)
ca_user1=LobbyStatus.ca_user1
ca_user1status=LobbyStatus.ca_user1status
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 43 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group