Tutorial - MacAddict Forum Reader on RevJournal Website

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
ArchiMark
Posts: 8
Joined: Fri Oct 26, 2007 9:48 pm

Tutorial - MacAddict Forum Reader on RevJournal Website

Post by ArchiMark » Tue Sep 30, 2008 5:19 pm

Just got Rev3 about 2 weeks ago...so just getting started....

Found tutorial - MacAddict Forum Reader on RevJournal website.

Tried tutorial but so far not getting web page to open...

Code: Select all

on mouseUp
  show image "Busy"
  put field "Address" into tAddress
  load URL tAddress with message processWebPage
end mouseUp
I notice that it uses command "load URL", while in RunRev's tutorial video, they use 'revGoURL'... (although checked Dictionary and it says 'revGoURL' is now deprecated..)

Have tried both but neither are opening up a browser window after clicking the "Load" button...

I did get browser window to open when trying Rev's tutorial....

So can't figure out what's wrong...any suggestions???

Thanks for any help.
Silicon Valley Digerati & Code Noob
Developing on Mac OSX SL
For Android 2.2
Using Dell Streak - Android 2.2 (DJ_Steve's StreakDROID Custom ROM 1.90)

Obleo
Posts: 174
Joined: Mon Apr 10, 2006 10:35 pm
Contact:

Post by Obleo » Tue Oct 07, 2008 2:22 pm

the revGoUrl was replaced with launch url in version 2.9.

The new example that replaces revGoUrl (launches a web page in a default system web browser):

Code: Select all

launch url "http://www.runrev.com" 
Try looking at launch url in the revolution dictionary. for more info.

Are you trying to make a browser or just launch a web address in the default system web browser?

If your looking to make a browser. There is a sample stack in the resource center. on the how to make a web browser.

Resource Center/ Internet / Browser sampler / Launch Stack. (it a pretty indepth sample stack on making a web browser)

ArchiMark
Posts: 8
Joined: Fri Oct 26, 2007 9:48 pm

Post by ArchiMark » Tue Oct 07, 2008 2:35 pm

Thanks for your help, obleo....

In the meantime, I got response from Sarah, the author of the tutorial.

Turns out that there are two issues with tutorial.

One was specific to the webpages referred to. Problem is that those pages no longer exist...

Two,
other issue is that the "load" command does not go to your browser the way revGoURL or launch does. It just loads the HTML source into memory, and when it is finished, it goes to the specified callback
handler, if one has been specified. If this was all working, you would
just see a list of forum names appear on the left. Then you would be
able to click on one of them to see a list of sub-forums names.
Sarah's said that she's going to update tutorial and then it will be posted on RevJournal again.....
Silicon Valley Digerati & Code Noob
Developing on Mac OSX SL
For Android 2.2
Using Dell Streak - Android 2.2 (DJ_Steve's StreakDROID Custom ROM 1.90)

Obleo
Posts: 174
Joined: Mon Apr 10, 2006 10:35 pm
Contact:

Post by Obleo » Tue Oct 07, 2008 2:43 pm

I guess you save a curious tip to the rev journal.

I noticed Many of the internet related commands and functions changed over the last few versions of revolution. So it very possible some of the examples you may find will be out of date.

ArchiMark
Posts: 8
Joined: Fri Oct 26, 2007 9:48 pm

Post by ArchiMark » Tue Oct 07, 2008 2:53 pm

Obleo wrote:I guess you save a curious tip to the rev journal.

I noticed Many of the internet related commands and functions changed over the last few versions of revolution. So it very possible some of the examples you may find will be out of date.
You're absolutely right, Obleo!....have already run into this....not the first time with computing related tutorials...have spent many hours wasting time trying to get a tutorial on something to work, usually get stuck on step 32 or something like that after spending some time to get to that point, then find out later that instructions were bad, left out step, etc....

It's hard to criticize tutorial creators too much as they're usually volunteer efforts.... so, what can you do???

:)
Silicon Valley Digerati & Code Noob
Developing on Mac OSX SL
For Android 2.2
Using Dell Streak - Android 2.2 (DJ_Steve's StreakDROID Custom ROM 1.90)

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue Oct 07, 2008 5:03 pm

Obleo wrote:I guess you save a curious tip to the rev journal.

I noticed Many of the internet related commands and functions changed over the last few versions of revolution. So it very possible some of the examples you may find will be out of date.
Actually, revGoURL still works, although the result might be slightly different from the resut obtained by launch url.

What else has changed and no longer works?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Obleo
Posts: 174
Joined: Mon Apr 10, 2006 10:35 pm
Contact:

Post by Obleo » Tue Oct 07, 2008 6:45 pm

I am not sure how your getting revGoUrl "http://www.apple.com" to work in revolution 3.0? It does noting for me in a simple on mouseUp button. launch url works great.

Any time anything changes from version A to vesion B, and I am in version B. Editing a stack I made in version A. I will not get things not to work the same on anything that has been changed between the two versions.

Witch usally takes a simple rewrite of the script. Honesty it no big deal. Things change for the better.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue Oct 14, 2008 9:57 am

Hi Obleo,

I am really curious about what other changes you have found, which cause your slightly older scripts to work no longer. Perhaps a few of these issues should be reported to QCC.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply