Taking Application to WebPage

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gpearson
Posts: 84
Joined: Wed Feb 03, 2010 12:55 pm

Taking Application to WebPage

Post by gpearson » Wed Mar 10, 2010 2:36 pm

My first application is a current weather application that allows me to use XML to gather the necessary information to display on a card. Now I am wanting to have this application reside in the browser to be displayed on a webpage. I am also wanting to figure out if the environment() is browser then turn off some fields which I am currently doing and is working great. My question is, how can I add a variable to the object tag so that the application can read in this variable and then process a function just like if the user of the desktop application did by entering their zip code and clicking a button called Get Weather.

If the application is on a website, the person who enteres the code block would know the zip code for the area of website surfers so I am looking for ways to altomatically pull in this variable into the application when user has vewed the page.

Any Ideas?
---
Graham Pearson
Goshen, IN USA

We Are Closed Today is your single internet resource for Indiana Area School Closings, Visit http://www.weareclosedtoday.com

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Taking Application to WebPage

Post by BvG » Fri Mar 12, 2010 5:17 pm

I am not sure what your question is, but I guess you want to pass parameters from the htmlpage to the revWeb plugin.

see the lesson about how to pass data from a webpage to a plugin.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

gpearson
Posts: 84
Joined: Wed Feb 03, 2010 12:55 pm

Re: Taking Application to WebPage

Post by gpearson » Mon Mar 15, 2010 8:04 pm

That lesson was just what I was looking for. Now that I have this on a website when a person views the site with the plugin installed, Is is possible to not have the revWeb Security Helper always display the box. Each time I refresh the page this Security Helper is being displayed no matter if I select Allow Always or Allow Once. Is it possible to program in such a way that this Dialog Box does not even show up?
---
Graham Pearson
Goshen, IN USA

We Are Closed Today is your single internet resource for Indiana Area School Closings, Visit http://www.weareclosedtoday.com

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Taking Application to WebPage

Post by BvG » Mon Mar 15, 2010 8:09 pm

I think it should not show up repeatedly. No idea what is happening.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: Taking Application to WebPage

Post by bn » Mon Mar 15, 2010 8:21 pm

Graham,
did you set the security settings manually? If you let Rev do it Rev is very conservative in what it considers for the security settings. If you don't need access to the file system/shell/etc. and the only thing you want from the internet is a "call back" to your site (which is allowed) then you can select "manual" and don't select anything.
Of course if your revlet needs any of the settings it will not work.

Why the security dialog would show up repeatedly for the same revlet that has been granted access, I have no idea.

regards
Bernd

Post Reply