vcl4php-developers Mailing List for VCL for PHP (Page 7)
Brought to you by:
ttm
You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
(63) |
May
(29) |
Jun
(135) |
Jul
(36) |
Aug
(15) |
Sep
(30) |
Oct
|
Nov
(6) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
|
Feb
(1) |
Mar
(3) |
Apr
|
May
(2) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(9) |
Dec
(15) |
2009 |
Jan
(2) |
Feb
(4) |
Mar
(2) |
Apr
|
May
(8) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: FrozenDice <fro...@gm...> - 2007-06-26 20:18:27
|
Is the add row button using ajax or server side events? If it's using a server side event how is it not being triggered by the ajax button also? It looks like it's ajax since I don't see the "clicked by ajax" button refresh, unless it's just too quick. - Dan ---- Quote Reply ------------------------------------------------ I noticed if I go to the archives and select "Flat View" (as opposed to ultimate) then the posts are easier to find, your last post did go through. Still, I'm glad you asked again as it gave me a chance to experiment and learn. It worked for me, here's what I did: (1) Set UseAjax = True for the Form, place a button... (2) Set a Javascript onclick event which did the following: function Button2JSClick($sender, $params) { echo $this->Button2->ajaxCall("DoSomething"); ?> //Add your javascript code here return false; <?php } (3) Implemented DoSomething: function DoSomething($sender, $params) { $this->Button2->Caption="clicked Ajax ".date("Y-m-d H:i:s"); } I *TEMPORARILY* posted a working AJAX demo here (the bottom button uses AJAX, the top button does not). It is not guaranteed to be up at all times. http://robwilkens.com/TableDemo.php -Rob |
From: Rob W. <rob...@gm...> - 2007-06-26 20:17:43
|
You're probably not doing something right. i.e. Are you echoing things outside of functions? If so, yes, that is bad. -Rob On 6/26/07, FrozenDice <fro...@gm...> wrote: > Through experimenting more, I found that the response returned is > effected by more than the function you call. > > If you have any server event which gets called automatically like > during a load, before/after show, etc. it will get called along with > the specified function or just any raw php code. A single echo not in > a function would normally be run if you were to run the PHP file. Now > it's ALSO run when the ajax call is made, so if you have echo "test"; > somewhere outside a function your response will be test<?xml....etc. > Same with functions. > > My problem is I have an application that uses the onCreate of the > form, and lots of other server side events, unfortunately these ALL > GET CALLED. What was CodeGear thinking when they implemented xajax > like this? > > Workarounds? Ideas? > > - Dan > > > Message: 8 > > Date: Tue, 26 Jun 2007 14:24:47 -0400 > > From: "Rob Wilkens" <rob...@gm...> > > Subject: Re: [vcl4php-developers] Bad Ajax Response - getting page > > source rather than xml response > > To: vcl...@li... > > Message-ID: > > <ead...@ma...> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > I noticed if I go to the archives and select "Flat View" (as opposed > > to ultimate) then the posts are easier to find, your last post did go > > through. Still, I'm glad you asked again as it gave me a chance to > > experiment and learn. > > > > It worked for me, here's what I did: > > (1) Set UseAjax = True for the Form, place a button... > > (2) Set a Javascript onclick event which did the following: > > function Button2JSClick($sender, $params) > > { > > echo $this->Button2->ajaxCall("DoSomething"); > > > > ?> > > //Add your javascript code here > > return false; > > <?php > > > > } > > (3) Implemented DoSomething: > > function DoSomething($sender, $params) > > { > > $this->Button2->Caption="clicked Ajax ".date("Y-m-d H:i:s"); > > } > > > > I *TEMPORARILY* posted a working AJAX demo here (the bottom button > > uses AJAX, the top button does not). It is not guaranteed to be up at > > all times. > > > > http://robwilkens.com/TableDemo.php > > > > -Rob > > > > On 6/26/07, FrozenDice <fro...@gm...> wrote: > > > Strangely when I go to the archive I can't see my previous email I > > > sent yesterday about this, I figure it must have somehow not reached > > > the server. > > > > > > I have an application where I'm using ajax, not in any complicated > > > way, just a Button and a Label, with the button updating the label. > > > It's code is identical to the basicajax.php example that came with > > > Delphi 4 PHP, I've checked over everything and it's the same as the > > > example. > > > > > > When I try clicking the button the function executes but doesn't > > > update the label. This is because I'm getting back an invalid > > > response, while it should be responding with some XML to update the > > > Label it sends back the source of the page, as if I was submitting the > > > page and it was re-rendering. > > > > > > Strange? Yeah. I've only been able to find out that it must be > > > printing the code to the output buffer. > > > > > > Here's the debug: > > > > > > Tue Jun 26 2007 10:01:28 GMT-0700 (US Mountain Standard Time): > > > Received: 11:01:26am<div onClick="MainWindow.open();" id="splash" > > > style=" position:absolute; top:50%; left:50%; margin:-109px auto auto > > > -162px;"><img src="ModIcons/Modabout.bmp"></div><div > > > onClick="MainWindow.open();" id="splash" style=" position:absolute; > > > top:50%; left:50%; margin:-109px auto auto -162px;"><img > > > src="ModIcons/Modabout.bmp"></div><?xml version="1.0" encoding="utf-8" > > > ?><xjx><cmd n="as" t="MainWindow_outer" p="innerHTML"><![CDATA[<script > > > type="text/javascript">var d = > > > qx.ui.core.ClientDocument.getInstance(); var MainWindow = new > > > qx.ui.window.Window("Mod 4", "Mod16.png"); MainWindow.setLocation(62, > > > 217); MainWindow.setModal(false); MainWindow.setResizeable(true); > > > MainWindow.setMoveable(true); MainWindow.setMoveMethod("opaque"); > > > MainWindow.setResizeMethod("frame"); MainWindow.setShowClose(true); > > > MainWindow.setShowMinimize(true); MainWindow.setShowMaximize(true); > > > MainWindow.setShowIcon(true); MainWindow.setShowCaption(true)... [long > > > response] ... > > > > > > Tue Jun 26 2007 10:01:26 GMT-0700 (US Mountain Standard Time): Calling > > > ajaxProcess uri=http://localhost:3569/ModCloneUploadJune25Ajax.php?restore_session=1&DBGSESSID=-1 > > > (post:xajax=ajaxProcess&xajaxr=1182877286191&xajaxargs[]=ModMain&xajaxargs[]=Button1&xajaxargs[]=%3Cxjxobj%3E%3C%2Fxjxobj%3E&xajaxargs[]=Button1Click&xajaxargs[]=%3Cxjxquery%3E%3Cq%3EModMainMenu_state%3D%26MainModToolbar_state%3D%26Button1%3DButton1%26SubmitPage%3DSubmitPage%3C%2Fq%3E%3C%2Fxjxquery%3E&xajaxargs[]=%3Cxjxobj%3E%3C%2Fxjxobj%3E) > > > > > > Tue Jun 26 2007 10:01:26 GMT-0700 (US Mountain Standard Time): > > > Initializing Request Object.. > > > > > > Tue Jun 26 2007 10:01:26 GMT-0700 (US Mountain Standard Time): Starting xajax... > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > vcl4php-developers mailing list > > > vcl...@li... > > > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers > > > > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > vcl4php-developers mailing list > vcl...@li... > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers > -- Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: FrozenDice <fro...@gm...> - 2007-06-26 20:12:36
|
Through experimenting more, I found that the response returned is effected by more than the function you call. If you have any server event which gets called automatically like during a load, before/after show, etc. it will get called along with the specified function or just any raw php code. A single echo not in a function would normally be run if you were to run the PHP file. Now it's ALSO run when the ajax call is made, so if you have echo "test"; somewhere outside a function your response will be test<?xml....etc. Same with functions. My problem is I have an application that uses the onCreate of the form, and lots of other server side events, unfortunately these ALL GET CALLED. What was CodeGear thinking when they implemented xajax like this? Workarounds? Ideas? - Dan > Message: 8 > Date: Tue, 26 Jun 2007 14:24:47 -0400 > From: "Rob Wilkens" <rob...@gm...> > Subject: Re: [vcl4php-developers] Bad Ajax Response - getting page > source rather than xml response > To: vcl...@li... > Message-ID: > <ead...@ma...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I noticed if I go to the archives and select "Flat View" (as opposed > to ultimate) then the posts are easier to find, your last post did go > through. Still, I'm glad you asked again as it gave me a chance to > experiment and learn. > > It worked for me, here's what I did: > (1) Set UseAjax = True for the Form, place a button... > (2) Set a Javascript onclick event which did the following: > function Button2JSClick($sender, $params) > { > echo $this->Button2->ajaxCall("DoSomething"); > > ?> > //Add your javascript code here > return false; > <?php > > } > (3) Implemented DoSomething: > function DoSomething($sender, $params) > { > $this->Button2->Caption="clicked Ajax ".date("Y-m-d H:i:s"); > } > > I *TEMPORARILY* posted a working AJAX demo here (the bottom button > uses AJAX, the top button does not). It is not guaranteed to be up at > all times. > > http://robwilkens.com/TableDemo.php > > -Rob > > On 6/26/07, FrozenDice <fro...@gm...> wrote: > > Strangely when I go to the archive I can't see my previous email I > > sent yesterday about this, I figure it must have somehow not reached > > the server. > > > > I have an application where I'm using ajax, not in any complicated > > way, just a Button and a Label, with the button updating the label. > > It's code is identical to the basicajax.php example that came with > > Delphi 4 PHP, I've checked over everything and it's the same as the > > example. > > > > When I try clicking the button the function executes but doesn't > > update the label. This is because I'm getting back an invalid > > response, while it should be responding with some XML to update the > > Label it sends back the source of the page, as if I was submitting the > > page and it was re-rendering. > > > > Strange? Yeah. I've only been able to find out that it must be > > printing the code to the output buffer. > > > > Here's the debug: > > > > Tue Jun 26 2007 10:01:28 GMT-0700 (US Mountain Standard Time): > > Received: 11:01:26am<div onClick="MainWindow.open();" id="splash" > > style=" position:absolute; top:50%; left:50%; margin:-109px auto auto > > -162px;"><img src="ModIcons/Modabout.bmp"></div><div > > onClick="MainWindow.open();" id="splash" style=" position:absolute; > > top:50%; left:50%; margin:-109px auto auto -162px;"><img > > src="ModIcons/Modabout.bmp"></div><?xml version="1.0" encoding="utf-8" > > ?><xjx><cmd n="as" t="MainWindow_outer" p="innerHTML"><![CDATA[<script > > type="text/javascript">var d = > > qx.ui.core.ClientDocument.getInstance(); var MainWindow = new > > qx.ui.window.Window("Mod 4", "Mod16.png"); MainWindow.setLocation(62, > > 217); MainWindow.setModal(false); MainWindow.setResizeable(true); > > MainWindow.setMoveable(true); MainWindow.setMoveMethod("opaque"); > > MainWindow.setResizeMethod("frame"); MainWindow.setShowClose(true); > > MainWindow.setShowMinimize(true); MainWindow.setShowMaximize(true); > > MainWindow.setShowIcon(true); MainWindow.setShowCaption(true)... [long > > response] ... > > > > Tue Jun 26 2007 10:01:26 GMT-0700 (US Mountain Standard Time): Calling > > ajaxProcess uri=http://localhost:3569/ModCloneUploadJune25Ajax.php?restore_session=1&DBGSESSID=-1 > > (post:xajax=ajaxProcess&xajaxr=1182877286191&xajaxargs[]=ModMain&xajaxargs[]=Button1&xajaxargs[]=%3Cxjxobj%3E%3C%2Fxjxobj%3E&xajaxargs[]=Button1Click&xajaxargs[]=%3Cxjxquery%3E%3Cq%3EModMainMenu_state%3D%26MainModToolbar_state%3D%26Button1%3DButton1%26SubmitPage%3DSubmitPage%3C%2Fq%3E%3C%2Fxjxquery%3E&xajaxargs[]=%3Cxjxobj%3E%3C%2Fxjxobj%3E) > > > > Tue Jun 26 2007 10:01:26 GMT-0700 (US Mountain Standard Time): > > Initializing Request Object.. > > > > Tue Jun 26 2007 10:01:26 GMT-0700 (US Mountain Standard Time): Starting xajax... > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > vcl4php-developers mailing list > > vcl...@li... > > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers > > > > > |
From: Rob W. <rob...@gm...> - 2007-06-26 18:24:47
|
I noticed if I go to the archives and select "Flat View" (as opposed to ultimate) then the posts are easier to find, your last post did go through. Still, I'm glad you asked again as it gave me a chance to experiment and learn. It worked for me, here's what I did: (1) Set UseAjax = True for the Form, place a button... (2) Set a Javascript onclick event which did the following: function Button2JSClick($sender, $params) { echo $this->Button2->ajaxCall("DoSomething"); ?> //Add your javascript code here return false; <?php } (3) Implemented DoSomething: function DoSomething($sender, $params) { $this->Button2->Caption="clicked Ajax ".date("Y-m-d H:i:s"); } I *TEMPORARILY* posted a working AJAX demo here (the bottom button uses AJAX, the top button does not). It is not guaranteed to be up at all times. http://robwilkens.com/TableDemo.php -Rob On 6/26/07, FrozenDice <fro...@gm...> wrote: > Strangely when I go to the archive I can't see my previous email I > sent yesterday about this, I figure it must have somehow not reached > the server. > > I have an application where I'm using ajax, not in any complicated > way, just a Button and a Label, with the button updating the label. > It's code is identical to the basicajax.php example that came with > Delphi 4 PHP, I've checked over everything and it's the same as the > example. > > When I try clicking the button the function executes but doesn't > update the label. This is because I'm getting back an invalid > response, while it should be responding with some XML to update the > Label it sends back the source of the page, as if I was submitting the > page and it was re-rendering. > > Strange? Yeah. I've only been able to find out that it must be > printing the code to the output buffer. > > Here's the debug: > > Tue Jun 26 2007 10:01:28 GMT-0700 (US Mountain Standard Time): > Received: 11:01:26am<div onClick="MainWindow.open();" id="splash" > style=" position:absolute; top:50%; left:50%; margin:-109px auto auto > -162px;"><img src="ModIcons/Modabout.bmp"></div><div > onClick="MainWindow.open();" id="splash" style=" position:absolute; > top:50%; left:50%; margin:-109px auto auto -162px;"><img > src="ModIcons/Modabout.bmp"></div><?xml version="1.0" encoding="utf-8" > ?><xjx><cmd n="as" t="MainWindow_outer" p="innerHTML"><![CDATA[<script > type="text/javascript">var d = > qx.ui.core.ClientDocument.getInstance(); var MainWindow = new > qx.ui.window.Window("Mod 4", "Mod16.png"); MainWindow.setLocation(62, > 217); MainWindow.setModal(false); MainWindow.setResizeable(true); > MainWindow.setMoveable(true); MainWindow.setMoveMethod("opaque"); > MainWindow.setResizeMethod("frame"); MainWindow.setShowClose(true); > MainWindow.setShowMinimize(true); MainWindow.setShowMaximize(true); > MainWindow.setShowIcon(true); MainWindow.setShowCaption(true)... [long > response] ... > > Tue Jun 26 2007 10:01:26 GMT-0700 (US Mountain Standard Time): Calling > ajaxProcess uri=http://localhost:3569/ModCloneUploadJune25Ajax.php?restore_session=1&DBGSESSID=-1 > (post:xajax=ajaxProcess&xajaxr=1182877286191&xajaxargs[]=ModMain&xajaxargs[]=Button1&xajaxargs[]=%3Cxjxobj%3E%3C%2Fxjxobj%3E&xajaxargs[]=Button1Click&xajaxargs[]=%3Cxjxquery%3E%3Cq%3EModMainMenu_state%3D%26MainModToolbar_state%3D%26Button1%3DButton1%26SubmitPage%3DSubmitPage%3C%2Fq%3E%3C%2Fxjxquery%3E&xajaxargs[]=%3Cxjxobj%3E%3C%2Fxjxobj%3E) > > Tue Jun 26 2007 10:01:26 GMT-0700 (US Mountain Standard Time): > Initializing Request Object.. > > Tue Jun 26 2007 10:01:26 GMT-0700 (US Mountain Standard Time): Starting xajax... > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > vcl4php-developers mailing list > vcl...@li... > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers > -- Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: Tiago L. T. <ti...@la...> - 2007-06-26 17:28:52
|
Hi! Same thing happened to me. Some messages seem to just disapear into quantum vaccum... weird. If anyone knows how to avoid this, I'll be thankful. Regards Rob Wilkens escreveu: > This message came through, just so you know. > > Don't know whether it has a spam-catcher though. > > Sometimes if messages have HTML or that kind of thing, some of these > programs will filter it out. On the other hand, I've seen attachments > of decent size come through on the list, so I don't know. > > -Rob > > On 6/26/07, Jonathan Benedicto <co...@jo...> wrote: >> Is there a spam catcher on this mailing list or something? I've tried twice >> to post a message, and I haven't seen it come through yet. >> >> Jon >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> vcl4php-developers mailing list >> vcl...@li... >> https://lists.sourceforge.net/lists/listinfo/vcl4php-developers >> > > -- Tiago Lima Trinidad |
From: FrozenDice <fro...@gm...> - 2007-06-26 17:05:17
|
Strangely when I go to the archive I can't see my previous email I sent yesterday about this, I figure it must have somehow not reached the server. I have an application where I'm using ajax, not in any complicated way, just a Button and a Label, with the button updating the label. It's code is identical to the basicajax.php example that came with Delphi 4 PHP, I've checked over everything and it's the same as the example. When I try clicking the button the function executes but doesn't update the label. This is because I'm getting back an invalid response, while it should be responding with some XML to update the Label it sends back the source of the page, as if I was submitting the page and it was re-rendering. Strange? Yeah. I've only been able to find out that it must be printing the code to the output buffer. Here's the debug: Tue Jun 26 2007 10:01:28 GMT-0700 (US Mountain Standard Time): Received: 11:01:26am<div onClick="MainWindow.open();" id="splash" style=" position:absolute; top:50%; left:50%; margin:-109px auto auto -162px;"><img src="ModIcons/Modabout.bmp"></div><div onClick="MainWindow.open();" id="splash" style=" position:absolute; top:50%; left:50%; margin:-109px auto auto -162px;"><img src="ModIcons/Modabout.bmp"></div><?xml version="1.0" encoding="utf-8" ?><xjx><cmd n="as" t="MainWindow_outer" p="innerHTML"><![CDATA[<script type="text/javascript">var d = qx.ui.core.ClientDocument.getInstance(); var MainWindow = new qx.ui.window.Window("Mod 4", "Mod16.png"); MainWindow.setLocation(62, 217); MainWindow.setModal(false); MainWindow.setResizeable(true); MainWindow.setMoveable(true); MainWindow.setMoveMethod("opaque"); MainWindow.setResizeMethod("frame"); MainWindow.setShowClose(true); MainWindow.setShowMinimize(true); MainWindow.setShowMaximize(true); MainWindow.setShowIcon(true); MainWindow.setShowCaption(true)... [long response] ... Tue Jun 26 2007 10:01:26 GMT-0700 (US Mountain Standard Time): Calling ajaxProcess uri=http://localhost:3569/ModCloneUploadJune25Ajax.php?restore_session=1&DBGSESSID=-1 (post:xajax=ajaxProcess&xajaxr=1182877286191&xajaxargs[]=ModMain&xajaxargs[]=Button1&xajaxargs[]=%3Cxjxobj%3E%3C%2Fxjxobj%3E&xajaxargs[]=Button1Click&xajaxargs[]=%3Cxjxquery%3E%3Cq%3EModMainMenu_state%3D%26MainModToolbar_state%3D%26Button1%3DButton1%26SubmitPage%3DSubmitPage%3C%2Fq%3E%3C%2Fxjxquery%3E&xajaxargs[]=%3Cxjxobj%3E%3C%2Fxjxobj%3E) Tue Jun 26 2007 10:01:26 GMT-0700 (US Mountain Standard Time): Initializing Request Object.. Tue Jun 26 2007 10:01:26 GMT-0700 (US Mountain Standard Time): Starting xajax... |
From: Rob W. <rob...@gm...> - 2007-06-26 14:23:43
|
That looks good to me. If you submit it in patch form, maybe qadram will eventually get around to including it. -Rob On 6/26/07, Jonathan Benedicto <co...@jo...> wrote: > The extractjscript function in rtl.inc.php is limited in the input script > format it supports. In other words, if HTML containing: > > <script language="JavaScript" type="text/javascript"></script> is passed to > it, it will ignore the script tag, simply because it doesn't not have that > particular pattern coded into it. > > Because PHP has the Perl regular expression power, I wrote up this > regex-based version: > > function extractjscript( $html ) > { > $result = ''; > $pattern = '/<script[^>]*?>.*?<\/script>/si'; > $scripts = preg_match_all( $pattern, $html, $out ); > $onlyhtml = preg_replace( $pattern, '', $html ); > $pattern = '/^<script[\s\S]*>([\s\S]*)<\/script>$/i'; > > foreach( $out[ 0 ] as $script ) > { > if( preg_match( $pattern, $script, $arr ) ) > $result .= trim( $arr[ 1 ] ); > } > > return array( $result, $onlyhtml ); > } > > > AFAIK, it does not suffer from the limited capabilities that the existing > one does, so should be more effective at extracting the JavaScript code. > > Jon > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > vcl4php-developers mailing list > vcl...@li... > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers > -- Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: Jonathan B. <co...@jo...> - 2007-06-26 14:18:58
|
The extractjscript function in rtl.inc.php is limited in the input script format it supports. In other words, if HTML containing: <script language="JavaScript" type="text/javascript"></script> is passed to it, it will ignore the script tag, simply because it doesn't not have that particular pattern coded into it. Because PHP has the Perl regular expression power, I wrote up this regex-based version: function extractjscript( $html ) { $result = ''; $pattern = '/<script[^>]*?>.*?<\/script>/si'; $scripts = preg_match_all( $pattern, $html, $out ); $onlyhtml = preg_replace( $pattern, '', $html ); $pattern = '/^<script[\s\S]*>([\s\S]*)<\/script>$/i'; foreach( $out[ 0 ] as $script ) { if( preg_match( $pattern, $script, $arr ) ) $result .= trim( $arr[ 1 ] ); } return array( $result, $onlyhtml ); } AFAIK, it does not suffer from the limited capabilities that the existing one does, so should be more effective at extracting the JavaScript code. Jon |
From: Jonathan B. <co...@jo...> - 2007-06-26 14:16:20
|
Thanks, well, I'll try again. Jon > This message came through, just so you know. > > Don't know whether it has a spam-catcher though. > > Sometimes if messages have HTML or that kind of thing, some of these > programs will filter it out. On the other hand, I've seen attachments > of decent size come through on the list, so I don't know. > > -Rob > > On 6/26/07, Jonathan Benedicto <co...@jo...> wrote: >> Is there a spam catcher on this mailing list or something? I've tried >> twice >> to post a message, and I haven't seen it come through yet. >> >> Jon |
From: Rob W. <rob...@gm...> - 2007-06-26 14:07:59
|
This message came through, just so you know. Don't know whether it has a spam-catcher though. Sometimes if messages have HTML or that kind of thing, some of these programs will filter it out. On the other hand, I've seen attachments of decent size come through on the list, so I don't know. -Rob On 6/26/07, Jonathan Benedicto <co...@jo...> wrote: > Is there a spam catcher on this mailing list or something? I've tried twice > to post a message, and I haven't seen it come through yet. > > Jon > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > vcl4php-developers mailing list > vcl...@li... > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers > -- Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: Jonathan B. <co...@jo...> - 2007-06-26 14:05:31
|
Is there a spam catcher on this mailing list or something? I've tried twice to post a message, and I haven't seen it come through yet. Jon |
From: FrozenDice <fro...@gm...> - 2007-06-25 19:29:56
|
Worked like a charm, I just pasted it in and it now renders. The only problem I'm seeing still is that in the object inspector there's very few properties, for example there is no Items property. This is kind of important, although I can set it with setItems(), but that's not really practical if I'm making this a component for others too. How do I get it publish properties from the class it inherited? Here's a screencap to show the difference: http://uomu.com/public/mega.jpg . I know I could go through and copy and paste all the statements to publish the properties but that's not too reliable if the VCL changes, there must be some way to include published properties of something you extend by default. - Dan > I made a patch to my copy of comctrls.inc.php > > The "loaded()" function in there for the custom tree view is > incorrect, but it will work for a standard tree view. > > Change 'setImageList` to `writeImageList` in there. > > The reason it worked for a regular treeview and not something extended > from customtreeview is that the regular treeview has the following > method: > > function setImageList($value) { > $this->writeImageList($value); } > > Leave that for now ( don't change it ). > > An idea for your class without modifying the VCL might be to add this > to your class: > > function getImageList() { return > $this->readImageList(); } > function setImageList($value) { > $this->writeImageList($value); } > > Good luck. > > -Rob > > > On 6/25/07, FrozenDice <fro...@gm...> wrote: > > I just updated my VCL to the newest version. Still not working. Ideas? > > > > >I don't think your vcl source tree is current/accurate, I would > > >recommend clearing and redownloading the latest svn version... But I > > >could be wrong? > > > > > >-----Original Message----- > > >From: FrozenDice <fro...@gm...> > > >Sent: June 21, 2007 7:05 PM > > >To: vcl...@li... > > >Subject: Re: [vcl4php-developers] Trying to make a component extend > > > > > >Well I'm trying to make a new component, and when I try to use the > > >component, eg. put it in a new application I get the error I was > > >talking about earlier. It's complaining about a call to an undefined > > >method. I'm extending CustomTreeView with MegaTree. For some reason > > >it thinks that there is a call to MegaTree::setImageList(), when I > > >have made no such call. There is a method in comcontrold.inc.php > > >which as this name. I'm confused. > > > > > >- Dan > > > > > > > > >>I see "readImageList()" and "writeImageList()" but no "getImageList()" > > >>in CustomTreeView. If I access read/write functions, it works without > > >>issue. > > >> > > >>Perhaps you can give an example of where you used this that you have > > a problem? > > >> > > >>-Rob > > |
From: Jonathan B. <co...@jo...> - 2007-06-25 19:18:14
|
The only problem with this approach is that that # changes too slowly. Perhaps Jose will update it with every revision from now on, but that set of defines have been in the VCL from the beginning IIRC. Jon ----- Original Message ----- From: "FrozenDice" <fro...@gm...> To: <vcl...@li...> Sent: Monday, June 25, 2007 3:06 PM Subject: [vcl4php-developers] Re suggestion > vcl.inc.php already has the version of the vcl in it. While it won't > tell you if the person is using a specific daily build, the > functionality is really already built in. > > [code] From vcl.inc.php > /** > * Major version of the VCL > */ > define('VCL_VERSION_MAJOR',1); > /** > * Minor version of the VCL > */ > define('VCL_VERSION_MINOR',2); > > /** > * Version of the VCL, use this define to make work your components > between VCL versions > */ > define('VCL_VERSION',VCL_VERSION_MAJOR.'.'.VCL_VERSION_MINOR); > [/code] > >>Being a component developer, it is quite important for me to know the >>revision/version of the VCL installed on a user's PC, when my installer is >>installing my components. >> >>Would it be a possiblity to add a version.txt file to the VCL releases >>that >>contains the revision # of the VCL? >> >>Jon |
From: Jonathan B. <co...@jo...> - 2007-06-25 19:08:07
|
I just thought of a possibly better solution - check the actual component properties first, before looking up the fields in the table. Something like this: function __get( $nm ) { $method = 'get' . $nm; //Search first for get$nm if( method_exists( $this, $method ) ) return $this->$method(); $method = 'read' . $nm; //Search for read$nm if( method_exists( $this, $method ) ) return $this->$method(); if( $this->_rs && $this->Active ) { if( is_array( $this->_rs->fields ) && array_key_exists( $nm, $this->_rs->fields ) ) { if( $this->State == dsBrowse ) { return $this->_rs->fields[ $nm ]; } else if( array_key_exists( $nm, $this->fieldbuffer ) ) { return $this->fieldbuffer[ $nm ]; } else { return ''; } } else if( is_array( $this->fieldbuffer ) && array_key_exists( $nm, $this->fieldbuffer ) ) { return $this->fieldbuffer[ $nm ]; } } throw new EPropertyNotFound( $this->ClassName() . '.' . $nm ); } Jon ----- Original Message ----- From: "Rob Wilkens" <rob...@gm...> To: <vcl...@li...> Sent: Sunday, June 24, 2007 6:56 PM Subject: Re: [vcl4php-developers] problem with Name fields > As a temporary solution, check out this patch. It just disables the > bad functionality. I'm not sure if there's another convenient way for > an end-user (programmer) to get the field data, but they still show up > in the dbgrid that is displayed in the sample app we were using in > this problem so the data is still there. > > I know Jose won't like the "just disable it" mentality, but this > functionality is just poorly planned. > > -Rob > > On 6/23/07, Jonathan Benedicto <co...@jo...> wrote: >> Aha, I get the same error. It used to be different, but I think your >> patch >> changed it. >> >> Interesting. Looking forward to hearing more details on your >> investigation >> :-) >> >> Jon >> >> ----- Original Message ----- >> From: "Rob Wilkens" <rob...@gm...> >> To: <vcl...@li...> >> Sent: Saturday, June 23, 2007 11:07 PM >> Subject: Re: [vcl4php-developers] problem with Name fields >> >> >> > Not sure if it's batch patch, but with my latest (I think the "June14" >> > patch) it worked for me. I'm not 100% sure that for what I did my >> > patch would have had an effect until I submitted the button, and when >> > I submitted the button I got a new error (see below). >> > >> > Here's my sample screenshot to illustrate, with actual data (I blacked >> > out the names from the screeshot). >> > >> > Please take a look and tell me if I did something differently than >> > you. I do have a "Name" field here, it was pre-existing prior to my >> > Delphi for PHP days. >> > >> > Note: If I click to filter, I get the following error, possibly >> > because I didn't set up the filter for my dataset: >> > >> > Fatal error: Call to undefined method stdClass::Prepare() in >> > C:\Program Files\CodeGear\Delphi for >> > PHP\1.0\vcl-orig-modbyrob\samples\Data Aware\query\querysample.php on >> > line 37 >> > >> > I haven't had the time to debug this error... I'm going to sleep >> > (it's late here). >> > >> > Have a good night and good luck! >> > >> > -Rob >> > >> > On 6/23/07, Jonathan Benedicto <co...@jo...> wrote: >> > > Hi Rob, >> > > >> > > Trying to locate your patch, is it the "BatchPatch.patch" file that >> alters >> > > classes.inc.php, stdctrls.inc.php and forms.inc.php? If it is, I >> > > think I >> > > applied it correctly, but it doesn't solve the problem. >> > > >> > > I've just run into this problem again, this time with fields called >> "State". >> > > I'm beginning to wonder whether the VCL For PHP's design, where you >> > > can >> use >> > > the field name as the properties of the DataSet-derived components, >> > > is >> > > sound. The VCL For Win32 uses FieldByName, which, IMO, is a safer and >> less >> > > bug-prone design. >> > > >> > > Jon >> > > >> > > ----- Original Message ----- >> > > From: "Rob Wilkens" <rob...@gm...> >> > > To: <vcl...@li...> >> > > Sent: Friday, June 22, 2007 8:01 PM >> > > Subject: Re: [vcl4php-developers] problem with Name fields >> > > >> > > >> > > > Whenever you get around to it, please post your resuilts here >> > > > (positive or negative). It might help the process along if we know >> > > > we're dealing with the same problem and the patch does fix it. I >> > > > believe it should. >> > > > >> > > > I'm a little concerned that the last I heard from Jose was when i >> > > > replied to a private message of his on the list after he asked me >> > > > to >> > > > not e-mail him privately again. Perhaps I violated his privacy by >> > > > doing that, I guess, and maybe he's offended, in which case -- If >> > > > you're reading Jose, I'm sorry for doing that if it bothered you. >> > > > I >> > > > didn't mean to be rude. >> > > > >> > > > -Rob >> > > > >> > > > On 6/22/07, Jonathan Benedicto <co...@jo...> wrote: >> > > >> Hi Rob, >> > > >> >> > > >> No, I didn't apply the patch - I'll try it and see if it fixes it. >> > > >> >> > > >> Jose has been rather quiet lately, hope he's ok. >> > > >> >> > > >> Jon >> > > >> >> > > >> ----- Original Message ----- >> > > >> From: "Rob Wilkens" <rob...@gm...> >> > > >> To: <vcl...@li...> >> > > >> Sent: Thursday, June 21, 2007 1:24 PM >> > > >> Subject: Re: [vcl4php-developers] problem with Name fields >> > > >> >> > > >> >> > > >> > Actually, did you apply the patch (not officially accepted) I >> > > >> > sent >> in >> > > >> > most recently. >> > > >> > >> > > >> > That was the same kind of stack trace I was getting whenever I >> loaded >> > > >> > a page a second time in my app (i.e. after a button submission). >> The >> > > >> > problem occured because I was dynamically creating components >> > > >> > that >> > > >> > weren't in the xml file. >> > > >> > >> > > >> > It's related to storing things in the session, and I think my >> solution >> > > >> > solves the problem succesfully and hopefully makes Jose happy so >> > > >> > he >> > > >> > includes it. I haven't heard from Jose on the list in about a >> > > >> > week >> > > >> > now. >> > > >> > >> > > >> > -Rob >> > > >> > >> > > >> > On 6/21/07, Jonathan Benedicto <co...@jo...> wrote: >> > > >> >> Hi All, >> > > >> >> >> > > >> >> Just run into a problem with the VCL and tables containing a >> > > >> >> field >> > > >> >> called >> > > >> >> Name. >> > > >> >> >> > > >> >> If a table contains a field called "Name", when the page is >> serialized >> > > >> >> into >> > > >> >> the PHP session, the table's Name field value is used to write >> > > >> >> out >> the >> > > >> >> name >> > > >> >> of the component to the serialized stream. >> > > >> >> >> > > >> >> To see this problem in action, open the QuerySample in the >> > > >> >> vcl\samples\DataAware\query, and set it to use a table that has >> > > >> >> a >> Name >> > > >> >> field. Run the example, and hit the button. You should get a >> message: >> > > >> >> >> > > >> >> Application raised an exception class EPropertyNotFound with >> message >> > > >> >> 'Error >> > > >> >> using a property, not defined as a member [QuerySample.Ships]' >> > > >> >> Callstack #0 File: C:\Users\Jonathan\Downloads\querysample.php >> Line: >> > > >> >> 53 >> > > >> >> |_Callstack #1 File: C:\Program Files (x86)\CodeGear\Delphi >> > > >> >> for >> > > >> >> PHP\1.0\vcl\classes.inc.php Line: 1380 >> > > >> >> |_Callstack #2 File: C:\Program Files (x86)\CodeGear\Delphi >> > > >> >> for >> > > >> >> PHP\1.0\vcl\classes.inc.php Line: 1415 >> > > >> >> >> > > >> >> Jon >> > > >> >> >> > > >> >> >> > > >> >> >> ------------------------------------------------------------------------- >> > > >> >> This SF.net email is sponsored by DB2 Express >> > > >> >> Download DB2 Express C - the FREE version of DB2 express and >> > > >> >> take >> > > >> >> control of your XML. No limits. Just data. Click to get it now. >> > > >> >> http://sourceforge.net/powerbar/db2/ >> > > >> >> _______________________________________________ >> > > >> >> vcl4php-developers mailing list >> > > >> >> vcl...@li... >> > > >> >> https://lists.sourceforge.net/lists/listinfo/vcl4php-developers >> > > >> >> >> > > >> > >> > > >> > >> > > >> > -- >> > > >> > Rob Wilkens >> > > >> > http://RobWilkens.com >> > > >> > 516-874-0579 >> > > >> > >> > > >> >> > ------------------------------------------------------------------------- >> > > >> > This SF.net email is sponsored by DB2 Express >> > > >> > Download DB2 Express C - the FREE version of DB2 express and >> > > >> > take >> > > >> > control of your XML. No limits. Just data. Click to get it now. >> > > >> > http://sourceforge.net/powerbar/db2/ >> > > >> > _______________________________________________ >> > > >> > vcl4php-developers mailing list >> > > >> > vcl...@li... >> > > >> > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers >> > > >> > >> > > >> >> > > >> >> > > >> >> ------------------------------------------------------------------------- >> > > >> This SF.net email is sponsored by DB2 Express >> > > >> Download DB2 Express C - the FREE version of DB2 express and take >> > > >> control of your XML. No limits. Just data. Click to get it now. >> > > >> http://sourceforge.net/powerbar/db2/ >> > > >> _______________________________________________ >> > > >> vcl4php-developers mailing list >> > > >> vcl...@li... >> > > >> https://lists.sourceforge.net/lists/listinfo/vcl4php-developers >> > > >> >> > > > >> > > > >> > > > -- >> > > > Rob Wilkens >> > > > http://RobWilkens.com >> > > > 516-874-0579 >> > > > >> > > >> > ------------------------------------------------------------------------- >> > > > This SF.net email is sponsored by DB2 Express >> > > > Download DB2 Express C - the FREE version of DB2 express and take >> > > > control of your XML. No limits. Just data. Click to get it now. >> > > > http://sourceforge.net/powerbar/db2/ >> > > > _______________________________________________ >> > > > vcl4php-developers mailing list >> > > > vcl...@li... >> > > > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers >> > > >> > > >> > >> > ------------------------------------------------------------------------- >> > > This SF.net email is sponsored by DB2 Express >> > > Download DB2 Express C - the FREE version of DB2 express and take >> > > control of your XML. No limits. Just data. Click to get it now. >> > > http://sourceforge.net/powerbar/db2/ >> > > _______________________________________________ >> > > vcl4php-developers mailing list >> > > vcl...@li... >> > > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers >> > > >> > >> > >> > -- >> > Rob Wilkens >> > http://RobWilkens.com >> > 516-874-0579 >> > >> >> >> ---------------------------------------------------------------------------- >> ---- >> >> >> > ------------------------------------------------------------------------- >> > This SF.net email is sponsored by DB2 Express >> > Download DB2 Express C - the FREE version of DB2 express and take >> > control of your XML. No limits. Just data. Click to get it now. >> > http://sourceforge.net/powerbar/db2/ >> >> >> ---------------------------------------------------------------------------- >> ---- >> >> >> > _______________________________________________ >> > vcl4php-developers mailing list >> > vcl...@li... >> > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers >> > >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> vcl4php-developers mailing list >> vcl...@li... >> https://lists.sourceforge.net/lists/listinfo/vcl4php-developers >> > > > -- > Rob Wilkens > http://RobWilkens.com > 516-874-0579 > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ -------------------------------------------------------------------------------- > _______________________________________________ > vcl4php-developers mailing list > vcl...@li... > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers > |
From: FrozenDice <fro...@gm...> - 2007-06-25 19:07:17
|
vcl.inc.php already has the version of the vcl in it. While it won't tell you if the person is using a specific daily build, the functionality is really already built in. [code] From vcl.inc.php /** * Major version of the VCL */ define('VCL_VERSION_MAJOR',1); /** * Minor version of the VCL */ define('VCL_VERSION_MINOR',2); /** * Version of the VCL, use this define to make work your components between VCL versions */ define('VCL_VERSION',VCL_VERSION_MAJOR.'.'.VCL_VERSION_MINOR); [/code] >Being a component developer, it is quite important for me to know the >revision/version of the VCL installed on a user's PC, when my installer is >installing my components. > >Would it be a possiblity to add a version.txt file to the VCL releases that >contains the revision # of the VCL? > >Jon |
From: FrozenDice <fro...@gm...> - 2007-06-25 18:54:24
|
> Hi all, > Here's a new patch for Window component > > ChangeLog: > + Added to Window component the following JavaScript events: OnResize, > OnMove, OnMinimize, OnRestore and OnMaximize. > > Known issues: > OnMove and OnResize are fired twice it window is moved/resized in > both directions (ie. changed with and height or changed left and top). > -- > Tiago Lima Trinidad Wow, this is going to be awesome, able to do things on minimize, etc. 2 questions though. 1. I see there's an attached .patch file, how do I use this to patch D4PHP? Or is this a new component? 2. Is there some specific reason why it doesn't support OnExit? |
From: Jonathan B. <co...@jo...> - 2007-06-25 18:54:16
|
Being a component developer, it is quite important for me to know the revision/version of the VCL installed on a user's PC, when my installer is installing my components. Would it be a possiblity to add a version.txt file to the VCL releases that contains the revision # of the VCL? Jon |
From: Rob W. <rob...@gm...> - 2007-06-25 18:52:13
|
Unsubscribe and resubscribe without digest..... _rob -----Original Message----- From: FrozenDice <fro...@gm...> Sent: June 25, 2007 2:45 PM To: vcl...@li... Subject: [vcl4php-developers] How do I use this email list? I've been using this email list for a few weeks but I'm still somewhat confused on exactly how it works. How do I respond to a message in the digest? The only way I've found is copying and pasting the previous email into a new one, and writing my response above it, then copying the subject line. This probably isn't right because it doesn't show up as threaded in the archives. How can I respond to messages that show up in the archive, it says read only. Lastly can I set it so I receive individual messages rather than a digest? Thanks, I tried the help command and reading in the archive but didn't find answers to these questions. - Dan ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ vcl4php-developers mailing list vcl...@li... https://lists.sourceforge.net/lists/listinfo/vcl4php-developers |
From: FrozenDice <fro...@gm...> - 2007-06-25 18:45:39
|
I've been using this email list for a few weeks but I'm still somewhat confused on exactly how it works. How do I respond to a message in the digest? The only way I've found is copying and pasting the previous email into a new one, and writing my response above it, then copying the subject line. This probably isn't right because it doesn't show up as threaded in the archives. How can I respond to messages that show up in the archive, it says read only. Lastly can I set it so I receive individual messages rather than a digest? Thanks, I tried the help command and reading in the archive but didn't find answers to these questions. - Dan |
From: Rob W. <rob...@gm...> - 2007-06-25 17:43:29
|
Like I said, it worked for me when I tried it... What did you name it? Maybe that's the issue (some names 'seem' to be reserved in certain areas). Also, do you have the latest D4PHP Update? (i.e. not just the VCL update but the D4PHP update?). It's over a month old, I think, but that's the only thing I might think is different. -Rob On 6/25/07, FrozenDice <fro...@gm...> wrote: > I changed the name in the Object Inspector. Also I updated my VCL to > the newest version 10/6 and I'm still having the same problems. > > - Dan > > >It worked for me. > > > >How did you change the name of the class? > > > >I changed it in the designer (not the source). > > > >I renamed "Index" to "Rob", ran it and it ran fine. > > > >Note: I think there were some AJAX patches recently to SVN version of > >VCL4PHP. You may want to get the latest source - but back up the > >original vcl source first (else you'll have to re-run a D4PHP > >install). > > > >-Rob > > > >On 6/22/07, FrozenDice <fro...@gm...> wrote: > >> Ajax isn't working for me whenever the Form's name isn't the one it > >> originally was. If I open up the basicajax sample that came with > >> Delphi4PHP it will run, if I go and change the name of the form, save > >> then run it I get an alert that there was whitespace in the response. > >> It's too long to type so here's a screencap. > >> http://uomu.com/public/errorajax.jpg > >> > >> Can anyone else replicate this or is it just my system? > >> > >> - Daniel > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > vcl4php-developers mailing list > vcl...@li... > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers > -- Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: Rob W. <rob...@gm...> - 2007-06-25 17:38:16
|
I made a patch to my copy of comctrls.inc.php The "loaded()" function in there for the custom tree view is incorrect, but it will work for a standard tree view. Change 'setImageList` to `writeImageList` in there. The reason it worked for a regular treeview and not something extended from customtreeview is that the regular treeview has the following method: function setImageList($value) { $this->writeImageList($value); } Leave that for now ( don't change it ). An idea for your class without modifying the VCL might be to add this to your class: function getImageList() { return $this->readImageList(); } function setImageList($value) { $this->writeImageList($value); } Good luck. -Rob On 6/25/07, FrozenDice <fro...@gm...> wrote: > I just updated my VCL to the newest version. Still not working. Ideas? > > >I don't think your vcl source tree is current/accurate, I would > >recommend clearing and redownloading the latest svn version... But I > >could be wrong? > > > >-----Original Message----- > >From: FrozenDice <fro...@gm...> > >Sent: June 21, 2007 7:05 PM > >To: vcl...@li... > >Subject: Re: [vcl4php-developers] Trying to make a component extend > > > >Well I'm trying to make a new component, and when I try to use the > >component, eg. put it in a new application I get the error I was > >talking about earlier. It's complaining about a call to an undefined > >method. I'm extending CustomTreeView with MegaTree. For some reason > >it thinks that there is a call to MegaTree::setImageList(), when I > >have made no such call. There is a method in comcontrold.inc.php > >which as this name. I'm confused. > > > >- Dan > > > > > >>I see "readImageList()" and "writeImageList()" but no "getImageList()" > >>in CustomTreeView. If I access read/write functions, it works without > >>issue. > >> > >>Perhaps you can give an example of where you used this that you have > a problem? > >> > >>-Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > vcl4php-developers mailing list > vcl...@li... > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers > -- Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: FrozenDice <fro...@gm...> - 2007-06-25 17:32:37
|
I changed the name in the Object Inspector. Also I updated my VCL to the newest version 10/6 and I'm still having the same problems. - Dan >It worked for me. > >How did you change the name of the class? > >I changed it in the designer (not the source). > >I renamed "Index" to "Rob", ran it and it ran fine. > >Note: I think there were some AJAX patches recently to SVN version of >VCL4PHP. You may want to get the latest source - but back up the >original vcl source first (else you'll have to re-run a D4PHP >install). > >-Rob > >On 6/22/07, FrozenDice <fro...@gm...> wrote: >> Ajax isn't working for me whenever the Form's name isn't the one it >> originally was. If I open up the basicajax sample that came with >> Delphi4PHP it will run, if I go and change the name of the form, save >> then run it I get an alert that there was whitespace in the response. >> It's too long to type so here's a screencap. >> http://uomu.com/public/errorajax.jpg >> >> Can anyone else replicate this or is it just my system? >> >> - Daniel |
From: FrozenDice <fro...@gm...> - 2007-06-25 17:29:55
|
I just updated my VCL to the newest version. Still not working. Ideas? >I don't think your vcl source tree is current/accurate, I would >recommend clearing and redownloading the latest svn version... But I >could be wrong? > >-----Original Message----- >From: FrozenDice <fro...@gm...> >Sent: June 21, 2007 7:05 PM >To: vcl...@li... >Subject: Re: [vcl4php-developers] Trying to make a component extend > >Well I'm trying to make a new component, and when I try to use the >component, eg. put it in a new application I get the error I was >talking about earlier. It's complaining about a call to an undefined >method. I'm extending CustomTreeView with MegaTree. For some reason >it thinks that there is a call to MegaTree::setImageList(), when I >have made no such call. There is a method in comcontrold.inc.php >which as this name. I'm confused. > >- Dan > > >>I see "readImageList()" and "writeImageList()" but no "getImageList()" >>in CustomTreeView. If I access read/write functions, it works without >>issue. >> >>Perhaps you can give an example of where you used this that you have a problem? >> >>-Rob |
From: Jonathan B. <co...@jo...> - 2007-06-25 11:13:13
|
> As a temporary solution, check out this patch. It just disables the > bad functionality. I'm not sure if there's another convenient way for > an end-user (programmer) to get the field data, but they still show up > in the dbgrid that is displayed in the sample app we were using in > this problem so the data is still there. > > I know Jose won't like the "just disable it" mentality, but this > functionality is just poorly planned. Yeah - thanks for the patch, I'll look at it ASAP. Jon |
From: Jonathan B. <co...@jo...> - 2007-06-25 11:12:49
|
> Ok, Here's the issue: > >>From __get in dbtables.php: > > if ($this->State==dsBrowse) > { > return ($this->_rs->fields[$nm]); > } > > What happens: > When you retrieve $query1->Name and in browse mode, instead of > returning the name of the property, the above code will return the > value of the field. Yeah, I thought this was the problem. > We need to work on changing this, but I won't do it myself. Or > rather, i'll do the work myself, but someone needs to tell me this > much: Can we create a new function called 'getFieldValue($name)' > which will get the field value (like __get is doing now) and take out > the 'get value as property' dumbness. > > I don't want to do this without input from others, so speak up! The property AssociativeFieldValues already does something similar to what you're suggesting. Eg: $value = $this->table1->AssociativeFieldValues[ 'Name' ]; So we might not need another property. Jon |