New topic: Is PageSource.Source read only at runtime?
<http://forums.realsoftware.com/viewtopic.php?t=46275> Page 1 of 1 [ 5 posts ] Previous topic | Next topic Author Message matt.quagliana Post subject: Is PageSource.Source read only at runtime?Posted: Tue Dec 18, 2012 8:58 am Joined: Fri Sep 30, 2005 2:03 pm Posts: 52 Location: Austin, TX I'm trying to assign a value to PageSource.source (ie, "PageSource1.Source = s") but I'm getting this error: Cannot assign a value to this property. Is setting a value in the properties pane in the IDE the only way to set the PageSource content? Top neonash7777 Post subject: Re: Is PageSource.Source read only at runtime?Posted: Tue Dec 18, 2012 12:18 pm Joined: Mon Nov 29, 2010 7:01 pm Posts: 346 matt.quagliana wrote:I'm trying to assign a value to PageSource.source (ie, "PageSource1.Source = s") but I'm getting this error: Cannot assign a value to this property. Is setting a value in the properties pane in the IDE the only way to set the PageSource content? What are you trying to do? I believe the page source is a read only property. If you want to show some custom HTML use an HTMLViewer. Otherwise use execute javascript to alter elements on the page. Top matt.quagliana Post subject: Re: Is PageSource.Source read only at runtime?Posted: Tue Dec 18, 2012 2:35 pm Joined: Fri Sep 30, 2005 2:03 pm Posts: 52 Location: Austin, TX I'm trying to show a very large block of generally static HTML content with some interactive controls below the HTML content. If I use an HTML Viewer I am forced to make is take up less than the entire page so that there's some room at the bottom for the other controls I want to add. This isn't horrible, but it would be cleaner if there was a way for me to inject some html directly into the page. Top neonash7777 Post subject: Re: Is PageSource.Source read only at runtime?Posted: Tue Dec 18, 2012 3:12 pm Joined: Mon Nov 29, 2010 7:01 pm Posts: 346 matt.quagliana wrote:I'm trying to show a very large block of generally static HTML content with some interactive controls below the HTML content. If I use an HTML Viewer I am forced to make is take up less than the entire page so that there's some room at the bottom for the other controls I want to add. This isn't horrible, but it would be cleaner if there was a way for me to inject some html directly into the page. You can still inject HTML using javascript Top Stretch Post subject: Re: Is PageSource.Source read only at runtime?Posted: Tue Dec 18, 2012 5:24 pm Real Software Engineer Joined: Tue Jul 14, 2009 4:33 pm Posts: 64 Location: Jacksonville, FL If you're using 2012r2, look at the WebSDK. There's an example project that allows you to put straight HTML onto a page. _________________ Greg O'Lone Software Engineer Real Software Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 5 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
