Topic Options
#175726 - 02/05/10 06:58 PM Web Object, Replace text?
Wra1thus


Registered: 09/24/09
Posts: 45
Anyone know how or if it's possible to search a page for text and replace it with something else? All I can find is the ability to change the "value" of an element. Thanks wink

ps: Trying to populate a textarea element.


Edited by Wra1thus (02/05/10 07:01 PM)

Top
#175742 - 02/05/10 08:21 PM Re: Web Object, Replace text? [Re: Wra1thus]
netninja


Registered: 06/30/06
Posts: 512
Loc: Australia
I can't think of a way to do it using that object alone, but you may have to download each webpage using another extension (GET/download/etc) to the local harddrive then open it up as a text file, parse and replace the words then tell the Web Object to open up the local file.

I don't have MMF2 open at the moment, but that's just a complicated hunch.
_________________________
Faerie Solitaire - Out now! Demo available too! Also on Big Fish Games!
www.Subsoap.com

Top
#175747 - 02/05/10 09:27 PM Re: Web Object, Replace text? [Re: netninja]
Wra1thus


Registered: 09/24/09
Posts: 45
I needed to have it work both remotely and local, which your suggestion to parse would work for local...but I would still need a remote solution.

Top
#175756 - 02/05/10 11:16 PM Re: Web Object, Replace text? [Re: Wra1thus]
netninja


Registered: 06/30/06
Posts: 512
Loc: Australia
I mean that you would first download the remote page as a local file, then parse it, then load it as a local file in the Web Object.

Eg. Download object downloads ""http://www.google.com/index.html", saves to C:\webobject\index.html

C:\webobject\index.html, replacing words

Display C:\webobject\index.html
_________________________
Faerie Solitaire - Out now! Demo available too! Also on Big Fish Games!
www.Subsoap.com

Top
#175760 - 02/06/10 01:03 AM Re: Web Object, Replace text? [Re: netninja]
Jacob


Registered: 07/23/07
Posts: 1922
Loc: Second pixel to the right
Can't you display the source file from the internet?

Display: http://www.google.com/index.html
_________________________
Need webhosting? Try AtomicPages.net

Jacob Pariseau, Eh



Top
#175832 - 02/06/10 01:41 PM Re: Web Object, Replace text? [Re: Jacob]
Wra1thus


Registered: 09/24/09
Posts: 45
Originally Posted By: Jacob
Can't you display the source file from the internet?

Display: http://www.google.com/index.html

Not sure what you mean. But I essentially need it to do what firebug does and do a live edit of the html. Am trying to do kinda like an advanced form fill out except textareas wont fill out.

Top


Site Links
Forum Index

Home Page
Online Store
Tutorials
Download Center
French Forum

Quick File Links
Multimedia Fusion 2
Updates - build 249
Standard Version
Developer Version

Extension Packs
Bonus Pack 1
Bonus Pack 2
z33z Extension Pack
LIJI Extension Pack

The Games Factory 2
Latest Update - build 249
Community Links
Fusion Wiki
MFA Repository
Klikdisc
The Daily Click
GameBuilder

GB Arcade
TDC Arcade
Madword

Extensions
Neatwares Extension List
Extension Updater

Lacewing & Moo Server
Klikfarm

Money from your games
Click Chat
9 People are chatting
Game Builder

Visit the GameBuilder Homepage

Recent Download

Dungeon Master

Latest News